@polkadot/types-codec
Advanced tools
Comparing version 9.13.2 to 9.13.4
@@ -66,8 +66,3 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors | ||
this.#Type = definition || setDefinition(typeToConstructor(registry, Type)); | ||
try { | ||
this.initialU8aLength = (isU8a(decodeFrom) ? decodeU8aVec(registry, this, decodeFrom, startAt, this.#Type) : decodeVec(registry, this, decodeFrom, startAt, this.#Type))[0]; | ||
} catch (e) { | ||
console.error(decodeFrom, length, startAt); | ||
throw e; | ||
} | ||
this.initialU8aLength = (isU8a(decodeFrom) ? decodeU8aVec(registry, this, decodeFrom, startAt, this.#Type) : decodeVec(registry, this, decodeFrom, startAt, this.#Type))[0]; | ||
} | ||
@@ -74,0 +69,0 @@ static with(Type) { |
@@ -75,8 +75,3 @@ "use strict"; | ||
this.#Type = definition || setDefinition((0, _utils.typeToConstructor)(registry, Type)); | ||
try { | ||
this.initialU8aLength = ((0, _util.isU8a)(decodeFrom) ? (0, _utils.decodeU8aVec)(registry, this, decodeFrom, startAt, this.#Type) : decodeVec(registry, this, decodeFrom, startAt, this.#Type))[0]; | ||
} catch (e) { | ||
console.error(decodeFrom, length, startAt); | ||
throw e; | ||
} | ||
this.initialU8aLength = ((0, _util.isU8a)(decodeFrom) ? (0, _utils.decodeU8aVec)(registry, this, decodeFrom, startAt, this.#Type) : decodeVec(registry, this, decodeFrom, startAt, this.#Type))[0]; | ||
} | ||
@@ -83,0 +78,0 @@ static with(Type) { |
@@ -16,4 +16,4 @@ "use strict"; | ||
type: 'cjs', | ||
version: '9.13.2' | ||
version: '9.13.4' | ||
}; | ||
exports.packageInfo = packageInfo; |
@@ -23,3 +23,3 @@ { | ||
"type": "module", | ||
"version": "9.13.2", | ||
"version": "9.13.4", | ||
"main": "./cjs/index.js", | ||
@@ -26,0 +26,0 @@ "module": "./index.js", |
@@ -10,3 +10,3 @@ // Copyright 2017-2023 @polkadot/types-codec authors & contributors | ||
type: 'esm', | ||
version: '9.13.2' | ||
version: '9.13.4' | ||
}; |
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
627105
13254