Adjust index WS imports (#2785)

This commit is contained in:
Jaco Greeff
2020-10-26 22:36:03 +01:00
committed by GitHub
parent 26de59ed79
commit fb377fb0d4
12 changed files with 68 additions and 69 deletions
+1 -1
View File
@@ -30,7 +30,7 @@
"@polkadot/api": "^2.4.2-0",
"@polkadot/rpc-core": "^2.4.2-0",
"@polkadot/types": "^2.4.2-0",
"@polkadot/util": "^3.6.1",
"@polkadot/util": "^3.6.2-5",
"bn.js": "^5.1.3",
"rxjs": "^6.6.3"
}
+3 -3
View File
@@ -32,13 +32,13 @@
"@polkadot/rpc-core": "^2.4.2-0",
"@polkadot/rpc-provider": "^2.4.2-0",
"@polkadot/types": "^2.4.2-0",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"@polkadot/util": "^3.6.2-5",
"@polkadot/util-crypto": "^3.6.2-5",
"bn.js": "^5.1.3",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.1"
"@polkadot/keyring": "^3.6.2-5"
}
}
+4 -4
View File
@@ -28,19 +28,19 @@
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/api-derive": "^2.4.2-0",
"@polkadot/keyring": "^3.6.1",
"@polkadot/keyring": "^3.6.2-5",
"@polkadot/metadata": "^2.4.2-0",
"@polkadot/rpc-core": "^2.4.2-0",
"@polkadot/rpc-provider": "^2.4.2-0",
"@polkadot/types": "^2.4.2-0",
"@polkadot/types-known": "^2.4.2-0",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"@polkadot/util": "^3.6.2-5",
"@polkadot/util-crypto": "^3.6.2-5",
"bn.js": "^5.1.3",
"eventemitter3": "^4.0.7",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.1"
"@polkadot/keyring": "^3.6.2-5"
}
}
+1 -1
View File
@@ -8,7 +8,7 @@ import { detectPackage } from '@polkadot/util';
detectPackage(require('./package.json'), typeof __dirname !== 'undefined' && __dirname);
export { Keyring } from '@polkadot/keyring';
export { WsProvider } from '@polkadot/rpc-provider';
export { default as WsProvider } from '@polkadot/rpc-provider/ws';
export { default as ApiPromise } from './promise';
export { default as ApiRx } from './rx';
+3 -3
View File
@@ -29,11 +29,11 @@
"@babel/runtime": "^7.12.1",
"@polkadot/types": "^2.4.2-0",
"@polkadot/types-known": "^2.4.2-0",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"@polkadot/util": "^3.6.2-5",
"@polkadot/util-crypto": "^3.6.2-5",
"bn.js": "^5.1.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.1"
"@polkadot/keyring": "^3.6.2-5"
}
}
+2 -2
View File
@@ -30,11 +30,11 @@
"@polkadot/metadata": "^2.4.2-0",
"@polkadot/rpc-provider": "^2.4.2-0",
"@polkadot/types": "^2.4.2-0",
"@polkadot/util": "^3.6.1",
"@polkadot/util": "^3.6.2-5",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.1"
"@polkadot/keyring": "^3.6.2-5"
}
}
+3 -3
View File
@@ -29,15 +29,15 @@
"@babel/runtime": "^7.12.1",
"@polkadot/metadata": "^2.4.2-0",
"@polkadot/types": "^2.4.2-0",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"@polkadot/util": "^3.6.2-5",
"@polkadot/util-crypto": "^3.6.2-5",
"@polkadot/x-fetch": "^0.3.5",
"@polkadot/x-ws": "^0.3.5",
"bn.js": "^5.1.3",
"eventemitter3": "^4.0.7"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.1",
"@polkadot/keyring": "^3.6.2-5",
"mock-socket": "^9.0.3",
"nock": "^13.0.4"
}
+2 -2
View File
@@ -3,7 +3,7 @@
// from https://stackoverflow.com/questions/19304157/getting-the-reason-why-websockets-closed-with-close-code-1006
const specificStatusCodeMappings: Record<number, string> = {
const known: Record<number, string> = {
1000: 'Normal Closure',
1001: 'Going Away',
1002: 'Protocol Error',
@@ -37,5 +37,5 @@ export function getWSErrorString (code: number): string {
}
}
return specificStatusCodeMappings[code] || '(Unknown)';
return known[code] || '(Unknown)';
}
+1 -1
View File
@@ -40,7 +40,7 @@
"@polkadot/metadata": "^2.4.2-0",
"@polkadot/rpc-provider": "^2.4.2-0",
"@polkadot/types": "^2.4.2-0",
"@polkadot/util": "^3.6.1",
"@polkadot/util": "^3.6.2-5",
"handlebars": "^4.7.6",
"websocket": "^1.0.32",
"yargs": "^16.1.0"
+1 -1
View File
@@ -28,7 +28,7 @@
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/types": "^2.4.2-0",
"@polkadot/util": "^3.6.1",
"@polkadot/util": "^3.6.2-5",
"bn.js": "^5.1.3"
},
"devDependencies": {
+3 -3
View File
@@ -28,15 +28,15 @@
"dependencies": {
"@babel/runtime": "^7.12.1",
"@polkadot/metadata": "^2.4.2-0",
"@polkadot/util": "^3.6.1",
"@polkadot/util-crypto": "^3.6.1",
"@polkadot/util": "^3.6.2-5",
"@polkadot/util-crypto": "^3.6.2-5",
"@types/bn.js": "^4.11.6",
"bn.js": "^5.1.3",
"memoizee": "^0.4.14",
"rxjs": "^6.6.3"
},
"devDependencies": {
"@polkadot/keyring": "^3.6.1",
"@polkadot/keyring": "^3.6.2-5",
"@types/memoizee": "^0.4.4"
}
}