pencil-team 0.2.3 → 0.2.4

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 +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9387,7 +9387,14 @@ class PenSync {
9387
9387
  platform: getPlatform(),
9388
9388
  selectedNodes: []
9389
9389
  });
9390
- this.options.onConnected?.();
9390
+ setTimeout(() => {
9391
+ this.writeLocalFile();
9392
+ if (!this.initialSyncDone) {
9393
+ this.initialSyncDone = true;
9394
+ this.setupFileWatcher();
9395
+ }
9396
+ this.options.onConnected?.();
9397
+ }, 2000);
9391
9398
  });
9392
9399
  this.ws.on("message", (data) => {
9393
9400
  const message = new Uint8Array(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pencil-team",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pencil-team": "dist/index.js"