assign-require
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "assign-require", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,3 +25,3 @@ ## assign-require | ||
const dataWithCallback = assignRequire('./data.json', { count: 0 }, (data, dataDefault) => { | ||
return Object.assign(data.bot1, dataDefault) | ||
return Object.assign(dataDefault, data.bot1) | ||
}); | ||
@@ -28,0 +28,0 @@ console.log(dataWithCallback); // { name: "bot1", count: 0 } |
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