Comparing version 0.12.0 to 0.12.1
@@ -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)) |
{ | ||
"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" |
15
util.js
@@ -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() { |
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
37071
985
5
2
+ Addedinherits@2.0.4(transitive)
- Removedinherits@2.0.3(transitive)
Updatedinherits@^2.0.3