@jplorg/jpl 2.1.0 → 2.1.1
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/main.js +146 -146
- package/dist/types/builtins/funcContains.d.ts +1 -1
- package/dist/types/builtins/funcEndsWith.d.ts +1 -1
- package/dist/types/builtins/funcError.d.ts +1 -1
- package/dist/types/builtins/funcFromJSON.d.ts +1 -1
- package/dist/types/builtins/funcHas.d.ts +1 -1
- package/dist/types/builtins/funcIn.d.ts +1 -1
- package/dist/types/builtins/funcKeys.d.ts +1 -1
- package/dist/types/builtins/funcLength.d.ts +1 -1
- package/dist/types/builtins/funcNow.d.ts +1 -1
- package/dist/types/builtins/funcStartsWith.d.ts +1 -1
- package/dist/types/builtins/funcToJSON.d.ts +1 -1
- package/dist/types/builtins/funcToLowerCase.d.ts +1 -1
- package/dist/types/builtins/funcToNumber.d.ts +1 -1
- package/dist/types/builtins/funcToString.d.ts +1 -1
- package/dist/types/builtins/funcToUpperCase.d.ts +1 -1
- package/dist/types/builtins/funcTrim.d.ts +1 -1
- package/dist/types/builtins/funcTrimEnd.d.ts +1 -1
- package/dist/types/builtins/funcTrimStart.d.ts +1 -1
- package/dist/types/builtins/funcType.d.ts +1 -1
- package/dist/types/builtins/funcVoid.d.ts +1 -1
- package/dist/types/interpreter/index.d.ts +1 -1
- package/dist/types/interpreter/parse.d.ts +1 -1
- package/dist/types/library/index.d.ts +1 -0
- package/dist/types/program/handler.d.ts +1 -2
- package/dist/types/program/index.d.ts +1 -1
- package/dist/types/program/ops/opAccess/index.d.ts +1 -2
- package/dist/types/program/ops/opAccess/opaField.d.ts +1 -2
- package/dist/types/program/ops/opAccess/opaFunction.d.ts +1 -2
- package/dist/types/program/ops/opAccess/opaIter.d.ts +1 -2
- package/dist/types/program/ops/opAccess/opaSlice.d.ts +1 -2
- package/dist/types/program/ops/opAnd.d.ts +2 -3
- package/dist/types/program/ops/opArrayConstructor.d.ts +2 -3
- package/dist/types/program/ops/opAssignment/index.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opaAssignField.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opaAssignIter.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opaAssignSlice.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opuAddition.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opuDivision.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opuMultiplication.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opuNullCoalescence.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opuRemainder.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opuSet.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opuSubtraction.d.ts +1 -2
- package/dist/types/program/ops/opAssignment/opuUpdate.d.ts +1 -2
- package/dist/types/program/ops/opCalculation/index.d.ts +1 -2
- package/dist/types/program/ops/opCalculation/opmAddition.d.ts +1 -2
- package/dist/types/program/ops/opCalculation/opmDivision.d.ts +1 -2
- package/dist/types/program/ops/opCalculation/opmMultiplication.d.ts +1 -2
- package/dist/types/program/ops/opCalculation/opmRemainder.d.ts +1 -2
- package/dist/types/program/ops/opCalculation/opmSubtraction.d.ts +1 -2
- package/dist/types/program/ops/opComparison/index.d.ts +1 -2
- package/dist/types/program/ops/opComparison/opcEqual.d.ts +1 -2
- package/dist/types/program/ops/opComparison/opcGreater.d.ts +1 -2
- package/dist/types/program/ops/opComparison/opcGreaterEqual.d.ts +1 -2
- package/dist/types/program/ops/opComparison/opcLess.d.ts +1 -2
- package/dist/types/program/ops/opComparison/opcLessEqual.d.ts +1 -2
- package/dist/types/program/ops/opComparison/opcUnequal.d.ts +1 -2
- package/dist/types/program/ops/opConstant.d.ts +1 -2
- package/dist/types/program/ops/opConstantFalse.d.ts +1 -2
- package/dist/types/program/ops/opConstantNull.d.ts +1 -2
- package/dist/types/program/ops/opConstantTrue.d.ts +1 -2
- package/dist/types/program/ops/opFunctionDefinition.d.ts +2 -3
- package/dist/types/program/ops/opIf.d.ts +2 -3
- package/dist/types/program/ops/opInterpolatedString.d.ts +2 -3
- package/dist/types/program/ops/opNegation.d.ts +2 -3
- package/dist/types/program/ops/opNot.d.ts +2 -3
- package/dist/types/program/ops/opNullCoalescence.d.ts +2 -3
- package/dist/types/program/ops/opNumber.d.ts +2 -3
- package/dist/types/program/ops/opObjectConstructor.d.ts +2 -3
- package/dist/types/program/ops/opOr.d.ts +2 -3
- package/dist/types/program/ops/opOutputConcat.d.ts +2 -3
- package/dist/types/program/ops/opString.d.ts +1 -2
- package/dist/types/program/ops/opTry.d.ts +1 -2
- package/dist/types/program/ops/opVariable.d.ts +2 -3
- package/dist/types/program/ops/opVariableDefinition.d.ts +2 -3
- package/dist/types/program/ops/opVoid.d.ts +2 -3
- package/dist/types/program/ops/utils.d.ts +1 -1
- package/dist/types/program/params.d.ts +1 -2
- package/dist/types/runtime/index.d.ts +1 -2
- package/package.json +3 -10
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { JPLRuntimeScope } from '../../library';
|
|
2
|
-
import { JPLInstructionParams } from '../../library/definition';
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
3
2
|
import { UserJPLInstructionParams } from '../params';
|
|
4
3
|
import { default as JPLRuntime } from '../../runtime';
|
|
5
4
|
declare const _default: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { JPLRuntimeScope } from '../../library';
|
|
2
|
-
import { JPLInstructionParams } from '../../library/definition';
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
3
2
|
import { UserJPLInstructionParams } from '../params';
|
|
4
3
|
import { default as JPLRuntime } from '../../runtime';
|
|
5
4
|
declare const _default: {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { JPLInstructionParams } from '../../library
|
|
2
|
-
import { default as JPLRuntime } from '../../runtime';
|
|
3
|
-
import { JPLRuntimeScope } from '../../library';
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
4
2
|
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
5
4
|
declare const _default: {
|
|
6
5
|
/** { name: string } */
|
|
7
6
|
op(_runtime: JPLRuntime, _input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { JPLRuntimeScope } from '../../library';
|
|
2
|
-
import { JPLInstructionParams } from '../../library/definition';
|
|
3
|
-
import { default as JPLRuntime } from '../../runtime';
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
4
2
|
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
5
4
|
declare const _default: {
|
|
6
5
|
/** { name: string, pipe: [op] } */
|
|
7
6
|
op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { JPLRuntimeScope } from '../../library';
|
|
2
|
-
import { JPLInstructionParams } from '../../library/definition';
|
|
3
|
-
import { default as JPLRuntime } from '../../runtime';
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
4
2
|
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
5
4
|
declare const _default: {
|
|
6
5
|
/** {} */
|
|
7
6
|
op(_runtime: JPLRuntime, _input: unknown, _params: JPLInstructionParams, _scope: JPLRuntimeScope, _next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Pipe } from '../../library
|
|
1
|
+
import { Pipe } from '../../library';
|
|
2
2
|
/** Create OP_CONSTANT operation for the specified normalized value */
|
|
3
3
|
export declare function constant(value: unknown): Pipe;
|
|
4
4
|
/** Create OPA_FUNCTION operation for the specified function */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { JPLFunc } from '../library';
|
|
2
|
-
import { OPU_MULTIPLICATION, OPU_NULL_COALESCENCE, OPU_REMAINDER, OPU_SET, OPU_SUBTRACTION, OPU_UPDATE, OPA_FIELD, OPA_FUNCTION, OPA_ITER, OPA_SLICE, OPC_EQUAL, OPC_GREATER, OPC_GREATEREQUAL, OPC_LESS, OPC_LESSEQUAL, OPC_UNEQUAL, OPM_ADDITION, OPM_DIVISION, OPM_MULTIPLICATION, OPM_REMAINDER, OPM_SUBTRACTION, OPU_ADDITION, OPU_DIVISION } from '../library/ops';
|
|
1
|
+
import { JPLFunc, OPA_FIELD, OPA_FUNCTION, OPA_ITER, OPA_SLICE, OPC_EQUAL, OPC_GREATER, OPC_GREATEREQUAL, OPC_LESS, OPC_LESSEQUAL, OPC_UNEQUAL, OPM_ADDITION, OPM_DIVISION, OPM_MULTIPLICATION, OPM_REMAINDER, OPM_SUBTRACTION, OPU_ADDITION, OPU_DIVISION, OPU_MULTIPLICATION, OPU_NULL_COALESCENCE, OPU_REMAINDER, OPU_SET, OPU_SUBTRACTION, OPU_UPDATE } from '../library';
|
|
3
2
|
export type UserJPLInstructionParams = {
|
|
4
3
|
after?: string;
|
|
5
4
|
argNames?: string[];
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Pipe } from '../library
|
|
1
|
+
import { assertType, JPLRuntimeScope, mux, muxAll, muxAsync, muxOne, normalize, typeOf, unwrap, JPLRuntimeScopeConfig, Pipe } from '../library';
|
|
2
2
|
import { default as JPLProgram } from '../program';
|
|
3
3
|
import { UserJPLInstructionParams } from '../program/params';
|
|
4
|
-
import { JPLRuntimeScope, assertType, mux, muxAll, muxAsync, muxOne, normalize, typeOf, unwrap, JPLRuntimeScopeConfig } from '../library';
|
|
5
4
|
export type JPLRuntimeConfig = {
|
|
6
5
|
runtime?: JPLRuntimeOptions;
|
|
7
6
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jplorg/jpl",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "JPL interpreter",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -33,14 +33,7 @@
|
|
|
33
33
|
"default": "./dist/esm/main.js"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"./package.json": "./package.json"
|
|
37
|
-
"./main": null,
|
|
38
|
-
"./*": {
|
|
39
|
-
"import": {
|
|
40
|
-
"types": "./dist/types/*",
|
|
41
|
-
"default": "./dist/esm/*"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
36
|
+
"./package.json": "./package.json"
|
|
44
37
|
},
|
|
45
38
|
"bin": {
|
|
46
39
|
"jpl-repl": "./repl.ts"
|
|
@@ -71,7 +64,7 @@
|
|
|
71
64
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
72
65
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
73
66
|
"globals": "^17.6.0",
|
|
74
|
-
"prettier": "^3.8.
|
|
67
|
+
"prettier": "^3.8.4",
|
|
75
68
|
"react": "^19.2.6",
|
|
76
69
|
"react-dom": "^19.2.6",
|
|
77
70
|
"typescript": "^6.0.3",
|