@bloopjs/web 0.0.98 → 0.0.99

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/mod.js CHANGED
@@ -1450,7 +1450,7 @@ function readTapeHeader(tape) {
1450
1450
  eventCount: view.getUint16(14, true)
1451
1451
  };
1452
1452
  }
1453
- var DEFAULT_WASM_URL = new URL("https://unpkg.com/@bloopjs/engine@0.0.98/wasm/bloop.wasm");
1453
+ var DEFAULT_WASM_URL = new URL("https://unpkg.com/@bloopjs/engine@0.0.99/wasm/bloop.wasm");
1454
1454
  var MAX_ROLLBACK_FRAMES = 500;
1455
1455
  var TIME_CTX_OFFSET = 0;
1456
1456
  var INPUT_CTX_OFFSET = TIME_CTX_OFFSET + 4;
@@ -1499,10 +1499,11 @@ class Sim {
1499
1499
  this.wasm.tick(isResimulating ?? false);
1500
1500
  }
1501
1501
  cloneSession(source) {
1502
- if (source.isRecording) {
1502
+ if (source.hasHistory) {
1503
1503
  this.loadTape(source.saveTape());
1504
1504
  }
1505
1505
  this.restore(source.snapshot());
1506
+ this.#isPaused = source.isPaused;
1506
1507
  }
1507
1508
  pause() {
1508
1509
  this.#isPaused = true;
@@ -3308,7 +3309,7 @@ function readTapeHeader2(tape) {
3308
3309
  eventCount: view.getUint16(14, true)
3309
3310
  };
3310
3311
  }
3311
- var DEFAULT_WASM_URL2 = new URL("https://unpkg.com/@bloopjs/engine@0.0.98/wasm/bloop.wasm");
3312
+ var DEFAULT_WASM_URL2 = new URL("https://unpkg.com/@bloopjs/engine@0.0.99/wasm/bloop.wasm");
3312
3313
  var TIME_CTX_OFFSET2 = 0;
3313
3314
  var INPUT_CTX_OFFSET2 = TIME_CTX_OFFSET2 + 4;
3314
3315
  var EVENTS_OFFSET2 = INPUT_CTX_OFFSET2 + 4;
@@ -7675,5 +7676,5 @@ export {
7675
7676
  App
7676
7677
  };
7677
7678
 
7678
- //# debugId=42A08D0FB8399EAE64756E2164756E21
7679
+ //# debugId=4E6C538AD936352064756E2164756E21
7679
7680
  //# sourceMappingURL=mod.js.map