fiftyone.devicedetection.shared 4.4.124 → 4.4.126
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/package.json +1 -1
- package/tests/keyUtils.js +6 -3
package/package.json
CHANGED
package/tests/keyUtils.js
CHANGED
|
@@ -27,7 +27,9 @@ module.exports = {
|
|
|
27
27
|
/**
|
|
28
28
|
* Obtain a key either from environment variable or from a property.
|
|
29
29
|
* Try resource key as env var, then as upper case env var, the system property
|
|
30
|
-
*
|
|
30
|
+
*
|
|
31
|
+
* @param {string} keyName Name of the key
|
|
32
|
+
* @returns {string} Key value
|
|
31
33
|
*/
|
|
32
34
|
getNamedKey: function (keyName) {
|
|
33
35
|
let value = process.env[keyName];
|
|
@@ -39,8 +41,9 @@ module.exports = {
|
|
|
39
41
|
|
|
40
42
|
/**
|
|
41
43
|
* Evaluate whether a key might be valid
|
|
42
|
-
*
|
|
43
|
-
* @
|
|
44
|
+
*
|
|
45
|
+
* @param {string} keyValue Value to test
|
|
46
|
+
* @returns {boolean} Is invalid key
|
|
44
47
|
*/
|
|
45
48
|
isInvalidKey: function (keyValue) {
|
|
46
49
|
try {
|