@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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-xI0Yse/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-xI0Yse/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-xI0Yse/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/build.js
CHANGED
|
@@ -18705,13 +18705,24 @@ var fail = (reason, detail) => ({ ok: false, reason, detail }), fingerprintCache
|
|
|
18705
18705
|
}, buildFreshClassMethodsBlock = (classNode, className) => {
|
|
18706
18706
|
const methodSources = [];
|
|
18707
18707
|
let hasStatic = false;
|
|
18708
|
+
const printer = ts7.createPrinter({ removeComments: true });
|
|
18708
18709
|
for (const member of classNode.members) {
|
|
18709
18710
|
if (ts7.isMethodDeclaration(member) || ts7.isGetAccessorDeclaration(member) || ts7.isSetAccessorDeclaration(member)) {
|
|
18710
|
-
methodSources.push(member.getText());
|
|
18711
18711
|
const modifiers = ts7.getModifiers(member) ?? [];
|
|
18712
|
-
|
|
18712
|
+
const isStatic = modifiers.some((m) => m.kind === ts7.SyntaxKind.StaticKeyword);
|
|
18713
|
+
if (isStatic)
|
|
18713
18714
|
hasStatic = true;
|
|
18715
|
+
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));
|
|
18716
|
+
let cleaned;
|
|
18717
|
+
if (ts7.isMethodDeclaration(member)) {
|
|
18718
|
+
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);
|
|
18719
|
+
} else if (ts7.isGetAccessorDeclaration(member)) {
|
|
18720
|
+
cleaned = ts7.factory.createGetAccessorDeclaration(modifiers.filter((m) => m.kind !== ts7.SyntaxKind.Decorator), member.name, cleanedParams, member.type, member.body);
|
|
18721
|
+
} else {
|
|
18722
|
+
cleaned = ts7.factory.createSetAccessorDeclaration(modifiers.filter((m) => m.kind !== ts7.SyntaxKind.Decorator), member.name, cleanedParams, member.body);
|
|
18714
18723
|
}
|
|
18724
|
+
const printed = printer.printNode(ts7.EmitHint.Unspecified, cleaned, classNode.getSourceFile());
|
|
18725
|
+
methodSources.push(printed);
|
|
18715
18726
|
}
|
|
18716
18727
|
}
|
|
18717
18728
|
if (methodSources.length === 0)
|
|
@@ -19179,7 +19190,7 @@ var globalCache, getCachedHmrProgram = () => globalCache.__ABSOLUTE_ANGULAR_HMR_
|
|
|
19179
19190
|
return program.compiler.emitHmrUpdateModule(node);
|
|
19180
19191
|
}, encodeHmrComponentId = (absoluteFilePath, className) => {
|
|
19181
19192
|
const projectRel = relative14(process.cwd(), absoluteFilePath).replace(/\\/g, "/");
|
|
19182
|
-
return
|
|
19193
|
+
return `${projectRel}@${className}`;
|
|
19183
19194
|
};
|
|
19184
19195
|
var init_hmrCompiler = __esm(() => {
|
|
19185
19196
|
init_logger();
|
|
@@ -21608,5 +21619,5 @@ export {
|
|
|
21608
21619
|
build
|
|
21609
21620
|
};
|
|
21610
21621
|
|
|
21611
|
-
//# debugId=
|
|
21622
|
+
//# debugId=7FA3833C60A28CFB64756E2164756E21
|
|
21612
21623
|
//# sourceMappingURL=build.js.map
|