@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/index.js
CHANGED
|
@@ -31320,17 +31320,10 @@ async function initAll() {
|
|
|
31320
31320
|
await init.ed25519();
|
|
31321
31321
|
await init.reedSolomon();
|
|
31322
31322
|
}
|
|
31323
|
-
function initOnce(doInit) {
|
|
31324
|
-
let ready = null;
|
|
31325
|
-
return async () => {
|
|
31326
|
-
if (ready === null) ready = doInit();
|
|
31327
|
-
return await ready;
|
|
31328
|
-
};
|
|
31329
|
-
}
|
|
31330
31323
|
const init = {
|
|
31331
|
-
bandersnatch:
|
|
31332
|
-
ed25519:
|
|
31333
|
-
reedSolomon:
|
|
31324
|
+
bandersnatch: async () => await bandersnatch_default({ module_or_path: await bandersnatch_bg_default() }),
|
|
31325
|
+
ed25519: async () => await ed25519_wasm_default({ module_or_path: await ed25519_wasm_bg_default() }),
|
|
31326
|
+
reedSolomon: async () => await reed_solomon_wasm_default({ module_or_path: await reed_solomon_wasm_bg_default() })
|
|
31334
31327
|
};
|
|
31335
31328
|
|
|
31336
31329
|
//#endregion
|