@glimt/record 0.0.31 → 0.0.32
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/record.cjs +8 -2
- package/dist/record.cjs.map +1 -1
- package/dist/record.js +8 -2
- package/dist/record.js.map +1 -1
- package/dist/record.umd.cjs +8 -2
- package/dist/record.umd.cjs.map +3 -3
- package/dist/record.umd.min.cjs +24 -24
- package/dist/record.umd.min.cjs.map +3 -3
- package/package.json +1 -1
package/dist/record.cjs
CHANGED
|
@@ -9306,11 +9306,15 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
9306
9306
|
NodeType2[NodeType2["Comment"] = 5] = "Comment";
|
|
9307
9307
|
return NodeType2;
|
|
9308
9308
|
})(NodeType || {});
|
|
9309
|
-
class
|
|
9309
|
+
const _StormSnapshotManager = class _StormSnapshotManager2 {
|
|
9310
9310
|
constructor() {
|
|
9311
9311
|
__publicField(this, "fullSnapshotTaker", null);
|
|
9312
9312
|
__publicField(this, "lastFullSnapshot", -1);
|
|
9313
9313
|
__publicField(this, "intervalBetweenSnapshots", 150);
|
|
9314
|
+
if (_StormSnapshotManager2.instance) {
|
|
9315
|
+
return _StormSnapshotManager2.instance;
|
|
9316
|
+
}
|
|
9317
|
+
_StormSnapshotManager2.instance = this;
|
|
9314
9318
|
}
|
|
9315
9319
|
bindFullSnapshotTaker(takeFullSnapshot2) {
|
|
9316
9320
|
this.fullSnapshotTaker = takeFullSnapshot2;
|
|
@@ -9332,7 +9336,9 @@ class StormSnapshotManager {
|
|
|
9332
9336
|
this.fullSnapshotTaker();
|
|
9333
9337
|
this.lastFullSnapshot = Date.now();
|
|
9334
9338
|
}
|
|
9335
|
-
}
|
|
9339
|
+
};
|
|
9340
|
+
__publicField(_StormSnapshotManager, "instance");
|
|
9341
|
+
let StormSnapshotManager = _StormSnapshotManager;
|
|
9336
9342
|
const stormSnapshotManager = new StormSnapshotManager();
|
|
9337
9343
|
function isNodeInLinkedList(n2) {
|
|
9338
9344
|
return "__ln" in n2;
|