@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.
@@ -1167,8 +1167,13 @@ async function generateProof(input) {
1167
1167
  pathIndices: input.pathIndices,
1168
1168
  amount: BigInt(input.amount).toString()
1169
1169
  };
1170
- const __filename = fileURLToPath(import.meta.url);
1171
- const __dirname = path.dirname(__filename);
1170
+ let __dirname;
1171
+ if (typeof __filename !== "undefined") {
1172
+ __dirname = path.dirname(__filename);
1173
+ } else {
1174
+ const __filename_esm = fileURLToPath(import.meta.url);
1175
+ __dirname = path.dirname(__filename_esm);
1176
+ }
1172
1177
  const packageRoot = path.join(__dirname, "../..");
1173
1178
  const wasmPath = path.join(
1174
1179
  packageRoot,