@flowgram.ai/variable-core 0.2.32 → 0.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.
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -470,7 +470,6 @@ var ASTNode = class _ASTNode {
|
|
|
470
470
|
this.opts = opts;
|
|
471
471
|
this.key = key || (0, import_nanoid.nanoid)();
|
|
472
472
|
this.fromJSON = this.withBatchUpdate(this.fromJSON.bind(this));
|
|
473
|
-
this.dispatchGlobalEvent({ type: "NewAST" });
|
|
474
473
|
}
|
|
475
474
|
/**
|
|
476
475
|
* AST 节点的类型
|
|
@@ -1545,6 +1544,7 @@ var ASTRegisters = class {
|
|
|
1545
1544
|
node.changeLocked = true;
|
|
1546
1545
|
node.fromJSON((0, import_lodash3.omit)(json, ["key", "kind"]));
|
|
1547
1546
|
node.changeLocked = false;
|
|
1547
|
+
node.dispatchGlobalEvent({ type: "NewAST" });
|
|
1548
1548
|
if (Reflect.hasMetadata(POST_CONSTRUCT_AST_SYMBOL, node)) {
|
|
1549
1549
|
const postConstructKey = Reflect.getMetadata(POST_CONSTRUCT_AST_SYMBOL, node);
|
|
1550
1550
|
node[postConstructKey]?.();
|