gem-analyzer
Advanced tools
Comparing version 1.7.6 to 1.7.8
15
index.js
@@ -176,2 +176,3 @@ import { camelToKebabCase } from '@mantou/gem/lib/utils'; | ||
export const getElements = (file) => { | ||
var _a; | ||
const result = []; | ||
@@ -182,10 +183,12 @@ for (const declaration of file.getClasses()) { | ||
.find((decorator) => elementDecoratorName.includes(decorator.getName())); | ||
if (elementDeclaration) { | ||
const elementTag = (elementDeclaration === null || elementDeclaration === void 0 ? void 0 : elementDeclaration.getCallExpression().getArguments()[0].getText().replace(/('|"|`)?(\S*)\1/, '$2')) || | ||
((_a = declaration | ||
.getJsDocs() | ||
.map((jsDoc) => jsDoc.getTags()) | ||
.flat() | ||
.find((e) => e.getTagName() === 'customElement')) === null || _a === void 0 ? void 0 : _a.getCommentText()); | ||
if (elementTag) { | ||
const detail = { | ||
...parseElement(declaration), | ||
name: elementDeclaration | ||
.getCallExpression() | ||
.getArguments()[0] | ||
.getText() | ||
.replace(/('|"|`)?(\S*)\1/, '$2'), | ||
name: elementTag, | ||
}; | ||
@@ -192,0 +195,0 @@ if (!detail.constructorName.startsWith('_')) { |
{ | ||
"name": "gem-analyzer", | ||
"version": "1.7.6", | ||
"version": "1.7.8", | ||
"description": "gem analyzer", | ||
@@ -16,6 +16,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@mantou/gem": "^1.7.8" | ||
"@mantou/gem": "^1.7.11" | ||
}, | ||
"devDependencies": { | ||
"@gemjs/config": "^1.6.11", | ||
"@gemjs/config": "^1.6.13", | ||
"ts-morph": "^13.0.0", | ||
@@ -22,0 +22,0 @@ "typescript": "^5.3.2" |
Sorry, the diff of this file is not supported yet
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
24387
316
Updated@mantou/gem@^1.7.11