@absolutejs/absolute 0.19.0-beta.862 → 0.19.0-beta.864
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -18802,13 +18802,24 @@ var fail = (reason, detail) => ({ ok: false, reason, detail }), fingerprintCache
|
|
|
18802
18802
|
}, buildFreshClassMethodsBlock = (classNode, className) => {
|
|
18803
18803
|
const methodSources = [];
|
|
18804
18804
|
let hasStatic = false;
|
|
18805
|
+
const printer = ts7.createPrinter({ removeComments: true });
|
|
18805
18806
|
for (const member of classNode.members) {
|
|
18806
18807
|
if (ts7.isMethodDeclaration(member) || ts7.isGetAccessorDeclaration(member) || ts7.isSetAccessorDeclaration(member)) {
|
|
18807
|
-
methodSources.push(member.getText());
|
|
18808
18808
|
const modifiers = ts7.getModifiers(member) ?? [];
|
|
18809
|
-
|
|
18809
|
+
const isStatic = modifiers.some((m) => m.kind === ts7.SyntaxKind.StaticKeyword);
|
|
18810
|
+
if (isStatic)
|
|
18810
18811
|
hasStatic = true;
|
|
18812
|
+
const cleanedParams = member.parameters.map((param) => ts7.factory.updateParameterDeclaration(param, (ts7.getModifiers(param) ?? []).filter((m) => m.kind !== ts7.SyntaxKind.Decorator), param.dotDotDotToken, param.name, param.questionToken, param.type, param.initializer));
|
|
18813
|
+
let cleaned;
|
|
18814
|
+
if (ts7.isMethodDeclaration(member)) {
|
|
18815
|
+
cleaned = ts7.factory.createMethodDeclaration(modifiers.filter((m) => m.kind !== ts7.SyntaxKind.Decorator), member.asteriskToken, member.name, member.questionToken, member.typeParameters, cleanedParams, member.type, member.body);
|
|
18816
|
+
} else if (ts7.isGetAccessorDeclaration(member)) {
|
|
18817
|
+
cleaned = ts7.factory.createGetAccessorDeclaration(modifiers.filter((m) => m.kind !== ts7.SyntaxKind.Decorator), member.name, cleanedParams, member.type, member.body);
|
|
18818
|
+
} else {
|
|
18819
|
+
cleaned = ts7.factory.createSetAccessorDeclaration(modifiers.filter((m) => m.kind !== ts7.SyntaxKind.Decorator), member.name, cleanedParams, member.body);
|
|
18811
18820
|
}
|
|
18821
|
+
const printed = printer.printNode(ts7.EmitHint.Unspecified, cleaned, classNode.getSourceFile());
|
|
18822
|
+
methodSources.push(printed);
|
|
18812
18823
|
}
|
|
18813
18824
|
}
|
|
18814
18825
|
if (methodSources.length === 0)
|
|
@@ -18963,21 +18974,7 @@ ${block}
|
|
|
18963
18974
|
const sourceFileObj = new compiler.ParseSourceFile(tsSource, componentFilePath);
|
|
18964
18975
|
const zeroLoc = new compiler.ParseLocation(sourceFileObj, 0, 0, 0);
|
|
18965
18976
|
const typeSourceSpan = new compiler.ParseSourceSpan(zeroLoc, zeroLoc);
|
|
18966
|
-
const
|
|
18967
|
-
if (decoratorMeta.importsExpr) {
|
|
18968
|
-
for (const el of decoratorMeta.importsExpr.elements) {
|
|
18969
|
-
importsArray.push(new compiler.WrappedNodeExpr(el));
|
|
18970
|
-
}
|
|
18971
|
-
}
|
|
18972
|
-
const declarations = importsArray.map((expr) => ({
|
|
18973
|
-
kind: 0,
|
|
18974
|
-
type: expr,
|
|
18975
|
-
selector: "",
|
|
18976
|
-
inputs: [],
|
|
18977
|
-
outputs: [],
|
|
18978
|
-
exportAs: null,
|
|
18979
|
-
isComponent: false
|
|
18980
|
-
}));
|
|
18977
|
+
const declarations = [];
|
|
18981
18978
|
const meta = {
|
|
18982
18979
|
name: className,
|
|
18983
18980
|
type: { value: wrappedClass, type: wrappedClass },
|
|
@@ -19019,7 +19016,7 @@ ${block}
|
|
|
19019
19016
|
i18nUseExternalIds: false,
|
|
19020
19017
|
changeDetection: null,
|
|
19021
19018
|
relativeTemplatePath: null,
|
|
19022
|
-
hasDirectiveDependencies:
|
|
19019
|
+
hasDirectiveDependencies: false
|
|
19023
19020
|
};
|
|
19024
19021
|
let compiled;
|
|
19025
19022
|
try {
|
|
@@ -30276,5 +30273,5 @@ export {
|
|
|
30276
30273
|
ANGULAR_INIT_TIMEOUT_MS
|
|
30277
30274
|
};
|
|
30278
30275
|
|
|
30279
|
-
//# debugId=
|
|
30276
|
+
//# debugId=652560154C5C43EB64756E2164756E21
|
|
30280
30277
|
//# sourceMappingURL=index.js.map
|