@rainbow-o23/n3 1.0.34 → 1.0.36

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/README.md CHANGED
@@ -588,8 +588,8 @@ step set. Additionally, nested transactions are also supported, which means Tran
588
588
  | `endpoints.SYSTEM.ENDPOINT.url` | string | | Endpoint URL. |
589
589
  | `endpoints.SYSTEM.ENDPOINT.headers` | string | | Endpoint request headers, use global headers if this parameter doesn't present.<br>Format follows `name=value[;name=value[...]]`. |
590
590
  | `endpoints.SYSTEM.global.headers` | string | | Endpoint system global request headers.<br>Format follows `name=value[;name=value[...]]`. |
591
- | `endpoints.SYSTEM.ENDPOINT.timeout` | string | | Endpoint request timeout, in seconds, use global timeout if this parameter doesn't present. |
592
- | `endpoints.SYSTEM.global.timeout` | string | -1 | Endpoint system global timeout, in seconds, `-1` represents no timeout. |
591
+ | `endpoints.SYSTEM.ENDPOINT.timeout` | number | | Endpoint request timeout, in seconds, use global timeout if this parameter doesn't present. |
592
+ | `endpoints.SYSTEM.global.timeout` | number | -1 | Endpoint system global timeout, in seconds, `-1` represents no timeout. |
593
593
 
594
594
  `SYSTEM` represents endpoint system, `ENDPOINT` represents endpoint url. For example:
595
595
 
package/index.cjs CHANGED
@@ -339,7 +339,7 @@ const createGlobalProxy = (ex) => {
339
339
  }
340
340
  });
341
341
  };
342
- const AvoidNames = ['global', 'process', 'eval', 'Function', 'require', 'module', 'exports'];
342
+ const AvoidNames = ['global', 'process', 'eval', 'Function'];
343
343
  const AvoidProxyObjects = [
344
344
  createGlobalProxy(() => {
345
345
  throw new n1.UncatchableError(ERR_PIPELINE_SNIPPET_CANNOT_USE_GLOBAL, 'Cannot use global in dynamic snippet.');
package/index.js CHANGED
@@ -337,7 +337,7 @@ const createGlobalProxy = (ex) => {
337
337
  }
338
338
  });
339
339
  };
340
- const AvoidNames = ['global', 'process', 'eval', 'Function', 'require', 'module', 'exports'];
340
+ const AvoidNames = ['global', 'process', 'eval', 'Function'];
341
341
  const AvoidProxyObjects = [
342
342
  createGlobalProxy(() => {
343
343
  throw new UncatchableError(ERR_PIPELINE_SNIPPET_CANNOT_USE_GLOBAL, 'Cannot use global in dynamic snippet.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rainbow-o23/n3",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "description": "o23 pipelines",
5
5
  "main": "index.cjs",
6
6
  "module": "index.js",
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/InsureMO/rainbow-o23/issues"
22
22
  },
23
23
  "dependencies": {
24
- "@rainbow-o23/n1": "1.0.34",
24
+ "@rainbow-o23/n1": "1.0.36",
25
25
  "@theinternetfolks/snowflake": "^1.3.0",
26
26
  "node-fetch": "2.6.7",
27
27
  "typeorm": "^0.3.17"
@@ -25,7 +25,7 @@ const createGlobalProxy = (ex: () => never) => {
25
25
  }
26
26
  });
27
27
  };
28
- const AvoidNames = ['global', 'process', 'eval', 'Function', 'require', 'module', 'exports'];
28
+ const AvoidNames = ['global', 'process', 'eval', 'Function'];
29
29
  const AvoidProxyObjects = [
30
30
  createGlobalProxy(() => {
31
31
  throw new UncatchableError(ERR_PIPELINE_SNIPPET_CANNOT_USE_GLOBAL, 'Cannot use global in dynamic snippet.');
@@ -39,15 +39,6 @@ const AvoidProxyObjects = [
39
39
  createGlobalProxy(() => {
40
40
  throw new UncatchableError(ERR_PIPELINE_SNIPPET_CANNOT_USE_FUNCTION, 'Cannot use Function in dynamic snippet.');
41
41
  })
42
- // createGlobalProxy(() => {
43
- // throw new UncatchableError(ERR_PIPELINE_SNIPPET_CANNOT_USE_REQUIRE, 'Cannot use require in dynamic snippet.');
44
- // }),
45
- // createGlobalProxy(() => {
46
- // throw new UncatchableError(ERR_PIPELINE_SNIPPET_CANNOT_USE_MODULE, 'Cannot use module in dynamic snippet.');
47
- // }),
48
- // createGlobalProxy(() => {
49
- // throw new UncatchableError(ERR_PIPELINE_SNIPPET_CANNOT_USE_EXPORTS, 'Cannot use exports in dynamic snippet.');
50
- // })
51
42
  ];
52
43
 
53
44
  export class Utils {