clone
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -66,3 +66,9 @@ var clone = (function() { | ||
} else if (useBuffer && Buffer.isBuffer(parent)) { | ||
child = new Buffer(parent.length); | ||
if (Buffer.allocUnsafe) { | ||
// Node.js >= 4.5.0 | ||
child = Buffer.allocUnsafe(parent.length); | ||
} else { | ||
// Older Node.js versions | ||
child = new Buffer(parent.length); | ||
} | ||
parent.copy(child); | ||
@@ -69,0 +75,0 @@ return child; |
@@ -11,3 +11,3 @@ { | ||
], | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"repository": { | ||
@@ -14,0 +14,0 @@ "type": "git", |
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
11132
142
0