@lowdefy/operators 4.0.0-rc.0 → 4.0.0-rc.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/getFromArray.js +1 -1
- package/dist/getFromObject.js +1 -1
- package/dist/index.js +1 -1
- package/dist/nodeParser.js +1 -1
- package/dist/runClass.js +3 -3
- package/dist/runInstance.js +1 -1
- package/dist/webParser.js +2 -2
- package/package.json +8 -8
package/dist/getFromArray.js
CHANGED
package/dist/getFromObject.js
CHANGED
package/dist/index.js
CHANGED
package/dist/nodeParser.js
CHANGED
package/dist/runClass.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -69,8 +69,8 @@ const runClass = ({ location , meta , methodName , operator , params , functions
|
|
|
69
69
|
}
|
|
70
70
|
try {
|
|
71
71
|
return functions[methodName](...args);
|
|
72
|
-
} catch (
|
|
73
|
-
throw new Error(`Operator Error: ${operator}.${methodName} - ${
|
|
72
|
+
} catch (e1) {
|
|
73
|
+
throw new Error(`Operator Error: ${operator}.${methodName} - ${e1.message} Received: {"${operator}.${methodName}":${JSON.stringify(params)}} at ${location}.`);
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
export default runClass;
|
package/dist/runInstance.js
CHANGED
package/dist/webParser.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -61,7 +61,7 @@ let WebParser = class WebParser {
|
|
|
61
61
|
requests: this.context.requests,
|
|
62
62
|
runtime: 'browser',
|
|
63
63
|
state: this.context.state,
|
|
64
|
-
user
|
|
64
|
+
user
|
|
65
65
|
});
|
|
66
66
|
return res;
|
|
67
67
|
} catch (e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/operators",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
"build": "swc src --out-dir dist --config-file ../../.swcrc --delete-dir-on-start",
|
|
38
38
|
"clean": "rm -rf dist",
|
|
39
39
|
"prepublishOnly": "pnpm build",
|
|
40
|
-
"test": "
|
|
41
|
-
"test:watch": "jest --coverage --watch"
|
|
40
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --testTimeout=10000"
|
|
42
41
|
},
|
|
43
42
|
"dependencies": {
|
|
44
|
-
"@lowdefy/helpers": "4.0.0-rc.
|
|
43
|
+
"@lowdefy/helpers": "4.0.0-rc.1"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@swc/
|
|
49
|
-
"@swc/
|
|
46
|
+
"@jest/globals": "28.1.0",
|
|
47
|
+
"@swc/cli": "0.1.59",
|
|
48
|
+
"@swc/core": "1.3.24",
|
|
49
|
+
"@swc/jest": "0.2.24",
|
|
50
50
|
"jest": "28.1.0",
|
|
51
51
|
"jest-environment-jsdom": "28.1.0"
|
|
52
52
|
},
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "ecc4f16c19eede929eda177db524cf13a8053379"
|
|
57
57
|
}
|