@polkadot/types-create
Advanced tools
Comparing version 10.8.1 to 10.9.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.packageInfo = void 0; | ||
exports.packageInfo = { name: '@polkadot/types-create', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.8.1' }; | ||
exports.packageInfo = { name: '@polkadot/types-create', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.9.1' }; |
@@ -67,6 +67,6 @@ "use strict"; | ||
const keys = Object.keys(parsed); | ||
if (keys.includes('_enum')) { | ||
if (parsed._enum) { | ||
return _decodeEnum(value, parsed._enum, count, parsed._fallback); | ||
} | ||
else if (keys.includes('_set')) { | ||
else if (parsed._set) { | ||
return _decodeSet(value, parsed._set, parsed._fallback); | ||
@@ -73,0 +73,0 @@ } |
@@ -21,3 +21,3 @@ { | ||
"type": "module", | ||
"version": "10.8.1", | ||
"version": "10.9.1", | ||
"main": "./cjs/index.js", | ||
@@ -149,6 +149,6 @@ "module": "./index.js", | ||
"dependencies": { | ||
"@polkadot/types-codec": "10.8.1", | ||
"@polkadot/util": "^12.2.2", | ||
"@polkadot/types-codec": "10.9.1", | ||
"@polkadot/util": "^12.3.1", | ||
"tslib": "^2.5.3" | ||
} | ||
} |
@@ -1,1 +0,1 @@ | ||
export const packageInfo = { name: '@polkadot/types-create', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.8.1' }; | ||
export const packageInfo = { name: '@polkadot/types-create', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.9.1' }; |
@@ -64,6 +64,6 @@ import { sanitize } from '@polkadot/types-codec'; | ||
const keys = Object.keys(parsed); | ||
if (keys.includes('_enum')) { | ||
if (parsed._enum) { | ||
return _decodeEnum(value, parsed._enum, count, parsed._fallback); | ||
} | ||
else if (keys.includes('_set')) { | ||
else if (parsed._set) { | ||
return _decodeSet(value, parsed._set, parsed._fallback); | ||
@@ -70,0 +70,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77448
+ Added@polkadot/types-codec@10.9.1(transitive)
- Removed@polkadot/types-codec@10.8.1(transitive)
Updated@polkadot/types-codec@10.9.1
Updated@polkadot/util@^12.3.1