fiftyone.devicedetection.onpremise
Advanced tools
Comparing version 4.3.9 to 4.3.11
@@ -36,2 +36,3 @@ /* ********************************************************************* | ||
const util = require('util'); | ||
const constants = require('./constants'); | ||
@@ -351,3 +352,3 @@ /** | ||
category: 'Device metrics', | ||
description: 'Consists of four components separated by a hyphen symbol: Hardware-Platform-Browser-IsCrawler where each Component represents an ID of the corresponding Profile.' | ||
description: constants.deviceIdDescription | ||
}; | ||
@@ -359,3 +360,3 @@ | ||
category: 'Device metrics', | ||
description: 'The matched User-Agents.' | ||
description: constants.userAgentsDescription | ||
}; | ||
@@ -367,5 +368,12 @@ | ||
category: 'Device metrics', | ||
description: 'Used when detection method is not Exact or None. This is an integer value and the larger the value the less confident the detector is in this result.' | ||
description: constants.differenceDescription | ||
}; | ||
current.properties.method = { | ||
name: 'Method', | ||
type: 'string', | ||
category: 'Device metrics', | ||
description: constants.methodDescription | ||
}; | ||
if (swigWrapperType === 'Hash') { | ||
@@ -376,3 +384,3 @@ current.properties.matchedNodes = { | ||
category: 'Device metrics', | ||
description: 'Indicates the number of hash nodes matched within the evidence.' | ||
description: constants.matchedNodesDescription | ||
}; | ||
@@ -384,4 +392,11 @@ | ||
category: 'Device metrics', | ||
description: 'Total difference in character positions where the substrings hashes were found away from where they were expected.' | ||
description: constants.driftDescription | ||
}; | ||
current.properties.iterations = { | ||
name: 'Iterations', | ||
type: 'int', | ||
category: 'Device metrics', | ||
description: constants.iterationsDescription | ||
}; | ||
} | ||
@@ -388,0 +403,0 @@ }); |
{ | ||
"name": "fiftyone.devicedetection.onpremise", | ||
"version": "4.3.9", | ||
"version": "4.3.11", | ||
"description": "Device detection on-premise services for the 51Degrees Pipeline API", | ||
@@ -25,6 +25,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"fiftyone.devicedetection.shared": "^4.3.9", | ||
"fiftyone.pipeline.core": "^4.3.6", | ||
"fiftyone.pipeline.engines": "^4.3.6", | ||
"fiftyone.pipeline.engines.fiftyone": "^4.3.6", | ||
"fiftyone.devicedetection.shared": "^4.3.11", | ||
"fiftyone.pipeline.core": "^4.3.7", | ||
"fiftyone.pipeline.engines": "^4.3.7", | ||
"fiftyone.pipeline.engines.fiftyone": "^4.3.7", | ||
"n-readlines": "^1.0.1" | ||
@@ -31,0 +31,0 @@ }, |
@@ -30,2 +30,4 @@ /* ********************************************************************* | ||
const constants = require('./constants'); | ||
/** | ||
@@ -101,3 +103,17 @@ * @typedef {import('fiftyone.pipeline.core').FlowElement} FlowElement | ||
if (key === 'method') { | ||
result.value = this.swigResults.getMethod(); | ||
const method = this.swigResults.getMethod(); | ||
switch (method) { | ||
case 1: | ||
result.value = constants.performance; | ||
break; | ||
case 2: | ||
result.value = constants.combined; | ||
break; | ||
case 3: | ||
result.value = constants.predictive; | ||
break; | ||
default: | ||
result.value = constants.none; | ||
break; | ||
} | ||
@@ -104,0 +120,0 @@ return result; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22
970
12551755