Comparing version 1.0.2 to 1.1.0
@@ -5,9 +5,8 @@ 'use strict' | ||
// generic | ||
/password/i, | ||
/passwd/i, | ||
/passw(or)?d/i, | ||
/^pw$/, | ||
/secret/i, | ||
/token/i, | ||
/api_?key/i, | ||
/sessionid/i, | ||
/api[-\._]?key/i, | ||
/session[-\._]?id/i, | ||
@@ -29,3 +28,2 @@ // specific | ||
}) | ||
// return STRING.indexOf(str.toLowerCase()) !== -1 | ||
} | ||
@@ -32,0 +30,0 @@ |
{ | ||
"name": "is-secret", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "A distributed maintained collection of patterns that indicate that something probably is secret", | ||
@@ -31,5 +31,5 @@ "main": "index.js", | ||
"coordinates": [ | ||
55.6810369, | ||
12.5643091 | ||
55.6794276, | ||
12.5806979 | ||
] | ||
} |
@@ -8,2 +8,6 @@ 'use strict' | ||
t.equal(isSecret.key('password'), true) | ||
t.equal(isSecret.key('api-key'), true) | ||
t.equal(isSecret.key('api.key'), true) | ||
t.equal(isSecret.key('api_key'), true) | ||
t.equal(isSecret.key('apikey'), true) | ||
t.end() | ||
@@ -14,2 +18,3 @@ }) | ||
t.equal(isSecret.key('copenhagen'), false) | ||
t.equal(isSecret.key('api*key'), false) | ||
t.end() | ||
@@ -16,0 +21,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4848
53