@polkadot/types-codec 7.11.2-5 → 7.11.2-8

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/base/Option.cjs CHANGED
@@ -31,7 +31,7 @@ function decodeOption(registry, Type, value) {
31
31
  value = value.value;
32
32
  }
33
33
 
34
- if ((0, _util.isNull)(value) || (0, _util.isUndefined)(value) || value === '0x') {
34
+ if ((0, _util.isNull)(value) || (0, _util.isUndefined)(value) || value === '0x' || value instanceof None) {
35
35
  return new None(registry);
36
36
  } else if (value instanceof Type) {
37
37
  // don't re-create, use as it (which also caters for derived types)
package/base/Option.js CHANGED
@@ -22,7 +22,7 @@ function decodeOption(registry, Type, value) {
22
22
  value = value.value;
23
23
  }
24
24
 
25
- if (isNull(value) || isUndefined(value) || value === '0x') {
25
+ if (isNull(value) || isUndefined(value) || value === '0x' || value instanceof None) {
26
26
  return new None(registry);
27
27
  } else if (value instanceof Type) {
28
28
  // don't re-create, use as it (which also caters for derived types)
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "7.11.2-5",
23
+ "version": "7.11.2-8",
24
24
  "main": "index.cjs",
25
25
  "module": "index.js",
26
26
  "types": "index.d.ts",
@@ -405,6 +405,6 @@
405
405
  },
406
406
  "dependencies": {
407
407
  "@babel/runtime": "^7.17.2",
408
- "@polkadot/util": "^8.4.1"
408
+ "@polkadot/util": "^8.5.1"
409
409
  }
410
410
  }
package/packageInfo.cjs CHANGED
@@ -11,6 +11,6 @@ const packageInfo = {
11
11
  name: '@polkadot/types-codec',
12
12
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
13
  type: 'cjs',
14
- version: '7.11.2-5'
14
+ version: '7.11.2-8'
15
15
  };
16
16
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -5,5 +5,5 @@ export const packageInfo = {
5
5
  name: '@polkadot/types-codec',
6
6
  path: (import.meta && import.meta.url) ? new URL('.', import.meta.url).pathname : 'auto',
7
7
  type: 'esm',
8
- version: '7.11.2-5'
8
+ version: '7.11.2-8'
9
9
  };