string_decoder
Advanced tools
Comparing version 0.10.24 to 0.10.25-1
11
index.js
@@ -24,4 +24,13 @@ // Copyright Joyent, Inc. and other Node contributors. | ||
var isBufferEncoding = Buffer.isEncoding | ||
|| function(encoding) { | ||
switch (encoding && encoding.toLowerCase()) { | ||
case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true; | ||
default: return false; | ||
} | ||
} | ||
function assertEncoding(encoding) { | ||
if (encoding && !Buffer.isEncoding(encoding)) { | ||
if (encoding && !isBufferEncoding(encoding)) { | ||
throw new Error('Unknown encoding: ' + encoding); | ||
@@ -28,0 +37,0 @@ } |
{ | ||
"name": "string_decoder", | ||
"version": "0.10.24", | ||
"version": "0.10.25-1", | ||
"description": "The string_decoder module from Node core", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
1
8371
5
167