@flowgram.ai/variable-core 0.1.7 → 0.1.8
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 +4 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
package/dist/esm/index.js
CHANGED
|
@@ -181,6 +181,9 @@ function parseTypeJsonOrKind(typeJSONOrKind) {
|
|
|
181
181
|
function getAllChildren(ast) {
|
|
182
182
|
return [...ast.children, ...ast.children.map((_child) => getAllChildren(_child)).flat()];
|
|
183
183
|
}
|
|
184
|
+
function isMatchAST(node, targetType) {
|
|
185
|
+
return node?.kind === targetType?.kind;
|
|
186
|
+
}
|
|
184
187
|
|
|
185
188
|
// src/ast/flags.ts
|
|
186
189
|
var ASTNodeFlags = /* @__PURE__ */ ((ASTNodeFlags2) => {
|
|
@@ -2019,6 +2022,7 @@ export {
|
|
|
2019
2022
|
VariableFieldKeyRenameService,
|
|
2020
2023
|
VariableTable,
|
|
2021
2024
|
injectToAST,
|
|
2025
|
+
isMatchAST,
|
|
2022
2026
|
postConstructAST,
|
|
2023
2027
|
useAvailableVariables,
|
|
2024
2028
|
useCurrentScope,
|