fiftyone.devicedetection 4.4.116 → 4.4.118

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.
@@ -1,23 +1,23 @@
1
- /* *********************************************************************
2
- * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3
- * Copyright 2023 51 Degrees Mobile Experts Limited, Davidson House,
4
- * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
5
- *
6
- * This Original Work is licensed under the European Union Public Licence
7
- * (EUPL) v.1.2 and is subject to its terms as set out below.
8
- *
9
- * If a copy of the EUPL was not distributed with this file, You can obtain
10
- * one at https://opensource.org/licenses/EUPL-1.2.
11
- *
12
- * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13
- * amended by the European Commission) shall be deemed incompatible for
14
- * the purposes of the Work and the provisions of the compatibility
15
- * clause in Article 5 of the EUPL shall not apply.
16
- *
17
- * If using the Work as, or as part of, a network application, by
18
- * including the attribution notice(s) required under Article 5 of the EUPL
19
- * in the end user terms of the application under an appropriate heading,
20
- * such notice(s) shall fulfill the requirements of that article.
1
+ /* *********************************************************************
2
+ * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3
+ * Copyright 2023 51 Degrees Mobile Experts Limited, Davidson House,
4
+ * Forbury Square, Reading, Berkshire, United Kingdom RG1 3EU.
5
+ *
6
+ * This Original Work is licensed under the European Union Public Licence
7
+ * (EUPL) v.1.2 and is subject to its terms as set out below.
8
+ *
9
+ * If a copy of the EUPL was not distributed with this file, You can obtain
10
+ * one at https://opensource.org/licenses/EUPL-1.2.
11
+ *
12
+ * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13
+ * amended by the European Commission) shall be deemed incompatible for
14
+ * the purposes of the Work and the provisions of the compatibility
15
+ * clause in Article 5 of the EUPL shall not apply.
16
+ *
17
+ * If using the Work as, or as part of, a network application, by
18
+ * including the attribution notice(s) required under Article 5 of the EUPL
19
+ * in the end user terms of the application under an appropriate heading,
20
+ * such notice(s) shall fulfill the requirements of that article.
21
21
  * ********************************************************************* */
22
22
 
23
23
  const core = require('fiftyone.pipeline.core');
@@ -94,10 +94,10 @@ class DeviceDetectionPipelineBuilder extends PipelineBuilder {
94
94
  * This means that properties will always have values
95
95
  * (i.e. no need to check .HasValue) but some may be inaccurate.
96
96
  * By default, this is false.
97
- * @param {boolean} options.usePredictiveGraph This setting on affects
97
+ * @param {boolean} options.usePredictiveGraph [deprecated] This setting on affects
98
98
  * on-premise engines, not cloud.
99
99
  * True, the engine will use the predictive optimized graph to in detections.
100
- * @param {boolean} options.usePerformanceGraph This setting on affects
100
+ * @param {boolean} options.usePerformanceGraph [deprecated] This setting on affects
101
101
  * on-premise engines, not cloud.
102
102
  * True, the engine will use the performance optimized graph to in detections.
103
103
  * @param {string} options.cloudEndPoint This setting only affects
@@ -127,14 +127,19 @@ class DeviceDetectionPipelineBuilder extends PipelineBuilder {
127
127
  drift,
128
128
  difference,
129
129
  allowUnmatched = false,
130
- usePredictiveGraph = true,
131
- usePerformanceGraph = false,
132
130
  updateOnStart = false,
133
131
  cloudEndPoint = null,
134
132
  cloudRequestOrigin = null
135
133
  }) {
136
134
  super(...arguments);
137
135
 
136
+ const deprecatedOptions = ['usePredictiveGraph', 'usePerformanceGraph'];
137
+ for (const option of deprecatedOptions) {
138
+ if (arguments[0].hasOwnProperty(option)) {
139
+ console.warn(`{${option}} option is deprecated and has no effect on the configuration`);
140
+ }
141
+ }
142
+
138
143
  // Check if share usage enabled and add it to the pipeline if so
139
144
 
140
145
  if (shareUsage) {
@@ -168,9 +173,7 @@ class DeviceDetectionPipelineBuilder extends PipelineBuilder {
168
173
  drift,
169
174
  difference,
170
175
  allowUnmatched,
171
- updateOnStart,
172
- usePredictiveGraph,
173
- usePerformanceGraph
176
+ updateOnStart
174
177
  }));
175
178
  } else {
176
179
  // First we need the cloudRequestEngine
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiftyone.devicedetection",
3
- "version": "4.4.116",
3
+ "version": "4.4.118",
4
4
  "description": "Parse HTTP headers to detect the device type, model, operating system, browser, and crawler information",
5
5
  "keywords": [
6
6
  "51degrees",