proxyquire
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -12,6 +12,8 @@ 'use strict'; | ||
function fillMissingKeys(mdl, original) { | ||
Object.keys(original).forEach(function (key) { | ||
if (!mdl[key]) mdl[key] = original[key]; | ||
}); | ||
if (is.Object(original) || is.Function(original)) { | ||
// fill in keys for all objects | ||
Object.keys(original).forEach(function (key) { | ||
if (!mdl[key]) mdl[key] = original[key]; | ||
}); | ||
} | ||
return mdl; | ||
@@ -18,0 +20,0 @@ } |
{ | ||
"name": "proxyquire", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Proxies nodejs require in order to allow overriding dependencies during testing.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
var stats = require('./stats') | ||
, bar = require('./bar') | ||
, boof = require('./boof') | ||
, foonum = require('./foonum') | ||
, foobool = require('./foobool') | ||
, path = require('path') | ||
@@ -31,3 +34,6 @@ ; | ||
, bigBas: bigBas | ||
, boof: boof | ||
, foonum: foonum | ||
, foobool: foobool | ||
, state: '' | ||
}; |
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
55702
50
1198