zkenclave-sdk 0.1.17 → 0.1.18

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/index.js CHANGED
@@ -426,7 +426,9 @@ var ZKProofClient = class {
426
426
  wasmReady = false;
427
427
  constructor(config) {
428
428
  this.config = config ?? { useRealProofs: true };
429
- this.loadWasm();
429
+ if (this.config.useRealProofs !== false) {
430
+ this.loadWasm();
431
+ }
430
432
  }
431
433
  async loadWasm() {
432
434
  if (wasmModule) {
package/dist/index.mjs CHANGED
@@ -372,7 +372,9 @@ var ZKProofClient = class {
372
372
  wasmReady = false;
373
373
  constructor(config) {
374
374
  this.config = config ?? { useRealProofs: true };
375
- this.loadWasm();
375
+ if (this.config.useRealProofs !== false) {
376
+ this.loadWasm();
377
+ }
376
378
  }
377
379
  async loadWasm() {
378
380
  if (wasmModule) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zkenclave-sdk",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "description": "TypeScript SDK for privacy-preserving vault withdrawals with ZK proofs",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",