fiftyone.devicedetection.onpremise 4.4.15 → 4.4.17

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.
@@ -54,8 +54,8 @@ const initProperties = function (metadata) {
54
54
  const propertiesInternal = metadata.getProperties();
55
55
  const properties = {};
56
56
 
57
- for (var i = 0; i < propertiesInternal.getSize(); i++) {
58
- var property = propertiesInternal.getByIndex(i);
57
+ for (let i = 0; i < propertiesInternal.getSize(); i++) {
58
+ const property = propertiesInternal.getByIndex(i);
59
59
  if (property.getAvailable()) {
60
60
  properties[property.getName().toLowerCase()] =
61
61
  new Property(property, metadata);
@@ -290,7 +290,7 @@ class DeviceDetectionOnPremise extends Engine {
290
290
  } catch (err) {
291
291
  // Couldn't load the native module so we need to give the
292
292
  // user some information.
293
- var modules = {};
293
+ const modules = {};
294
294
  // Go through all the available modules to build a list of
295
295
  // supported platform/Node version combinations.
296
296
  fs.readdirSync(moduleDir).forEach(file => {
@@ -304,7 +304,7 @@ class DeviceDetectionOnPremise extends Engine {
304
304
  });
305
305
 
306
306
  let availableModules = '';
307
- for (var platform in modules) {
307
+ for (const platform in modules) {
308
308
  if (availableModules.length > 0) {
309
309
  availableModules = availableModules.concat(', ');
310
310
  }
@@ -337,9 +337,9 @@ class DeviceDetectionOnPremise extends Engine {
337
337
  });
338
338
  }
339
339
 
340
- var requiredProperties = new swigWrapper.RequiredPropertiesConfigSwig(propertiesList);
340
+ const requiredProperties = new swigWrapper.RequiredPropertiesConfigSwig(propertiesList);
341
341
 
342
- var config = new swigWrapper['Config' + swigWrapperType + 'Swig']();
342
+ const config = new swigWrapper['Config' + swigWrapperType + 'Swig']();
343
343
 
344
344
  switch (performanceProfile) {
345
345
  case 'LowMemory':
@@ -468,14 +468,14 @@ class DeviceDetectionOnPremise extends Engine {
468
468
  const dataFileSettings = {
469
469
  flowElement: this,
470
470
  verifyMD5: true,
471
- autoUpdate: autoUpdate,
472
- updateOnStart: updateOnStart,
471
+ autoUpdate,
472
+ updateOnStart,
473
473
  decompress: true,
474
474
  path: dataFilePath,
475
- download: download,
476
- fileSystemWatcher: fileSystemWatcher,
477
- pollingInterval: pollingInterval,
478
- updateTimeMaximumRandomisation: updateTimeMaximumRandomisation
475
+ download,
476
+ fileSystemWatcher,
477
+ pollingInterval,
478
+ updateTimeMaximumRandomisation
479
479
  };
480
480
 
481
481
  dataFileSettings.getDatePublished = function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiftyone.devicedetection.onpremise",
3
- "version": "4.4.15",
3
+ "version": "4.4.17",
4
4
  "description": "Device detection on-premise services for the 51Degrees Pipeline API",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -22,24 +22,24 @@
22
22
  "Tung Pham <tung@51degrees.com> (https://51degrees.com)"
23
23
  ],
24
24
  "dependencies": {
25
- "fiftyone.devicedetection.shared": "^4.4.15",
26
- "fiftyone.pipeline.core": "^4.4.7",
27
- "fiftyone.pipeline.engines": "^4.4.7",
28
- "fiftyone.pipeline.engines.fiftyone": "^4.4.7",
25
+ "fiftyone.devicedetection.shared": "^4.4.16",
26
+ "fiftyone.pipeline.core": "^4.4.8",
27
+ "fiftyone.pipeline.engines": "^4.4.8",
28
+ "fiftyone.pipeline.engines.fiftyone": "^4.4.8",
29
29
  "js-yaml": "^4.1.0",
30
30
  "n-readlines": "^1.0.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "^15.12.2",
34
- "eslint": "^8.16.0",
35
- "eslint-config-standard": "^17.0.0",
36
- "eslint-plugin-import": "^2.26.0",
33
+ "@types/node": "^15.14.9",
34
+ "eslint": "^8.43.0",
35
+ "eslint-config-standard": "^17.1.0",
36
+ "eslint-plugin-import": "^2.27.5",
37
+ "eslint-plugin-jest": "^26.9.0",
37
38
  "eslint-plugin-jsdoc": "^38.1.6",
39
+ "eslint-plugin-n": "^15.7.0",
38
40
  "eslint-plugin-node": "^11.1.0",
39
- "eslint-plugin-promise": "^6.0.0",
40
- "eslint-plugin-jest": "^26.2.2",
41
- "eslint-plugin-n": "^15.0.0",
42
- "jest": "^28.1.0",
41
+ "eslint-plugin-promise": "^6.1.1",
42
+ "jest": "^28.1.3",
43
43
  "jest-junit": "^13.2.0"
44
44
  },
45
45
  "license": "EUPL-1.2",
package/swigHelpers.js CHANGED
@@ -30,7 +30,7 @@ module.exports = {
30
30
  vectorToArray: function (vector) {
31
31
  const output = [];
32
32
 
33
- for (var i = 0; i < vector.size(); i++) {
33
+ for (let i = 0; i < vector.size(); i++) {
34
34
  output.push(vector.get(i));
35
35
  }
36
36