@typeberry/jam 0.1.0-08a9db1 → 0.1.0-3c30204
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/block-generator/index.js +3 -10
- package/block-generator/index.js.map +1 -1
- package/importer/index.js +3 -10
- package/importer/index.js.map +1 -1
- package/index.js +3 -10
- package/index.js.map +1 -1
- package/jam-network/index.js +3 -10
- package/jam-network/index.js.map +1 -1
- package/package.json +1 -1
package/block-generator/index.js
CHANGED
|
@@ -6652,17 +6652,10 @@ async function initAll() {
|
|
|
6652
6652
|
await init.ed25519();
|
|
6653
6653
|
await init.reedSolomon();
|
|
6654
6654
|
}
|
|
6655
|
-
function initOnce(doInit) {
|
|
6656
|
-
let ready = null;
|
|
6657
|
-
return async () => {
|
|
6658
|
-
if (ready === null) ready = doInit();
|
|
6659
|
-
return await ready;
|
|
6660
|
-
};
|
|
6661
|
-
}
|
|
6662
6655
|
const init = {
|
|
6663
|
-
bandersnatch:
|
|
6664
|
-
ed25519:
|
|
6665
|
-
reedSolomon:
|
|
6656
|
+
bandersnatch: async () => await bandersnatch_default({ module_or_path: await bandersnatch_bg_default() }),
|
|
6657
|
+
ed25519: async () => await ed25519_wasm_default({ module_or_path: await ed25519_wasm_bg_default() }),
|
|
6658
|
+
reedSolomon: async () => await reed_solomon_wasm_default({ module_or_path: await reed_solomon_wasm_bg_default() })
|
|
6666
6659
|
};
|
|
6667
6660
|
|
|
6668
6661
|
//#endregion
|