@fileverse-dev/ddoc 3.3.0 → 3.3.1

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
@@ -184644,7 +184644,9 @@ const VKe = { status: "idle" }, KKe = (e) => {
184644
184644
  if (!i || !e.ydoc) return;
184645
184645
  const h = (f, g) => {
184646
184646
  var m;
184647
- g === "self" || g === "remote" || !o.isConnected || (m = e.ignoredOrigins) != null && m.some((b) => b.current === g) || o.enqueueLocalUpdate(f);
184647
+ g === "self" || g === "remote" || !o.isConnected || (m = e.ignoredOrigins) != null && m.some(
184648
+ (b) => b.current !== null && b.current === g
184649
+ ) || o.enqueueLocalUpdate(f);
184648
184650
  };
184649
184651
  return e.ydoc.on("update", h), () => {
184650
184652
  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.3.0",
5
+ "version": "3.3.1",
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
+ }