Comparing version 1.0.2 to 1.0.3
11
index.js
@@ -12,5 +12,12 @@ /* jshint node: true */ | ||
/* istanbul ignore next */ | ||
if (Buffer.from) { | ||
try { | ||
// Buffer.from was officially introduced | ||
// in node 4.5.0, but was actually present | ||
// with only partial abilities before that. | ||
// In earlier versions of node 4, it could | ||
// not handle string data. Simply testing | ||
// for the existence of Buffer.from does not | ||
// support all versions of node. | ||
arr.push(Buffer.from(val)); | ||
} else { | ||
} catch(e) { | ||
arr.push(new Buffer(val)); | ||
@@ -17,0 +24,0 @@ } |
{ | ||
"name": "mock-stdio", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "mock stdio output for tests", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
5472
75
0