Bump common (#3690)

This commit is contained in:
Jaco
2021-06-23 16:18:49 +02:00
committed by GitHub
parent 7c2048bc6b
commit 7b1400e238
17 changed files with 149 additions and 149 deletions
+2 -2
View File
@@ -22,7 +22,7 @@
"@babel/runtime": "^7.14.6",
"@polkadot/api": "4.15.2-5",
"@polkadot/types": "4.15.2-5",
"@polkadot/util": "^6.9.1",
"@polkadot/x-rxjs": "^6.9.1"
"@polkadot/util": "^6.9.2-9",
"@polkadot/x-rxjs": "^6.9.2-9"
}
}
+4 -4
View File
@@ -23,12 +23,12 @@
"@polkadot/api": "4.15.2-5",
"@polkadot/rpc-core": "4.15.2-5",
"@polkadot/types": "4.15.2-5",
"@polkadot/util": "^6.9.1",
"@polkadot/util-crypto": "^6.9.1",
"@polkadot/x-rxjs": "^6.9.1"
"@polkadot/util": "^6.9.2-9",
"@polkadot/util-crypto": "^6.9.2-9",
"@polkadot/x-rxjs": "^6.9.2-9"
},
"devDependencies": {
"@polkadot/keyring": "^6.9.1",
"@polkadot/keyring": "^6.9.2-9",
"@polkadot/rpc-provider": "4.15.2-5"
}
}
+4 -4
View File
@@ -21,15 +21,15 @@
"dependencies": {
"@babel/runtime": "^7.14.6",
"@polkadot/api-derive": "4.15.2-5",
"@polkadot/keyring": "^6.9.1",
"@polkadot/keyring": "^6.9.2-9",
"@polkadot/metadata": "4.15.2-5",
"@polkadot/rpc-core": "4.15.2-5",
"@polkadot/rpc-provider": "4.15.2-5",
"@polkadot/types": "4.15.2-5",
"@polkadot/types-known": "4.15.2-5",
"@polkadot/util": "^6.9.1",
"@polkadot/util-crypto": "^6.9.1",
"@polkadot/x-rxjs": "^6.9.1",
"@polkadot/util": "^6.9.2-9",
"@polkadot/util-crypto": "^6.9.2-9",
"@polkadot/x-rxjs": "^6.9.2-9",
"eventemitter3": "^4.0.7"
}
}
+3 -3
View File
@@ -22,10 +22,10 @@
"@babel/runtime": "^7.14.6",
"@polkadot/types": "4.15.2-5",
"@polkadot/types-known": "4.15.2-5",
"@polkadot/util": "^6.9.1",
"@polkadot/util-crypto": "^6.9.1"
"@polkadot/util": "^6.9.2-9",
"@polkadot/util-crypto": "^6.9.2-9"
},
"devDependencies": {
"@polkadot/keyring": "^6.9.1"
"@polkadot/keyring": "^6.9.2-9"
}
}
+3 -3
View File
@@ -23,10 +23,10 @@
"@polkadot/metadata": "4.15.2-5",
"@polkadot/rpc-provider": "4.15.2-5",
"@polkadot/types": "4.15.2-5",
"@polkadot/util": "^6.9.1",
"@polkadot/x-rxjs": "^6.9.1"
"@polkadot/util": "^6.9.2-9",
"@polkadot/x-rxjs": "^6.9.2-9"
},
"devDependencies": {
"@polkadot/keyring": "^6.9.1"
"@polkadot/keyring": "^6.9.2-9"
}
}
+6 -6
View File
@@ -21,15 +21,15 @@
"dependencies": {
"@babel/runtime": "^7.14.6",
"@polkadot/types": "4.15.2-5",
"@polkadot/util": "^6.9.1",
"@polkadot/util-crypto": "^6.9.1",
"@polkadot/x-fetch": "^6.9.1",
"@polkadot/x-global": "^6.9.1",
"@polkadot/x-ws": "^6.9.1",
"@polkadot/util": "^6.9.2-9",
"@polkadot/util-crypto": "^6.9.2-9",
"@polkadot/x-fetch": "^6.9.2-9",
"@polkadot/x-global": "^6.9.2-9",
"@polkadot/x-ws": "^6.9.2-9",
"eventemitter3": "^4.0.7"
},
"devDependencies": {
"@polkadot/keyring": "^6.9.1",
"@polkadot/keyring": "^6.9.2-9",
"@polkadot/metadata": "4.15.2-5",
"mock-socket": "^9.0.3",
"nock": "^13.1.0"
+1 -1
View File
@@ -33,7 +33,7 @@
"@polkadot/metadata": "4.15.2-5",
"@polkadot/rpc-provider": "4.15.2-5",
"@polkadot/types": "4.15.2-5",
"@polkadot/util": "^6.9.1",
"@polkadot/util": "^6.9.2-9",
"handlebars": "^4.7.7",
"websocket": "^1.0.34",
"yargs": "^17.0.1"
+2 -2
View File
@@ -20,8 +20,8 @@
"homepage": "https://github.com/polkadot-js/api/tree/master/packages/types-known#readme",
"dependencies": {
"@babel/runtime": "^7.14.6",
"@polkadot/networks": "^6.9.1",
"@polkadot/networks": "^6.9.2-9",
"@polkadot/types": "4.15.2-5",
"@polkadot/util": "^6.9.1"
"@polkadot/util": "^6.9.2-9"
}
}
+4 -4
View File
@@ -21,12 +21,12 @@
"dependencies": {
"@babel/runtime": "^7.14.6",
"@polkadot/metadata": "4.15.2-5",
"@polkadot/util": "^6.9.1",
"@polkadot/util-crypto": "^6.9.1",
"@polkadot/x-rxjs": "^6.9.1"
"@polkadot/util": "^6.9.2-9",
"@polkadot/util-crypto": "^6.9.2-9",
"@polkadot/x-rxjs": "^6.9.2-9"
},
"devDependencies": {
"@polkadot/keyring": "^6.9.1",
"@polkadot/keyring": "^6.9.2-9",
"@types/bn.js": "^4.11.6",
"bn.js": "^4.11.9"
}
+1 -1
View File
@@ -99,7 +99,7 @@ function decodeStructFromObject <T> (registry: Registry, Types: ConstructorDef,
*/
function decodeStruct <T> (registry: Registry, Types: ConstructorDef, value: unknown, jsonMap: Map<any, string>): T {
if (isHex(value)) {
return decodeStruct(registry, Types, hexToU8a(value.toString()), jsonMap);
return decodeStruct(registry, Types, hexToU8a(value), jsonMap);
} else if (isU8a(value)) {
const keys = Object.keys(Types);
const values = decodeU8a(registry, value, Object.values(Types), keys);
+1 -1
View File
@@ -40,7 +40,7 @@ function initType<T extends Codec = Codec, K extends string = string> (registry:
if (isU8a(value)) {
checkInstance(value, created);
} else if (isHex(value)) {
checkInstance(u8aToU8a(value.toString()), created);
checkInstance(u8aToU8a(value), created);
}
}
+2 -2
View File
@@ -13,9 +13,9 @@ function decodeAccountId (value: AnyU8a | AnyString): AnyU8a {
if (isU8a(value) || Array.isArray(value)) {
return u8aToU8a(value);
} else if (isHex(value) || isEthereumAddress(value)) {
return hexToU8a(value.toString());
return hexToU8a(value);
} else if (isString(value)) {
return u8aToU8a((value as string).toString());
return u8aToU8a(value);
}
return value;
+3 -3
View File
@@ -14,10 +14,10 @@ function decodeAccountId (value?: AnyU8a | AnyString): Uint8Array {
return new Uint8Array();
} else if (isU8a(value) || Array.isArray(value)) {
return u8aToU8a(value);
} else if (isHex(value)) {
return hexToU8a(value);
} else if (isString(value)) {
return isHex(value)
? hexToU8a(value.toString())
: decodeAddress((value as string).toString());
return decodeAddress(value);
}
throw new Error(`Unknown type passed to AccountId constructor, found typeof ${typeof value}`);
+1 -1
View File
@@ -93,7 +93,7 @@ function decodeCallViaU8a (registry: Registry, value: Uint8Array, _meta?: Functi
*/
function decodeCall (registry: Registry, value: unknown | DecodedMethod | Uint8Array | string = new Uint8Array(), _meta?: FunctionMetadataLatest): DecodedMethod {
if (isHex(value) || isU8a(value)) {
return decodeCallViaU8a(registry, u8aToU8a(value as string), _meta);
return decodeCallViaU8a(registry, u8aToU8a(value), _meta);
} else if (isObject(value) && value.callIndex && value.args) {
return decodeCallViaObject(registry, value as DecodedMethod, _meta);
}
+1 -1
View File
@@ -13,7 +13,7 @@ const MAX_LENGTH = 128 * 1024;
/** @internal */
function decodeText (value?: null | Text | string | AnyU8a | { toString: () => string }): string {
if (isHex(value)) {
return u8aToString(hexToU8a(value.toString()));
return u8aToString(hexToU8a(value));
} else if (value instanceof Uint8Array) {
if (!value.length) {
return '';