@seljs/runtime 1.3.0-beta.14 → 1.3.0-beta.17
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/environment/environment.cjs +10 -14
- package/dist/environment/environment.d.cts +2 -3
- package/dist/environment/environment.d.mts +2 -3
- package/dist/environment/environment.mjs +11 -14
- package/dist/environment/error-wrapper.cjs +2 -3
- package/dist/environment/error-wrapper.mjs +3 -3
- package/dist/errors/errors.d.cts +2 -2
- package/dist/errors/errors.d.mts +2 -2
- package/dist/errors/errors.mjs +2 -2
- package/dist/errors/index.d.mts +1 -1
- package/dist/index.cjs +0 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +6 -6
|
@@ -13,7 +13,6 @@ const require_dependency_analyzer = require("../analysis/dependency-analyzer.cjs
|
|
|
13
13
|
const require_round_planner = require("../analysis/round-planner.cjs");
|
|
14
14
|
const require_multi_round_executor = require("../execution/multi-round-executor.cjs");
|
|
15
15
|
let _seljs_checker = require("@seljs/checker");
|
|
16
|
-
let _seljs_common = require("@seljs/common");
|
|
17
16
|
//#region src/environment/environment.ts
|
|
18
17
|
/**
|
|
19
18
|
* Core SEL runtime that bridges CEL expression evaluation with EVM contract reads.
|
|
@@ -106,7 +105,7 @@ var SELRuntime = class {
|
|
|
106
105
|
*
|
|
107
106
|
* @param expression - A CEL expression string to type-check
|
|
108
107
|
* @returns The type-check result containing validity, inferred type, and any errors
|
|
109
|
-
* @throws {@link
|
|
108
|
+
* @throws {@link SELEvaluationError} If the expression contains unrecoverable type errors
|
|
110
109
|
*/
|
|
111
110
|
check(expression) {
|
|
112
111
|
try {
|
|
@@ -130,8 +129,7 @@ var SELRuntime = class {
|
|
|
130
129
|
* @param context Variable bindings for evaluation
|
|
131
130
|
* @param options Optional client override
|
|
132
131
|
* @returns An {@link EvaluateResult} containing the value and optional execution metadata
|
|
133
|
-
* @throws {@link
|
|
134
|
-
* @throws {@link SELTypeError} If type-checking fails
|
|
132
|
+
* @throws {@link SELLintError} If the expression fails parse, type-check, or lint rules
|
|
135
133
|
* @throws {@link SELContractError} If a contract call fails or no client is available
|
|
136
134
|
* @throws {@link SELEvaluationError} If CEL evaluation fails
|
|
137
135
|
*/
|
|
@@ -149,23 +147,21 @@ var SELRuntime = class {
|
|
|
149
147
|
}
|
|
150
148
|
}
|
|
151
149
|
planExecution(expression, evaluationContext) {
|
|
150
|
+
const checkResult = this.checker.check(expression);
|
|
151
|
+
if (!checkResult.valid) throw new require_errors.SELLintError(checkResult.diagnostics.filter((d) => d.severity === "error"));
|
|
152
152
|
const parseResult = this.env.parse(expression);
|
|
153
153
|
const collectedCalls = require_call_collector.collectCalls(parseResult.ast, { get: (name) => this.findContract(name) });
|
|
154
154
|
debug("evaluate: collected %d calls", collectedCalls.length);
|
|
155
155
|
const normalizedContext = Object.keys(evaluationContext).length ? require_context.normalizeContextForEvaluation(evaluationContext, this.variableTypes, this.codecRegistry) : void 0;
|
|
156
156
|
const executionVariables = Object.keys(evaluationContext).length ? evaluationContext : {};
|
|
157
|
-
const
|
|
158
|
-
if (!typeCheckResult.valid) throw new _seljs_common.SELTypeError(typeCheckResult.error?.message ?? "Type check failed", { cause: typeCheckResult.error });
|
|
159
|
-
const lintResult = this.checker.check(expression);
|
|
160
|
-
const lintErrors = lintResult.diagnostics.filter((d) => d.severity === "error");
|
|
161
|
-
if (lintErrors.length > 0) throw new require_errors.SELLintError(lintErrors);
|
|
157
|
+
const diagnostics = checkResult.diagnostics.filter((d) => d.severity !== "error");
|
|
162
158
|
return {
|
|
163
159
|
parseResult,
|
|
164
160
|
collectedCalls,
|
|
165
161
|
normalizedContext,
|
|
166
162
|
executionVariables,
|
|
167
|
-
|
|
168
|
-
diagnostics
|
|
163
|
+
resolvedType: checkResult.type,
|
|
164
|
+
diagnostics
|
|
169
165
|
};
|
|
170
166
|
}
|
|
171
167
|
async executeContractCalls(collectedCalls, executionVariables, resolvedClient) {
|
|
@@ -216,7 +212,7 @@ var SELRuntime = class {
|
|
|
216
212
|
const resolvedClient = options?.client ?? this.client;
|
|
217
213
|
if (resolvedClient && resolvedClient !== this.client) require_client.validateClient(resolvedClient);
|
|
218
214
|
try {
|
|
219
|
-
const { parseResult, collectedCalls, normalizedContext, executionVariables,
|
|
215
|
+
const { parseResult, collectedCalls, normalizedContext, executionVariables, resolvedType, diagnostics } = this.planExecution(expression, context ?? {});
|
|
220
216
|
let executionMeta;
|
|
221
217
|
let executionCache;
|
|
222
218
|
if (collectedCalls.length > 0) {
|
|
@@ -240,13 +236,13 @@ var SELRuntime = class {
|
|
|
240
236
|
this.currentClient = void 0;
|
|
241
237
|
this.currentCallCounter = void 0;
|
|
242
238
|
}
|
|
243
|
-
const value =
|
|
239
|
+
const value = resolvedType ? this.codecRegistry.encode(resolvedType, result) : result;
|
|
244
240
|
debug("evaluate: result type=%s", typeof value);
|
|
245
241
|
const evalResult = executionMeta ? {
|
|
246
242
|
value,
|
|
247
243
|
meta: executionMeta
|
|
248
244
|
} : { value };
|
|
249
|
-
if (
|
|
245
|
+
if (resolvedType) evalResult.type = resolvedType;
|
|
250
246
|
if (diagnostics.length > 0) evalResult.diagnostics = diagnostics;
|
|
251
247
|
return evalResult;
|
|
252
248
|
} catch (error) {
|
|
@@ -52,7 +52,7 @@ declare class SELRuntime {
|
|
|
52
52
|
*
|
|
53
53
|
* @param expression - A CEL expression string to type-check
|
|
54
54
|
* @returns The type-check result containing validity, inferred type, and any errors
|
|
55
|
-
* @throws {@link
|
|
55
|
+
* @throws {@link SELEvaluationError} If the expression contains unrecoverable type errors
|
|
56
56
|
*/
|
|
57
57
|
check(expression: string): TypeCheckResult;
|
|
58
58
|
/**
|
|
@@ -70,8 +70,7 @@ declare class SELRuntime {
|
|
|
70
70
|
* @param context Variable bindings for evaluation
|
|
71
71
|
* @param options Optional client override
|
|
72
72
|
* @returns An {@link EvaluateResult} containing the value and optional execution metadata
|
|
73
|
-
* @throws {@link
|
|
74
|
-
* @throws {@link SELTypeError} If type-checking fails
|
|
73
|
+
* @throws {@link SELLintError} If the expression fails parse, type-check, or lint rules
|
|
75
74
|
* @throws {@link SELContractError} If a contract call fails or no client is available
|
|
76
75
|
* @throws {@link SELEvaluationError} If CEL evaluation fails
|
|
77
76
|
*/
|
|
@@ -52,7 +52,7 @@ declare class SELRuntime {
|
|
|
52
52
|
*
|
|
53
53
|
* @param expression - A CEL expression string to type-check
|
|
54
54
|
* @returns The type-check result containing validity, inferred type, and any errors
|
|
55
|
-
* @throws {@link
|
|
55
|
+
* @throws {@link SELEvaluationError} If the expression contains unrecoverable type errors
|
|
56
56
|
*/
|
|
57
57
|
check(expression: string): TypeCheckResult;
|
|
58
58
|
/**
|
|
@@ -70,8 +70,7 @@ declare class SELRuntime {
|
|
|
70
70
|
* @param context Variable bindings for evaluation
|
|
71
71
|
* @param options Optional client override
|
|
72
72
|
* @returns An {@link EvaluateResult} containing the value and optional execution metadata
|
|
73
|
-
* @throws {@link
|
|
74
|
-
* @throws {@link SELTypeError} If type-checking fails
|
|
73
|
+
* @throws {@link SELLintError} If the expression fails parse, type-check, or lint rules
|
|
75
74
|
* @throws {@link SELContractError} If a contract call fails or no client is available
|
|
76
75
|
* @throws {@link SELEvaluationError} If CEL evaluation fails
|
|
77
76
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getBuiltinContracts } from "./builtin-contracts.mjs";
|
|
2
|
-
import { MulticallBatchError, SELContractError, SELLintError
|
|
2
|
+
import { MulticallBatchError, SELContractError, SELLintError } from "../errors/errors.mjs";
|
|
3
3
|
import "../errors/index.mjs";
|
|
4
4
|
import { validateClient } from "./client.mjs";
|
|
5
5
|
import { normalizeContextForEvaluation } from "./context.mjs";
|
|
@@ -104,7 +104,7 @@ var SELRuntime = class {
|
|
|
104
104
|
*
|
|
105
105
|
* @param expression - A CEL expression string to type-check
|
|
106
106
|
* @returns The type-check result containing validity, inferred type, and any errors
|
|
107
|
-
* @throws {@link
|
|
107
|
+
* @throws {@link SELEvaluationError} If the expression contains unrecoverable type errors
|
|
108
108
|
*/
|
|
109
109
|
check(expression) {
|
|
110
110
|
try {
|
|
@@ -128,8 +128,7 @@ var SELRuntime = class {
|
|
|
128
128
|
* @param context Variable bindings for evaluation
|
|
129
129
|
* @param options Optional client override
|
|
130
130
|
* @returns An {@link EvaluateResult} containing the value and optional execution metadata
|
|
131
|
-
* @throws {@link
|
|
132
|
-
* @throws {@link SELTypeError} If type-checking fails
|
|
131
|
+
* @throws {@link SELLintError} If the expression fails parse, type-check, or lint rules
|
|
133
132
|
* @throws {@link SELContractError} If a contract call fails or no client is available
|
|
134
133
|
* @throws {@link SELEvaluationError} If CEL evaluation fails
|
|
135
134
|
*/
|
|
@@ -147,23 +146,21 @@ var SELRuntime = class {
|
|
|
147
146
|
}
|
|
148
147
|
}
|
|
149
148
|
planExecution(expression, evaluationContext) {
|
|
149
|
+
const checkResult = this.checker.check(expression);
|
|
150
|
+
if (!checkResult.valid) throw new SELLintError(checkResult.diagnostics.filter((d) => d.severity === "error"));
|
|
150
151
|
const parseResult = this.env.parse(expression);
|
|
151
152
|
const collectedCalls = collectCalls(parseResult.ast, { get: (name) => this.findContract(name) });
|
|
152
153
|
debug("evaluate: collected %d calls", collectedCalls.length);
|
|
153
154
|
const normalizedContext = Object.keys(evaluationContext).length ? normalizeContextForEvaluation(evaluationContext, this.variableTypes, this.codecRegistry) : void 0;
|
|
154
155
|
const executionVariables = Object.keys(evaluationContext).length ? evaluationContext : {};
|
|
155
|
-
const
|
|
156
|
-
if (!typeCheckResult.valid) throw new SELTypeError(typeCheckResult.error?.message ?? "Type check failed", { cause: typeCheckResult.error });
|
|
157
|
-
const lintResult = this.checker.check(expression);
|
|
158
|
-
const lintErrors = lintResult.diagnostics.filter((d) => d.severity === "error");
|
|
159
|
-
if (lintErrors.length > 0) throw new SELLintError(lintErrors);
|
|
156
|
+
const diagnostics = checkResult.diagnostics.filter((d) => d.severity !== "error");
|
|
160
157
|
return {
|
|
161
158
|
parseResult,
|
|
162
159
|
collectedCalls,
|
|
163
160
|
normalizedContext,
|
|
164
161
|
executionVariables,
|
|
165
|
-
|
|
166
|
-
diagnostics
|
|
162
|
+
resolvedType: checkResult.type,
|
|
163
|
+
diagnostics
|
|
167
164
|
};
|
|
168
165
|
}
|
|
169
166
|
async executeContractCalls(collectedCalls, executionVariables, resolvedClient) {
|
|
@@ -214,7 +211,7 @@ var SELRuntime = class {
|
|
|
214
211
|
const resolvedClient = options?.client ?? this.client;
|
|
215
212
|
if (resolvedClient && resolvedClient !== this.client) validateClient(resolvedClient);
|
|
216
213
|
try {
|
|
217
|
-
const { parseResult, collectedCalls, normalizedContext, executionVariables,
|
|
214
|
+
const { parseResult, collectedCalls, normalizedContext, executionVariables, resolvedType, diagnostics } = this.planExecution(expression, context ?? {});
|
|
218
215
|
let executionMeta;
|
|
219
216
|
let executionCache;
|
|
220
217
|
if (collectedCalls.length > 0) {
|
|
@@ -238,13 +235,13 @@ var SELRuntime = class {
|
|
|
238
235
|
this.currentClient = void 0;
|
|
239
236
|
this.currentCallCounter = void 0;
|
|
240
237
|
}
|
|
241
|
-
const value =
|
|
238
|
+
const value = resolvedType ? this.codecRegistry.encode(resolvedType, result) : result;
|
|
242
239
|
debug("evaluate: result type=%s", typeof value);
|
|
243
240
|
const evalResult = executionMeta ? {
|
|
244
241
|
value,
|
|
245
242
|
meta: executionMeta
|
|
246
243
|
} : { value };
|
|
247
|
-
if (
|
|
244
|
+
if (resolvedType) evalResult.type = resolvedType;
|
|
248
245
|
if (diagnostics.length > 0) evalResult.diagnostics = diagnostics;
|
|
249
246
|
return evalResult;
|
|
250
247
|
} catch (error) {
|
|
@@ -2,7 +2,6 @@ require("../_virtual/_rolldown/runtime.cjs");
|
|
|
2
2
|
const require_errors = require("../errors/errors.cjs");
|
|
3
3
|
require("../errors/index.cjs");
|
|
4
4
|
let _marcbachmann_cel_js = require("@marcbachmann/cel-js");
|
|
5
|
-
let _seljs_common = require("@seljs/common");
|
|
6
5
|
//#region src/environment/error-wrapper.ts
|
|
7
6
|
/**
|
|
8
7
|
* Wraps an unknown error into a known SEL error type.
|
|
@@ -15,13 +14,13 @@ let _seljs_common = require("@seljs/common");
|
|
|
15
14
|
*/
|
|
16
15
|
const wrapError = (error) => {
|
|
17
16
|
if (error instanceof require_errors.SELContractError) return error;
|
|
18
|
-
if (error instanceof _marcbachmann_cel_js.ParseError) return new _seljs_common.SELParseError(error.message, { cause: error });
|
|
19
17
|
if (error instanceof _marcbachmann_cel_js.EvaluationError) {
|
|
20
18
|
const cause = error.cause;
|
|
21
19
|
if (cause instanceof require_errors.SELContractError) return cause;
|
|
22
20
|
return new require_errors.SELEvaluationError(error.message, { cause: error });
|
|
23
21
|
}
|
|
24
|
-
if (error instanceof _marcbachmann_cel_js.
|
|
22
|
+
if (error instanceof _marcbachmann_cel_js.ParseError) return new require_errors.SELEvaluationError(error.message, { cause: error });
|
|
23
|
+
if (error instanceof _marcbachmann_cel_js.TypeError) return new require_errors.SELEvaluationError(error.message, { cause: error });
|
|
25
24
|
if (error instanceof Error) return error;
|
|
26
25
|
return new Error(String(error));
|
|
27
26
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SELContractError, SELEvaluationError
|
|
1
|
+
import { SELContractError, SELEvaluationError } from "../errors/errors.mjs";
|
|
2
2
|
import "../errors/index.mjs";
|
|
3
3
|
import { EvaluationError, ParseError, TypeError } from "@marcbachmann/cel-js";
|
|
4
4
|
//#region src/environment/error-wrapper.ts
|
|
@@ -13,13 +13,13 @@ import { EvaluationError, ParseError, TypeError } from "@marcbachmann/cel-js";
|
|
|
13
13
|
*/
|
|
14
14
|
const wrapError = (error) => {
|
|
15
15
|
if (error instanceof SELContractError) return error;
|
|
16
|
-
if (error instanceof ParseError) return new SELParseError(error.message, { cause: error });
|
|
17
16
|
if (error instanceof EvaluationError) {
|
|
18
17
|
const cause = error.cause;
|
|
19
18
|
if (cause instanceof SELContractError) return cause;
|
|
20
19
|
return new SELEvaluationError(error.message, { cause: error });
|
|
21
20
|
}
|
|
22
|
-
if (error instanceof
|
|
21
|
+
if (error instanceof ParseError) return new SELEvaluationError(error.message, { cause: error });
|
|
22
|
+
if (error instanceof TypeError) return new SELEvaluationError(error.message, { cause: error });
|
|
23
23
|
if (error instanceof Error) return error;
|
|
24
24
|
return new Error(String(error));
|
|
25
25
|
};
|
package/dist/errors/errors.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SELDiagnostic } from "@seljs/checker";
|
|
2
|
-
import { SELError
|
|
2
|
+
import { SELError } from "@seljs/common";
|
|
3
3
|
|
|
4
4
|
//#region src/errors/errors.d.ts
|
|
5
5
|
/**
|
|
@@ -78,4 +78,4 @@ declare class SELLintError extends SELError {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
|
-
export { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError
|
|
81
|
+
export { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError };
|
package/dist/errors/errors.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SELDiagnostic } from "@seljs/checker";
|
|
2
|
-
import { SELError
|
|
2
|
+
import { SELError } from "@seljs/common";
|
|
3
3
|
|
|
4
4
|
//#region src/errors/errors.d.ts
|
|
5
5
|
/**
|
|
@@ -78,4 +78,4 @@ declare class SELLintError extends SELError {
|
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
|
-
export { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError
|
|
81
|
+
export { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError };
|
package/dist/errors/errors.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SELError
|
|
1
|
+
import { SELError } from "@seljs/common";
|
|
2
2
|
//#region src/errors/errors.ts
|
|
3
3
|
/**
|
|
4
4
|
* Thrown when CEL expression evaluation fails.
|
|
@@ -78,4 +78,4 @@ var SELLintError = class extends SELError {
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
//#endregion
|
|
81
|
-
export { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError
|
|
81
|
+
export { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError };
|
package/dist/errors/index.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError
|
|
1
|
+
import { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError } from "./errors.mjs";
|
package/dist/index.cjs
CHANGED
|
@@ -15,8 +15,6 @@ exports.SELContractError = require_errors.SELContractError;
|
|
|
15
15
|
exports.SELError = _seljs_common.SELError;
|
|
16
16
|
exports.SELEvaluationError = require_errors.SELEvaluationError;
|
|
17
17
|
exports.SELLintError = require_errors.SELLintError;
|
|
18
|
-
exports.SELParseError = _seljs_common.SELParseError;
|
|
19
18
|
exports.SELRuntime = require_environment.SELRuntime;
|
|
20
|
-
exports.SELTypeError = _seljs_common.SELTypeError;
|
|
21
19
|
exports.createSEL = require_factory.createSEL;
|
|
22
20
|
exports.validateClient = require_client.validateClient;
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { SELClient, validateClient } from "./environment/client.cjs";
|
|
|
2
2
|
import { MulticallOptions, SELLimits, SELRuntimeConfig } from "./environment/types.cjs";
|
|
3
3
|
import { EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionMeta, ExecutionResult } from "./execution/types.cjs";
|
|
4
4
|
import { SELRuntime } from "./environment/environment.cjs";
|
|
5
|
-
import { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError
|
|
5
|
+
import { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError } from "./errors/errors.cjs";
|
|
6
6
|
import { createSEL } from "./factory.cjs";
|
|
7
7
|
import { CallArgument, CollectedCall, DependencyGraph, ExecutionPlan, ExecutionRound, GraphNode } from "./analysis/types.cjs";
|
|
8
|
-
export { CallArgument, CircularDependencyError, CollectedCall, DependencyGraph, EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionLimitError, ExecutionMeta, ExecutionPlan, ExecutionResult, ExecutionRound, GraphNode, MulticallBatchError, MulticallOptions, SELClient, SELClientError, SELContractError, SELError, SELEvaluationError, SELLimits, SELLintError,
|
|
8
|
+
export { CallArgument, CircularDependencyError, CollectedCall, DependencyGraph, EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionLimitError, ExecutionMeta, ExecutionPlan, ExecutionResult, ExecutionRound, GraphNode, MulticallBatchError, MulticallOptions, SELClient, SELClientError, SELContractError, SELError, SELEvaluationError, SELLimits, SELLintError, SELRuntime, SELRuntimeConfig, createSEL, validateClient };
|
package/dist/index.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { SELClient, validateClient } from "./environment/client.mjs";
|
|
|
2
2
|
import { MulticallOptions, SELLimits, SELRuntimeConfig } from "./environment/types.mjs";
|
|
3
3
|
import { EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionMeta, ExecutionResult } from "./execution/types.mjs";
|
|
4
4
|
import { SELRuntime } from "./environment/environment.mjs";
|
|
5
|
-
import { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError
|
|
5
|
+
import { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError } from "./errors/errors.mjs";
|
|
6
6
|
import { createSEL } from "./factory.mjs";
|
|
7
7
|
import { CallArgument, CollectedCall, DependencyGraph, ExecutionPlan, ExecutionRound, GraphNode } from "./analysis/types.mjs";
|
|
8
|
-
export { CallArgument, CircularDependencyError, CollectedCall, DependencyGraph, EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionLimitError, ExecutionMeta, ExecutionPlan, ExecutionResult, ExecutionRound, GraphNode, MulticallBatchError, MulticallOptions, SELClient, SELClientError, SELContractError, SELError, SELEvaluationError, SELLimits, SELLintError,
|
|
8
|
+
export { CallArgument, CircularDependencyError, CollectedCall, DependencyGraph, EvaluateOptions, EvaluateResult, ExecutionContext, ExecutionLimitError, ExecutionMeta, ExecutionPlan, ExecutionResult, ExecutionRound, GraphNode, MulticallBatchError, MulticallOptions, SELClient, SELClientError, SELContractError, SELError, SELEvaluationError, SELLimits, SELLintError, SELRuntime, SELRuntimeConfig, createSEL, validateClient };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError
|
|
1
|
+
import { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError } from "./errors/errors.mjs";
|
|
2
2
|
import "./errors/index.mjs";
|
|
3
3
|
import { validateClient } from "./environment/client.mjs";
|
|
4
4
|
import { SELRuntime } from "./environment/environment.mjs";
|
|
5
5
|
import "./environment/index.mjs";
|
|
6
6
|
import { createSEL } from "./factory.mjs";
|
|
7
|
-
export { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError,
|
|
7
|
+
export { CircularDependencyError, ExecutionLimitError, MulticallBatchError, SELClientError, SELContractError, SELError, SELEvaluationError, SELLintError, SELRuntime, createSEL, validateClient };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seljs/runtime",
|
|
3
|
-
"version": "1.3.0-beta.
|
|
3
|
+
"version": "1.3.0-beta.17",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "https://github.com/abinnovision/seljs"
|
|
6
6
|
},
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@marcbachmann/cel-js": "^7.5.3",
|
|
53
|
-
"@seljs/checker": "1.3.0-beta.
|
|
54
|
-
"@seljs/common": "1.3.0-beta.
|
|
55
|
-
"@seljs/env": "1.3.0-beta.
|
|
53
|
+
"@seljs/checker": "1.3.0-beta.17",
|
|
54
|
+
"@seljs/common": "1.3.0-beta.17",
|
|
55
|
+
"@seljs/env": "1.3.0-beta.17",
|
|
56
56
|
"@seljs/schema": "1.2.0",
|
|
57
|
-
"@seljs/types": "1.3.0-beta.
|
|
57
|
+
"@seljs/types": "1.3.0-beta.17",
|
|
58
58
|
"debug": "^4.4.3",
|
|
59
|
-
"ox": "^0.14.
|
|
59
|
+
"ox": "^0.14.10"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@abinnovision/eslint-config-base": "^3.2.2",
|