From c280f71461edf5f92ff88033fc3343bcf460cb26 Mon Sep 17 00:00:00 2001 From: wunci Date: Sat, 20 Jan 2024 12:27:46 +0800 Subject: [PATCH 1/2] feat: support attr inherit --- package-lock.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index ccc3425c..23109c0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -54,7 +54,7 @@ "mkdirp": "^1.0.4", "mustache": "^4.0.1", "san": "^3.14.1", - "san-html-cases": "^3.14.1", + "san-html-cases": "^3.14.3", "san-ssr-target-fake-cmd": "^1.0.0", "san-ssr-target-fake-esm": "^1.0.0", "source-map-support": "^0.5.19", @@ -15413,9 +15413,9 @@ "dev": true }, "node_modules/san-html-cases": { - "version": "3.14.1", - "resolved": "https://registry.npmmirror.com/san-html-cases/-/san-html-cases-3.14.1.tgz", - "integrity": "sha512-EENcjnsZYg1bdENprbwEIaPMY8mGZzydxZ9oOM8lLzJAvJP703DZqUFWH2AcfK7Nm0gZN57iaPvxA7DSuXf3dA==", + "version": "3.14.3", + "resolved": "https://registry.npmmirror.com/san-html-cases/-/san-html-cases-3.14.3.tgz", + "integrity": "sha512-HdWsLcuguYYxhoeXe09mnLeHrkNsbREG6ltSF+6Mo7NAldn40QPzy49qGOWUbkZBKHT1FoFFmGiyEqc+DtW2/g==", "dev": true }, "node_modules/san-ssr-target-fake-cmd": { @@ -29791,9 +29791,9 @@ "dev": true }, "san-html-cases": { - "version": "3.14.1", - "resolved": "https://registry.npmmirror.com/san-html-cases/-/san-html-cases-3.14.1.tgz", - "integrity": "sha512-EENcjnsZYg1bdENprbwEIaPMY8mGZzydxZ9oOM8lLzJAvJP703DZqUFWH2AcfK7Nm0gZN57iaPvxA7DSuXf3dA==", + "version": "3.14.3", + "resolved": "https://registry.npmmirror.com/san-html-cases/-/san-html-cases-3.14.3.tgz", + "integrity": "sha512-HdWsLcuguYYxhoeXe09mnLeHrkNsbREG6ltSF+6Mo7NAldn40QPzy49qGOWUbkZBKHT1FoFFmGiyEqc+DtW2/g==", "dev": true }, "san-ssr-target-fake-cmd": { From eef209c4c2345db20329ec86d457a569bc9701e3 Mon Sep 17 00:00:00 2001 From: wunci Date: Sat, 20 Jan 2024 12:27:46 +0800 Subject: [PATCH 2/2] feat: support attr inherit --- src/ast/ts-ast-util.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ast/ts-ast-util.ts b/src/ast/ts-ast-util.ts index 9f2ba0f3..346d6d42 100644 --- a/src/ast/ts-ast-util.ts +++ b/src/ast/ts-ast-util.ts @@ -5,9 +5,8 @@ */ import { Node, MethodDeclaration, ShorthandPropertyAssignment, PropertyAssignment, ImportDeclaration, ClassDeclaration, - SourceFile, ObjectLiteralExpression + SourceFile, ObjectLiteralExpression, PropertyDeclaration, SyntaxKind, TypeGuards } from 'ts-morph' -import { TypeGuards, SyntaxKind, PropertyDeclaration, ts } from 'ts-morph' import { TagName } from '../models/component-info' import { componentID, ComponentReference } from '../models/component-reference' import { strongParseSanSourceFileOptions } from '../compilers/renderer-options'