fiftyone.devicedetection.onpremise 4.4.15 → 4.4.16
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/deviceDetectionOnPremise.js +12 -12
- package/package.json +9 -9
- package/swigHelpers.js +1 -1
- package/build/FiftyOneDeviceDetectionHashV4-darwin-12.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-darwin-14.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-darwin-16.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-linux-12.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-linux-14.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-linux-16.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-win32-12.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-win32-14.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-win32-16.node +0 -0
|
@@ -54,8 +54,8 @@ const initProperties = function (metadata) {
|
|
|
54
54
|
const propertiesInternal = metadata.getProperties();
|
|
55
55
|
const properties = {};
|
|
56
56
|
|
|
57
|
-
for (
|
|
58
|
-
|
|
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
|
-
|
|
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 (
|
|
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
|
-
|
|
340
|
+
const requiredProperties = new swigWrapper.RequiredPropertiesConfigSwig(propertiesList);
|
|
341
341
|
|
|
342
|
-
|
|
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
|
|
472
|
-
updateOnStart
|
|
471
|
+
autoUpdate,
|
|
472
|
+
updateOnStart,
|
|
473
473
|
decompress: true,
|
|
474
474
|
path: dataFilePath,
|
|
475
|
-
download
|
|
476
|
-
fileSystemWatcher
|
|
477
|
-
pollingInterval
|
|
478
|
-
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.
|
|
3
|
+
"version": "4.4.16",
|
|
4
4
|
"description": "Device detection on-premise services for the 51Degrees Pipeline API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -30,16 +30,16 @@
|
|
|
30
30
|
"n-readlines": "^1.0.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@types/node": "^15.
|
|
34
|
-
"eslint": "^8.
|
|
35
|
-
"eslint-config-standard": "^17.
|
|
36
|
-
"eslint-plugin-import": "^2.
|
|
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.
|
|
40
|
-
"
|
|
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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|