jsdoc-tsimport-plugin
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -40,3 +40,3 @@ const path = require('path'); | ||
*/ | ||
const importRegex = /import\(['"]([\.\/\w-\$]*)(?:\.js)?['"]\)\.([\w-\$]*)/g; | ||
const importRegex = /import\(['"](\@?[\.\/_a-zA-Z0-9-\$]*)(?:\.js)?['"]\)\.?([_a-zA-Z0-9-\$]*)?/g; | ||
@@ -140,3 +140,3 @@ const typeRegex = /\{[^}]*\}/g; | ||
const moduleId = getModuleId(e.filename, relImportPath); | ||
return (moduleId) ? `module:${moduleId}~${symbolName}` : symbolName; | ||
return (moduleId) ? `module:${moduleId}${symbolName?"~"+symbolName:""}` : symbolName; | ||
}); | ||
@@ -143,0 +143,0 @@ }); |
{ | ||
"name": "jsdoc-tsimport-plugin", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A JSDoc plugin to support the typescript module import syntax.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ # jsdoc-tsimport-plugin |
Sorry, the diff of this file is not supported yet
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
22792