Comparing version 5.0.1 to 6.0.0
@@ -8,3 +8,9 @@ #!/usr/bin/env node | ||
return noDefault ? | ||
output.replace(`${$ascjs.EXPORT}.default`, 'module.exports') : | ||
output | ||
.replace(`${$ascjs.EXPORT}.default`, 'module.exports') | ||
.replace($ascjs.IMPORT, ($0, index) => { | ||
index += $0.length + 9; | ||
const module = output.slice(index, output.indexOf(')', index + 1)).trim(); | ||
return /^['"]\./.test(module) ? '' : $0; | ||
}) : | ||
output; | ||
@@ -11,0 +17,0 @@ }; |
{ | ||
"name": "ascjs", | ||
"version": "5.0.1", | ||
"version": "6.0.0", | ||
"description": "ES2015 to CommonJS import/export transformer", | ||
@@ -5,0 +5,0 @@ "bin": "bin.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
15362
315