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.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('_')) {

6

package.json
{
"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

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