@telorun/templating 0.18.0 → 0.20.0
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/cel/analyze.d.ts.map +1 -1
- package/dist/cel/analyze.js +40 -0
- package/dist/cel/catalog.d.ts +19 -1
- package/dist/cel/catalog.d.ts.map +1 -1
- package/dist/cel/catalog.js +476 -10
- package/dist/cel/diagnose.d.ts +5 -0
- package/dist/cel/diagnose.d.ts.map +1 -1
- package/dist/cel/diagnose.js +37 -1
- package/dist/engines/cel.d.ts.map +1 -1
- package/dist/engines/cel.js +5 -0
- package/package.json +4 -2
- package/src/cel/analyze.ts +37 -0
- package/src/cel/catalog.ts +521 -10
- package/src/cel/diagnose.ts +44 -2
- package/src/engines/cel.ts +6 -0
package/src/engines/cel.ts
CHANGED
|
@@ -33,6 +33,12 @@ export function analyzeCelExpression(source: string, env: AnalyzeEnv): AnalyzeRe
|
|
|
33
33
|
|
|
34
34
|
const audit = auditCalls(source, parsed.ast, env.celEnv);
|
|
35
35
|
|
|
36
|
+
// Reported whatever the type-checker concludes. A literal argument a guard
|
|
37
|
+
// will refuse is a defect the manifest states outright, and leaving it to the
|
|
38
|
+
// run is the thing static analysis exists to prevent — so it is not gated on
|
|
39
|
+
// `checkError` the way the call audit is.
|
|
40
|
+
out.push(...audit.argumentIssues);
|
|
41
|
+
|
|
36
42
|
let type: string | undefined;
|
|
37
43
|
let checkError: string | undefined;
|
|
38
44
|
try {
|