@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.
package/dist/index.js
CHANGED
|
@@ -19171,26 +19171,41 @@ ${block}
|
|
|
19171
19171
|
while ((idMatch = identRe.exec(provisionalMethodsBlock)) !== null) {
|
|
19172
19172
|
referencedNames.add(idMatch[0]);
|
|
19173
19173
|
}
|
|
19174
|
-
const
|
|
19174
|
+
const sourceScopeNames = new Set;
|
|
19175
19175
|
for (const stmt of sourceFile.statements) {
|
|
19176
|
-
if (
|
|
19177
|
-
|
|
19178
|
-
|
|
19176
|
+
if (ts7.isImportDeclaration(stmt)) {
|
|
19177
|
+
if (!ts7.isStringLiteral(stmt.moduleSpecifier))
|
|
19178
|
+
continue;
|
|
19179
|
+
const clause = stmt.importClause;
|
|
19180
|
+
if (clause?.name)
|
|
19181
|
+
sourceScopeNames.add(clause.name.text);
|
|
19182
|
+
if (clause?.namedBindings && ts7.isNamedImports(clause.namedBindings)) {
|
|
19183
|
+
for (const el of clause.namedBindings.elements) {
|
|
19184
|
+
if (el.isTypeOnly)
|
|
19185
|
+
continue;
|
|
19186
|
+
sourceScopeNames.add(el.name.text);
|
|
19187
|
+
}
|
|
19188
|
+
} else if (clause?.namedBindings && ts7.isNamespaceImport(clause.namedBindings)) {
|
|
19189
|
+
sourceScopeNames.add(clause.namedBindings.name.text);
|
|
19190
|
+
}
|
|
19179
19191
|
continue;
|
|
19180
|
-
|
|
19181
|
-
if (
|
|
19182
|
-
|
|
19183
|
-
|
|
19184
|
-
|
|
19185
|
-
|
|
19186
|
-
|
|
19187
|
-
sourceImportedNames.add(el.name.text);
|
|
19192
|
+
}
|
|
19193
|
+
if (ts7.isVariableStatement(stmt) || stmt.kind === ts7.SyntaxKind.VariableStatement) {
|
|
19194
|
+
const varStmt = stmt;
|
|
19195
|
+
for (const decl of varStmt.declarationList.declarations) {
|
|
19196
|
+
if (ts7.isIdentifier(decl.name)) {
|
|
19197
|
+
sourceScopeNames.add(decl.name.text);
|
|
19198
|
+
}
|
|
19188
19199
|
}
|
|
19189
|
-
|
|
19190
|
-
|
|
19200
|
+
continue;
|
|
19201
|
+
}
|
|
19202
|
+
if (ts7.isFunctionDeclaration(stmt) || ts7.isClassDeclaration(stmt)) {
|
|
19203
|
+
if (stmt.name)
|
|
19204
|
+
sourceScopeNames.add(stmt.name.text);
|
|
19191
19205
|
}
|
|
19192
19206
|
}
|
|
19193
|
-
|
|
19207
|
+
sourceScopeNames.delete(className);
|
|
19208
|
+
const depsToDestructure = [...sourceScopeNames].filter((n) => referencedNames.has(n));
|
|
19194
19209
|
const tsSourceText = fnText;
|
|
19195
19210
|
const transpiled = ts7.transpileModule(tsSourceText, {
|
|
19196
19211
|
compilerOptions: {
|
|
@@ -30474,5 +30489,5 @@ export {
|
|
|
30474
30489
|
ANGULAR_INIT_TIMEOUT_MS
|
|
30475
30490
|
};
|
|
30476
30491
|
|
|
30477
|
-
//# debugId=
|
|
30492
|
+
//# debugId=4117F8576985AF1A64756E2164756E21
|
|
30478
30493
|
//# sourceMappingURL=index.js.map
|