@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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
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.
package/dist/runClass.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
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 (e) {
73
- throw new Error(`Operator Error: ${operator}.${methodName} - ${e.message} Received: {"${operator}.${methodName}":${JSON.stringify(params)}} at ${location}.`);
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;
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
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.
package/dist/webParser.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright 2020-2022 Lowdefy, Inc
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: 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.0",
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": "jest --coverage --testTimeout=10000",
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.0"
43
+ "@lowdefy/helpers": "4.0.0-rc.1"
45
44
  },
46
45
  "devDependencies": {
47
- "@swc/cli": "0.1.57",
48
- "@swc/core": "1.2.194",
49
- "@swc/jest": "0.2.21",
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": "f6872d7ff6da421710096536fce7b2016ef8f35c"
56
+ "gitHead": "ecc4f16c19eede929eda177db524cf13a8053379"
57
57
  }