gem-analyzer
Advanced tools
Comparing version 1.6.12 to 1.7.0
20
index.js
@@ -55,4 +55,4 @@ import { camelToKebabCase } from '@mantou/gem/lib/utils'; | ||
} | ||
const staticPropertieDeclarations = declaration.getStaticProperties(); | ||
for (const staticPropDeclaration of staticPropertieDeclarations) { | ||
const staticPropertiesDeclarations = declaration.getStaticProperties(); | ||
for (const staticPropDeclaration of staticPropertiesDeclarations) { | ||
const staticPropName = staticPropDeclaration.getName(); | ||
@@ -70,4 +70,4 @@ if (staticPropName.startsWith('#')) | ||
let isPartOrSlot = false; | ||
const staticPorpDecorators = staticPropDeclaration.getDecorators(); | ||
for (const decorator of staticPorpDecorators) { | ||
const staticPropDecorators = staticPropDeclaration.getDecorators(); | ||
for (const decorator of staticPropDecorators) { | ||
const decoratorName = decorator.getName(); | ||
@@ -123,4 +123,4 @@ if (slotDecoratorName.includes(decoratorName)) { | ||
detail.properties.push(prop); | ||
const porpDecorators = propDeclaration.getDecorators(); | ||
for (const decorator of porpDecorators) { | ||
const propDecorators = propDeclaration.getDecorators(); | ||
for (const decorator of propDecorators) { | ||
const decoratorName = decorator.getName(); | ||
@@ -136,3 +136,3 @@ if (attrDecoratorName.includes(decoratorName)) { | ||
else if (stateDecoratorName.includes(decoratorName)) { | ||
prop.cssState = `--${camelToKebabCase(propName)}`; | ||
prop.cssState = camelToKebabCase(propName); | ||
detail.cssStates.push(prop.cssState); | ||
@@ -193,9 +193,9 @@ } | ||
for (const declaration of file.getClasses()) { | ||
const elementDecoratior = declaration | ||
const elementDeclaration = declaration | ||
.getDecorators() | ||
.find((decorator) => elementDecoratorName.includes(decorator.getName())); | ||
if (elementDecoratior) { | ||
if (elementDeclaration) { | ||
const detail = { | ||
...parseElement(declaration), | ||
name: elementDecoratior | ||
name: elementDeclaration | ||
.getCallExpression() | ||
@@ -202,0 +202,0 @@ .getArguments()[0] |
{ | ||
"name": "gem-analyzer", | ||
"version": "1.6.12", | ||
"version": "1.7.0", | ||
"description": "gem analyzer", | ||
@@ -15,6 +15,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@mantou/gem": "^1.6.12" | ||
"@mantou/gem": "^1.7.0" | ||
}, | ||
"devDependencies": { | ||
"@gemjs/config": "^1.6.10", | ||
"@gemjs/config": "^1.6.11", | ||
"ts-morph": "^13.0.0", | ||
@@ -21,0 +21,0 @@ "typescript": "^4.5.0" |
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
20034
Updated@mantou/gem@^1.7.0