@absolutejs/absolute 0.19.0-beta.870 → 0.19.0-beta.871

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-Bojsdt/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-IHtBo4/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-Bojsdt/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-IHtBo4/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-Bojsdt/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-IHtBo4/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
@@ -19014,6 +19014,13 @@ ${block}
19014
19014
  removeComments: false
19015
19015
  });
19016
19016
  const fnText = printer.printNode(ts7.EmitHint.Unspecified, exportedDecl, sourceFile);
19017
+ const provisionalMethodsBlock = buildFreshClassMethodsBlock(classNode, className) ?? "";
19018
+ const referencedNames = new Set;
19019
+ const identRe = /[A-Za-z_$][A-Za-z0-9_$]*/g;
19020
+ let idMatch;
19021
+ while ((idMatch = identRe.exec(provisionalMethodsBlock)) !== null) {
19022
+ referencedNames.add(idMatch[0]);
19023
+ }
19017
19024
  const importDecls = [];
19018
19025
  for (const stmt of sourceFile.statements) {
19019
19026
  if (!ts7.isImportDeclaration(stmt))
@@ -19023,6 +19030,21 @@ ${block}
19023
19030
  const spec = stmt.moduleSpecifier.text;
19024
19031
  if (spec.startsWith(".") || spec.startsWith("/"))
19025
19032
  continue;
19033
+ const importedNames = [];
19034
+ const clause = stmt.importClause;
19035
+ if (clause?.name)
19036
+ importedNames.push(clause.name.text);
19037
+ if (clause?.namedBindings && ts7.isNamedImports(clause.namedBindings)) {
19038
+ for (const el of clause.namedBindings.elements) {
19039
+ if (el.isTypeOnly)
19040
+ continue;
19041
+ importedNames.push(el.name.text);
19042
+ }
19043
+ } else if (clause?.namedBindings && ts7.isNamespaceImport(clause.namedBindings)) {
19044
+ importedNames.push(clause.namedBindings.name.text);
19045
+ }
19046
+ if (!importedNames.some((n) => referencedNames.has(n)))
19047
+ continue;
19026
19048
  importDecls.push(printer.printNode(ts7.EmitHint.Unspecified, stmt, sourceFile));
19027
19049
  }
19028
19050
  const tsSourceText = (importDecls.length > 0 ? importDecls.join(`
@@ -19032,7 +19054,8 @@ ${block}
19032
19054
  const transpiled = ts7.transpileModule(tsSourceText, {
19033
19055
  compilerOptions: {
19034
19056
  module: ts7.ModuleKind.ES2022,
19035
- target: ts7.ScriptTarget.ES2022
19057
+ target: ts7.ScriptTarget.ES2022,
19058
+ verbatimModuleSyntax: true
19036
19059
  },
19037
19060
  fileName: componentFilePath,
19038
19061
  reportDiagnostics: false
@@ -21705,5 +21728,5 @@ export {
21705
21728
  build
21706
21729
  };
21707
21730
 
21708
- //# debugId=1B80B57D02337A8264756E2164756E21
21731
+ //# debugId=7188E6E5DCCA465064756E2164756E21
21709
21732
  //# sourceMappingURL=build.js.map