@absolutejs/absolute 0.19.0-beta.861 → 0.19.0-beta.863
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)
|
|
@@ -19276,7 +19287,7 @@ var globalCache, getCachedHmrProgram = () => globalCache.__ABSOLUTE_ANGULAR_HMR_
|
|
|
19276
19287
|
return program.compiler.emitHmrUpdateModule(node);
|
|
19277
19288
|
}, encodeHmrComponentId = (absoluteFilePath, className) => {
|
|
19278
19289
|
const projectRel = relative14(process.cwd(), absoluteFilePath).replace(/\\/g, "/");
|
|
19279
|
-
return
|
|
19290
|
+
return `${projectRel}@${className}`;
|
|
19280
19291
|
};
|
|
19281
19292
|
var init_hmrCompiler = __esm(() => {
|
|
19282
19293
|
init_logger();
|
|
@@ -30276,5 +30287,5 @@ export {
|
|
|
30276
30287
|
ANGULAR_INIT_TIMEOUT_MS
|
|
30277
30288
|
};
|
|
30278
30289
|
|
|
30279
|
-
//# debugId=
|
|
30290
|
+
//# debugId=5AD69539F663DA5F64756E2164756E21
|
|
30280
30291
|
//# sourceMappingURL=index.js.map
|