@ethlete/query 6.0.0-next.2 → 6.0.0-next.20

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.
@@ -0,0 +1,131 @@
1
+ import * as ts from 'typescript';
2
+ import { createSourceFile } from './shared.js';
3
+ const REFRESH_CONFIG_KEYS = new Set([
4
+ 'queryCreator',
5
+ 'responseAdapter',
6
+ 'requestArgsAdapter',
7
+ 'cookieName',
8
+ 'cookieDomain',
9
+ 'cookieExpiresInDays',
10
+ 'expiresInPropertyName',
11
+ ]);
12
+ export const collectV2BearerAuthConfigs = (tree, scope) => {
13
+ const configs = [];
14
+ scope.visit(tree, (filePath) => {
15
+ if (!filePath.endsWith('.ts') || filePath.endsWith('.spec.ts')) {
16
+ return;
17
+ }
18
+ const content = tree.read(filePath, 'utf-8');
19
+ if (!content || !content.includes('V2BearerAuthProvider')) {
20
+ return;
21
+ }
22
+ const sourceFile = createSourceFile(content, filePath);
23
+ const visit = (node) => {
24
+ if (ts.isNewExpression(node) &&
25
+ ts.isIdentifier(node.expression) &&
26
+ node.expression.text === 'V2BearerAuthProvider') {
27
+ const configArgument = node.arguments?.[0];
28
+ if (configArgument && ts.isObjectLiteralExpression(configArgument)) {
29
+ configs.push(readConfig(configArgument, sourceFile, filePath, node));
30
+ }
31
+ }
32
+ ts.forEachChild(node, visit);
33
+ };
34
+ visit(sourceFile);
35
+ });
36
+ return configs;
37
+ };
38
+ const readConfig = (configArgument, sourceFile, filePath, node) => {
39
+ const config = {
40
+ filePath,
41
+ line: sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line + 1,
42
+ };
43
+ const refreshConfig = configArgument.properties.find((property) => ts.isPropertyAssignment(property) && ts.isIdentifier(property.name) && property.name.text === 'refreshConfig');
44
+ if (!refreshConfig ||
45
+ !ts.isPropertyAssignment(refreshConfig) ||
46
+ !ts.isObjectLiteralExpression(refreshConfig.initializer)) {
47
+ return config;
48
+ }
49
+ refreshConfig.initializer.properties.forEach((property) => {
50
+ if (!ts.isPropertyAssignment(property) || !ts.isIdentifier(property.name)) {
51
+ return;
52
+ }
53
+ const key = property.name.text;
54
+ if (!REFRESH_CONFIG_KEYS.has(key)) {
55
+ return;
56
+ }
57
+ const text = property.initializer.getText(sourceFile);
58
+ if (key === 'queryCreator') {
59
+ if (ts.isIdentifier(property.initializer)) {
60
+ config.refreshCreatorName = property.initializer.text;
61
+ }
62
+ return;
63
+ }
64
+ config[key] = text;
65
+ });
66
+ return config;
67
+ };
68
+ const REFRESH_QUERY_KEY = 'tokenRefresh';
69
+ /**
70
+ * Renders the `queries` / `features` arguments of a v3 provider from a v2 config.
71
+ *
72
+ * The mapping is close to 1:1 — `queryCreator` → `withRefreshQuery`, `responseAdapter` →
73
+ * `extractTokens`, `cookieName` → `withPersistentAuth({ cookie })` — but the adapters are copied
74
+ * verbatim from v2 and their parameter shapes differ, so each one is emitted with a TODO rather
75
+ * than presented as finished.
76
+ */
77
+ export const renderAuthProviderBody = (config) => {
78
+ if (!config?.refreshCreatorName) {
79
+ return {
80
+ queries: ' queries: [],',
81
+ features: '',
82
+ importsNeeded: [],
83
+ isScaffolded: false,
84
+ };
85
+ }
86
+ const refreshEntries = [` queryCreator: ${config.refreshCreatorName},`];
87
+ if (config.responseAdapter) {
88
+ refreshEntries.push(` // TODO(query-v3): v2 responseAdapter. It must return { accessToken, refreshToken } — v2 returned { token, refreshToken }.`, ` extractTokens: ${config.responseAdapter},`);
89
+ }
90
+ if (config.requestArgsAdapter) {
91
+ refreshEntries.push(` // TODO(query-v3): v2 requestArgsAdapter took { token, refreshToken }; buildArgs takes the refresh token alone.`, ` buildArgs: ${config.requestArgsAdapter},`);
92
+ }
93
+ if (config.expiresInPropertyName) {
94
+ refreshEntries.push(` expiresInPropertyName: ${config.expiresInPropertyName},`);
95
+ }
96
+ const queries = [
97
+ ' queries: [',
98
+ ` // Derived from the v2 BearerAuthProvider in ${config.filePath}:${config.line}. Verify before shipping.`,
99
+ ` withRefreshQuery('${REFRESH_QUERY_KEY}', {`,
100
+ ...refreshEntries,
101
+ ' }),',
102
+ ` // TODO(query-v3): add withAuthenticationQuery('login', { queryCreator: … }) for the login query.`,
103
+ ' ],',
104
+ ].join('\n');
105
+ const importsNeeded = ['withRefreshQuery'];
106
+ if (!config.cookieName) {
107
+ return { queries, features: '', importsNeeded, isScaffolded: true };
108
+ }
109
+ const cookieEntries = [` name: ${config.cookieName},`];
110
+ if (config.cookieDomain)
111
+ cookieEntries.push(` domain: ${config.cookieDomain},`);
112
+ if (config.cookieExpiresInDays)
113
+ cookieEntries.push(` expiresInDays: ${config.cookieExpiresInDays},`);
114
+ const features = [
115
+ ' features: [',
116
+ ' withPersistentAuth({',
117
+ ' cookie: {',
118
+ ...cookieEntries,
119
+ ' },',
120
+ ' autoLogin: {',
121
+ ` queryKey: '${REFRESH_QUERY_KEY}',`,
122
+ ` // TODO(query-v3): shape the auto-login request from the cookie value.`,
123
+ ' buildArgs: (token) => ({ body: { refreshToken: token } }),',
124
+ ' },',
125
+ ' }),',
126
+ ' ],',
127
+ ].join('\n');
128
+ importsNeeded.push('withPersistentAuth');
129
+ return { queries, features, importsNeeded, isScaffolded: true };
130
+ };
131
+ //# sourceMappingURL=auth-provider-scaffold.js.map
@@ -0,0 +1,293 @@
1
+ import * as ts from 'typescript';
2
+ import { createSourceFile, ensureImportFromQuery, ensureNamedImports, getLineNumberFromPosition } from './shared.js';
3
+ /**
4
+ * Points existing devtools usage at the v3 components instead of deleting it.
5
+ *
6
+ * Both versions render `<et-query-devtools>`, so templates need no change at all — only the provider
7
+ * call and the component's import move. Stripping the markup (as this phase used to) threw away
8
+ * something that would have kept working, and left every migrated app without devtools until someone
9
+ * noticed they were gone.
10
+ */
11
+ export const migrateDevtoolsUsage = (tree, scope, report) => {
12
+ const updatedFiles = [];
13
+ const filesNeedingComponentsPackage = [];
14
+ scope.visit(tree, (filePath) => {
15
+ if (!filePath.endsWith('.ts')) {
16
+ return;
17
+ }
18
+ const content = tree.read(filePath, 'utf-8');
19
+ if (!content ||
20
+ (!content.includes('provideQueryClientForDevtools') && !content.includes('QueryDevtoolsComponent'))) {
21
+ return;
22
+ }
23
+ const { content: nextContent, importsComponent } = migrateDevtoolsInFile(content);
24
+ if (nextContent === content) {
25
+ return;
26
+ }
27
+ tree.write(filePath, nextContent);
28
+ updatedFiles.push(filePath);
29
+ if (importsComponent) {
30
+ filesNeedingComponentsPackage.push(filePath);
31
+ }
32
+ });
33
+ if (updatedFiles.length === 0) {
34
+ return;
35
+ }
36
+ console.log('\n✅ Migrated query devtools usage to v3 in:');
37
+ updatedFiles.forEach((filePath) => console.log(` - ${filePath}`));
38
+ if (filesNeedingComponentsPackage.length > 0) {
39
+ // The component moved packages, which is the one part of this rewrite that can fail outside the
40
+ // file being edited: an app that only ever depended on `@ethlete/query` now needs `@ethlete/components`.
41
+ report.addManualReview({
42
+ title: 'Add @ethlete/components for the query devtools',
43
+ summary: '`QueryDevtoolsComponent` now lives in `@ethlete/components`. The imports were rewritten, but the package may not be a dependency of these projects yet.',
44
+ action: 'Run `yarn add @ethlete/components` where needed, then `yarn install` and re-lint the affected libs so the `@nx/dependency-checks` rule sees the new dependency.',
45
+ locations: filesNeedingComponentsPackage.map((filePath) => ({ filePath })),
46
+ source: 'cleanup-migration',
47
+ dedupeKey: 'devtools-components-dependency',
48
+ });
49
+ }
50
+ };
51
+ export const replaceAnyQueryWithLegacy = (tree, scope) => {
52
+ const updatedFiles = [];
53
+ scope.visit(tree, (filePath) => {
54
+ if (!filePath.endsWith('.ts') || filePath.endsWith('.spec.ts')) {
55
+ return;
56
+ }
57
+ const content = tree.read(filePath, 'utf-8');
58
+ if (!content) {
59
+ return;
60
+ }
61
+ const nextContent = replaceAnyQueryInFile(content);
62
+ if (nextContent !== content) {
63
+ tree.write(filePath, nextContent);
64
+ updatedFiles.push(filePath);
65
+ }
66
+ });
67
+ if (updatedFiles.length > 0) {
68
+ console.log(`\n✅ Replaced legacy AnyV2Query aliases in ${updatedFiles.length} files`);
69
+ }
70
+ };
71
+ export const migrateEmptyPrepareCalls = (tree, scope) => {
72
+ const updatedFiles = [];
73
+ scope.visit(tree, (filePath) => {
74
+ if (!filePath.endsWith('.ts') || filePath.endsWith('.spec.ts')) {
75
+ return;
76
+ }
77
+ const content = tree.read(filePath, 'utf-8');
78
+ if (!content || !content.includes('.prepare()')) {
79
+ return;
80
+ }
81
+ const nextContent = transformEmptyPrepareCalls(content);
82
+ if (nextContent !== content) {
83
+ tree.write(filePath, nextContent);
84
+ updatedFiles.push(filePath);
85
+ }
86
+ });
87
+ if (updatedFiles.length > 0) {
88
+ console.log(`\n✅ Migrated empty .prepare() calls in ${updatedFiles.length} files`);
89
+ }
90
+ };
91
+ const migrateDevtoolsInFile = (content) => {
92
+ const importsComponent = importsFromQuery(content, 'QueryDevtoolsComponent');
93
+ let result = replaceDevtoolsProviderCalls(content);
94
+ const hasProvider = result.includes('provideQueryDevtools()');
95
+ result = dropLegacyDevtoolsImports(result);
96
+ if (hasProvider) {
97
+ result = ensureImportFromQuery(result, ['provideQueryDevtools']);
98
+ }
99
+ if (importsComponent) {
100
+ result = ensureNamedImports({
101
+ content: result,
102
+ importsNeeded: ['QueryDevtoolsComponent'],
103
+ moduleSpecifier: '@ethlete/components',
104
+ });
105
+ }
106
+ return { content: result, importsComponent };
107
+ };
108
+ const importsFromQuery = (content, name) => {
109
+ const sourceFile = createSourceFile(content);
110
+ return sourceFile.statements.some((node) => ts.isImportDeclaration(node) &&
111
+ ts.isStringLiteral(node.moduleSpecifier) &&
112
+ node.moduleSpecifier.text === '@ethlete/query' &&
113
+ !!node.importClause?.namedBindings &&
114
+ ts.isNamedImports(node.importClause.namedBindings) &&
115
+ node.importClause.namedBindings.elements.some((element) => element.name.text === name));
116
+ };
117
+ /**
118
+ * Turns every `provideQueryClientForDevtools({ client, displayName })` into a single
119
+ * `provideQueryDevtools()`.
120
+ *
121
+ * v3 registers every client and auth provider at once, so N per-client calls collapse to one. The
122
+ * first call site keeps its position — it is already where the app wanted its devtools — and the
123
+ * rest are removed along with the comma that separated them.
124
+ */
125
+ const replaceDevtoolsProviderCalls = (content) => {
126
+ const sourceFile = createSourceFile(content);
127
+ const calls = [];
128
+ const visit = (node) => {
129
+ if (ts.isCallExpression(node) &&
130
+ ts.isIdentifier(node.expression) &&
131
+ node.expression.text === 'provideQueryClientForDevtools') {
132
+ calls.push(node);
133
+ }
134
+ ts.forEachChild(node, visit);
135
+ };
136
+ visit(sourceFile);
137
+ if (calls.length === 0) {
138
+ return content;
139
+ }
140
+ const replacements = calls.map((call, index) => {
141
+ const start = call.getStart(sourceFile);
142
+ const end = call.getEnd();
143
+ if (index === 0) {
144
+ return { start, end, replacement: 'provideQueryDevtools()' };
145
+ }
146
+ return { ...withSurroundingComma(content, start, end), replacement: '' };
147
+ });
148
+ let result = content;
149
+ replacements.sort((left, right) => right.start - left.start);
150
+ replacements.forEach(({ start, end, replacement }) => {
151
+ result = result.slice(0, start) + replacement + result.slice(end);
152
+ });
153
+ return result;
154
+ };
155
+ /** Widens a range to swallow the comma that separated the element from its neighbours. */
156
+ const withSurroundingComma = (content, start, end) => {
157
+ let nextEnd = end;
158
+ while (nextEnd < content.length && /\s/.test(content[nextEnd]))
159
+ nextEnd += 1;
160
+ if (content[nextEnd] === ',') {
161
+ return { start, end: nextEnd + 1 };
162
+ }
163
+ let nextStart = start;
164
+ while (nextStart > 0 && /\s/.test(content[nextStart - 1]))
165
+ nextStart -= 1;
166
+ if (content[nextStart - 1] === ',') {
167
+ return { start: nextStart - 1, end };
168
+ }
169
+ return { start, end };
170
+ };
171
+ /** Drops the v2 devtools names from the `@ethlete/query` import; both moved or were renamed. */
172
+ const dropLegacyDevtoolsImports = (content) => {
173
+ const sourceFile = createSourceFile(content);
174
+ let importNode;
175
+ ts.forEachChild(sourceFile, (node) => {
176
+ if (ts.isImportDeclaration(node) &&
177
+ ts.isStringLiteral(node.moduleSpecifier) &&
178
+ node.moduleSpecifier.text === '@ethlete/query') {
179
+ importNode = node;
180
+ }
181
+ });
182
+ if (!importNode?.importClause?.namedBindings || !ts.isNamedImports(importNode.importClause.namedBindings)) {
183
+ return content;
184
+ }
185
+ const nextElements = importNode.importClause.namedBindings.elements.filter((element) => element.name.text !== 'QueryDevtoolsComponent' && element.name.text !== 'provideQueryClientForDevtools');
186
+ if (nextElements.length === importNode.importClause.namedBindings.elements.length) {
187
+ return content;
188
+ }
189
+ if (nextElements.length === 0) {
190
+ const nextLineEnd = content[importNode.getEnd()] === '\n' ? importNode.getEnd() + 1 : importNode.getEnd();
191
+ return content.slice(0, importNode.getStart(sourceFile)) + content.slice(nextLineEnd);
192
+ }
193
+ const nextImport = `import { ${nextElements.map((element) => element.getText(sourceFile)).join(', ')} } from '@ethlete/query';`;
194
+ return content.slice(0, importNode.getStart(sourceFile)) + nextImport + content.slice(importNode.getEnd());
195
+ };
196
+ const replaceAnyQueryInFile = (content) => {
197
+ const sourceFile = createSourceFile(content);
198
+ const replacements = [];
199
+ const visit = (node) => {
200
+ if (ts.isIdentifier(node)) {
201
+ if (node.text === 'AnyV2Query') {
202
+ replacements.push({
203
+ start: node.getStart(sourceFile),
204
+ end: node.getEnd(),
205
+ replacement: 'AnyLegacyQuery',
206
+ });
207
+ }
208
+ if (node.text === 'AnyV2QueryCreator') {
209
+ replacements.push({
210
+ start: node.getStart(sourceFile),
211
+ end: node.getEnd(),
212
+ replacement: 'AnyLegacyQueryCreator',
213
+ });
214
+ }
215
+ }
216
+ ts.forEachChild(node, visit);
217
+ };
218
+ visit(sourceFile);
219
+ let result = content;
220
+ replacements.sort((left, right) => right.start - left.start);
221
+ replacements.forEach(({ start, end, replacement }) => {
222
+ result = result.slice(0, start) + replacement + result.slice(end);
223
+ });
224
+ return removeAnyQueryFromImports(result);
225
+ };
226
+ const removeAnyQueryFromImports = (content) => {
227
+ const sourceFile = createSourceFile(content);
228
+ let importNode;
229
+ ts.forEachChild(sourceFile, (node) => {
230
+ if (ts.isImportDeclaration(node) &&
231
+ ts.isStringLiteral(node.moduleSpecifier) &&
232
+ node.moduleSpecifier.text === '@ethlete/query') {
233
+ importNode = node;
234
+ }
235
+ });
236
+ if (!importNode?.importClause?.namedBindings || !ts.isNamedImports(importNode.importClause.namedBindings)) {
237
+ return content;
238
+ }
239
+ const replaced = new Map([
240
+ ['AnyV2Query', 'AnyLegacyQuery'],
241
+ ['AnyV2QueryCreator', 'AnyLegacyQueryCreator'],
242
+ ]);
243
+ const names = new Set();
244
+ let changed = false;
245
+ importNode.importClause.namedBindings.elements.forEach((element) => {
246
+ const replacement = replaced.get(element.name.text);
247
+ if (!replacement) {
248
+ names.add(element.getText(sourceFile));
249
+ return;
250
+ }
251
+ // Only add the alias that was actually imported. Adding both unconditionally is what put
252
+ // `AnyLegacyQuery` / `AnyLegacyQueryCreator` into hundreds of files that never referenced them.
253
+ changed = true;
254
+ names.add(replacement);
255
+ });
256
+ if (!changed) {
257
+ return content;
258
+ }
259
+ const nextImport = `import { ${Array.from(names).sort().join(', ')} } from '@ethlete/query';`;
260
+ return content.slice(0, importNode.getStart(sourceFile)) + nextImport + content.slice(importNode.getEnd());
261
+ };
262
+ const transformEmptyPrepareCalls = (content) => {
263
+ const sourceFile = createSourceFile(content);
264
+ const replacements = [];
265
+ const visit = (node) => {
266
+ if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression)) {
267
+ const propertyAccess = node.expression;
268
+ if (ts.isIdentifier(propertyAccess.name) &&
269
+ propertyAccess.name.text === 'prepare' &&
270
+ node.arguments.length === 0) {
271
+ const callText = content.slice(node.getStart(sourceFile), node.getEnd());
272
+ replacements.push({
273
+ start: node.getStart(sourceFile),
274
+ end: node.getEnd(),
275
+ replacement: callText.replace(/\.prepare\(\)/, '.prepare({})'),
276
+ });
277
+ }
278
+ }
279
+ ts.forEachChild(node, visit);
280
+ };
281
+ visit(sourceFile);
282
+ let result = content;
283
+ replacements.sort((left, right) => right.start - left.start);
284
+ replacements.forEach(({ start, end, replacement }) => {
285
+ result = result.slice(0, start) + replacement + result.slice(end);
286
+ });
287
+ return result;
288
+ };
289
+ export const describeTemplateLine = (content, position, suffix) => {
290
+ const lineNumber = getLineNumberFromPosition(content, position);
291
+ return `${lineNumber} (${suffix})`;
292
+ };
293
+ //# sourceMappingURL=cleanup-migration.js.map
@@ -0,0 +1,93 @@
1
+ import { getLineNumberFromPosition } from './shared.js';
2
+ const APP_CONFIG_MARKERS = ['bootstrapApplication(', 'ApplicationConfig', 'provideServerRendering('];
3
+ /**
4
+ * Flags the v2 default-header APIs, which the client migration drops on the floor.
5
+ *
6
+ * `setDefaultHeaders` is not cosmetic — an API token or a preview credential lives there, so losing
7
+ * it means every request goes out unauthenticated. v3 has a home for it (`headers` on
8
+ * `createQueryClient`), but the call sites are imperative and scattered, so this is a pointer rather
9
+ * than a rewrite.
10
+ */
11
+ export const reportDefaultHeaderUsages = (tree, report, scope) => {
12
+ const locations = [];
13
+ scope.visit(tree, (filePath) => {
14
+ if (!filePath.endsWith('.ts')) {
15
+ return;
16
+ }
17
+ const content = tree.read(filePath, 'utf-8');
18
+ if (!content) {
19
+ return;
20
+ }
21
+ for (const marker of ['setDefaultHeaders', 'globalHeaders']) {
22
+ const index = content.indexOf(marker);
23
+ if (index >= 0) {
24
+ locations.push({ filePath, line: getLineNumberFromPosition(content, index) });
25
+ }
26
+ }
27
+ });
28
+ if (locations.length === 0) {
29
+ return;
30
+ }
31
+ report.addWarning({
32
+ title: 'Move default headers onto the query client',
33
+ summary: 'This workspace sets client-wide headers through the v2 `setDefaultHeaders` / `globalHeaders` API, which `createQueryClient` does not have. Left as is, those headers are simply not sent.',
34
+ action: 'Pass `headers` to `createQueryClient` — a function form re-reads on every request, so a signal can drive it. `refreshQueriesInUse: true` becomes `injectMyClient().refreshQueriesInUse()` after the value changes.',
35
+ locations,
36
+ source: 'http-client-check',
37
+ dedupeKey: 'default-headers',
38
+ });
39
+ };
40
+ /**
41
+ * Flags applications that will build cleanly and then fail on their first request.
42
+ *
43
+ * The v2 client shipped its own transport; v3 does `inject(HttpClient)`. An app that never needed
44
+ * `provideHttpClient()` therefore keeps compiling after the migration and dies at runtime instead —
45
+ * the one failure mode a codemod should never leave behind silently.
46
+ */
47
+ export const reportMissingHttpClientProviders = (tree, report, scope) => {
48
+ const appConfigFiles = [];
49
+ const filesWithProvider = [];
50
+ const filesWithUploadProgress = [];
51
+ scope.visit(tree, (filePath) => {
52
+ if (!filePath.endsWith('.ts') || filePath.endsWith('.spec.ts')) {
53
+ return;
54
+ }
55
+ const content = tree.read(filePath, 'utf-8');
56
+ if (!content) {
57
+ return;
58
+ }
59
+ if (content.includes('provideHttpClient(')) {
60
+ filesWithProvider.push(filePath);
61
+ }
62
+ const markerIndex = APP_CONFIG_MARKERS.map((marker) => content.indexOf(marker)).find((index) => index >= 0);
63
+ if (markerIndex !== undefined) {
64
+ appConfigFiles.push({ filePath, line: getLineNumberFromPosition(content, markerIndex) });
65
+ }
66
+ const progressIndex = content.indexOf('reportProgress');
67
+ if (progressIndex >= 0) {
68
+ filesWithUploadProgress.push({ filePath, line: getLineNumberFromPosition(content, progressIndex) });
69
+ }
70
+ });
71
+ if (appConfigFiles.length > 0 && filesWithProvider.length === 0) {
72
+ report.addWarning({
73
+ title: 'Add provideHttpClient() to the application providers',
74
+ summary: 'v3 queries run on Angular’s `HttpClient`, but no `provideHttpClient()` was found. The app compiles and then throws on the first request — `@ethlete/query` never provides it, that is the application’s job.',
75
+ action: 'Add `provideHttpClient()` to every app config that uses a query client. If anything relies on upload progress, use `provideHttpClient(withXhr())` — on Angular ≥ 22 the default is fetch, which emits no upload progress events.',
76
+ locations: appConfigFiles,
77
+ source: 'http-client-check',
78
+ dedupeKey: 'missing-provide-http-client',
79
+ });
80
+ return;
81
+ }
82
+ if (filesWithUploadProgress.length > 0) {
83
+ report.addManualReview({
84
+ title: 'Confirm the HttpClient backend supports upload progress',
85
+ summary: 'Queries in this workspace set `reportProgress`. On Angular ≥ 22 `provideHttpClient()` defaults to the fetch backend, which never emits upload progress events, so those queries would report download progress only.',
86
+ action: 'Switch the affected app to `provideHttpClient(withXhr())`, or drop `reportProgress` where it is unused.',
87
+ locations: filesWithUploadProgress,
88
+ source: 'http-client-check',
89
+ dedupeKey: 'upload-progress-backend',
90
+ });
91
+ }
92
+ };
93
+ //# sourceMappingURL=http-client-check.js.map