fiftyone.devicedetection.shared 4.3.11 → 4.4.1

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/index.js CHANGED
@@ -20,9 +20,10 @@
20
20
  * such notice(s) shall fulfill the requirements of that article.
21
21
  * ********************************************************************* */
22
22
 
23
- module.exports = {
24
-
25
- errorMessages: require('./errorMessages'),
26
- testConstants: require('./testConstants')
23
+ /*
24
+ This file is used for release package.
25
+ */
27
26
 
27
+ module.exports = {
28
+ errorMessages: require('./errorMessages')
28
29
  };
@@ -20,28 +20,13 @@
20
20
  * such notice(s) shall fulfill the requirements of that article.
21
21
  * ********************************************************************* */
22
22
 
23
+ /*
24
+ This file is used for development package.
25
+ */
26
+
23
27
  module.exports = {
24
- // Environment variables name for testing
25
- envVars: {
26
- superResourceKeyEnvVar: 'TEST_SUPER_RESOURCE_KEY',
27
- platformResourceKeyEnvVar: 'TEST_PLATFORM_RESOURCE_KEY',
28
- hardwareResourceKeyEnvVar: 'TEST_HARDWARE_RESOURCE_KEY',
29
- browserResourceKeyEnvVar: 'TEST_BROWSER_RESOURCE_KEY',
30
- noSetHeaderResourceKeyEnvVar: 'TEST_NO_SETHEADER_RESOURCE_KEY'
31
- },
32
- // User-Agent string for testing
33
- userAgents: {
34
- chromeUA: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) ' +
35
- 'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 ' +
36
- 'Safari/537.36',
37
- edgeUA: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) ' +
38
- 'AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 ' +
39
- 'Safari/537.36 Edg/95.0.1020.44',
40
- firefoxUA: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:94.0) ' +
41
- 'Gecko/20100101 Firefox/94.0',
42
- safariUA: 'Mozilla/5.0 (iPhone; CPU iPhone OS 15_1 like Mac OS X) ' +
43
- 'AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 ' +
44
- 'Mobile/15E148 Safari/604.1',
45
- curlUA: 'curl/7.80.0'
46
- }
28
+ errorMessages: require('./errorMessages'),
29
+ testConstants: require('./tests/testConstants'),
30
+ optionsExtension: require('./examples/optionsExtension'),
31
+ dataExtension: require('./examples/dataExtension')
47
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiftyone.devicedetection.shared",
3
- "version": "4.3.11",
3
+ "version": "4.4.1",
4
4
  "description": "Shared functionality for implementing device detection engine for the 51Degrees Pipeline API",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",