@blue-labs/document-processor 1.33.1 → 1.33.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.
|
@@ -19,9 +19,8 @@ export interface VMBindings {
|
|
|
19
19
|
*/
|
|
20
20
|
export declare class ExpressionEvaluator {
|
|
21
21
|
private static getIvmUnavailableMessage;
|
|
22
|
-
private static ensureIvmLoaded;
|
|
23
22
|
/**
|
|
24
|
-
* Main evaluation method -
|
|
23
|
+
* Main evaluation method - chooses between secure and simple evaluation strategies
|
|
25
24
|
*/
|
|
26
25
|
static evaluate({ code, ctx, bindings, options, }: {
|
|
27
26
|
code: string;
|
|
@@ -32,6 +31,11 @@ export declare class ExpressionEvaluator {
|
|
|
32
31
|
timeout?: number;
|
|
33
32
|
};
|
|
34
33
|
}): Promise<unknown>;
|
|
34
|
+
/**
|
|
35
|
+
* Fallback evaluation using Node's Function constructor
|
|
36
|
+
* Used when isolated-vm is not available
|
|
37
|
+
*/
|
|
38
|
+
private static evaluateSimple;
|
|
35
39
|
/**
|
|
36
40
|
* Secure evaluation using isolated-vm with support for ES modules
|
|
37
41
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpressionEvaluator.d.ts","sourceRoot":"","sources":["../../../../src/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ExpressionEvaluator.d.ts","sourceRoot":"","sources":["../../../../src/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AASnD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACrC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAuBD;;;;;;;;GAQG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,MAAM,CAAC,wBAAwB;IA6BvC;;OAEG;WACU,QAAQ,CAAC,EACpB,IAAI,EACJ,GAAG,EACH,QAAa,EACb,OAAY,GACb,EAAE;QACD,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,iBAAiB,CAAC;QACvB,QAAQ,CAAC,EAAE,UAAU,CAAC;QACtB,OAAO,CAAC,EAAE;YAAE,WAAW,CAAC,EAAE,OAAO,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KACvD,GAAG,OAAO,CAAC,OAAO,CAAC;IAOpB;;;OAGG;mBACkB,cAAc;IAqCnC;;OAEG;mBACkB,cAAc;IAuDnC;;OAEG;mBACkB,uBAAuB;IA6B5C;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAqDnC;;OAEG;mBACkB,oBAAoB;IAwBzC;;OAEG;mBACkB,gBAAgB;IA2CrC;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,SAAS;CAMzB"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blue-labs/document-processor",
|
|
3
|
-
"version": "1.33.
|
|
3
|
+
"version": "1.33.2",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@blue-labs/language": "1.33.
|
|
6
|
-
"@blue-labs/shared-utils": "1.33.
|
|
5
|
+
"@blue-labs/language": "1.33.2",
|
|
6
|
+
"@blue-labs/shared-utils": "1.33.2",
|
|
7
7
|
"isolated-vm": "^5.0.4"
|
|
8
8
|
},
|
|
9
9
|
"main": "./dist/index.js",
|