@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/importer/index.js CHANGED
@@ -4224,17 +4224,10 @@ async function initAll() {
4224
4224
  await init.ed25519();
4225
4225
  await init.reedSolomon();
4226
4226
  }
4227
- function initOnce(doInit) {
4228
- let ready = null;
4229
- return async () => {
4230
- if (ready === null) ready = doInit();
4231
- return await ready;
4232
- };
4233
- }
4234
4227
  const init = {
4235
- bandersnatch: initOnce(async () => await bandersnatch_default({ module_or_path: await bandersnatch_bg_default() })),
4236
- ed25519: initOnce(async () => await ed25519_wasm_default({ module_or_path: await ed25519_wasm_bg_default() })),
4237
- reedSolomon: initOnce(async () => await reed_solomon_wasm_default({ module_or_path: await reed_solomon_wasm_bg_default() }))
4228
+ bandersnatch: async () => await bandersnatch_default({ module_or_path: await bandersnatch_bg_default() }),
4229
+ ed25519: async () => await ed25519_wasm_default({ module_or_path: await ed25519_wasm_bg_default() }),
4230
+ reedSolomon: async () => await reed_solomon_wasm_default({ module_or_path: await reed_solomon_wasm_bg_default() })
4238
4231
  };
4239
4232
 
4240
4233
  //#endregion