Comparing version 5.3.0 to 5.4.0
@@ -52,2 +52,3 @@ # Authors | ||
- ukstv (sergey.ukustov@machinomy.com) | ||
- Renée Kooi (renee@kooi.me) | ||
- ranbochen (ranbochen@qq.com) | ||
@@ -54,0 +55,0 @@ - Vladimir Borovik (bobahbdb@gmail.com) |
@@ -13,2 +13,3 @@ /*! | ||
var ieee754 = require('ieee754') | ||
var customInspectSymbol = typeof Symbol === 'function' ? Symbol.for('nodejs.util.inspect.custom') : null | ||
@@ -131,3 +132,3 @@ exports.Buffer = Buffer | ||
if (value == null) { | ||
throw TypeError( | ||
throw new TypeError( | ||
'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' + | ||
@@ -612,2 +613,5 @@ 'or Array-like Object. Received type ' + (typeof value) | ||
} | ||
if (customInspectSymbol) { | ||
Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect | ||
} | ||
@@ -614,0 +618,0 @@ Buffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) { |
{ | ||
"name": "buffer", | ||
"description": "Node.js Buffer API, for the browser", | ||
"version": "5.3.0", | ||
"version": "5.4.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh", |
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
80550
1712