@angular/common 21.2.1 → 22.0.0-next.0
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/fesm2022/_common_module-chunk.mjs +86 -86
- package/fesm2022/_location-chunk.mjs +16 -16
- package/fesm2022/_module-chunk.mjs +59 -58
- package/fesm2022/_module-chunk.mjs.map +1 -1
- package/fesm2022/_platform_location-chunk.mjs +7 -7
- package/fesm2022/_platform_navigation-chunk.mjs +4 -4
- package/fesm2022/_xhr-chunk.mjs +1 -1
- package/fesm2022/common.mjs +17 -17
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http-testing.mjs +8 -8
- package/fesm2022/http.mjs +5 -5
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +13 -13
- package/fesm2022/upgrade.mjs +5 -5
- package/package.json +3 -3
- package/types/_common_module-chunk.d.ts +1 -1
- package/types/_module-chunk.d.ts +6 -2
- package/types/_platform_location-chunk.d.ts +1 -1
- package/types/_xhr-chunk.d.ts +1 -1
- package/types/common.d.ts +1 -1
- package/types/http-testing.d.ts +1 -1
- package/types/http.d.ts +32 -21
- package/types/testing.d.ts +1 -1
- package/types/upgrade.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v22.0.0-next.0
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -31,7 +31,7 @@ class LocationStrategy {
|
|
|
31
31
|
}
|
|
32
32
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
33
33
|
minVersion: "12.0.0",
|
|
34
|
-
version: "
|
|
34
|
+
version: "22.0.0-next.0",
|
|
35
35
|
ngImport: i0,
|
|
36
36
|
type: LocationStrategy,
|
|
37
37
|
deps: [],
|
|
@@ -39,7 +39,7 @@ class LocationStrategy {
|
|
|
39
39
|
});
|
|
40
40
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
41
41
|
minVersion: "12.0.0",
|
|
42
|
-
version: "
|
|
42
|
+
version: "22.0.0-next.0",
|
|
43
43
|
ngImport: i0,
|
|
44
44
|
type: LocationStrategy,
|
|
45
45
|
providedIn: 'root',
|
|
@@ -48,7 +48,7 @@ class LocationStrategy {
|
|
|
48
48
|
}
|
|
49
49
|
i0.ɵɵngDeclareClassMetadata({
|
|
50
50
|
minVersion: "12.0.0",
|
|
51
|
-
version: "
|
|
51
|
+
version: "22.0.0-next.0",
|
|
52
52
|
ngImport: i0,
|
|
53
53
|
type: LocationStrategy,
|
|
54
54
|
decorators: [{
|
|
@@ -110,7 +110,7 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
110
110
|
}
|
|
111
111
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
112
112
|
minVersion: "12.0.0",
|
|
113
|
-
version: "
|
|
113
|
+
version: "22.0.0-next.0",
|
|
114
114
|
ngImport: i0,
|
|
115
115
|
type: PathLocationStrategy,
|
|
116
116
|
deps: [{
|
|
@@ -123,7 +123,7 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
123
123
|
});
|
|
124
124
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
125
125
|
minVersion: "12.0.0",
|
|
126
|
-
version: "
|
|
126
|
+
version: "22.0.0-next.0",
|
|
127
127
|
ngImport: i0,
|
|
128
128
|
type: PathLocationStrategy,
|
|
129
129
|
providedIn: 'root'
|
|
@@ -131,7 +131,7 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
131
131
|
}
|
|
132
132
|
i0.ɵɵngDeclareClassMetadata({
|
|
133
133
|
minVersion: "12.0.0",
|
|
134
|
-
version: "
|
|
134
|
+
version: "22.0.0-next.0",
|
|
135
135
|
ngImport: i0,
|
|
136
136
|
type: PathLocationStrategy,
|
|
137
137
|
decorators: [{
|
|
@@ -162,7 +162,7 @@ class NoTrailingSlashPathLocationStrategy extends PathLocationStrategy {
|
|
|
162
162
|
}
|
|
163
163
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
164
164
|
minVersion: "12.0.0",
|
|
165
|
-
version: "
|
|
165
|
+
version: "22.0.0-next.0",
|
|
166
166
|
ngImport: i0,
|
|
167
167
|
type: NoTrailingSlashPathLocationStrategy,
|
|
168
168
|
deps: null,
|
|
@@ -170,7 +170,7 @@ class NoTrailingSlashPathLocationStrategy extends PathLocationStrategy {
|
|
|
170
170
|
});
|
|
171
171
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
172
172
|
minVersion: "12.0.0",
|
|
173
|
-
version: "
|
|
173
|
+
version: "22.0.0-next.0",
|
|
174
174
|
ngImport: i0,
|
|
175
175
|
type: NoTrailingSlashPathLocationStrategy,
|
|
176
176
|
providedIn: 'root'
|
|
@@ -178,7 +178,7 @@ class NoTrailingSlashPathLocationStrategy extends PathLocationStrategy {
|
|
|
178
178
|
}
|
|
179
179
|
i0.ɵɵngDeclareClassMetadata({
|
|
180
180
|
minVersion: "12.0.0",
|
|
181
|
-
version: "
|
|
181
|
+
version: "22.0.0-next.0",
|
|
182
182
|
ngImport: i0,
|
|
183
183
|
type: NoTrailingSlashPathLocationStrategy,
|
|
184
184
|
decorators: [{
|
|
@@ -198,7 +198,7 @@ class TrailingSlashPathLocationStrategy extends PathLocationStrategy {
|
|
|
198
198
|
}
|
|
199
199
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
200
200
|
minVersion: "12.0.0",
|
|
201
|
-
version: "
|
|
201
|
+
version: "22.0.0-next.0",
|
|
202
202
|
ngImport: i0,
|
|
203
203
|
type: TrailingSlashPathLocationStrategy,
|
|
204
204
|
deps: null,
|
|
@@ -206,7 +206,7 @@ class TrailingSlashPathLocationStrategy extends PathLocationStrategy {
|
|
|
206
206
|
});
|
|
207
207
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
208
208
|
minVersion: "12.0.0",
|
|
209
|
-
version: "
|
|
209
|
+
version: "22.0.0-next.0",
|
|
210
210
|
ngImport: i0,
|
|
211
211
|
type: TrailingSlashPathLocationStrategy,
|
|
212
212
|
providedIn: 'root'
|
|
@@ -214,7 +214,7 @@ class TrailingSlashPathLocationStrategy extends PathLocationStrategy {
|
|
|
214
214
|
}
|
|
215
215
|
i0.ɵɵngDeclareClassMetadata({
|
|
216
216
|
minVersion: "12.0.0",
|
|
217
|
-
version: "
|
|
217
|
+
version: "22.0.0-next.0",
|
|
218
218
|
ngImport: i0,
|
|
219
219
|
type: TrailingSlashPathLocationStrategy,
|
|
220
220
|
decorators: [{
|
|
@@ -317,7 +317,7 @@ class Location {
|
|
|
317
317
|
static stripTrailingSlash = stripTrailingSlash;
|
|
318
318
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
319
319
|
minVersion: "12.0.0",
|
|
320
|
-
version: "
|
|
320
|
+
version: "22.0.0-next.0",
|
|
321
321
|
ngImport: i0,
|
|
322
322
|
type: Location,
|
|
323
323
|
deps: [{
|
|
@@ -327,7 +327,7 @@ class Location {
|
|
|
327
327
|
});
|
|
328
328
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
329
329
|
minVersion: "12.0.0",
|
|
330
|
-
version: "
|
|
330
|
+
version: "22.0.0-next.0",
|
|
331
331
|
ngImport: i0,
|
|
332
332
|
type: Location,
|
|
333
333
|
providedIn: 'root',
|
|
@@ -336,7 +336,7 @@ class Location {
|
|
|
336
336
|
}
|
|
337
337
|
i0.ɵɵngDeclareClassMetadata({
|
|
338
338
|
minVersion: "12.0.0",
|
|
339
|
-
version: "
|
|
339
|
+
version: "22.0.0-next.0",
|
|
340
340
|
ngImport: i0,
|
|
341
341
|
type: Location,
|
|
342
342
|
decorators: [{
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v22.0.0-next.0
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { ɵRuntimeError as _RuntimeError,
|
|
8
|
+
import { ɵRuntimeError as _RuntimeError, inject, NgZone, DestroyRef, Injectable, ɵformatRuntimeError as _formatRuntimeError, ɵTracingService as _TracingService, InjectionToken, runInInjectionContext, PendingTasks, ɵConsole as _Console, DOCUMENT, Inject, EnvironmentInjector, makeEnvironmentProviders, NgModule } from '@angular/core';
|
|
9
9
|
import { switchMap, finalize, concatMap, filter, map } from 'rxjs/operators';
|
|
10
10
|
import { Observable, from, of } from 'rxjs';
|
|
11
11
|
import { XhrFactory, parseCookieValue } from './_xhr-chunk.mjs';
|
|
@@ -754,7 +754,6 @@ var HttpStatusCode;
|
|
|
754
754
|
})(HttpStatusCode || (HttpStatusCode = {}));
|
|
755
755
|
|
|
756
756
|
const XSSI_PREFIX$1 = /^\)\]\}',?\n/;
|
|
757
|
-
const FETCH_BACKEND = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'FETCH_BACKEND' : '');
|
|
758
757
|
class FetchBackend {
|
|
759
758
|
fetchImpl = inject(FetchFactory, {
|
|
760
759
|
optional: true
|
|
@@ -975,7 +974,7 @@ class FetchBackend {
|
|
|
975
974
|
}
|
|
976
975
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
977
976
|
minVersion: "12.0.0",
|
|
978
|
-
version: "
|
|
977
|
+
version: "22.0.0-next.0",
|
|
979
978
|
ngImport: i0,
|
|
980
979
|
type: FetchBackend,
|
|
981
980
|
deps: [],
|
|
@@ -983,14 +982,14 @@ class FetchBackend {
|
|
|
983
982
|
});
|
|
984
983
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
985
984
|
minVersion: "12.0.0",
|
|
986
|
-
version: "
|
|
985
|
+
version: "22.0.0-next.0",
|
|
987
986
|
ngImport: i0,
|
|
988
987
|
type: FetchBackend
|
|
989
988
|
});
|
|
990
989
|
}
|
|
991
990
|
i0.ɵɵngDeclareClassMetadata({
|
|
992
991
|
minVersion: "12.0.0",
|
|
993
|
-
version: "
|
|
992
|
+
version: "22.0.0-next.0",
|
|
994
993
|
ngImport: i0,
|
|
995
994
|
type: FetchBackend,
|
|
996
995
|
decorators: [{
|
|
@@ -1245,7 +1244,7 @@ class HttpXhrBackend {
|
|
|
1245
1244
|
}
|
|
1246
1245
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1247
1246
|
minVersion: "12.0.0",
|
|
1248
|
-
version: "
|
|
1247
|
+
version: "22.0.0-next.0",
|
|
1249
1248
|
ngImport: i0,
|
|
1250
1249
|
type: HttpXhrBackend,
|
|
1251
1250
|
deps: [{
|
|
@@ -1255,7 +1254,7 @@ class HttpXhrBackend {
|
|
|
1255
1254
|
});
|
|
1256
1255
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1257
1256
|
minVersion: "12.0.0",
|
|
1258
|
-
version: "
|
|
1257
|
+
version: "22.0.0-next.0",
|
|
1259
1258
|
ngImport: i0,
|
|
1260
1259
|
type: HttpXhrBackend,
|
|
1261
1260
|
providedIn: 'root'
|
|
@@ -1263,7 +1262,7 @@ class HttpXhrBackend {
|
|
|
1263
1262
|
}
|
|
1264
1263
|
i0.ɵɵngDeclareClassMetadata({
|
|
1265
1264
|
minVersion: "12.0.0",
|
|
1266
|
-
version: "
|
|
1265
|
+
version: "22.0.0-next.0",
|
|
1267
1266
|
ngImport: i0,
|
|
1268
1267
|
type: HttpXhrBackend,
|
|
1269
1268
|
decorators: [{
|
|
@@ -1319,7 +1318,7 @@ function legacyInterceptorFnFactory() {
|
|
|
1319
1318
|
class HttpBackend {
|
|
1320
1319
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1321
1320
|
minVersion: "12.0.0",
|
|
1322
|
-
version: "
|
|
1321
|
+
version: "22.0.0-next.0",
|
|
1323
1322
|
ngImport: i0,
|
|
1324
1323
|
type: HttpBackend,
|
|
1325
1324
|
deps: [],
|
|
@@ -1327,7 +1326,7 @@ class HttpBackend {
|
|
|
1327
1326
|
});
|
|
1328
1327
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1329
1328
|
minVersion: "12.0.0",
|
|
1330
|
-
version: "
|
|
1329
|
+
version: "22.0.0-next.0",
|
|
1331
1330
|
ngImport: i0,
|
|
1332
1331
|
type: HttpBackend,
|
|
1333
1332
|
providedIn: 'root',
|
|
@@ -1336,7 +1335,7 @@ class HttpBackend {
|
|
|
1336
1335
|
}
|
|
1337
1336
|
i0.ɵɵngDeclareClassMetadata({
|
|
1338
1337
|
minVersion: "12.0.0",
|
|
1339
|
-
version: "
|
|
1338
|
+
version: "22.0.0-next.0",
|
|
1340
1339
|
ngImport: i0,
|
|
1341
1340
|
type: HttpBackend,
|
|
1342
1341
|
decorators: [{
|
|
@@ -1379,7 +1378,7 @@ class HttpInterceptorHandler {
|
|
|
1379
1378
|
}
|
|
1380
1379
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1381
1380
|
minVersion: "12.0.0",
|
|
1382
|
-
version: "
|
|
1381
|
+
version: "22.0.0-next.0",
|
|
1383
1382
|
ngImport: i0,
|
|
1384
1383
|
type: HttpInterceptorHandler,
|
|
1385
1384
|
deps: [{
|
|
@@ -1391,7 +1390,7 @@ class HttpInterceptorHandler {
|
|
|
1391
1390
|
});
|
|
1392
1391
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1393
1392
|
minVersion: "12.0.0",
|
|
1394
|
-
version: "
|
|
1393
|
+
version: "22.0.0-next.0",
|
|
1395
1394
|
ngImport: i0,
|
|
1396
1395
|
type: HttpInterceptorHandler,
|
|
1397
1396
|
providedIn: 'root'
|
|
@@ -1399,7 +1398,7 @@ class HttpInterceptorHandler {
|
|
|
1399
1398
|
}
|
|
1400
1399
|
i0.ɵɵngDeclareClassMetadata({
|
|
1401
1400
|
minVersion: "12.0.0",
|
|
1402
|
-
version: "
|
|
1401
|
+
version: "22.0.0-next.0",
|
|
1403
1402
|
ngImport: i0,
|
|
1404
1403
|
type: HttpInterceptorHandler,
|
|
1405
1404
|
decorators: [{
|
|
@@ -1417,7 +1416,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1417
1416
|
class HttpHandler {
|
|
1418
1417
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1419
1418
|
minVersion: "12.0.0",
|
|
1420
|
-
version: "
|
|
1419
|
+
version: "22.0.0-next.0",
|
|
1421
1420
|
ngImport: i0,
|
|
1422
1421
|
type: HttpHandler,
|
|
1423
1422
|
deps: [],
|
|
@@ -1425,7 +1424,7 @@ class HttpHandler {
|
|
|
1425
1424
|
});
|
|
1426
1425
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1427
1426
|
minVersion: "12.0.0",
|
|
1428
|
-
version: "
|
|
1427
|
+
version: "22.0.0-next.0",
|
|
1429
1428
|
ngImport: i0,
|
|
1430
1429
|
type: HttpHandler,
|
|
1431
1430
|
providedIn: 'root',
|
|
@@ -1434,7 +1433,7 @@ class HttpHandler {
|
|
|
1434
1433
|
}
|
|
1435
1434
|
i0.ɵɵngDeclareClassMetadata({
|
|
1436
1435
|
minVersion: "12.0.0",
|
|
1437
|
-
version: "
|
|
1436
|
+
version: "22.0.0-next.0",
|
|
1438
1437
|
ngImport: i0,
|
|
1439
1438
|
type: HttpHandler,
|
|
1440
1439
|
decorators: [{
|
|
@@ -1584,7 +1583,7 @@ class HttpClient {
|
|
|
1584
1583
|
}
|
|
1585
1584
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1586
1585
|
minVersion: "12.0.0",
|
|
1587
|
-
version: "
|
|
1586
|
+
version: "22.0.0-next.0",
|
|
1588
1587
|
ngImport: i0,
|
|
1589
1588
|
type: HttpClient,
|
|
1590
1589
|
deps: [{
|
|
@@ -1594,7 +1593,7 @@ class HttpClient {
|
|
|
1594
1593
|
});
|
|
1595
1594
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1596
1595
|
minVersion: "12.0.0",
|
|
1597
|
-
version: "
|
|
1596
|
+
version: "22.0.0-next.0",
|
|
1598
1597
|
ngImport: i0,
|
|
1599
1598
|
type: HttpClient,
|
|
1600
1599
|
providedIn: 'root'
|
|
@@ -1602,7 +1601,7 @@ class HttpClient {
|
|
|
1602
1601
|
}
|
|
1603
1602
|
i0.ɵɵngDeclareClassMetadata({
|
|
1604
1603
|
minVersion: "12.0.0",
|
|
1605
|
-
version: "
|
|
1604
|
+
version: "22.0.0-next.0",
|
|
1606
1605
|
ngImport: i0,
|
|
1607
1606
|
type: HttpClient,
|
|
1608
1607
|
decorators: [{
|
|
@@ -1717,7 +1716,7 @@ class JsonpClientBackend {
|
|
|
1717
1716
|
}
|
|
1718
1717
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1719
1718
|
minVersion: "12.0.0",
|
|
1720
|
-
version: "
|
|
1719
|
+
version: "22.0.0-next.0",
|
|
1721
1720
|
ngImport: i0,
|
|
1722
1721
|
type: JsonpClientBackend,
|
|
1723
1722
|
deps: [{
|
|
@@ -1729,14 +1728,14 @@ class JsonpClientBackend {
|
|
|
1729
1728
|
});
|
|
1730
1729
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1731
1730
|
minVersion: "12.0.0",
|
|
1732
|
-
version: "
|
|
1731
|
+
version: "22.0.0-next.0",
|
|
1733
1732
|
ngImport: i0,
|
|
1734
1733
|
type: JsonpClientBackend
|
|
1735
1734
|
});
|
|
1736
1735
|
}
|
|
1737
1736
|
i0.ɵɵngDeclareClassMetadata({
|
|
1738
1737
|
minVersion: "12.0.0",
|
|
1739
|
-
version: "
|
|
1738
|
+
version: "22.0.0-next.0",
|
|
1740
1739
|
ngImport: i0,
|
|
1741
1740
|
type: JsonpClientBackend,
|
|
1742
1741
|
decorators: [{
|
|
@@ -1768,7 +1767,7 @@ class JsonpInterceptor {
|
|
|
1768
1767
|
}
|
|
1769
1768
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1770
1769
|
minVersion: "12.0.0",
|
|
1771
|
-
version: "
|
|
1770
|
+
version: "22.0.0-next.0",
|
|
1772
1771
|
ngImport: i0,
|
|
1773
1772
|
type: JsonpInterceptor,
|
|
1774
1773
|
deps: [{
|
|
@@ -1778,14 +1777,14 @@ class JsonpInterceptor {
|
|
|
1778
1777
|
});
|
|
1779
1778
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1780
1779
|
minVersion: "12.0.0",
|
|
1781
|
-
version: "
|
|
1780
|
+
version: "22.0.0-next.0",
|
|
1782
1781
|
ngImport: i0,
|
|
1783
1782
|
type: JsonpInterceptor
|
|
1784
1783
|
});
|
|
1785
1784
|
}
|
|
1786
1785
|
i0.ɵɵngDeclareClassMetadata({
|
|
1787
1786
|
minVersion: "12.0.0",
|
|
1788
|
-
version: "
|
|
1787
|
+
version: "22.0.0-next.0",
|
|
1789
1788
|
ngImport: i0,
|
|
1790
1789
|
type: JsonpInterceptor,
|
|
1791
1790
|
decorators: [{
|
|
@@ -1827,7 +1826,7 @@ class HttpXsrfCookieExtractor {
|
|
|
1827
1826
|
}
|
|
1828
1827
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1829
1828
|
minVersion: "12.0.0",
|
|
1830
|
-
version: "
|
|
1829
|
+
version: "22.0.0-next.0",
|
|
1831
1830
|
ngImport: i0,
|
|
1832
1831
|
type: HttpXsrfCookieExtractor,
|
|
1833
1832
|
deps: [],
|
|
@@ -1835,7 +1834,7 @@ class HttpXsrfCookieExtractor {
|
|
|
1835
1834
|
});
|
|
1836
1835
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1837
1836
|
minVersion: "12.0.0",
|
|
1838
|
-
version: "
|
|
1837
|
+
version: "22.0.0-next.0",
|
|
1839
1838
|
ngImport: i0,
|
|
1840
1839
|
type: HttpXsrfCookieExtractor,
|
|
1841
1840
|
providedIn: 'root'
|
|
@@ -1843,7 +1842,7 @@ class HttpXsrfCookieExtractor {
|
|
|
1843
1842
|
}
|
|
1844
1843
|
i0.ɵɵngDeclareClassMetadata({
|
|
1845
1844
|
minVersion: "12.0.0",
|
|
1846
|
-
version: "
|
|
1845
|
+
version: "22.0.0-next.0",
|
|
1847
1846
|
ngImport: i0,
|
|
1848
1847
|
type: HttpXsrfCookieExtractor,
|
|
1849
1848
|
decorators: [{
|
|
@@ -1856,7 +1855,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1856
1855
|
class HttpXsrfTokenExtractor {
|
|
1857
1856
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1858
1857
|
minVersion: "12.0.0",
|
|
1859
|
-
version: "
|
|
1858
|
+
version: "22.0.0-next.0",
|
|
1860
1859
|
ngImport: i0,
|
|
1861
1860
|
type: HttpXsrfTokenExtractor,
|
|
1862
1861
|
deps: [],
|
|
@@ -1864,7 +1863,7 @@ class HttpXsrfTokenExtractor {
|
|
|
1864
1863
|
});
|
|
1865
1864
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1866
1865
|
minVersion: "12.0.0",
|
|
1867
|
-
version: "
|
|
1866
|
+
version: "22.0.0-next.0",
|
|
1868
1867
|
ngImport: i0,
|
|
1869
1868
|
type: HttpXsrfTokenExtractor,
|
|
1870
1869
|
providedIn: 'root',
|
|
@@ -1873,7 +1872,7 @@ class HttpXsrfTokenExtractor {
|
|
|
1873
1872
|
}
|
|
1874
1873
|
i0.ɵɵngDeclareClassMetadata({
|
|
1875
1874
|
minVersion: "12.0.0",
|
|
1876
|
-
version: "
|
|
1875
|
+
version: "22.0.0-next.0",
|
|
1877
1876
|
ngImport: i0,
|
|
1878
1877
|
type: HttpXsrfTokenExtractor,
|
|
1879
1878
|
decorators: [{
|
|
@@ -1918,7 +1917,7 @@ class HttpXsrfInterceptor {
|
|
|
1918
1917
|
}
|
|
1919
1918
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
1920
1919
|
minVersion: "12.0.0",
|
|
1921
|
-
version: "
|
|
1920
|
+
version: "22.0.0-next.0",
|
|
1922
1921
|
ngImport: i0,
|
|
1923
1922
|
type: HttpXsrfInterceptor,
|
|
1924
1923
|
deps: [],
|
|
@@ -1926,14 +1925,14 @@ class HttpXsrfInterceptor {
|
|
|
1926
1925
|
});
|
|
1927
1926
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
1928
1927
|
minVersion: "12.0.0",
|
|
1929
|
-
version: "
|
|
1928
|
+
version: "22.0.0-next.0",
|
|
1930
1929
|
ngImport: i0,
|
|
1931
1930
|
type: HttpXsrfInterceptor
|
|
1932
1931
|
});
|
|
1933
1932
|
}
|
|
1934
1933
|
i0.ɵɵngDeclareClassMetadata({
|
|
1935
1934
|
minVersion: "12.0.0",
|
|
1936
|
-
version: "
|
|
1935
|
+
version: "22.0.0-next.0",
|
|
1937
1936
|
ngImport: i0,
|
|
1938
1937
|
type: HttpXsrfInterceptor,
|
|
1939
1938
|
decorators: [{
|
|
@@ -1950,6 +1949,7 @@ var HttpFeatureKind;
|
|
|
1950
1949
|
HttpFeatureKind[HttpFeatureKind["JsonpSupport"] = 4] = "JsonpSupport";
|
|
1951
1950
|
HttpFeatureKind[HttpFeatureKind["RequestsMadeViaParent"] = 5] = "RequestsMadeViaParent";
|
|
1952
1951
|
HttpFeatureKind[HttpFeatureKind["Fetch"] = 6] = "Fetch";
|
|
1952
|
+
HttpFeatureKind[HttpFeatureKind["Xhr"] = 7] = "Xhr";
|
|
1953
1953
|
})(HttpFeatureKind || (HttpFeatureKind = {}));
|
|
1954
1954
|
function makeHttpFeature(kind, providers) {
|
|
1955
1955
|
return {
|
|
@@ -1964,15 +1964,13 @@ function provideHttpClient(...features) {
|
|
|
1964
1964
|
throw new Error(ngDevMode ? `Configuration error: found both withXsrfConfiguration() and withNoXsrfProtection() in the same call to provideHttpClient(), which is a contradiction.` : '');
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
|
-
const providers = [HttpClient, HttpInterceptorHandler, {
|
|
1967
|
+
const providers = [HttpClient, FetchBackend, HttpInterceptorHandler, {
|
|
1968
1968
|
provide: HttpHandler,
|
|
1969
1969
|
useExisting: HttpInterceptorHandler
|
|
1970
1970
|
}, {
|
|
1971
1971
|
provide: HttpBackend,
|
|
1972
1972
|
useFactory: () => {
|
|
1973
|
-
return inject(
|
|
1974
|
-
optional: true
|
|
1975
|
-
}) ?? inject(HttpXhrBackend);
|
|
1973
|
+
return inject(FetchBackend);
|
|
1976
1974
|
}
|
|
1977
1975
|
}, {
|
|
1978
1976
|
provide: HTTP_INTERCEPTOR_FNS,
|
|
@@ -2056,13 +2054,16 @@ function withRequestsMadeViaParent() {
|
|
|
2056
2054
|
}
|
|
2057
2055
|
function withFetch() {
|
|
2058
2056
|
return makeHttpFeature(HttpFeatureKind.Fetch, [FetchBackend, {
|
|
2059
|
-
provide: FETCH_BACKEND,
|
|
2060
|
-
useExisting: FetchBackend
|
|
2061
|
-
}, {
|
|
2062
2057
|
provide: HttpBackend,
|
|
2063
2058
|
useExisting: FetchBackend
|
|
2064
2059
|
}]);
|
|
2065
2060
|
}
|
|
2061
|
+
function withXhr() {
|
|
2062
|
+
return makeHttpFeature(HttpFeatureKind.Xhr, [HttpXhrBackend, {
|
|
2063
|
+
provide: HttpBackend,
|
|
2064
|
+
useExisting: HttpXhrBackend
|
|
2065
|
+
}]);
|
|
2066
|
+
}
|
|
2066
2067
|
|
|
2067
2068
|
class HttpClientXsrfModule {
|
|
2068
2069
|
static disable() {
|
|
@@ -2079,7 +2080,7 @@ class HttpClientXsrfModule {
|
|
|
2079
2080
|
}
|
|
2080
2081
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2081
2082
|
minVersion: "12.0.0",
|
|
2082
|
-
version: "
|
|
2083
|
+
version: "22.0.0-next.0",
|
|
2083
2084
|
ngImport: i0,
|
|
2084
2085
|
type: HttpClientXsrfModule,
|
|
2085
2086
|
deps: [],
|
|
@@ -2087,13 +2088,13 @@ class HttpClientXsrfModule {
|
|
|
2087
2088
|
});
|
|
2088
2089
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
2089
2090
|
minVersion: "14.0.0",
|
|
2090
|
-
version: "
|
|
2091
|
+
version: "22.0.0-next.0",
|
|
2091
2092
|
ngImport: i0,
|
|
2092
2093
|
type: HttpClientXsrfModule
|
|
2093
2094
|
});
|
|
2094
2095
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
2095
2096
|
minVersion: "12.0.0",
|
|
2096
|
-
version: "
|
|
2097
|
+
version: "22.0.0-next.0",
|
|
2097
2098
|
ngImport: i0,
|
|
2098
2099
|
type: HttpClientXsrfModule,
|
|
2099
2100
|
providers: [HttpXsrfInterceptor, {
|
|
@@ -2114,7 +2115,7 @@ class HttpClientXsrfModule {
|
|
|
2114
2115
|
}
|
|
2115
2116
|
i0.ɵɵngDeclareClassMetadata({
|
|
2116
2117
|
minVersion: "12.0.0",
|
|
2117
|
-
version: "
|
|
2118
|
+
version: "22.0.0-next.0",
|
|
2118
2119
|
ngImport: i0,
|
|
2119
2120
|
type: HttpClientXsrfModule,
|
|
2120
2121
|
decorators: [{
|
|
@@ -2140,7 +2141,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2140
2141
|
class HttpClientModule {
|
|
2141
2142
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2142
2143
|
minVersion: "12.0.0",
|
|
2143
|
-
version: "
|
|
2144
|
+
version: "22.0.0-next.0",
|
|
2144
2145
|
ngImport: i0,
|
|
2145
2146
|
type: HttpClientModule,
|
|
2146
2147
|
deps: [],
|
|
@@ -2148,34 +2149,34 @@ class HttpClientModule {
|
|
|
2148
2149
|
});
|
|
2149
2150
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
2150
2151
|
minVersion: "14.0.0",
|
|
2151
|
-
version: "
|
|
2152
|
+
version: "22.0.0-next.0",
|
|
2152
2153
|
ngImport: i0,
|
|
2153
2154
|
type: HttpClientModule
|
|
2154
2155
|
});
|
|
2155
2156
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
2156
2157
|
minVersion: "12.0.0",
|
|
2157
|
-
version: "
|
|
2158
|
+
version: "22.0.0-next.0",
|
|
2158
2159
|
ngImport: i0,
|
|
2159
2160
|
type: HttpClientModule,
|
|
2160
|
-
providers: [provideHttpClient(withInterceptorsFromDi())]
|
|
2161
|
+
providers: [provideHttpClient(withInterceptorsFromDi(), withXhr())]
|
|
2161
2162
|
});
|
|
2162
2163
|
}
|
|
2163
2164
|
i0.ɵɵngDeclareClassMetadata({
|
|
2164
2165
|
minVersion: "12.0.0",
|
|
2165
|
-
version: "
|
|
2166
|
+
version: "22.0.0-next.0",
|
|
2166
2167
|
ngImport: i0,
|
|
2167
2168
|
type: HttpClientModule,
|
|
2168
2169
|
decorators: [{
|
|
2169
2170
|
type: NgModule,
|
|
2170
2171
|
args: [{
|
|
2171
|
-
providers: [provideHttpClient(withInterceptorsFromDi())]
|
|
2172
|
+
providers: [provideHttpClient(withInterceptorsFromDi(), withXhr())]
|
|
2172
2173
|
}]
|
|
2173
2174
|
}]
|
|
2174
2175
|
});
|
|
2175
2176
|
class HttpClientJsonpModule {
|
|
2176
2177
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
2177
2178
|
minVersion: "12.0.0",
|
|
2178
|
-
version: "
|
|
2179
|
+
version: "22.0.0-next.0",
|
|
2179
2180
|
ngImport: i0,
|
|
2180
2181
|
type: HttpClientJsonpModule,
|
|
2181
2182
|
deps: [],
|
|
@@ -2183,13 +2184,13 @@ class HttpClientJsonpModule {
|
|
|
2183
2184
|
});
|
|
2184
2185
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
2185
2186
|
minVersion: "14.0.0",
|
|
2186
|
-
version: "
|
|
2187
|
+
version: "22.0.0-next.0",
|
|
2187
2188
|
ngImport: i0,
|
|
2188
2189
|
type: HttpClientJsonpModule
|
|
2189
2190
|
});
|
|
2190
2191
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
2191
2192
|
minVersion: "12.0.0",
|
|
2192
|
-
version: "
|
|
2193
|
+
version: "22.0.0-next.0",
|
|
2193
2194
|
ngImport: i0,
|
|
2194
2195
|
type: HttpClientJsonpModule,
|
|
2195
2196
|
providers: [withJsonpSupport().ɵproviders]
|
|
@@ -2197,7 +2198,7 @@ class HttpClientJsonpModule {
|
|
|
2197
2198
|
}
|
|
2198
2199
|
i0.ɵɵngDeclareClassMetadata({
|
|
2199
2200
|
minVersion: "12.0.0",
|
|
2200
|
-
version: "
|
|
2201
|
+
version: "22.0.0-next.0",
|
|
2201
2202
|
ngImport: i0,
|
|
2202
2203
|
type: HttpClientJsonpModule,
|
|
2203
2204
|
decorators: [{
|
|
@@ -2208,5 +2209,5 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2208
2209
|
}]
|
|
2209
2210
|
});
|
|
2210
2211
|
|
|
2211
|
-
export { FetchBackend, HTTP_INTERCEPTORS, HTTP_ROOT_INTERCEPTOR_FNS, HttpBackend, HttpClient, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContext, HttpContextToken, HttpErrorResponse, HttpEventType, HttpFeatureKind, HttpHandler, HttpHeaderResponse, HttpHeaders, HttpInterceptorHandler, HttpParams, HttpRequest, HttpResponse, HttpResponseBase, HttpStatusCode, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, REQUESTS_CONTRIBUTE_TO_STABILITY, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration };
|
|
2212
|
+
export { FetchBackend, HTTP_INTERCEPTORS, HTTP_ROOT_INTERCEPTOR_FNS, HttpBackend, HttpClient, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContext, HttpContextToken, HttpErrorResponse, HttpEventType, HttpFeatureKind, HttpHandler, HttpHeaderResponse, HttpHeaders, HttpInterceptorHandler, HttpParams, HttpRequest, HttpResponse, HttpResponseBase, HttpStatusCode, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, REQUESTS_CONTRIBUTE_TO_STABILITY, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXhr, withXsrfConfiguration };
|
|
2212
2213
|
//# sourceMappingURL=_module-chunk.mjs.map
|