assign-require
Advanced tools
Comparing version 1.0.0 to 1.0.1
function defaultCallback(data, dataDefault) { | ||
return Object.assign(data, dataDefault); | ||
return Object.assign(dataDefault, data || {}); | ||
} | ||
@@ -12,3 +12,3 @@ | ||
if (e instanceof Error && e.code === 'MODULE_NOT_FOUND') { | ||
return callback({}, data); | ||
return callback(false, data); | ||
} else { | ||
@@ -15,0 +15,0 @@ throw e; |
{ | ||
"name": "assign-require", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1311