fiftyone.devicedetection.onpremise 4.5.57 → 4.5.59

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.
@@ -101,6 +101,12 @@ class DeviceDetectionOnPremisePipelineBuilder extends PipelineBuilder {
101
101
  * @param {DataFileUpdateService} [options.dataFileUpdateService] Set
102
102
  * DataFileUpdateService so the datafiles can receive
103
103
  * automatic updates
104
+ * @param {boolean} [options.suppressProcessExceptions] If false (the
105
+ * default) the first error thrown while processing is re-thrown from
106
+ * flowData.process(); if true, errors are stored on flowData.errors and
107
+ * emitted via the pipeline 'error' event instead, and process() resolves
108
+ * normally. Recommended true for web apps so a device-detection failure
109
+ * degrades gracefully instead of failing the request.
104
110
  */
105
111
  constructor (
106
112
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiftyone.devicedetection.onpremise",
3
- "version": "4.5.57",
3
+ "version": "4.5.59",
4
4
  "description": "Device detection on-premise services for the 51Degrees Pipeline API",
5
5
  "keywords": [
6
6
  "51degrees",
@@ -72,6 +72,12 @@ declare class DeviceDetectionOnPremisePipelineBuilder extends DeviceDetectionOnP
72
72
  * @param {DataFileUpdateService} [options.dataFileUpdateService] Set
73
73
  * DataFileUpdateService so the datafiles can receive
74
74
  * automatic updates
75
+ * @param {boolean} [options.suppressProcessExceptions] If false (the
76
+ * default) the first error thrown while processing is re-thrown from
77
+ * flowData.process(); if true, errors are stored on flowData.errors and
78
+ * emitted via the pipeline 'error' event instead, and process() resolves
79
+ * normally. Recommended true for web apps so a device-detection failure
80
+ * degrades gracefully instead of failing the request.
75
81
  */
76
82
  constructor({ dataFileUpdateService, licenceKeys, dataFile, dataUpdateVerifyMd5, dataUpdateUseUrlFormatter, autoUpdate, dataUpdateUrl, pollingInterval, updateTimeMaximumRandomisation, shareUsage, fileSystemWatcher, updateOnStart, cacheSize, restrictedProperties, performanceProfile, concurrency, updateMatchedUserAgent, maxMatchedUserAgentLength, drift, difference, allowUnmatched, createTempDataCopy, tempDataDir }: {
77
83
  licenceKeys?: string;
@@ -97,6 +103,7 @@ declare class DeviceDetectionOnPremisePipelineBuilder extends DeviceDetectionOnP
97
103
  createTempDataCopy?: boolean;
98
104
  tempDataDir?: string;
99
105
  dataFileUpdateService?: DataFileUpdateService;
106
+ suppressProcessExceptions?: boolean;
100
107
  }, ...args: any[]);
101
108
  }
102
109
  declare namespace DeviceDetectionOnPremisePipelineBuilder {