@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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-KVqUIa/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-AKY4B5/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-KVqUIa/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-AKY4B5/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-KVqUIa/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-AKY4B5/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
- if (modifiers.some((m) => m.kind === ts7.SyntaxKind.StaticKeyword)) {
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)
@@ -18866,21 +18877,7 @@ ${block}
18866
18877
  const sourceFileObj = new compiler.ParseSourceFile(tsSource, componentFilePath);
18867
18878
  const zeroLoc = new compiler.ParseLocation(sourceFileObj, 0, 0, 0);
18868
18879
  const typeSourceSpan = new compiler.ParseSourceSpan(zeroLoc, zeroLoc);
18869
- const importsArray = [];
18870
- if (decoratorMeta.importsExpr) {
18871
- for (const el of decoratorMeta.importsExpr.elements) {
18872
- importsArray.push(new compiler.WrappedNodeExpr(el));
18873
- }
18874
- }
18875
- const declarations = importsArray.map((expr) => ({
18876
- kind: 0,
18877
- type: expr,
18878
- selector: "",
18879
- inputs: [],
18880
- outputs: [],
18881
- exportAs: null,
18882
- isComponent: false
18883
- }));
18880
+ const declarations = [];
18884
18881
  const meta = {
18885
18882
  name: className,
18886
18883
  type: { value: wrappedClass, type: wrappedClass },
@@ -18922,7 +18919,7 @@ ${block}
18922
18919
  i18nUseExternalIds: false,
18923
18920
  changeDetection: null,
18924
18921
  relativeTemplatePath: null,
18925
- hasDirectiveDependencies: importsArray.length > 0
18922
+ hasDirectiveDependencies: false
18926
18923
  };
18927
18924
  let compiled;
18928
18925
  try {
@@ -21608,5 +21605,5 @@ export {
21608
21605
  build
21609
21606
  };
21610
21607
 
21611
- //# debugId=C9EE5441EC17464B64756E2164756E21
21608
+ //# debugId=2B77934E6DE30AB864756E2164756E21
21612
21609
  //# sourceMappingURL=build.js.map