Comparing version 1.0.1 to 1.0.2
@@ -11,3 +11,8 @@ /* jshint node: true */ | ||
return function (val) { | ||
arr.push(new Buffer(val)); | ||
/* istanbul ignore next */ | ||
if (Buffer.from) { | ||
arr.push(Buffer.from(val)); | ||
} else { | ||
arr.push(new Buffer(val)); | ||
} | ||
}; | ||
@@ -14,0 +19,0 @@ } |
{ | ||
"name": "mock-stdio", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "mock stdio output for tests", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
5148
68