@telorun/templating 0.2.0 → 0.2.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../src/cel/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,EAAE,EAAE,CAI7D;AA2ED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,MAAM,EAAE,EACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC1B,MAAM,GAAG,IAAI,CA2Bf"}
1
+ {"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../src/cel/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,EAAE,EAAE,CAI7D;AA+ED;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,KAAK,EAAE,MAAM,EAAE,EACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC1B,MAAM,GAAG,IAAI,CA2Bf"}
@@ -52,6 +52,11 @@ function visitNode(node, chains, boundVars) {
52
52
  }
53
53
  }
54
54
  }
55
+ else if (isASTNode(args)) {
56
+ // Unary operators (`!_`, `-_`) carry their operand as a single node
57
+ // rather than a one-element array, so descend into it directly.
58
+ visitNode(args, chains, boundVars);
59
+ }
55
60
  }
56
61
  function isASTNode(v) {
57
62
  return v !== null && typeof v === "object" && "op" in v;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telorun/templating",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Telo Templating - Engine registry and shared CEL core for Telo manifests.",
5
5
  "keywords": [
6
6
  "telo",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@marcbachmann/cel-js": "^7.5.3",
39
39
  "yaml": "^2.8.3",
40
- "@telorun/sdk": "0.7.0"
40
+ "@telorun/sdk": "0.10.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^20.0.0",
@@ -57,6 +57,10 @@ function visitNode(node: ASTNode, chains: string[][], boundVars: Set<string>): v
57
57
  }
58
58
  }
59
59
  }
60
+ } else if (isASTNode(args)) {
61
+ // Unary operators (`!_`, `-_`) carry their operand as a single node
62
+ // rather than a one-element array, so descend into it directly.
63
+ visitNode(args, chains, boundVars);
60
64
  }
61
65
  }
62
66