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

util

Package Overview
Dependencies
Maintainers
41
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

util - npm Package Compare versions

Comparing version 0.12.0 to 0.12.1

4

CHANGELOG.md

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

5

package.json
{
"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"

@@ -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() {

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