@polkadot/types-codec
Advanced tools
Comparing version 9.0.1 to 9.1.1
@@ -52,3 +52,3 @@ "use strict"; | ||
try { | ||
output.set(key instanceof KeyClass ? key : new KeyClass(registry, isComplex ? JSON.parse(key) : key), val instanceof ValClass ? val : new ValClass(registry, val)); | ||
output.set(key instanceof KeyClass ? key : new KeyClass(registry, isComplex && typeof key === 'string' ? JSON.parse(key) : key), val instanceof ValClass ? val : new ValClass(registry, val)); | ||
} catch (error) { | ||
@@ -55,0 +55,0 @@ l.error('Failed to decode key or value:', error.message); |
@@ -14,4 +14,4 @@ "use strict"; | ||
type: 'cjs', | ||
version: '9.0.1' | ||
version: '9.1.1' | ||
}; | ||
exports.packageInfo = packageInfo; |
@@ -39,3 +39,3 @@ // Copyright 2017-2022 @polkadot/types-codec authors & contributors | ||
try { | ||
output.set(key instanceof KeyClass ? key : new KeyClass(registry, isComplex ? JSON.parse(key) : key), val instanceof ValClass ? val : new ValClass(registry, val)); | ||
output.set(key instanceof KeyClass ? key : new KeyClass(registry, isComplex && typeof key === 'string' ? JSON.parse(key) : key), val instanceof ValClass ? val : new ValClass(registry, val)); | ||
} catch (error) { | ||
@@ -42,0 +42,0 @@ l.error('Failed to decode key or value:', error.message); |
@@ -23,3 +23,3 @@ { | ||
"type": "module", | ||
"version": "9.0.1", | ||
"version": "9.1.1", | ||
"main": "./cjs/index.js", | ||
@@ -439,5 +439,5 @@ "module": "./index.js", | ||
"@babel/runtime": "^7.18.9", | ||
"@polkadot/util": "^10.1.2", | ||
"@polkadot/x-bigint": "^10.1.2" | ||
"@polkadot/util": "^10.1.3", | ||
"@polkadot/x-bigint": "^10.1.3" | ||
} | ||
} |
@@ -8,3 +8,3 @@ // Copyright 2017-2022 @polkadot/types-codec authors & contributors | ||
type: 'esm', | ||
version: '9.0.1' | ||
version: '9.1.1' | ||
}; |
609250
Updated@polkadot/util@^10.1.3
Updated@polkadot/x-bigint@^10.1.3