fiftyone.devicedetection.onpremise 4.4.115 → 4.4.117
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-18.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-darwin-20.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-win32-18.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-win32-20.node +0 -0
- package/deviceDetectionOnPremise.js +10 -9
- package/deviceDetectionOnPremisePipelineBuilder.js +11 -8
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -227,9 +227,9 @@ class DeviceDetectionOnPremise extends Engine {
|
|
|
227
227
|
* temporary data copy if 'createTempDataCopy' is set to true.
|
|
228
228
|
* @param {boolean} options.updateOnStart whether to download / update
|
|
229
229
|
* the datafile on initialisation
|
|
230
|
-
* @param {boolean} options.usePredictiveGraph If true, the engine will
|
|
230
|
+
* @param {boolean} options.usePredictiveGraph [deprecated] If true, the engine will
|
|
231
231
|
* use predictive optimized graph in detections.
|
|
232
|
-
* @param {boolean} options.usePerformanceGraph If true, the engine will
|
|
232
|
+
* @param {boolean} options.usePerformanceGraph [deprecated] If true, the engine will
|
|
233
233
|
* use performance optimized graph in detections.
|
|
234
234
|
*/
|
|
235
235
|
constructor (
|
|
@@ -256,14 +256,19 @@ class DeviceDetectionOnPremise extends Engine {
|
|
|
256
256
|
updateTimeMaximumRandomisation,
|
|
257
257
|
createTempDataCopy,
|
|
258
258
|
tempDataDir = os.tmpdir(),
|
|
259
|
-
updateOnStart = false
|
|
260
|
-
usePredictiveGraph = true,
|
|
261
|
-
usePerformanceGraph = false
|
|
259
|
+
updateOnStart = false
|
|
262
260
|
}) {
|
|
263
261
|
let swigWrapper;
|
|
264
262
|
let swigWrapperType;
|
|
265
263
|
let dataFileType;
|
|
266
264
|
|
|
265
|
+
const deprecatedOptions = ['usePredictiveGraph', 'usePerformanceGraph'];
|
|
266
|
+
for (const option of deprecatedOptions) {
|
|
267
|
+
if (arguments[0].hasOwnProperty(option)) {
|
|
268
|
+
console.warn(`{${option}} option is deprecated and has no effect on the configuration`);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
267
272
|
if (typeof cache !== 'undefined') {
|
|
268
273
|
throw errorMessages.cacheNotSupport;
|
|
269
274
|
}
|
|
@@ -407,10 +412,6 @@ class DeviceDetectionOnPremise extends Engine {
|
|
|
407
412
|
|
|
408
413
|
config.setConcurrency(concurrency);
|
|
409
414
|
|
|
410
|
-
config.setUsePredictiveGraph(usePredictiveGraph);
|
|
411
|
-
|
|
412
|
-
config.setUsePerformanceGraph(usePerformanceGraph);
|
|
413
|
-
|
|
414
415
|
// This should always be set to 'false' for on-premise
|
|
415
416
|
config.setUseUpperPrefixHeaders(false);
|
|
416
417
|
|
|
@@ -94,9 +94,9 @@ class DeviceDetectionOnPremisePipelineBuilder extends PipelineBuilder {
|
|
|
94
94
|
* automatic data updates to occur.
|
|
95
95
|
* @param {string} options.tempDataDir The directory to use for the
|
|
96
96
|
* temporary data copy if 'createTempDataCopy' is set to true.
|
|
97
|
-
* @param {boolean} options.usePredictiveGraph True, the engine will use
|
|
97
|
+
* @param {boolean} options.usePredictiveGraph [deprecated] True, the engine will use
|
|
98
98
|
* the predictive optimized graph to in detections.
|
|
99
|
-
* @param {boolean} options.usePerformanceGraph True, the engine will use
|
|
99
|
+
* @param {boolean} options.usePerformanceGraph [deprecated] True, the engine will use
|
|
100
100
|
* the performance optimized graph to in detections.
|
|
101
101
|
*
|
|
102
102
|
* @param options.dataFileUpdateService
|
|
@@ -125,12 +125,17 @@ class DeviceDetectionOnPremisePipelineBuilder extends PipelineBuilder {
|
|
|
125
125
|
difference,
|
|
126
126
|
allowUnmatched = false,
|
|
127
127
|
createTempDataCopy,
|
|
128
|
-
tempDataDir
|
|
129
|
-
usePredictiveGraph = true,
|
|
130
|
-
usePerformanceGraph = false
|
|
128
|
+
tempDataDir
|
|
131
129
|
}) {
|
|
132
130
|
super(...arguments);
|
|
133
131
|
|
|
132
|
+
const deprecatedOptions = ['usePredictiveGraph', 'usePerformanceGraph'];
|
|
133
|
+
for (const option of deprecatedOptions) {
|
|
134
|
+
if (arguments[0].hasOwnProperty(option)) {
|
|
135
|
+
console.warn(`{${option}} option is deprecated and has no effect on the configuration`);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
134
139
|
// Check if share usage enabled and add it to the pipeline if so
|
|
135
140
|
|
|
136
141
|
if (shareUsage) {
|
|
@@ -165,9 +170,7 @@ class DeviceDetectionOnPremisePipelineBuilder extends PipelineBuilder {
|
|
|
165
170
|
allowUnmatched,
|
|
166
171
|
updateOnStart,
|
|
167
172
|
createTempDataCopy,
|
|
168
|
-
tempDataDir
|
|
169
|
-
usePredictiveGraph,
|
|
170
|
-
usePerformanceGraph
|
|
173
|
+
tempDataDir
|
|
171
174
|
}));
|
|
172
175
|
}
|
|
173
176
|
}
|