@jplorg/jpl 2.0.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 +3474 -0
- package/dist/types/applyDefaults.d.ts +2 -0
- package/dist/types/builtins/funcContains.d.ts +3 -0
- package/dist/types/builtins/funcEndsWith.d.ts +3 -0
- package/dist/types/builtins/funcError.d.ts +3 -0
- package/dist/types/builtins/funcFromJSON.d.ts +3 -0
- package/dist/types/builtins/funcHas.d.ts +3 -0
- package/dist/types/builtins/funcIn.d.ts +3 -0
- package/dist/types/builtins/funcKeys.d.ts +3 -0
- package/dist/types/builtins/funcLength.d.ts +3 -0
- package/dist/types/builtins/funcNow.d.ts +3 -0
- package/dist/types/builtins/funcStartsWith.d.ts +3 -0
- package/dist/types/builtins/funcToJSON.d.ts +3 -0
- package/dist/types/builtins/funcToLowerCase.d.ts +3 -0
- package/dist/types/builtins/funcToNumber.d.ts +3 -0
- package/dist/types/builtins/funcToString.d.ts +3 -0
- package/dist/types/builtins/funcToUpperCase.d.ts +3 -0
- package/dist/types/builtins/funcTrim.d.ts +3 -0
- package/dist/types/builtins/funcTrimEnd.d.ts +3 -0
- package/dist/types/builtins/funcTrimStart.d.ts +3 -0
- package/dist/types/builtins/funcType.d.ts +3 -0
- package/dist/types/builtins/funcVoid.d.ts +3 -0
- package/dist/types/builtins/index.d.ts +2 -0
- package/dist/types/builtins/internals.d.ts +1 -0
- package/dist/types/builtins/math.d.ts +17 -0
- package/dist/types/createSingleton.d.ts +1 -0
- package/dist/types/interpreter/index.d.ts +21 -0
- package/dist/types/interpreter/parse.d.ts +194 -0
- package/{src/interpreter/parseFunction.js → dist/types/interpreter/parseFunction.d.ts} +2 -10
- package/dist/types/interpreter/system.d.ts +3 -0
- package/dist/types/interpreter/util.d.ts +89 -0
- package/dist/types/library/apply.d.ts +32 -0
- package/dist/types/library/definition.d.ts +79 -0
- package/dist/types/library/errors/adaptErrors.d.ts +6 -0
- package/dist/types/library/errors/enclosure.d.ts +6 -0
- package/dist/types/library/errors/error.d.ts +6 -0
- package/dist/types/library/errors/execution.d.ts +12 -0
- package/dist/types/library/errors/fatal.d.ts +4 -0
- package/dist/types/library/errors/runtime.d.ts +46 -0
- package/dist/types/library/errors/syntax.d.ts +7 -0
- package/{src/library/functions.js → dist/types/library/functions.d.ts} +9 -30
- package/dist/types/library/index.d.ts +19 -0
- package/dist/types/library/mux.d.ts +19 -0
- package/{src/library/ops/op.js → dist/types/library/ops/op.d.ts} +25 -49
- package/{src/library/ops/opa.js → dist/types/library/ops/opa.d.ts} +4 -7
- package/{src/library/ops/opc.js → dist/types/library/ops/opc.d.ts} +6 -11
- package/{src/library/ops/opm.js → dist/types/library/ops/opm.d.ts} +5 -9
- package/{src/library/ops/opu.js → dist/types/library/ops/opu.d.ts} +8 -15
- package/dist/types/library/runtimeScope.d.ts +23 -0
- package/dist/types/library/runtimeSignal.d.ts +25 -0
- package/dist/types/library/types.d.ts +97 -0
- package/dist/types/main.d.ts +19 -0
- package/dist/types/program/handler.d.ts +11 -0
- package/dist/types/program/index.d.ts +40 -0
- package/dist/types/program/ops/index.d.ts +5 -0
- package/dist/types/program/ops/opAccess/index.d.ts +10 -0
- package/dist/types/program/ops/opAccess/opaField.d.ts +10 -0
- package/dist/types/program/ops/opAccess/opaFunction.d.ts +10 -0
- package/dist/types/program/ops/opAccess/opaIter.d.ts +10 -0
- package/dist/types/program/ops/opAccess/opaSlice.d.ts +10 -0
- package/dist/types/program/ops/opAnd.d.ts +10 -0
- package/dist/types/program/ops/opArrayConstructor.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/index.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opaAssignField.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opaAssignIter.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opaAssignSlice.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opuAddition.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opuDivision.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opuMultiplication.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opuNullCoalescence.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opuRemainder.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opuSet.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opuSubtraction.d.ts +10 -0
- package/dist/types/program/ops/opAssignment/opuUpdate.d.ts +10 -0
- package/dist/types/program/ops/opCalculation/index.d.ts +10 -0
- package/dist/types/program/ops/opCalculation/opmAddition.d.ts +10 -0
- package/dist/types/program/ops/opCalculation/opmDivision.d.ts +10 -0
- package/dist/types/program/ops/opCalculation/opmMultiplication.d.ts +10 -0
- package/dist/types/program/ops/opCalculation/opmRemainder.d.ts +10 -0
- package/dist/types/program/ops/opCalculation/opmSubtraction.d.ts +10 -0
- package/dist/types/program/ops/opComparison/index.d.ts +10 -0
- package/dist/types/program/ops/opComparison/opcEqual.d.ts +10 -0
- package/dist/types/program/ops/opComparison/opcGreater.d.ts +10 -0
- package/dist/types/program/ops/opComparison/opcGreaterEqual.d.ts +10 -0
- package/dist/types/program/ops/opComparison/opcLess.d.ts +10 -0
- package/dist/types/program/ops/opComparison/opcLessEqual.d.ts +10 -0
- package/dist/types/program/ops/opComparison/opcUnequal.d.ts +10 -0
- package/dist/types/program/ops/opConstant.d.ts +10 -0
- package/dist/types/program/ops/opConstantFalse.d.ts +10 -0
- package/dist/types/program/ops/opConstantNull.d.ts +10 -0
- package/dist/types/program/ops/opConstantTrue.d.ts +10 -0
- package/dist/types/program/ops/opFunctionDefinition.d.ts +10 -0
- package/dist/types/program/ops/opIf.d.ts +10 -0
- package/dist/types/program/ops/opInterpolatedString.d.ts +10 -0
- package/dist/types/program/ops/opNegation.d.ts +10 -0
- package/dist/types/program/ops/opNot.d.ts +10 -0
- package/dist/types/program/ops/opNullCoalescence.d.ts +10 -0
- package/dist/types/program/ops/opNumber.d.ts +10 -0
- package/dist/types/program/ops/opObjectConstructor.d.ts +10 -0
- package/dist/types/program/ops/opOr.d.ts +10 -0
- package/dist/types/program/ops/opOutputConcat.d.ts +10 -0
- package/dist/types/program/ops/opString.d.ts +10 -0
- package/dist/types/program/ops/opTry.d.ts +10 -0
- package/dist/types/program/ops/opVariable.d.ts +10 -0
- package/dist/types/program/ops/opVariableDefinition.d.ts +10 -0
- package/dist/types/program/ops/opVoid.d.ts +10 -0
- package/dist/types/program/ops/utils.d.ts +5 -0
- package/dist/types/program/params.d.ts +67 -0
- package/dist/types/runtime/index.d.ts +82 -0
- package/package.json +59 -49
- package/{repl.js → repl.ts} +85 -39
- package/lib/applyDefaults.js +0 -34
- package/lib/builtins/funcContains.js +0 -25
- package/lib/builtins/funcEndsWith.js +0 -21
- package/lib/builtins/funcError.js +0 -11
- package/lib/builtins/funcFromJSON.js +0 -26
- package/lib/builtins/funcHas.js +0 -24
- package/lib/builtins/funcIn.js +0 -24
- package/lib/builtins/funcKeys.js +0 -20
- package/lib/builtins/funcLength.js +0 -24
- package/lib/builtins/funcNow.js +0 -10
- package/lib/builtins/funcStartsWith.js +0 -21
- package/lib/builtins/funcToJSON.js +0 -10
- package/lib/builtins/funcToLowerCase.js +0 -17
- package/lib/builtins/funcToNumber.js +0 -26
- package/lib/builtins/funcToString.js +0 -10
- package/lib/builtins/funcToUpperCase.js +0 -17
- package/lib/builtins/funcTrim.js +0 -17
- package/lib/builtins/funcTrimEnd.js +0 -17
- package/lib/builtins/funcTrimStart.js +0 -17
- package/lib/builtins/funcType.js +0 -10
- package/lib/builtins/funcVoid.js +0 -10
- package/lib/builtins/index.js +0 -205
- package/lib/builtins/internals.js +0 -8
- package/lib/builtins/math.js +0 -40
- package/lib/builtins/native.js +0 -180
- package/lib/createSingleton.js +0 -14
- package/lib/index.js +0 -79
- package/lib/interpreter/index.js +0 -56
- package/lib/interpreter/parse.js +0 -2377
- package/lib/interpreter/parseFunction.js +0 -24
- package/lib/interpreter/system.js +0 -10
- package/lib/interpreter/util.js +0 -349
- package/lib/library/apply.js +0 -142
- package/lib/library/definition.js +0 -9
- package/lib/library/errors/adaptErrors.js +0 -34
- package/lib/library/errors/enclosure.js +0 -16
- package/lib/library/errors/error.js +0 -18
- package/lib/library/errors/execution.js +0 -20
- package/lib/library/errors/fatal.js +0 -15
- package/lib/library/errors/runtime.js +0 -78
- package/lib/library/errors/syntax.js +0 -17
- package/lib/library/functions.js +0 -82
- package/lib/library/index.js +0 -335
- package/lib/library/mux.js +0 -106
- package/lib/library/ops/index.js +0 -60
- package/lib/library/ops/op.js +0 -180
- package/lib/library/ops/opa.js +0 -41
- package/lib/library/ops/opc.js +0 -59
- package/lib/library/ops/opm.js +0 -50
- package/lib/library/ops/opu.js +0 -77
- package/lib/library/runtimeScope.js +0 -38
- package/lib/library/runtimeSignal.js +0 -72
- package/lib/library/types.js +0 -304
- package/lib/program/index.js +0 -101
- package/lib/program/ops/index.js +0 -61
- package/lib/program/ops/opAccess/index.js +0 -55
- package/lib/program/ops/opAccess/opaField.js +0 -50
- package/lib/program/ops/opAccess/opaFunction.js +0 -50
- package/lib/program/ops/opAccess/opaIter.js +0 -33
- package/lib/program/ops/opAccess/opaSlice.js +0 -46
- package/lib/program/ops/opAnd.js +0 -30
- package/lib/program/ops/opArrayConstructor.js +0 -20
- package/lib/program/ops/opAssignment/index.js +0 -90
- package/lib/program/ops/opAssignment/opaAssignField.js +0 -125
- package/lib/program/ops/opAssignment/opaAssignIter.js +0 -71
- package/lib/program/ops/opAssignment/opaAssignSlice.js +0 -101
- package/lib/program/ops/opAssignment/opuAddition.js +0 -31
- package/lib/program/ops/opAssignment/opuDivision.js +0 -31
- package/lib/program/ops/opAssignment/opuMultiplication.js +0 -31
- package/lib/program/ops/opAssignment/opuNullCoalescence.js +0 -25
- package/lib/program/ops/opAssignment/opuRemainder.js +0 -31
- package/lib/program/ops/opAssignment/opuSet.js +0 -19
- package/lib/program/ops/opAssignment/opuSubtraction.js +0 -31
- package/lib/program/ops/opAssignment/opuUpdate.js +0 -19
- package/lib/program/ops/opCalculation/index.js +0 -57
- package/lib/program/ops/opCalculation/opmAddition.js +0 -49
- package/lib/program/ops/opCalculation/opmDivision.js +0 -42
- package/lib/program/ops/opCalculation/opmMultiplication.js +0 -40
- package/lib/program/ops/opCalculation/opmRemainder.js +0 -34
- package/lib/program/ops/opCalculation/opmSubtraction.js +0 -53
- package/lib/program/ops/opComparison/index.js +0 -59
- package/lib/program/ops/opComparison/opcEqual.js +0 -19
- package/lib/program/ops/opComparison/opcGreater.js +0 -19
- package/lib/program/ops/opComparison/opcGreaterEqual.js +0 -19
- package/lib/program/ops/opComparison/opcLess.js +0 -19
- package/lib/program/ops/opComparison/opcLessEqual.js +0 -19
- package/lib/program/ops/opComparison/opcUnequal.js +0 -19
- package/lib/program/ops/opConstant.js +0 -18
- package/lib/program/ops/opConstantFalse.js +0 -16
- package/lib/program/ops/opConstantNull.js +0 -16
- package/lib/program/ops/opConstantTrue.js +0 -16
- package/lib/program/ops/opFunctionDefinition.js +0 -21
- package/lib/program/ops/opIf.js +0 -38
- package/lib/program/ops/opInterpolatedString.js +0 -24
- package/lib/program/ops/opNegation.js +0 -25
- package/lib/program/ops/opNot.js +0 -16
- package/lib/program/ops/opNullCoalescence.js +0 -34
- package/lib/program/ops/opNumber.js +0 -18
- package/lib/program/ops/opObjectConstructor.js +0 -37
- package/lib/program/ops/opOr.js +0 -30
- package/lib/program/ops/opOutputConcat.js +0 -19
- package/lib/program/ops/opString.js +0 -18
- package/lib/program/ops/opTry.js +0 -37
- package/lib/program/ops/opVariable.js +0 -20
- package/lib/program/ops/opVariableDefinition.js +0 -24
- package/lib/program/ops/opVoid.js +0 -16
- package/lib/program/ops/utils.js +0 -35
- package/lib/runtime/index.js +0 -258
- package/src/applyDefaults.js +0 -35
- package/src/builtins/funcContains.js +0 -27
- package/src/builtins/funcEndsWith.js +0 -21
- package/src/builtins/funcError.js +0 -7
- package/src/builtins/funcFromJSON.js +0 -24
- package/src/builtins/funcHas.js +0 -25
- package/src/builtins/funcIn.js +0 -25
- package/src/builtins/funcKeys.js +0 -20
- package/src/builtins/funcLength.js +0 -26
- package/src/builtins/funcNow.js +0 -5
- package/src/builtins/funcStartsWith.js +0 -21
- package/src/builtins/funcToJSON.js +0 -5
- package/src/builtins/funcToLowerCase.js +0 -20
- package/src/builtins/funcToNumber.js +0 -25
- package/src/builtins/funcToString.js +0 -5
- package/src/builtins/funcToUpperCase.js +0 -20
- package/src/builtins/funcTrim.js +0 -16
- package/src/builtins/funcTrimEnd.js +0 -16
- package/src/builtins/funcTrimStart.js +0 -16
- package/src/builtins/funcType.js +0 -5
- package/src/builtins/funcVoid.js +0 -5
- package/src/builtins/index.js +0 -193
- package/src/builtins/internals.js +0 -9
- package/src/builtins/math.js +0 -44
- package/src/createSingleton.js +0 -9
- package/src/index.js +0 -44
- package/src/interpreter/index.js +0 -48
- package/src/interpreter/parse.js +0 -1473
- package/src/interpreter/system.js +0 -5
- package/src/interpreter/util.js +0 -237
- package/src/library/apply.js +0 -135
- package/src/library/definition.js +0 -3
- package/src/library/errors/adaptErrors.js +0 -28
- package/src/library/errors/enclosure.js +0 -11
- package/src/library/errors/error.js +0 -14
- package/src/library/errors/execution.js +0 -15
- package/src/library/errors/fatal.js +0 -10
- package/src/library/errors/runtime.js +0 -71
- package/src/library/errors/syntax.js +0 -12
- package/src/library/index.js +0 -41
- package/src/library/mux.js +0 -98
- package/src/library/runtimeScope.js +0 -35
- package/src/library/runtimeSignal.js +0 -67
- package/src/library/types.js +0 -299
- package/src/program/index.js +0 -114
- package/src/program/ops/index.js +0 -82
- package/src/program/ops/opAccess/index.js +0 -55
- package/src/program/ops/opAccess/opaField.js +0 -58
- package/src/program/ops/opAccess/opaFunction.js +0 -52
- package/src/program/ops/opAccess/opaIter.js +0 -34
- package/src/program/ops/opAccess/opaSlice.js +0 -61
- package/src/program/ops/opAnd.js +0 -32
- package/src/program/ops/opArrayConstructor.js +0 -16
- package/src/program/ops/opAssignment/index.js +0 -102
- package/src/program/ops/opAssignment/opaAssignField.js +0 -156
- package/src/program/ops/opAssignment/opaAssignIter.js +0 -77
- package/src/program/ops/opAssignment/opaAssignSlice.js +0 -160
- package/src/program/ops/opAssignment/opuAddition.js +0 -29
- package/src/program/ops/opAssignment/opuDivision.js +0 -29
- package/src/program/ops/opAssignment/opuMultiplication.js +0 -29
- package/src/program/ops/opAssignment/opuNullCoalescence.js +0 -26
- package/src/program/ops/opAssignment/opuRemainder.js +0 -29
- package/src/program/ops/opAssignment/opuSet.js +0 -15
- package/src/program/ops/opAssignment/opuSubtraction.js +0 -29
- package/src/program/ops/opAssignment/opuUpdate.js +0 -15
- package/src/program/ops/opCalculation/index.js +0 -64
- package/src/program/ops/opCalculation/opmAddition.js +0 -63
- package/src/program/ops/opCalculation/opmDivision.js +0 -47
- package/src/program/ops/opCalculation/opmMultiplication.js +0 -52
- package/src/program/ops/opCalculation/opmRemainder.js +0 -49
- package/src/program/ops/opCalculation/opmSubtraction.js +0 -72
- package/src/program/ops/opComparison/index.js +0 -67
- package/src/program/ops/opComparison/opcEqual.js +0 -17
- package/src/program/ops/opComparison/opcGreater.js +0 -17
- package/src/program/ops/opComparison/opcGreaterEqual.js +0 -17
- package/src/program/ops/opComparison/opcLess.js +0 -17
- package/src/program/ops/opComparison/opcLessEqual.js +0 -17
- package/src/program/ops/opComparison/opcUnequal.js +0 -17
- package/src/program/ops/opConstant.js +0 -13
- package/src/program/ops/opConstantFalse.js +0 -11
- package/src/program/ops/opConstantNull.js +0 -11
- package/src/program/ops/opConstantTrue.js +0 -11
- package/src/program/ops/opFunctionDefinition.js +0 -17
- package/src/program/ops/opIf.js +0 -44
- package/src/program/ops/opInterpolatedString.js +0 -27
- package/src/program/ops/opNegation.js +0 -26
- package/src/program/ops/opNot.js +0 -11
- package/src/program/ops/opNullCoalescence.js +0 -36
- package/src/program/ops/opNumber.js +0 -13
- package/src/program/ops/opObjectConstructor.js +0 -40
- package/src/program/ops/opOr.js +0 -32
- package/src/program/ops/opOutputConcat.js +0 -17
- package/src/program/ops/opString.js +0 -13
- package/src/program/ops/opTry.js +0 -38
- package/src/program/ops/opVariable.js +0 -17
- package/src/program/ops/opVariableDefinition.js +0 -18
- package/src/program/ops/opVoid.js +0 -11
- package/src/program/ops/utils.js +0 -19
- package/src/runtime/index.js +0 -309
- /package/{src/builtins/native.js → dist/types/builtins/native.d.ts} +0 -0
- /package/{src/library/ops/index.js → dist/types/library/ops/index.d.ts} +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { ifs: [{ if: [op], then: [op] }], else: [op] } */
|
|
6
|
+
op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
|
|
7
|
+
/** { ifs: [{ if: function, then: function }], else: function } */
|
|
8
|
+
map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { interpolations: [{ before: string, pipe: [op] }], after: string } */
|
|
6
|
+
op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
|
|
7
|
+
/** { interpolations: [{ before: string, pipe: function }], after: string } */
|
|
8
|
+
map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** {} */
|
|
6
|
+
op(runtime: JPLRuntime, input: unknown, _params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
|
|
7
|
+
/** {} */
|
|
8
|
+
map(_runtime: JPLRuntime, _params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** {} */
|
|
6
|
+
op(runtime: JPLRuntime, input: unknown, _params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
|
|
7
|
+
/** {} */
|
|
8
|
+
map(_runtime: JPLRuntime, _params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { pipes: [[op]] } */
|
|
6
|
+
op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
|
|
7
|
+
/** { pipes: [function] } */
|
|
8
|
+
map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { number: number } */
|
|
6
|
+
op(_runtime: JPLRuntime, _input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
|
|
7
|
+
/** { number: number } */
|
|
8
|
+
map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { fields: [{ key: [op], value: [op], optional: boolean }] } */
|
|
6
|
+
op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
|
|
7
|
+
/** { fields: [{ key: function, value: function, optional: boolean }] } */
|
|
8
|
+
map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { pipes: [[op]] } */
|
|
6
|
+
op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
|
|
7
|
+
/** { pipes: [function] } */
|
|
8
|
+
map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { pipes: [[op]] } */
|
|
6
|
+
op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
|
|
7
|
+
/** { pipes: [function] } */
|
|
8
|
+
map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { string: string } */
|
|
6
|
+
op(_runtime: JPLRuntime, _input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
|
|
7
|
+
/** { string: string } */
|
|
8
|
+
map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { try: [op], catch: [op] } */
|
|
6
|
+
op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
|
|
7
|
+
/** { try: function, catch: function } */
|
|
8
|
+
map(_runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { name: string } */
|
|
6
|
+
op(_runtime: JPLRuntime, _input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
|
|
7
|
+
/** { name: string } */
|
|
8
|
+
map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** { name: string, pipe: [op] } */
|
|
6
|
+
op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
|
|
7
|
+
/** { name: string, pipe: function } */
|
|
8
|
+
map(runtime: JPLRuntime, params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JPLInstructionParams, JPLRuntimeScope } from '../../library';
|
|
2
|
+
import { UserJPLInstructionParams } from '../params';
|
|
3
|
+
import { default as JPLRuntime } from '../../runtime';
|
|
4
|
+
declare const _default: {
|
|
5
|
+
/** {} */
|
|
6
|
+
op(_runtime: JPLRuntime, _input: unknown, _params: JPLInstructionParams, _scope: JPLRuntimeScope, _next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]> | unknown[];
|
|
7
|
+
/** {} */
|
|
8
|
+
map(_runtime: JPLRuntime, _params: UserJPLInstructionParams): JPLInstructionParams;
|
|
9
|
+
};
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Pipe } from '../../library';
|
|
2
|
+
/** Create OP_CONSTANT operation for the specified normalized value */
|
|
3
|
+
export declare function constant(value: unknown): Pipe;
|
|
4
|
+
/** Create OPA_FUNCTION operation for the specified function */
|
|
5
|
+
export declare function call(value: unknown): Pipe;
|
|
@@ -0,0 +1,67 @@
|
|
|
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';
|
|
2
|
+
export type UserJPLInstructionParams = {
|
|
3
|
+
after?: string;
|
|
4
|
+
argNames?: string[];
|
|
5
|
+
assignment?: UserJPLAssignment;
|
|
6
|
+
catch?: JPLFunc;
|
|
7
|
+
comparisons?: UserJPLComparison[];
|
|
8
|
+
else?: JPLFunc;
|
|
9
|
+
fields?: UserJPLField[];
|
|
10
|
+
ifs?: UserJPLIfThen[];
|
|
11
|
+
interpolations?: UserJPLInterpolation[];
|
|
12
|
+
name?: string;
|
|
13
|
+
number?: number;
|
|
14
|
+
operations?: UserJPLOperation[];
|
|
15
|
+
pipe?: JPLFunc;
|
|
16
|
+
pipes?: JPLFunc[];
|
|
17
|
+
selectors?: UserJPLSelector[];
|
|
18
|
+
string?: string;
|
|
19
|
+
try?: JPLFunc;
|
|
20
|
+
value?: unknown;
|
|
21
|
+
};
|
|
22
|
+
export type UserJPLComparison = {
|
|
23
|
+
op: typeof OPC_EQUAL | typeof OPC_GREATER | typeof OPC_GREATEREQUAL | typeof OPC_LESS | typeof OPC_LESSEQUAL | typeof OPC_UNEQUAL;
|
|
24
|
+
params: UserJPLComparisonParams;
|
|
25
|
+
};
|
|
26
|
+
export type UserJPLComparisonParams = {
|
|
27
|
+
by: JPLFunc;
|
|
28
|
+
};
|
|
29
|
+
export type UserJPLSelector = {
|
|
30
|
+
op: typeof OPA_FIELD | typeof OPA_FUNCTION | typeof OPA_ITER | typeof OPA_SLICE;
|
|
31
|
+
params: UserJPLSelectorParams;
|
|
32
|
+
};
|
|
33
|
+
export type UserJPLSelectorParams = {
|
|
34
|
+
args?: JPLFunc[];
|
|
35
|
+
bound?: boolean;
|
|
36
|
+
from?: JPLFunc;
|
|
37
|
+
optional?: boolean;
|
|
38
|
+
pipe?: JPLFunc;
|
|
39
|
+
to?: JPLFunc;
|
|
40
|
+
};
|
|
41
|
+
export type UserJPLOperation = {
|
|
42
|
+
op: typeof OPM_ADDITION | typeof OPM_DIVISION | typeof OPM_MULTIPLICATION | typeof OPM_REMAINDER | typeof OPM_SUBTRACTION;
|
|
43
|
+
params: UserJPLOperationParams;
|
|
44
|
+
};
|
|
45
|
+
export type UserJPLOperationParams = {
|
|
46
|
+
by: JPLFunc;
|
|
47
|
+
};
|
|
48
|
+
export type UserJPLIfThen = {
|
|
49
|
+
if: JPLFunc;
|
|
50
|
+
then: JPLFunc;
|
|
51
|
+
};
|
|
52
|
+
export type UserJPLAssignment = {
|
|
53
|
+
op: typeof OPU_ADDITION | typeof OPU_DIVISION | typeof OPU_MULTIPLICATION | typeof OPU_NULL_COALESCENCE | typeof OPU_REMAINDER | typeof OPU_SET | typeof OPU_SUBTRACTION | typeof OPU_UPDATE;
|
|
54
|
+
params: UserJPLAssignmentParams;
|
|
55
|
+
};
|
|
56
|
+
export type UserJPLAssignmentParams = {
|
|
57
|
+
pipe: JPLFunc;
|
|
58
|
+
};
|
|
59
|
+
export type UserJPLField = {
|
|
60
|
+
key: JPLFunc;
|
|
61
|
+
value: JPLFunc;
|
|
62
|
+
optional: boolean;
|
|
63
|
+
};
|
|
64
|
+
export type UserJPLInterpolation = {
|
|
65
|
+
before: string;
|
|
66
|
+
pipe: JPLFunc;
|
|
67
|
+
};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { assertType, JPLRuntimeScope, mux, muxAll, muxAsync, muxOne, normalize, typeOf, unwrap, JPLRuntimeScopeConfig, Pipe } from '../library';
|
|
2
|
+
import { default as JPLProgram } from '../program';
|
|
3
|
+
import { UserJPLInstructionParams } from '../program/params';
|
|
4
|
+
export type JPLRuntimeConfig = {
|
|
5
|
+
runtime?: JPLRuntimeOptions;
|
|
6
|
+
};
|
|
7
|
+
export type JPLRuntimeOptions = {
|
|
8
|
+
vars?: {
|
|
9
|
+
[name: string]: unknown;
|
|
10
|
+
};
|
|
11
|
+
adjustResult?: (result: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[];
|
|
12
|
+
};
|
|
13
|
+
export declare function applyRuntimeDefaults(options?: JPLRuntimeOptions, defaults?: JPLRuntimeOptions): JPLRuntimeOptions;
|
|
14
|
+
/** JPL runtime */
|
|
15
|
+
export default class JPLRuntime {
|
|
16
|
+
#private;
|
|
17
|
+
constructor(program: JPLProgram, options?: JPLRuntimeConfig);
|
|
18
|
+
/** Return the runtime's options */
|
|
19
|
+
get options(): JPLRuntimeOptions;
|
|
20
|
+
/** Return the runtime's program */
|
|
21
|
+
get program(): JPLProgram;
|
|
22
|
+
/** Create a new orphan scope */
|
|
23
|
+
createScope: (presets?: JPLRuntimeScopeConfig) => JPLRuntimeScope;
|
|
24
|
+
/** Execute a new dedicated program */
|
|
25
|
+
execute: (inputs: unknown[]) => Promise<unknown[]>;
|
|
26
|
+
/** Execute the specified instructions */
|
|
27
|
+
executeInstructions: (instructions: Pipe, inputs: unknown[], scope: JPLRuntimeScope, next?: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]) => Promise<unknown[]>;
|
|
28
|
+
/** Execute the specified OP */
|
|
29
|
+
op(op: string, params: UserJPLInstructionParams, inputs: unknown[], scope: JPLRuntimeScope, next?: (output: unknown, scope: JPLRuntimeScope) => unknown[]): Promise<unknown[]>;
|
|
30
|
+
/** Normalize the specified external value */
|
|
31
|
+
normalizeValue: typeof normalize;
|
|
32
|
+
/** Normalize the specified array of external values */
|
|
33
|
+
normalizeValues: (values?: unknown[], name?: string) => unknown[];
|
|
34
|
+
/** Unwrap the specified normalized value for usage in JPL operations */
|
|
35
|
+
unwrapValue: typeof unwrap;
|
|
36
|
+
/** Unwrap the specified array of normalized values for usage in JPL operations */
|
|
37
|
+
unwrapValues: (values?: unknown[], name?: string) => unknown[];
|
|
38
|
+
/** Strip the specified normalized value for usage in JPL operations */
|
|
39
|
+
stripValue: (value: unknown) => unknown;
|
|
40
|
+
/** Strip the specified array of normalized values for usage in JPL operations */
|
|
41
|
+
stripValues: (values?: unknown[], name?: string) => unknown[];
|
|
42
|
+
/** Alter the specified normalized value using the specified updater */
|
|
43
|
+
alterValue: (value: unknown, updater: (value: unknown) => Promise<unknown> | unknown) => Promise<unknown>;
|
|
44
|
+
/** Resolve the type of the specified normalized value for JPL operations */
|
|
45
|
+
type: typeof typeOf;
|
|
46
|
+
/** Assert the type for the specified unwrapped value for JPL operations */
|
|
47
|
+
assertType: typeof assertType;
|
|
48
|
+
/** Determine whether the specified normalized value should be considered as truthy in JPL operations */
|
|
49
|
+
truthy: (value: unknown) => boolean;
|
|
50
|
+
/** Compare the specified normalized values */
|
|
51
|
+
compare: (a: unknown, b: unknown) => number;
|
|
52
|
+
/** Compare the specified normalized strings based on their unicode code points */
|
|
53
|
+
compareStrings: (a: unknown, b: unknown) => number;
|
|
54
|
+
/** Compare the specified normalized arrays based on their lexical order */
|
|
55
|
+
compareArrays: (a: unknown, b: unknown) => number;
|
|
56
|
+
/** Compare the specified normalized objects */
|
|
57
|
+
compareObjects: (a: unknown, b: unknown) => number;
|
|
58
|
+
/** Determine if the specified normalized values can be considered to be equal */
|
|
59
|
+
equals: (a: unknown, b: unknown) => boolean;
|
|
60
|
+
/** Deep merge the specified normalized values */
|
|
61
|
+
merge: (a: unknown, b: unknown) => Promise<unknown>;
|
|
62
|
+
/** Stringify the specified normalized value for usage in program outputs */
|
|
63
|
+
stringifyJSON: (value: unknown, unescapeString: boolean) => string;
|
|
64
|
+
/** Strip the specified normalized value for usage in program outputs */
|
|
65
|
+
stripJSON: (value: unknown) => unknown;
|
|
66
|
+
/**
|
|
67
|
+
* Multiplex the specified array of arguments by calling cb for all possible combinations of arguments.
|
|
68
|
+
*
|
|
69
|
+
* `mux([[1,2], [3,4]], cb)` for example yields:
|
|
70
|
+
* - `cb(1, 3)`
|
|
71
|
+
* - `cb(1, 4)`
|
|
72
|
+
* - `cb(2, 3)`
|
|
73
|
+
* - `cb(2, 4)`
|
|
74
|
+
*/
|
|
75
|
+
mux: typeof mux;
|
|
76
|
+
/** Multiplex the specified array of arguments and return the results produced by the callbacks */
|
|
77
|
+
muxOne: typeof muxOne;
|
|
78
|
+
/** Multiplex the specified array of arguments asynchronously and return the results produced by the callbacks */
|
|
79
|
+
muxAsync: typeof muxAsync;
|
|
80
|
+
/** Multiplex the specified array of arguments asynchronously and return a single array of all merged result arrays produced by the callbacks */
|
|
81
|
+
muxAll: typeof muxAll;
|
|
82
|
+
}
|
package/package.json
CHANGED
|
@@ -1,65 +1,75 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jplorg/jpl",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "JPL interpreter",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"import": "./src/index.js",
|
|
9
|
-
"require": "./lib/index.js",
|
|
10
|
-
"default": "./lib/index.js"
|
|
11
|
-
},
|
|
12
|
-
"./package.json": "./package.json"
|
|
13
|
-
},
|
|
14
|
-
"bin": {
|
|
15
|
-
"jpl-repl": "repl.js"
|
|
16
|
-
},
|
|
17
|
-
"files": [
|
|
18
|
-
"lib",
|
|
19
|
-
"src",
|
|
20
|
-
"repl.js"
|
|
21
|
-
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"prebuild": "npm run build:clean",
|
|
24
|
-
"build:clean": "rimraf ./lib",
|
|
25
|
-
"build": "babel src -d lib",
|
|
26
|
-
"lint": "eslint",
|
|
27
|
-
"prepare": "npm run lint && npm run build",
|
|
28
|
-
"preversion": "git diff HEAD --name-only --exit-code || (echo -\\> unclean working directory && exit 1)",
|
|
29
|
-
"postversion": "cross-env git commit -am$npm_package_version",
|
|
30
|
-
"prettify": "prettier . --write",
|
|
31
|
-
"start": "npm run build >/dev/null && ./repl.js",
|
|
32
|
-
"repl": "./repl.js"
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Aaron Burmeister"
|
|
33
8
|
},
|
|
34
9
|
"repository": {
|
|
35
10
|
"type": "git",
|
|
36
|
-
"url": "git+https://github.com/jplorg/jpl"
|
|
11
|
+
"url": "git+https://github.com/jplorg/jpl.git"
|
|
37
12
|
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/jplorg/jpl/issues"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/jplorg/jpl",
|
|
17
|
+
"type": "module",
|
|
38
18
|
"keywords": [
|
|
39
19
|
"jpl",
|
|
40
20
|
"json",
|
|
41
21
|
"cli"
|
|
42
22
|
],
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"repl.ts"
|
|
26
|
+
],
|
|
27
|
+
"types": "./dist/types/main.d.ts",
|
|
28
|
+
"main": "./dist/esm/main.js",
|
|
29
|
+
"exports": {
|
|
30
|
+
".": {
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/types/main.d.ts",
|
|
33
|
+
"default": "./dist/esm/main.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"./package.json": "./package.json"
|
|
37
|
+
},
|
|
38
|
+
"bin": {
|
|
39
|
+
"jpl-repl": "./repl.ts"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"dev": "vite",
|
|
43
|
+
"build": "tsc -b ./tsconfig-build.json && vite build",
|
|
44
|
+
"lint": "eslint . --max-warnings 0",
|
|
45
|
+
"lint:fix": "npm run lint -- --fix",
|
|
46
|
+
"prettify": "prettier . --write",
|
|
47
|
+
"preview": "vite preview",
|
|
48
|
+
"postversion": "git commit -am$npm_package_version",
|
|
49
|
+
"prepublishOnly": "npm run build",
|
|
50
|
+
"start": "npm run build >/dev/null && ./repl.ts",
|
|
51
|
+
"repl": "./repl.ts"
|
|
47
52
|
},
|
|
48
|
-
"homepage": "https://github.com/jplorg/jpl",
|
|
49
53
|
"devDependencies": {
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"
|
|
56
|
-
"eslint": "^
|
|
57
|
-
"eslint-
|
|
58
|
-
"eslint-plugin-import": "^
|
|
59
|
-
"eslint-plugin-prettier": "^5.5.
|
|
60
|
-
"eslint-plugin-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
54
|
+
"@eslint/js": "^10.0.1",
|
|
55
|
+
"@types/node": "^25.9.2",
|
|
56
|
+
"@types/react": "^19.1.12",
|
|
57
|
+
"@types/react-dom": "^19.1.9",
|
|
58
|
+
"@vitejs/plugin-react": "^6.0.1",
|
|
59
|
+
"eslint": "^10.3.0",
|
|
60
|
+
"eslint-config-prettier": "^10.1.8",
|
|
61
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
62
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
63
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
64
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
65
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
66
|
+
"globals": "^17.6.0",
|
|
67
|
+
"prettier": "^3.8.4",
|
|
68
|
+
"react": "^19.2.6",
|
|
69
|
+
"react-dom": "^19.2.6",
|
|
70
|
+
"typescript": "^6.0.3",
|
|
71
|
+
"typescript-eslint": "^8.61.0",
|
|
72
|
+
"unplugin-dts": "^1.0.1",
|
|
73
|
+
"vite": "^8.0.12"
|
|
64
74
|
}
|
|
65
75
|
}
|