@lingjingai/scriptctl 0.61.2 → 0.61.3

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.
@@ -1002,6 +1002,7 @@ function newId(prefix, taken) {
1002
1002
  return id;
1003
1003
  }
1004
1004
  function save(doc) {
1005
+ Object.assign(doc, parse(doc.raw, doc.path));
1005
1006
  if (!doc.path) {
1006
1007
  step("save", "skipped: document is not bound to a file");
1007
1008
  return;