fiftyone.devicedetection.onpremise 4.3.2 → 4.3.8
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/build/FiftyOneDeviceDetectionHashV4-darwin-10.node +0 -0
- 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-10.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-10.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
- package/deviceDetectionOnPremise.js +9 -0
- package/deviceDetectionOnPremisePipelineBuilder.js +11 -0
- package/package.json +5 -5
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -102,6 +102,8 @@ class DeviceDetectionOnPremise extends Engine {
|
|
|
102
102
|
* rather than using the file provided directly. If not
|
|
103
103
|
* loading all data into memory, this is required for
|
|
104
104
|
* automatic data updates to occur.
|
|
105
|
+
* @param {string} options.tempDataDir The directory to use for the
|
|
106
|
+
* temporary data copy if 'createTempDataCopy' is set to true.
|
|
105
107
|
* @param {boolean} options.updateOnStart whether to download / update
|
|
106
108
|
* the datafile on initialisation
|
|
107
109
|
* @param {boolean} options.usePredictiveGraph If true, the engine will
|
|
@@ -130,6 +132,7 @@ class DeviceDetectionOnPremise extends Engine {
|
|
|
130
132
|
pollingInterval,
|
|
131
133
|
updateTimeMaximumRandomisation,
|
|
132
134
|
createTempDataCopy,
|
|
135
|
+
tempDataDir,
|
|
133
136
|
updateOnStart = false,
|
|
134
137
|
usePredictiveGraph = true,
|
|
135
138
|
usePerformanceGraph = false
|
|
@@ -251,6 +254,12 @@ class DeviceDetectionOnPremise extends Engine {
|
|
|
251
254
|
config.setUseTempFile(true);
|
|
252
255
|
}
|
|
253
256
|
|
|
257
|
+
if (typeof tempDataDir === 'string') {
|
|
258
|
+
const tempDirs = new swigWrapper.VectorStringSwig();
|
|
259
|
+
tempDirs.add(tempDataDir);
|
|
260
|
+
config.setTempDirectories(tempDirs);
|
|
261
|
+
}
|
|
262
|
+
|
|
254
263
|
config.setReuseTempFile(reuseTempFile);
|
|
255
264
|
config.setUpdateMatchedUserAgent(updateMatchedUserAgent);
|
|
256
265
|
|
|
@@ -80,6 +80,13 @@ class DeviceDetectionOnPremisePipelineBuilder extends PipelineBuilder {
|
|
|
80
80
|
* This means that properties will always have values
|
|
81
81
|
* (i.e. no need to check .HasValue) but some may be inaccurate.
|
|
82
82
|
* By default, this is false.
|
|
83
|
+
* @param {boolean} options.createTempDataCopy If true, the engine will
|
|
84
|
+
* create a copy of the data file in a temporary location
|
|
85
|
+
* rather than using the file provided directly. If not
|
|
86
|
+
* loading all data into memory, this is required for
|
|
87
|
+
* automatic data updates to occur.
|
|
88
|
+
* @param {string} options.tempDataDir The directory to use for the
|
|
89
|
+
* temporary data copy if 'createTempDataCopy' is set to true.
|
|
83
90
|
* @param {boolean} options.usePredictiveGraph True, the engine will use
|
|
84
91
|
* the predictive optimized graph to in detections.
|
|
85
92
|
* @param {boolean} options.usePerformanceGraph True, the engine will use
|
|
@@ -104,6 +111,8 @@ class DeviceDetectionOnPremisePipelineBuilder extends PipelineBuilder {
|
|
|
104
111
|
drift,
|
|
105
112
|
difference,
|
|
106
113
|
allowUnmatched = false,
|
|
114
|
+
createTempDataCopy,
|
|
115
|
+
tempDataDir,
|
|
107
116
|
usePredictiveGraph = true,
|
|
108
117
|
usePerformanceGraph = false
|
|
109
118
|
}) {
|
|
@@ -135,6 +144,8 @@ class DeviceDetectionOnPremisePipelineBuilder extends PipelineBuilder {
|
|
|
135
144
|
difference,
|
|
136
145
|
allowUnmatched,
|
|
137
146
|
updateOnStart,
|
|
147
|
+
createTempDataCopy,
|
|
148
|
+
tempDataDir,
|
|
138
149
|
usePredictiveGraph,
|
|
139
150
|
usePerformanceGraph
|
|
140
151
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fiftyone.devicedetection.onpremise",
|
|
3
|
-
"version": "4.3.
|
|
3
|
+
"version": "4.3.8",
|
|
4
4
|
"description": "Device detection on-premise services for the 51Degrees Pipeline API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"Tung Pham <tung@51degrees.com> (https://51degrees.com)"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"fiftyone.devicedetection.shared": "^4.3.
|
|
26
|
-
"fiftyone.pipeline.core": "^4.3.
|
|
27
|
-
"fiftyone.pipeline.engines": "^4.3.
|
|
28
|
-
"fiftyone.pipeline.engines.fiftyone": "^4.3.
|
|
25
|
+
"fiftyone.devicedetection.shared": "^4.3.8",
|
|
26
|
+
"fiftyone.pipeline.core": "^4.3.6",
|
|
27
|
+
"fiftyone.pipeline.engines": "^4.3.6",
|
|
28
|
+
"fiftyone.pipeline.engines.fiftyone": "^4.3.6",
|
|
29
29
|
"n-readlines": "^1.0.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|