@polkadot/types-codec 9.10.1 → 9.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/native/Json.js +1 -1
- package/cjs/packageInfo.js +1 -1
- package/native/Json.js +1 -1
- package/package.json +2 -2
- package/packageInfo.js +1 -1
package/cjs/native/Json.js
CHANGED
|
@@ -110,7 +110,7 @@ class Json extends Map {
|
|
|
110
110
|
toPrimitive() {
|
|
111
111
|
return [...this.entries()].reduce((json, _ref4) => {
|
|
112
112
|
let [key, value] = _ref4;
|
|
113
|
-
json[key] = (0, _util.isFunction)(value.
|
|
113
|
+
json[key] = (0, _util.isFunction)(value.toPrimitive) ? value.toPrimitive() : value;
|
|
114
114
|
return json;
|
|
115
115
|
}, {});
|
|
116
116
|
}
|
package/cjs/packageInfo.js
CHANGED
package/native/Json.js
CHANGED
|
@@ -99,7 +99,7 @@ export class Json extends Map {
|
|
|
99
99
|
*/
|
|
100
100
|
toPrimitive() {
|
|
101
101
|
return [...this.entries()].reduce((json, [key, value]) => {
|
|
102
|
-
json[key] = isFunction(value.
|
|
102
|
+
json[key] = isFunction(value.toPrimitive) ? value.toPrimitive() : value;
|
|
103
103
|
return json;
|
|
104
104
|
}, {});
|
|
105
105
|
}
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "9.10.
|
|
23
|
+
"version": "9.10.3",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
}
|
|
435
435
|
},
|
|
436
436
|
"dependencies": {
|
|
437
|
-
"@babel/runtime": "^7.20.
|
|
437
|
+
"@babel/runtime": "^7.20.6",
|
|
438
438
|
"@polkadot/util": "^10.2.1",
|
|
439
439
|
"@polkadot/x-bigint": "^10.2.1"
|
|
440
440
|
}
|
package/packageInfo.js
CHANGED
|
@@ -7,5 +7,5 @@ export const packageInfo = {
|
|
|
7
7
|
name: '@polkadot/types-codec',
|
|
8
8
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
9
|
type: 'esm',
|
|
10
|
-
version: '9.10.
|
|
10
|
+
version: '9.10.3'
|
|
11
11
|
};
|