@smithii_io/mixoor 0.0.8 → 0.0.9

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/dist/src/index.js CHANGED
@@ -1191,8 +1191,13 @@ async function generateProof(input) {
1191
1191
  pathIndices: input.pathIndices,
1192
1192
  amount: BigInt(input.amount).toString()
1193
1193
  };
1194
- const __filename = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.js', document.baseURI).href)));
1195
- const __dirname = path__namespace.dirname(__filename);
1194
+ let __dirname;
1195
+ if (typeof __filename !== "undefined") {
1196
+ __dirname = path__namespace.dirname(__filename);
1197
+ } else {
1198
+ const __filename_esm = url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.js', document.baseURI).href)));
1199
+ __dirname = path__namespace.dirname(__filename_esm);
1200
+ }
1196
1201
  const packageRoot = path__namespace.join(__dirname, "../..");
1197
1202
  const wasmPath = path__namespace.join(
1198
1203
  packageRoot,