Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-secret

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-secret - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

8

index.js

@@ -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 @@ })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc