fiftyone.devicedetection.onpremise 4.4.13 → 4.4.14

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.
@@ -20,6 +20,7 @@
20
20
  * such notice(s) shall fulfill the requirements of that article.
21
21
  * ********************************************************************* */
22
22
 
23
+ const os = require('os');
23
24
  const core = require('fiftyone.pipeline.core');
24
25
  const DeviceDetectionOnPremise = require('./deviceDetectionOnPremise');
25
26
  const PipelineBuilder = core.PipelineBuilder;
@@ -62,6 +63,8 @@ class DeviceDetectionOnPremisePipelineBuilder extends PipelineBuilder {
62
63
  * between performance and system memory usage (Only applies to on-premise,
63
64
  * not cloud) options are: LowMemory, MaxPerformance, Balanced,
64
65
  * BalancedTemp, HighPerformance
66
+ * @param {number} options.concurrency defaults to the number of cpus
67
+ * in the machine
65
68
  * @param {boolean} options.updateMatchedUserAgent True if the detection
66
69
  * should record the matched characters from the target User-Agent
67
70
  * @param {number} options.maxMatchedUserAgentLength Number of characters to
@@ -107,6 +110,7 @@ class DeviceDetectionOnPremisePipelineBuilder extends PipelineBuilder {
107
110
  cacheSize = null,
108
111
  restrictedProperties,
109
112
  performanceProfile = 'LowMemory',
113
+ concurrency = os.cpus().length,
110
114
  updateMatchedUserAgent = false,
111
115
  maxMatchedUserAgentLength,
112
116
  drift,
@@ -139,6 +143,7 @@ class DeviceDetectionOnPremisePipelineBuilder extends PipelineBuilder {
139
143
  licenceKeys,
140
144
  restrictedProperties,
141
145
  performanceProfile,
146
+ concurrency,
142
147
  updateMatchedUserAgent,
143
148
  maxMatchedUserAgentLength,
144
149
  drift,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiftyone.devicedetection.onpremise",
3
- "version": "4.4.13",
3
+ "version": "4.4.14",
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.4.13",
26
- "fiftyone.pipeline.core": "^4.4.5",
27
- "fiftyone.pipeline.engines": "^4.4.5",
28
- "fiftyone.pipeline.engines.fiftyone": "^4.4.5",
25
+ "fiftyone.devicedetection.shared": "^4.4.14",
26
+ "fiftyone.pipeline.core": "^4.4.6",
27
+ "fiftyone.pipeline.engines": "^4.4.6",
28
+ "fiftyone.pipeline.engines.fiftyone": "^4.4.6",
29
29
  "js-yaml": "^4.1.0",
30
30
  "n-readlines": "^1.0.1"
31
31
  },