Comparing version 6.0.0 to 6.0.1
@@ -5,8 +5,9 @@ #!/usr/bin/env node | ||
const $ascjs = require('./index.js'); | ||
const escape = str => str.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'); | ||
const ascjs = input => { | ||
const output = $ascjs(input); | ||
let output = $ascjs(input); | ||
return noDefault ? | ||
output | ||
.replace(`${$ascjs.EXPORT}.default`, 'module.exports') | ||
.replace($ascjs.IMPORT, ($0, index) => { | ||
.replace(new RegExp(escape($ascjs.IMPORT), 'g'), ($0, index) => { | ||
index += $0.length + 9; | ||
@@ -13,0 +14,0 @@ const module = output.slice(index, output.indexOf(')', index + 1)).trim(); |
{ | ||
"name": "ascjs", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"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
15456
316