@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.js
CHANGED
|
@@ -9304,11 +9304,15 @@ var NodeType = /* @__PURE__ */ ((NodeType2) => {
|
|
|
9304
9304
|
NodeType2[NodeType2["Comment"] = 5] = "Comment";
|
|
9305
9305
|
return NodeType2;
|
|
9306
9306
|
})(NodeType || {});
|
|
9307
|
-
class
|
|
9307
|
+
const _StormSnapshotManager = class _StormSnapshotManager2 {
|
|
9308
9308
|
constructor() {
|
|
9309
9309
|
__publicField(this, "fullSnapshotTaker", null);
|
|
9310
9310
|
__publicField(this, "lastFullSnapshot", -1);
|
|
9311
9311
|
__publicField(this, "intervalBetweenSnapshots", 150);
|
|
9312
|
+
if (_StormSnapshotManager2.instance) {
|
|
9313
|
+
return _StormSnapshotManager2.instance;
|
|
9314
|
+
}
|
|
9315
|
+
_StormSnapshotManager2.instance = this;
|
|
9312
9316
|
}
|
|
9313
9317
|
bindFullSnapshotTaker(takeFullSnapshot2) {
|
|
9314
9318
|
this.fullSnapshotTaker = takeFullSnapshot2;
|
|
@@ -9330,7 +9334,9 @@ class StormSnapshotManager {
|
|
|
9330
9334
|
this.fullSnapshotTaker();
|
|
9331
9335
|
this.lastFullSnapshot = Date.now();
|
|
9332
9336
|
}
|
|
9333
|
-
}
|
|
9337
|
+
};
|
|
9338
|
+
__publicField(_StormSnapshotManager, "instance");
|
|
9339
|
+
let StormSnapshotManager = _StormSnapshotManager;
|
|
9334
9340
|
const stormSnapshotManager = new StormSnapshotManager();
|
|
9335
9341
|
function isNodeInLinkedList(n2) {
|
|
9336
9342
|
return "__ln" in n2;
|