@npmcli/redact
Advanced tools
Comparing version
@@ -1,2 +0,1 @@ | ||
const { Buffer } = require('node:buffer') | ||
const { serializeError } = require('./error') | ||
@@ -13,3 +12,3 @@ | ||
// allows for non-node js environments, sush as workers | ||
if (input instanceof Buffer) { | ||
if (typeof Buffer !== 'undefined' && input instanceof Buffer) { | ||
return `[unable to log instanceof buffer]` | ||
@@ -16,0 +15,0 @@ } |
{ | ||
"name": "@npmcli/redact", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Redact sensitive npm information from output", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
16850
-0.05%442
-0.23%