fiftyone.devicedetection.onpremise 4.4.85 → 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.
- package/build/FiftyOneDeviceDetectionHashV4-darwin-16.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-darwin-18.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-darwin-20.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-linux-16.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-linux-18.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-linux-20.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-win32-16.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-win32-18.node +0 -0
- package/build/FiftyOneDeviceDetectionHashV4-win32-20.node +0 -0
- package/deviceDetectionDataFile.js +4 -3
- package/deviceDetectionOnPremise.js +2 -2
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -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;
|