Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mimic-response

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mimic-response - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

index.js

@@ -22,3 +22,2 @@ 'use strict';

module.exports = (fromStream, toStream) => {
const toProps = Object.keys(toStream);
const fromProps = new Set(Object.keys(fromStream).concat(knownProps));

@@ -28,3 +27,3 @@

// Don't overwrite existing properties
if (toProps.indexOf(prop) !== -1) {
if (prop in toStream) {
continue;

@@ -31,0 +30,0 @@ }

{
"name": "mimic-response",
"version": "1.0.0",
"version": "1.0.1",
"description": "Mimic a Node.js HTTP response stream",

@@ -5,0 +5,0 @@ "license": "MIT",

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