@absolutejs/absolute 0.19.0-beta.876 → 0.19.0-beta.877

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-194B10/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-0mULKL/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-194B10/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-0mULKL/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-194B10/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-0mULKL/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
@@ -19074,26 +19074,41 @@ ${block}
19074
19074
  while ((idMatch = identRe.exec(provisionalMethodsBlock)) !== null) {
19075
19075
  referencedNames.add(idMatch[0]);
19076
19076
  }
19077
- const sourceImportedNames = new Set;
19077
+ const sourceScopeNames = new Set;
19078
19078
  for (const stmt of sourceFile.statements) {
19079
- if (!ts7.isImportDeclaration(stmt))
19080
- continue;
19081
- if (!ts7.isStringLiteral(stmt.moduleSpecifier))
19079
+ if (ts7.isImportDeclaration(stmt)) {
19080
+ if (!ts7.isStringLiteral(stmt.moduleSpecifier))
19081
+ continue;
19082
+ const clause = stmt.importClause;
19083
+ if (clause?.name)
19084
+ sourceScopeNames.add(clause.name.text);
19085
+ if (clause?.namedBindings && ts7.isNamedImports(clause.namedBindings)) {
19086
+ for (const el of clause.namedBindings.elements) {
19087
+ if (el.isTypeOnly)
19088
+ continue;
19089
+ sourceScopeNames.add(el.name.text);
19090
+ }
19091
+ } else if (clause?.namedBindings && ts7.isNamespaceImport(clause.namedBindings)) {
19092
+ sourceScopeNames.add(clause.namedBindings.name.text);
19093
+ }
19082
19094
  continue;
19083
- const clause = stmt.importClause;
19084
- if (clause?.name)
19085
- sourceImportedNames.add(clause.name.text);
19086
- if (clause?.namedBindings && ts7.isNamedImports(clause.namedBindings)) {
19087
- for (const el of clause.namedBindings.elements) {
19088
- if (el.isTypeOnly)
19089
- continue;
19090
- sourceImportedNames.add(el.name.text);
19095
+ }
19096
+ if (ts7.isVariableStatement(stmt) || stmt.kind === ts7.SyntaxKind.VariableStatement) {
19097
+ const varStmt = stmt;
19098
+ for (const decl of varStmt.declarationList.declarations) {
19099
+ if (ts7.isIdentifier(decl.name)) {
19100
+ sourceScopeNames.add(decl.name.text);
19101
+ }
19091
19102
  }
19092
- } else if (clause?.namedBindings && ts7.isNamespaceImport(clause.namedBindings)) {
19093
- sourceImportedNames.add(clause.namedBindings.name.text);
19103
+ continue;
19104
+ }
19105
+ if (ts7.isFunctionDeclaration(stmt) || ts7.isClassDeclaration(stmt)) {
19106
+ if (stmt.name)
19107
+ sourceScopeNames.add(stmt.name.text);
19094
19108
  }
19095
19109
  }
19096
- const depsToDestructure = [...sourceImportedNames].filter((n) => referencedNames.has(n));
19110
+ sourceScopeNames.delete(className);
19111
+ const depsToDestructure = [...sourceScopeNames].filter((n) => referencedNames.has(n));
19097
19112
  const tsSourceText = fnText;
19098
19113
  const transpiled = ts7.transpileModule(tsSourceText, {
19099
19114
  compilerOptions: {
@@ -21797,5 +21812,5 @@ export {
21797
21812
  build
21798
21813
  };
21799
21814
 
21800
- //# debugId=41B1A6E07AC97C0564756E2164756E21
21815
+ //# debugId=53ACDD84AE5243BB64756E2164756E21
21801
21816
  //# sourceMappingURL=build.js.map