Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gem-analyzer

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gem-analyzer - npm Package Compare versions

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc