fiftyone.devicedetection.onpremise 4.4.86 → 4.4.87

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.
@@ -34,8 +34,8 @@ const DataFile = engines.DataFile;
34
34
  * @param {string} options.useUrlFormatter whether to append default URL params for Data File download
35
35
  **/
36
36
  class DeviceDetectionDataFile extends DataFile {
37
- constructor ({ useUrlFormatter = true, ...rest}) {
38
- super({...rest});
37
+ constructor ({ useUrlFormatter = true, ...rest }) {
38
+ super({ ...rest });
39
39
  this.useUrlFormatter = useUrlFormatter;
40
40
  }
41
41
  /**
@@ -45,6 +45,7 @@ class DeviceDetectionDataFile extends DataFile {
45
45
  *
46
46
  * @returns {string} url
47
47
  */
48
+
48
49
  urlFormatter () {
49
50
  const queryParams = {
50
51
  Product: this.updateURLParams.product,
@@ -57,7 +58,7 @@ class DeviceDetectionDataFile extends DataFile {
57
58
  queryParams.licenseKeys = this.updateURLParams.licenseKeys;
58
59
  }
59
60
 
60
- if(this.useUrlFormatter){
61
+ if (this.useUrlFormatter) {
61
62
  URL += '?' + querystring.stringify(queryParams);
62
63
  }
63
64
 
@@ -239,7 +239,7 @@ class DeviceDetectionOnPremise extends Engine {
239
239
  cache,
240
240
  dataUpdateUrl = constants.dataUpdateUrl,
241
241
  dataUpdateVerifyMd5 = true,
242
- dataUpdateUseUrlFormatter= true,
242
+ dataUpdateUseUrlFormatter = true,
243
243
  restrictedProperties,
244
244
  licenceKeys,
245
245
  download,
@@ -461,7 +461,7 @@ class DeviceDetectionOnPremise extends Engine {
461
461
 
462
462
  // Disable features that require a license key if one was
463
463
  // not supplied.
464
- if(dataUpdateUrl === constants.dataUpdateUrl) {
464
+ if (dataUpdateUrl === constants.dataUpdateUrl) {
465
465
  if (licenceKeys) {
466
466
  autoUpdate = autoUpdate && licenceKeys.length > 0;
467
467
  updateOnStart = updateOnStart && licenceKeys.length > 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiftyone.devicedetection.onpremise",
3
- "version": "4.4.86",
3
+ "version": "4.4.87",
4
4
  "description": "Device detection on-premise services for the 51Degrees Pipeline API",
5
5
  "main": "index.js",
6
6
  "directories": {