+4
-0
@@ -7,2 +7,6 @@ # util change log | ||
| ## 0.12.1 | ||
| * Update `util.debuglog` compatibility to Node 10.4.0. ([@goto-bus-stop](https://github.com/goto-bus-stop) in [#27](https://github.com/browserify/node-util/pull/27)) | ||
| * Allow newer versions of `inherits`. ([@snyamathi](https://github.com/snyamathi) in [#39](https://github.com/browserify/node-util/pull/39)) | ||
| ## 0.12.0 | ||
@@ -9,0 +13,0 @@ * Add `util.types`. ([@lukechilds](https://github.com/lukechilds) in [#32](https://github.com/browserify/node-util/pull/35)) |
+3
-2
| { | ||
| "name": "util", | ||
| "description": "Node.js's util module for all engines", | ||
| "version": "0.12.0", | ||
| "version": "0.12.1", | ||
| "author": { | ||
@@ -13,3 +13,3 @@ "name": "Joyent", | ||
| "dependencies": { | ||
| "inherits": "2.0.3", | ||
| "inherits": "^2.0.3", | ||
| "is-arguments": "^1.0.4", | ||
@@ -23,2 +23,3 @@ "is-generator-function": "^1.0.7", | ||
| "is-async-supported": "~1.2.0", | ||
| "object.assign": "~4.1.0", | ||
| "run-series": "~1.1.4", | ||
@@ -25,0 +26,0 @@ "tape": "~4.9.0" |
+11
-4
@@ -107,9 +107,16 @@ // Copyright Joyent, Inc. and other Node contributors. | ||
| var debugs = {}; | ||
| var debugEnviron; | ||
| var debugEnvRegex = /^$/; | ||
| if (process.env.NODE_DEBUG) { | ||
| var debugEnv = process.env.NODE_DEBUG; | ||
| debugEnv = debugEnv.replace(/[|\\{}()[\]^$+?.]/g, '\\$&') | ||
| .replace(/\*/g, '.*') | ||
| .replace(/,/g, '$|^') | ||
| .toUpperCase(); | ||
| debugEnvRegex = new RegExp('^' + debugEnv + '$', 'i'); | ||
| } | ||
| exports.debuglog = function(set) { | ||
| if (isUndefined(debugEnviron)) | ||
| debugEnviron = process.env.NODE_DEBUG || ''; | ||
| set = set.toUpperCase(); | ||
| if (!debugs[set]) { | ||
| if (new RegExp('\\b' + set + '\\b', 'i').test(debugEnviron)) { | ||
| if (debugEnvRegex.test(set)) { | ||
| var pid = process.pid; | ||
@@ -116,0 +123,0 @@ debugs[set] = function() { |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
37071
1.39%985
0.61%5
25%3
50%+ Added
- Removed
Updated