mimic-response
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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", |
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
3584
28