fiftyone.devicedetection.shared 4.3.2 → 4.3.8

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
@@ -22,6 +22,7 @@
22
22
 
23
23
  module.exports = {
24
24
 
25
- errorMessages: require('./errorMessages')
25
+ errorMessages: require('./errorMessages'),
26
+ testConstants: require('./testConstants')
26
27
 
27
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fiftyone.devicedetection.shared",
3
- "version": "4.3.2",
3
+ "version": "4.3.8",
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",
@@ -25,7 +25,7 @@
25
25
  "eslint-plugin-promise": "^4.2.1",
26
26
  "eslint-plugin-standard": "^4.0.1",
27
27
  "eslint-plugin-jest": "^23.13.2",
28
- "jest": "^24.9.0",
28
+ "jest": "^27.0.6",
29
29
  "jest-junit": "^9.0.0"
30
30
  },
31
31
  "license": "EUPL-1.2",
@@ -0,0 +1,47 @@
1
+ /* *********************************************************************
2
+ * This Original Work is copyright of 51 Degrees Mobile Experts Limited.
3
+ * Copyright 2019 51 Degrees Mobile Experts Limited, 5 Charlotte Close,
4
+ * Caversham, Reading, Berkshire, United Kingdom RG4 7BY.
5
+ *
6
+ * This Original Work is licensed under the European Union Public Licence (EUPL)
7
+ * v.1.2 and is subject to its terms as set out below.
8
+ *
9
+ * If a copy of the EUPL was not distributed with this file, You can obtain
10
+ * one at https://opensource.org/licenses/EUPL-1.2.
11
+ *
12
+ * The 'Compatible Licences' set out in the Appendix to the EUPL (as may be
13
+ * amended by the European Commission) shall be deemed incompatible for
14
+ * the purposes of the Work and the provisions of the compatibility
15
+ * clause in Article 5 of the EUPL shall not apply.
16
+ *
17
+ * If using the Work as, or as part of, a network application, by
18
+ * including the attribution notice(s) required under Article 5 of the EUPL
19
+ * in the end user terms of the application under an appropriate heading,
20
+ * such notice(s) shall fulfill the requirements of that article.
21
+ * ********************************************************************* */
22
+
23
+ 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
+ }
47
+ };