New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mock-stdio

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-stdio - npm Package Compare versions

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 @@ }

2

package.json
{
"name": "mock-stdio",
"version": "1.0.2",
"version": "1.0.3",
"description": "mock stdio output for tests",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc