@polkadot/wasm-crypto
Advanced tools
Comparing version 6.1.2-10 to 6.1.2-11
// Copyright 2019-2022 @polkadot/wasm-crypto authors & contributors | ||
// SPDX-License-Identifier: Apache-2.0 | ||
import { assert } from '@polkadot/util'; | ||
import { bridge, initBridge } from "./init.js"; | ||
@@ -26,3 +25,6 @@ export { packageInfo } from "./packageInfo.js"; | ||
return (...params) => { | ||
assert(bridge.wasm, 'The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or cryptoWaitReady() from @polkadot/util-crypto) before attempting to use WASM-only interfaces.'); | ||
if (!bridge.wasm) { | ||
throw new Error('The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or cryptoWaitReady() from @polkadot/util-crypto) before attempting to use WASM-only interfaces.'); | ||
} | ||
return fn(bridge.wasm, ...params); | ||
@@ -29,0 +31,0 @@ }; |
@@ -25,4 +25,2 @@ "use strict"; | ||
var _util = require("@polkadot/util"); | ||
var _init = require("./init"); | ||
@@ -51,3 +49,5 @@ | ||
return function () { | ||
(0, _util.assert)(_init.bridge.wasm, 'The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or cryptoWaitReady() from @polkadot/util-crypto) before attempting to use WASM-only interfaces.'); | ||
if (!_init.bridge.wasm) { | ||
throw new Error('The WASM interface has not been initialized. Ensure that you wait for the initialization Promise with waitReady() from @polkadot/wasm-crypto (or cryptoWaitReady() from @polkadot/util-crypto) before attempting to use WASM-only interfaces.'); | ||
} | ||
@@ -54,0 +54,0 @@ for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) { |
@@ -14,4 +14,4 @@ "use strict"; | ||
type: 'cjs', | ||
version: '6.1.2-10' | ||
version: '6.1.2-11' | ||
}; | ||
exports.packageInfo = packageInfo; |
@@ -31,3 +31,3 @@ { | ||
"type": "module", | ||
"version": "6.1.2-10", | ||
"version": "6.1.2-11", | ||
"main": "./cjs/index.js", | ||
@@ -98,7 +98,7 @@ "module": "./index.js", | ||
"@babel/runtime": "^7.18.3", | ||
"@polkadot/wasm-bridge": "6.1.2-10", | ||
"@polkadot/wasm-crypto-asmjs": "6.1.2-10", | ||
"@polkadot/wasm-crypto-init": "6.1.2-10", | ||
"@polkadot/wasm-crypto-wasm": "6.1.2-10", | ||
"@polkadot/wasm-util": "6.1.2-10" | ||
"@polkadot/wasm-bridge": "6.1.2-11", | ||
"@polkadot/wasm-crypto-asmjs": "6.1.2-11", | ||
"@polkadot/wasm-crypto-init": "6.1.2-11", | ||
"@polkadot/wasm-crypto-wasm": "6.1.2-11", | ||
"@polkadot/wasm-util": "6.1.2-11" | ||
}, | ||
@@ -105,0 +105,0 @@ "peerDependencies": { |
@@ -8,3 +8,3 @@ // Copyright 2017-2022 @polkadot/wasm-crypto authors & contributors | ||
type: 'esm', | ||
version: '6.1.2-10' | ||
version: '6.1.2-11' | ||
}; |
Sorry, the diff of this file is too big to display
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
2348
306567
+ Added@polkadot/wasm-bridge@6.1.2-11(transitive)
+ Added@polkadot/wasm-crypto-asmjs@6.1.2-11(transitive)
+ Added@polkadot/wasm-crypto-init@6.1.2-11(transitive)
+ Added@polkadot/wasm-crypto-wasm@6.1.2-11(transitive)
+ Added@polkadot/wasm-util@6.1.2-11(transitive)
- Removed@polkadot/wasm-bridge@6.1.2-10(transitive)
- Removed@polkadot/wasm-crypto-asmjs@6.1.2-10(transitive)
- Removed@polkadot/wasm-crypto-init@6.1.2-10(transitive)
- Removed@polkadot/wasm-crypto-wasm@6.1.2-10(transitive)
- Removed@polkadot/wasm-util@6.1.2-10(transitive)
Updated@polkadot/wasm-util@6.1.2-11