@jplorg/jpl 2.1.0 → 2.1.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.
Files changed (82) hide show
  1. package/dist/esm/main.js +146 -146
  2. package/dist/types/builtins/funcContains.d.ts +1 -1
  3. package/dist/types/builtins/funcEndsWith.d.ts +1 -1
  4. package/dist/types/builtins/funcError.d.ts +1 -1
  5. package/dist/types/builtins/funcFromJSON.d.ts +1 -1
  6. package/dist/types/builtins/funcHas.d.ts +1 -1
  7. package/dist/types/builtins/funcIn.d.ts +1 -1
  8. package/dist/types/builtins/funcKeys.d.ts +1 -1
  9. package/dist/types/builtins/funcLength.d.ts +1 -1
  10. package/dist/types/builtins/funcNow.d.ts +1 -1
  11. package/dist/types/builtins/funcStartsWith.d.ts +1 -1
  12. package/dist/types/builtins/funcToJSON.d.ts +1 -1
  13. package/dist/types/builtins/funcToLowerCase.d.ts +1 -1
  14. package/dist/types/builtins/funcToNumber.d.ts +1 -1
  15. package/dist/types/builtins/funcToString.d.ts +1 -1
  16. package/dist/types/builtins/funcToUpperCase.d.ts +1 -1
  17. package/dist/types/builtins/funcTrim.d.ts +1 -1
  18. package/dist/types/builtins/funcTrimEnd.d.ts +1 -1
  19. package/dist/types/builtins/funcTrimStart.d.ts +1 -1
  20. package/dist/types/builtins/funcType.d.ts +1 -1
  21. package/dist/types/builtins/funcVoid.d.ts +1 -1
  22. package/dist/types/interpreter/index.d.ts +1 -1
  23. package/dist/types/interpreter/parse.d.ts +1 -1
  24. package/dist/types/library/index.d.ts +1 -0
  25. package/dist/types/main.d.ts +3 -3
  26. package/dist/types/program/handler.d.ts +1 -2
  27. package/dist/types/program/index.d.ts +1 -1
  28. package/dist/types/program/ops/opAccess/index.d.ts +1 -2
  29. package/dist/types/program/ops/opAccess/opaField.d.ts +1 -2
  30. package/dist/types/program/ops/opAccess/opaFunction.d.ts +1 -2
  31. package/dist/types/program/ops/opAccess/opaIter.d.ts +1 -2
  32. package/dist/types/program/ops/opAccess/opaSlice.d.ts +1 -2
  33. package/dist/types/program/ops/opAnd.d.ts +2 -3
  34. package/dist/types/program/ops/opArrayConstructor.d.ts +2 -3
  35. package/dist/types/program/ops/opAssignment/index.d.ts +1 -2
  36. package/dist/types/program/ops/opAssignment/opaAssignField.d.ts +1 -2
  37. package/dist/types/program/ops/opAssignment/opaAssignIter.d.ts +1 -2
  38. package/dist/types/program/ops/opAssignment/opaAssignSlice.d.ts +1 -2
  39. package/dist/types/program/ops/opAssignment/opuAddition.d.ts +1 -2
  40. package/dist/types/program/ops/opAssignment/opuDivision.d.ts +1 -2
  41. package/dist/types/program/ops/opAssignment/opuMultiplication.d.ts +1 -2
  42. package/dist/types/program/ops/opAssignment/opuNullCoalescence.d.ts +1 -2
  43. package/dist/types/program/ops/opAssignment/opuRemainder.d.ts +1 -2
  44. package/dist/types/program/ops/opAssignment/opuSet.d.ts +1 -2
  45. package/dist/types/program/ops/opAssignment/opuSubtraction.d.ts +1 -2
  46. package/dist/types/program/ops/opAssignment/opuUpdate.d.ts +1 -2
  47. package/dist/types/program/ops/opCalculation/index.d.ts +1 -2
  48. package/dist/types/program/ops/opCalculation/opmAddition.d.ts +1 -2
  49. package/dist/types/program/ops/opCalculation/opmDivision.d.ts +1 -2
  50. package/dist/types/program/ops/opCalculation/opmMultiplication.d.ts +1 -2
  51. package/dist/types/program/ops/opCalculation/opmRemainder.d.ts +1 -2
  52. package/dist/types/program/ops/opCalculation/opmSubtraction.d.ts +1 -2
  53. package/dist/types/program/ops/opComparison/index.d.ts +1 -2
  54. package/dist/types/program/ops/opComparison/opcEqual.d.ts +1 -2
  55. package/dist/types/program/ops/opComparison/opcGreater.d.ts +1 -2
  56. package/dist/types/program/ops/opComparison/opcGreaterEqual.d.ts +1 -2
  57. package/dist/types/program/ops/opComparison/opcLess.d.ts +1 -2
  58. package/dist/types/program/ops/opComparison/opcLessEqual.d.ts +1 -2
  59. package/dist/types/program/ops/opComparison/opcUnequal.d.ts +1 -2
  60. package/dist/types/program/ops/opConstant.d.ts +1 -2
  61. package/dist/types/program/ops/opConstantFalse.d.ts +1 -2
  62. package/dist/types/program/ops/opConstantNull.d.ts +1 -2
  63. package/dist/types/program/ops/opConstantTrue.d.ts +1 -2
  64. package/dist/types/program/ops/opFunctionDefinition.d.ts +2 -3
  65. package/dist/types/program/ops/opIf.d.ts +2 -3
  66. package/dist/types/program/ops/opInterpolatedString.d.ts +2 -3
  67. package/dist/types/program/ops/opNegation.d.ts +2 -3
  68. package/dist/types/program/ops/opNot.d.ts +2 -3
  69. package/dist/types/program/ops/opNullCoalescence.d.ts +2 -3
  70. package/dist/types/program/ops/opNumber.d.ts +2 -3
  71. package/dist/types/program/ops/opObjectConstructor.d.ts +2 -3
  72. package/dist/types/program/ops/opOr.d.ts +2 -3
  73. package/dist/types/program/ops/opOutputConcat.d.ts +2 -3
  74. package/dist/types/program/ops/opString.d.ts +1 -2
  75. package/dist/types/program/ops/opTry.d.ts +1 -2
  76. package/dist/types/program/ops/opVariable.d.ts +2 -3
  77. package/dist/types/program/ops/opVariableDefinition.d.ts +2 -3
  78. package/dist/types/program/ops/opVoid.d.ts +2 -3
  79. package/dist/types/program/ops/utils.d.ts +1 -1
  80. package/dist/types/program/params.d.ts +1 -2
  81. package/dist/types/runtime/index.d.ts +1 -2
  82. package/package.json +3 -10
@@ -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
  /** { pipes: [[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
  /** { pipes: [[op]] } */
7
6
  op(runtime: JPLRuntime, input: unknown, params: JPLInstructionParams, scope: JPLRuntimeScope, next: (output: unknown, scope: JPLRuntimeScope) => Promise<unknown[]> | unknown[]): Promise<unknown[]>;
@@ -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/definition';
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/definition';
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/definition';
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.0",
3
+ "version": "2.1.2",
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.3",
67
+ "prettier": "^3.8.4",
75
68
  "react": "^19.2.6",
76
69
  "react-dom": "^19.2.6",
77
70
  "typescript": "^6.0.3",