@codernote/record-tree 1.1.0 → 1.1.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.js +3 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -666,10 +666,10 @@ const W = {
666
666
  },
667
667
  watch: {
668
668
  note: {
669
- handler(t) {
670
- if (this.note.content && (!this.noteId || this.noteId !== this.note.id || this.note.content !== (t == null ? void 0 : t.content)))
669
+ handler(t, e) {
670
+ if (t.content && (!this.noteId || this.noteId !== t.id || t.content !== (e == null ? void 0 : e.content)))
671
671
  try {
672
- this.noteId = this.note.id, this.curNodes = JSON.parse(this.note.content), this.curNodes.length || this.curNodes.push({
672
+ this.noteId = t.id, this.curNodes = JSON.parse(t.content), this.curNodes.length || this.curNodes.push({
673
673
  text: "",
674
674
  uuid: p()
675
675
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codernote/record-tree",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {