fiftyone.pipeline.cloudrequestengine 4.4.84 → 4.4.85

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,23 +1,23 @@
1
- /* *********************************************************************
2
- * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3
- * Copyright 2023 51 Degrees Mobile Experts Limited, Davidson House,
4
- * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
5
- *
6
- * This Original Work is licensed under the European Union Public Licence
7
- * (EUPL) v.1.2 and is subject to its terms as set out below.
8
- *
9
- * If a copy of the EUPL was not distributed with this file, You can obtain
10
- * one at https://opensource.org/licenses/EUPL-1.2.
11
- *
12
- * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13
- * amended by the European Commission) shall be deemed incompatible for
14
- * the purposes of the Work and the provisions of the compatibility
15
- * clause in Article 5 of the EUPL shall not apply.
16
- *
17
- * If using the Work as, or as part of, a network application, by
18
- * including the attribution notice(s) required under Article 5 of the EUPL
19
- * in the end user terms of the application under an appropriate heading,
20
- * such notice(s) shall fulfill the requirements of that article.
1
+ /* *********************************************************************
2
+ * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3
+ * Copyright 2023 51 Degrees Mobile Experts Limited, Davidson House,
4
+ * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
5
+ *
6
+ * This Original Work is licensed under the European Union Public Licence
7
+ * (EUPL) v.1.2 and is subject to its terms as set out below.
8
+ *
9
+ * If a copy of the EUPL was not distributed with this file, You can obtain
10
+ * one at https://opensource.org/licenses/EUPL-1.2.
11
+ *
12
+ * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13
+ * amended by the European Commission) shall be deemed incompatible for
14
+ * the purposes of the Work and the provisions of the compatibility
15
+ * clause in Article 5 of the EUPL shall not apply.
16
+ *
17
+ * If using the Work as, or as part of, a network application, by
18
+ * including the attribution notice(s) required under Article 5 of the EUPL
19
+ * in the end user terms of the application under an appropriate heading,
20
+ * such notice(s) shall fulfill the requirements of that article.
21
21
  * ********************************************************************* */
22
22
 
23
23
  const util = require('util');
