compare-module-exports
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "compare-module-exports", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -65,5 +65,10 @@ function generate(libraryName) { | ||
errors = []; | ||
if (matchExports(realExports, mockedExports, realFile, mockFile, options)) { | ||
const exports = matchExports(realExports, mockedExports, realFile, mockFile, options); | ||
if (exports) { | ||
errors = []; | ||
return matchExports(realExports, {default: mockedExports}, realFile, mockFile, options) | ||
if (realExports.default) { | ||
const defaultExport = matchExports(realExports, {default: mockedExports}, realFile, mockFile, options) | ||
return defaultExport ? defaultExport.concat(exports) : false; | ||
} | ||
return exports; | ||
} | ||
@@ -70,0 +75,0 @@ return false; |
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
4123
72