pencil-team 0.2.4 → 0.2.5

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.js +9 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9388,6 +9388,15 @@ class PenSync {
9388
9388
  selectedNodes: []
9389
9389
  });
9390
9390
  setTimeout(() => {
9391
+ const penMap = this.doc.getMap("pen");
9392
+ console.log(`[debug] pen map size: ${penMap.size}`);
9393
+ console.log(`[debug] pen map keys: ${Array.from(penMap.keys()).join(", ")}`);
9394
+ const allTypes = Array.from(this.doc.share.keys());
9395
+ console.log(`[debug] doc shared types: ${allTypes.join(", ")}`);
9396
+ for (const key of allTypes) {
9397
+ const t = this.doc.get(key);
9398
+ console.log(`[debug] ${key}: type=${t?.constructor?.name}, size=${t?.size ?? t?.length ?? "?"}`);
9399
+ }
9391
9400
  this.writeLocalFile();
9392
9401
  if (!this.initialSyncDone) {
9393
9402
  this.initialSyncDone = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pencil-team",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pencil-team": "dist/index.js"