@lowdefy/operators 5.2.0 → 5.4.0

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.
@@ -15,7 +15,7 @@
15
15
  */ import { ConfigError, OperatorError } from '@lowdefy/errors';
16
16
  import { serializer, type } from '@lowdefy/helpers';
17
17
  let ServerParser = class ServerParser {
18
- parse({ args, input, items, location, operatorPrefix = '_', payload, steps }) {
18
+ parse({ args, input, items, location, operatorPrefix = '_', payload, state, steps }) {
19
19
  if (type.isUndefined(input)) {
20
20
  return {
21
21
  output: input,
@@ -43,9 +43,11 @@ let ServerParser = class ServerParser {
43
43
  args,
44
44
  arrayIndices: [],
45
45
  env: this.env,
46
+ i18n: this.i18n,
46
47
  items,
47
48
  jsMap: this.jsMap,
48
49
  location,
50
+ lowdefyApp: this.lowdefyApp,
49
51
  methodName,
50
52
  operatorPrefix,
51
53
  operators: this.operators,
@@ -54,7 +56,7 @@ let ServerParser = class ServerParser {
54
56
  payload,
55
57
  runtime: 'node',
56
58
  secrets: this.secrets,
57
- state: this.state,
59
+ state,
58
60
  steps,
59
61
  user: this.user
60
62
  });
@@ -88,13 +90,14 @@ let ServerParser = class ServerParser {
88
90
  errors
89
91
  };
90
92
  }
91
- constructor({ env, jsMap, operators, secrets, state, user }){
93
+ constructor({ env, i18n, jsMap, lowdefyApp, operators, secrets, user }){
92
94
  this.env = env;
95
+ this.i18n = i18n;
93
96
  this.jsMap = jsMap;
97
+ this.lowdefyApp = lowdefyApp;
94
98
  this.operators = operators;
95
99
  this.parse = this.parse.bind(this);
96
100
  this.secrets = secrets;
97
- this.state = state;
98
101
  this.user = user;
99
102
  }
100
103
  };
package/dist/webParser.js CHANGED
@@ -32,7 +32,7 @@ let WebParser = class WebParser {
32
32
  throw new Error('Operator parser location must be a string.');
33
33
  }
34
34
  const errors = [];
35
- const { apiResponses, basePath, home, inputs, lowdefyGlobal, menus, pageId, theme, user, _internal } = this.context._internal.lowdefy;
35
+ const { apiResponses, basePath, home, i18n, inputs, lowdefyApp, lowdefyGlobal, menus, pageId, theme, user, _internal } = this.context._internal.lowdefy;
36
36
  const reviver = (_, value)=>{
37
37
  if (!type.isObject(value)) return value;
38
38
  if (Object.keys(value).length !== 1) return value;
@@ -54,9 +54,11 @@ let WebParser = class WebParser {
54
54
  eventLog: this.context.eventLog,
55
55
  globals: _internal.globals,
56
56
  home,
57
+ i18n,
57
58
  input: inputs[this.context.id],
58
59
  jsMap: this.context.jsMap,
59
60
  location: operatorLocation,
61
+ lowdefyApp,
60
62
  lowdefyGlobal,
61
63
  menus,
62
64
  methodName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/operators",
3
- "version": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -34,8 +34,8 @@
34
34
  "dist/*"
35
35
  ],
36
36
  "dependencies": {
37
- "@lowdefy/errors": "5.2.0",
38
- "@lowdefy/helpers": "5.2.0"
37
+ "@lowdefy/errors": "5.4.0",
38
+ "@lowdefy/helpers": "5.4.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@jest/globals": "28.1.3",