@polkadot/types-codec 9.10.1 → 9.10.2

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.
@@ -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.toHuman) ? value.toPrimitive() : value;
113
+ json[key] = (0, _util.isFunction)(value.toPrimitive) ? value.toPrimitive() : value;
114
114
  return json;
115
115
  }, {});
116
116
  }
@@ -13,6 +13,6 @@ const packageInfo = {
13
13
  name: '@polkadot/types-codec',
14
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
15
15
  type: 'cjs',
16
- version: '9.10.1'
16
+ version: '9.10.2'
17
17
  };
18
18
  exports.packageInfo = packageInfo;
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.toHuman) ? value.toPrimitive() : 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.1",
23
+ "version": "9.10.2",
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.1",
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.1'
10
+ version: '9.10.2'
11
11
  };