@fileverse-dev/ddoc 3.2.9 → 3.2.10

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.
Files changed (2) hide show
  1. package/dist/index.es.js +3 -1
  2. package/package.json +2 -2
package/dist/index.es.js CHANGED
@@ -183604,7 +183604,9 @@ const dKe = { status: "idle" }, pKe = (e) => {
183604
183604
  if (!i || !e.ydoc) return;
183605
183605
  const h = (f, g) => {
183606
183606
  var m;
183607
- g === "self" || g === "remote" || !o.isConnected || (m = e.ignoredOrigins) != null && m.some((b) => b.current === g) || o.enqueueLocalUpdate(f);
183607
+ g === "self" || g === "remote" || !o.isConnected || (m = e.ignoredOrigins) != null && m.some(
183608
+ (b) => b.current !== null && b.current === g
183609
+ ) || o.enqueueLocalUpdate(f);
183608
183610
  };
183609
183611
  return e.ydoc.on("update", h), () => {
183610
183612
  e.ydoc.off("update", h);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fileverse-dev/ddoc",
3
3
  "private": false,
4
4
  "description": "DDoc",
5
- "version": "3.2.9",
5
+ "version": "3.2.10",
6
6
  "main": "dist/index.es.js",
7
7
  "module": "dist/index.es.js",
8
8
  "exports": {
@@ -154,4 +154,4 @@
154
154
  "typescript": "^5.2.2",
155
155
  "vite": "^5.0.0"
156
156
  }
157
- }
157
+ }