gem-analyzer
Advanced tools
Comparing version 2.1.0 to 2.2.0
10
index.js
import { camelToKebabCase } from '@mantou/gem/lib/utils'; | ||
import { getJsDoc, getTypeText, isGetter, isSetter } from './lib/utils'; | ||
import { getJsDoc, getTypeText, isGetter, isPrivateId, isSetter } from './lib/utils'; | ||
const shadowDecoratorName = ['shadow']; | ||
@@ -98,3 +98,3 @@ const elementDecoratorName = ['customElement']; | ||
const staticPropName = staticPropDeclaration.getName(); | ||
if (staticPropName.startsWith('#')) | ||
if (isPrivateId(staticPropName)) | ||
continue; | ||
@@ -130,3 +130,3 @@ const prop = { | ||
const staticMethodName = staticMethodDeclaration.getName(); | ||
if (staticMethodName.startsWith('#')) | ||
if (isPrivateId(staticMethodName)) | ||
continue; | ||
@@ -143,3 +143,3 @@ const method = { | ||
const propName = propDeclaration.getName(); | ||
if (propName.startsWith('#')) | ||
if (isPrivateId(propName)) | ||
continue; | ||
@@ -195,3 +195,3 @@ if (lifecyclePopsOrMethods.includes(propName)) | ||
const methodName = methodDeclaration.getName(); | ||
if (methodName.startsWith('#')) | ||
if (isPrivateId(methodName)) | ||
continue; | ||
@@ -198,0 +198,0 @@ if (lifecyclePopsOrMethods.includes(methodName)) |
@@ -9,2 +9,3 @@ import type { ClassInstancePropertyTypes, MethodDeclaration, ExportedDeclarations, ClassStaticPropertyTypes } from 'ts-morph'; | ||
export declare function isSetter(declaration: ClassInstancePropertyTypes | ClassStaticPropertyTypes): boolean; | ||
export declare function isPrivateId(name: string): true | undefined; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -27,2 +27,6 @@ export function getJsDoc(declaration) { | ||
} | ||
export function isPrivateId(name) { | ||
if (name.startsWith('#') || name.startsWith('_')) | ||
return true; | ||
} | ||
//# sourceMappingURL=utils.js.map |
{ | ||
"name": "gem-analyzer", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "gem analyzer", | ||
@@ -16,3 +16,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@mantou/gem": "^2.1.0" | ||
"@mantou/gem": "^2.2.0" | ||
}, | ||
@@ -37,4 +37,3 @@ "devDependencies": { | ||
}, | ||
"homepage": "https://github.com/mantou132/gem#readme", | ||
"gitHead": "00c0b40a5f92eaf3fce6e92b1a1f656565e69811" | ||
"homepage": "https://github.com/mantou132/gem#readme" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
393
30700
10
Updated@mantou/gem@^2.2.0