gem-analyzer
Advanced tools
Comparing version 1.6.10 to 1.6.12
14
index.js
@@ -68,3 +68,3 @@ import { camelToKebabCase } from '@mantou/gem/lib/utils'; | ||
}; | ||
detail.staticProperties.push(prop); | ||
let isPartOrSlot = false; | ||
const staticPorpDecorators = staticPropDeclaration.getDecorators(); | ||
@@ -74,2 +74,3 @@ for (const decorator of staticPorpDecorators) { | ||
if (slotDecoratorName.includes(decoratorName)) { | ||
isPartOrSlot = true; | ||
prop.slot = camelToKebabCase(staticPropName); | ||
@@ -79,2 +80,3 @@ detail.slots.push(prop.slot); | ||
else if (partDecoratorName.includes(decoratorName)) { | ||
isPartOrSlot = true; | ||
prop.part = camelToKebabCase(staticPropName); | ||
@@ -84,2 +86,5 @@ detail.parts.push(prop.part); | ||
} | ||
if (!isPartOrSlot) { | ||
detail.staticProperties.push(prop); | ||
} | ||
} | ||
@@ -192,3 +197,3 @@ const staticMethodDeclarations = declaration.getStaticMethods(); | ||
if (elementDecoratior) { | ||
result.push({ | ||
const detail = { | ||
...parseElement(declaration), | ||
@@ -200,3 +205,6 @@ name: elementDecoratior | ||
.replace(/('|"|`)?(\S*)\1/, '$2'), | ||
}); | ||
}; | ||
if (!detail.constructorName.startsWith('_')) { | ||
result.push(detail); | ||
} | ||
} | ||
@@ -203,0 +211,0 @@ } |
{ | ||
"name": "gem-analyzer", | ||
"version": "1.6.10", | ||
"version": "1.6.12", | ||
"description": "gem analyzer", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@mantou/gem": "^1.6.10" | ||
"@mantou/gem": "^1.6.12" | ||
}, | ||
@@ -18,0 +18,0 @@ "devDependencies": { |
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
20048
264
Updated@mantou/gem@^1.6.12