parse-static-imports
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -9,3 +9,3 @@ "use strict"; | ||
function createNamedImport(str = "") { | ||
const asIdx = str.indexOf("as"); | ||
const asIdx = str.indexOf(" as "); | ||
@@ -20,3 +20,3 @@ if (asIdx < 0) { | ||
const alias = str.substring(asIdx + 2).trim(); | ||
const alias = str.substring(asIdx + 4).trim(); | ||
const name = str.substring(0, asIdx).trim(); | ||
@@ -23,0 +23,0 @@ return { |
{ | ||
"name": "parse-static-imports", | ||
"description": "Gracefully parse ECMAScript static imports 💃", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"author": "Cody A Price <dev.cprice@gmail.com>", | ||
@@ -6,0 +6,0 @@ "bugs": { |
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
14005