@@ -131,7 +131,7 @@ class CloudRequestEngine extends Engine {
131
131
  self.errors = errors;
132
132
  if (self.pipelines) {
133
133
  // Log error on all pipelines engine is attached to
134
- self.pipelines.map(function (pipeline) {
134
+ self.pipelines.forEach(function (pipeline) {
135
135
  pipeline.log('error', {
136
136
  source: 'CloudRequestEngine',
137
137
  message: self.errors
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiftyone.pipeline.cloudrequestengine",
3
- "version": "4.4.84",
3
+ "version": "4.4.85",
4
4
  "description": "Cloud request engine for the 51Degrees Pipeline API",
5
5
  "keywords": [
6
6
  "51degrees",
@@ -18,12 +18,6 @@
18
18
  },
19
19
  "author": "51Degrees Engineering <engineering@51degrees.com>",
20
20
  "devDependencies": {
21
- "eslint": "^6.8.0",
22
- "eslint-config-standard": "^14.1.1",
23
- "eslint-plugin-import": "^2.28.1",
24
- "eslint-plugin-node": "^11.1.0",
25
- "eslint-plugin-promise": "^4.3.1",
26
- "eslint-plugin-standard": "^4.1.0",
27
21
  "jest": "^27.5.1"
28
22
  },
29
23
  "dependencies": {
@@ -1,23 +1,23 @@
1
- /* *********************************************************************
2
- * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3
- * Copyright 2023 51 Degrees Mobile Experts Limited, Davidson House,
4
- * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
5
- *
6
- * This Original Work is licensed under the European Union Public Licence
7
- * (EUPL) v.1.2 and is subject to its terms as set out below.
8
- *
9
- * If a copy of the EUPL was not distributed with this file, You can obtain
10
- * one at https://opensource.org/licenses/EUPL-1.2.
11
- *
12
- * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13
- * amended by the European Commission) shall be deemed incompatible for
14
- * the purposes of the Work and the provisions of the compatibility
15
- * clause in Article 5 of the EUPL shall not apply.
16
- *
17
- * If using the Work as, or as part of, a network application, by
18
- * including the attribution notice(s) required under Article 5 of the EUPL
19
- * in the end user terms of the application under an appropriate heading,
20
- * such notice(s) shall fulfill the requirements of that article.
1
+ /* *********************************************************************
2
+ * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3
+ * Copyright 2023 51 Degrees Mobile Experts Limited, Davidson House,
4
+ * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
5
+ *
6
+ * This Original Work is licensed under the European Union Public Licence
7
+ * (EUPL) v.1.2 and is subject to its terms as set out below.
8
+ *
9
+ * If a copy of the EUPL was not distributed with this file, You can obtain
10
+ * one at https://opensource.org/licenses/EUPL-1.2.
11
+ *
12
+ * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13
+ * amended by the European Commission) shall be deemed incompatible for
14
+ * the purposes of the Work and the provisions of the compatibility
15
+ * clause in Article 5 of the EUPL shall not apply.
16
+ *
17
+ * If using the Work as, or as part of, a network application, by
18
+ * including the attribution notice(s) required under Article 5 of the EUPL
19
+ * in the end user terms of the application under an appropriate heading,
20
+ * such notice(s) shall fulfill the requirements of that article.
21
21
  * ********************************************************************* */
22
22
 
23
23
  const path = require('path');
@@ -25,13 +25,15 @@ const CloudRequestEngine = require('../cloudRequestEngine');
25
25
 
26
26
  // CloudEngine does not use relative path to import module so update the module
27
27
  // lookups path here via setting of NODE_PATH environment variable.
28
- process.env.NODE_PATH = __dirname + '/../..' + path.delimiter + process.env.NODE_PATH;
28
+ const parentDir = path.resolve(__dirname, '../..');
29
+ process.env.NODE_PATH = parentDir + path.delimiter + process.env.NODE_PATH;
29
30
  require('module').Module._initPaths();
30
31
 
31
- const CloudEngine = require(__dirname + '/../cloudEngine');
32
- const PipelineBuilder = require(
33
- __dirname + '/../../fiftyone.pipeline.core/pipelineBuilder'
34
- );
32
+ const cloudEnginePath = path.resolve(__dirname, '../cloudEngine');
33
+ const pipelineBuilderPath = path.resolve(__dirname, '../../fiftyone.pipeline.core/pipelineBuilder');
34
+
35
+ const CloudEngine = require(cloudEnginePath);
36
+ const PipelineBuilder = require(pipelineBuilderPath);
35
37
 
36
38
  // Invalid resource key
37
39
  const testResourceKey = 'AAAAAAAAA';
@@ -1,23 +1,23 @@
1
- /* *********************************************************************
2
- * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3
- * Copyright 2023 51 Degrees Mobile Experts Limited, Davidson House,
4
- * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
5
- *
6
- * This Original Work is licensed under the European Union Public Licence
7
- * (EUPL) v.1.2 and is subject to its terms as set out below.
8
- *
9
- * If a copy of the EUPL was not distributed with this file, You can obtain
10
- * one at https://opensource.org/licenses/EUPL-1.2.
11
- *
12
- * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13
- * amended by the European Commission) shall be deemed incompatible for
14
- * the purposes of the Work and the provisions of the compatibility
15
- * clause in Article 5 of the EUPL shall not apply.
16
- *
17
- * If using the Work as, or as part of, a network application, by
18
- * including the attribution notice(s) required under Article 5 of the EUPL
19
- * in the end user terms of the application under an appropriate heading,
20
- * such notice(s) shall fulfill the requirements of that article.
1
+ /* *********************************************************************
2
+ * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3
+ * Copyright 2023 51 Degrees Mobile Experts Limited, Davidson House,
4
+ * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
5
+ *
6
+ * This Original Work is licensed under the European Union Public Licence
7
+ * (EUPL) v.1.2 and is subject to its terms as set out below.
8
+ *
9
+ * If a copy of the EUPL was not distributed with this file, You can obtain
10
+ * one at https://opensource.org/licenses/EUPL-1.2.
11
+ *
12
+ * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13
+ * amended by the European Commission) shall be deemed incompatible for
14
+ * the purposes of the Work and the provisions of the compatibility
15
+ * clause in Article 5 of the EUPL shall not apply.
16
+ *
17
+ * If using the Work as, or as part of, a network application, by
18
+ * including the attribution notice(s) required under Article 5 of the EUPL
19
+ * in the end user terms of the application under an appropriate heading,
20
+ * such notice(s) shall fulfill the requirements of that article.
21
21
  * ********************************************************************* */
22
22
 
23
23
  const util = require('util');
@@ -25,22 +25,21 @@ const path = require('path');
25
25
 
26
26
  // CloudEngine does not use relative path to import module so update the module
27
27
  // lookups path here via setting of NODE_PATH environment variable.
28
- process.env.NODE_PATH = __dirname + '/../..' + path.delimiter + process.env.NODE_PATH;
28
+ const parentDir = path.resolve(__dirname, '../..');
29
+ process.env.NODE_PATH = parentDir + path.delimiter + process.env.NODE_PATH;
29
30
  require('module').Module._initPaths();
30
31
 
31
- const CloudEngine = require(__dirname + '/../cloudEngine');
32
- const PipelineBuilder = require(
33
- __dirname + '/../../fiftyone.pipeline.core/pipelineBuilder'
34
- );
35
- const AspectDataDictionary = require(
36
- __dirname + '/../../fiftyone.pipeline.engines/aspectDataDictionary'
37
- );
38
- const coreErrorMessages = require(
39
- __dirname + '/../../fiftyone.pipeline.core/errorMessages'
40
- );
41
- const engineErrorMessages = require(
42
- __dirname + '/../../fiftyone.pipeline.engines/errorMessages'
43
- );
32
+ const cloudEnginePath = path.resolve(__dirname, '../cloudEngine');
33
+ const pipelineBuilderPath = path.resolve(__dirname, '../../fiftyone.pipeline.core/pipelineBuilder');
34
+ const aspectDataDictionaryPath = path.resolve(__dirname, '../../fiftyone.pipeline.engines/aspectDataDictionary');
35
+ const coreErrorMessagesPath = path.resolve(__dirname, '../../fiftyone.pipeline.core/errorMessages');
36
+ const engineErrorMessagesPath = path.resolve(__dirname, '../../fiftyone.pipeline.engines/errorMessages');
37
+
38
+ const CloudEngine = require(cloudEnginePath);
39
+ const PipelineBuilder = require(pipelineBuilderPath);
40
+ const AspectDataDictionary = require(aspectDataDictionaryPath);
41
+ const coreErrorMessages = require(coreErrorMessagesPath);
42
+ const engineErrorMessages = require(engineErrorMessagesPath);
44
43
 
45
44
  // Test cloud engine class
46
45
  class TestCloudEngine extends CloudEngine {
@@ -28,12 +28,12 @@ const CloudRequestError = require('../cloudRequestError');
28
28
 
29
29
  // CloudEngine does not use relative path to import module so update the module
30
30
  // lookups path here via setting of NODE_PATH environment variable.
31
- process.env.NODE_PATH = __dirname + '/../..' + path.delimiter + process.env.NODE_PATH;
31
+ const parentDir = path.resolve(__dirname, '../..');
32
+ process.env.NODE_PATH = parentDir + path.delimiter + process.env.NODE_PATH;
32
33
  require('module').Module._initPaths();
33
34
 
34
- const PipelineBuilder = require(
35
- __dirname + '/../../fiftyone.pipeline.core/pipelineBuilder'
36
- );
35
+ const pipelineBuilderPath = path.resolve(__dirname, '../../fiftyone.pipeline.core/pipelineBuilder');
36
+ const PipelineBuilder = require(pipelineBuilderPath);
37
37
 
38
38
  // Invalid resource key
39
39
  const testResourceKey = 'AAAAAAAAAAAA';
@@ -26,13 +26,16 @@ const { fail } = require('assert');
26
26
 
27
27
  // CloudEngine does not use relative path to import module so update the module
28
28
  // lookups path here via setting of NODE_PATH environment variable.
29
- process.env.NODE_PATH = __dirname + '/../..' + path.delimiter + process.env.NODE_PATH;
29
+ const parentDir = path.resolve(__dirname, '../..');
30
+ process.env.NODE_PATH = parentDir + path.delimiter + process.env.NODE_PATH;
30
31
  require('module').Module._initPaths();
31
32
 
32
- const CloudEngine = require(__dirname + '/../cloudEngine');
33
- const PipelineBuilder = require(
34
- __dirname + '/../../fiftyone.pipeline.core/pipelineBuilder'
35
- );
33
+ const cloudEnginePath = path.resolve(__dirname, '..', 'cloudEngine');
34
+ const pipelineBuilderPath = path.resolve(__dirname, '..', '..', 'fiftyone.pipeline.core', 'pipelineBuilder');
35
+
36
+ const CloudEngine = require(cloudEnginePath);
37
+ const PipelineBuilder = require(pipelineBuilderPath);
38
+
36
39
  const myResourceKey = process.env.RESOURCE_KEY || '!!YOUR_RESOURCE_KEY!!';
37
40
 
38
41
  /**
@@ -27,7 +27,8 @@ const { default: each } = require('jest-each');
27
27
 
28
28
  // CloudEngine does not use relative path to import module so update the module
29
29
  // lookups path here via setting of NODE_PATH environment variable.
30
- process.env.NODE_PATH = __dirname + '/../..' + path.delimiter + process.env.NODE_PATH;
30
+ const parentDir = path.resolve(__dirname, '../..');
31
+ process.env.NODE_PATH = parentDir + path.delimiter + process.env.NODE_PATH;
31
32
  require('module').Module._initPaths();
32
33
 
33
34
  const noCheck = function () {};
package/.eslintrc DELETED
@@ -1,51 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "commonjs": true,
5
- "es6": true
6
- },
7
- "plugins": [
8
- "jsdoc"
9
- ],
10
- "extends": [
11
- "standard"
12
- ],
13
- "globals": {
14
- "Atomics": "readonly",
15
- "SharedArrayBuffer": "readonly",
16
- "test": true,
17
- "jest": true,
18
- "expect": true
19
- },
20
- "parserOptions": {
21
- "ecmaVersion": 2018
22
- },
23
- "rules": {
24
- "node/no-deprecated-api": "off",
25
- "no-throw-literal": "off",
26
- "no-path-concat": "off",
27
- "no-prototype-builtins": "off",
28
- "no-eval": "off",
29
- "semi": [
30
- 2,
31
- "always"
32
- ],
33
- "jsdoc/check-alignment": 1,
34
- "jsdoc/check-param-names": 1,
35
- "jsdoc/check-tag-names": 1,
36
- "jsdoc/check-types": 1,
37
- "jsdoc/implements-on-classes": 1,
38
- "jsdoc/newline-after-description": 1,
39
- "jsdoc/require-description": 1,
40
- "jsdoc/require-jsdoc": 1,
41
- "jsdoc/require-param": 1,
42
- "jsdoc/require-param-description": 1,
43
- "jsdoc/require-param-name": 1,
44
- "jsdoc/require-param-type": 1,
45
- "jsdoc/require-returns": 1,
46
- "jsdoc/require-returns-check": 1,
47
- "jsdoc/require-returns-description": 1,
48
- "jsdoc/require-returns-type": 1,
49
- "jsdoc/valid-types": 1
50
- }
51
- }