@angular/common 20.2.0-next.1 → 20.2.0-next.3
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/common_module.d.d.ts +1 -1
- package/fesm2022/common.mjs +14 -14
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/common_module.mjs +87 -87
- package/fesm2022/common_module.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +1 -1
- package/fesm2022/location.mjs +16 -16
- package/fesm2022/module.mjs +69 -40
- package/fesm2022/module.mjs.map +1 -1
- package/fesm2022/platform_navigation.mjs +4 -4
- package/fesm2022/testing.mjs +13 -13
- package/fesm2022/upgrade.mjs +5 -5
- package/fesm2022/xhr.mjs +1 -1
- package/http/index.d.ts +1 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/module.d.d.ts +12 -1
- package/package.json +2 -2
- package/platform_location.d.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
- package/xhr.d.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.2.0-next.
|
|
2
|
+
* @license Angular v20.2.0-next.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -314,10 +314,10 @@ class HttpClientTestingBackend {
|
|
|
314
314
|
return `Match by function: ${matcher.name}`;
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
318
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
317
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
318
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientTestingBackend });
|
|
319
319
|
}
|
|
320
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
320
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
|
|
321
321
|
type: Injectable
|
|
322
322
|
}] });
|
|
323
323
|
function describeRequest(testRequest) {
|
|
@@ -345,11 +345,11 @@ function provideHttpClientTesting() {
|
|
|
345
345
|
* @deprecated Add `provideHttpClientTesting()` to your providers instead.
|
|
346
346
|
*/
|
|
347
347
|
class HttpClientTestingModule {
|
|
348
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
349
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.
|
|
350
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
348
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
349
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] });
|
|
350
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientTestingModule, providers: [provideHttpClientTesting()], imports: [HttpClientModule] });
|
|
351
351
|
}
|
|
352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientTestingModule, decorators: [{
|
|
353
353
|
type: NgModule,
|
|
354
354
|
args: [{
|
|
355
355
|
imports: [HttpClientModule],
|
package/fesm2022/http.mjs
CHANGED
package/fesm2022/location.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.2.0-next.
|
|
2
|
+
* @license Angular v20.2.0-next.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -50,10 +50,10 @@ class PlatformLocation {
|
|
|
50
50
|
historyGo(relativePosition) {
|
|
51
51
|
throw new Error(ngDevMode ? 'Not implemented' : '');
|
|
52
52
|
}
|
|
53
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
54
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
53
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
54
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) });
|
|
55
55
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: PlatformLocation, decorators: [{
|
|
57
57
|
type: Injectable,
|
|
58
58
|
args: [{ providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }]
|
|
59
59
|
}] });
|
|
@@ -135,10 +135,10 @@ class BrowserPlatformLocation extends PlatformLocation {
|
|
|
135
135
|
getState() {
|
|
136
136
|
return this._history.state;
|
|
137
137
|
}
|
|
138
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
139
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
138
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: BrowserPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
139
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: () => new BrowserPlatformLocation() });
|
|
140
140
|
}
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: BrowserPlatformLocation, decorators: [{
|
|
142
142
|
type: Injectable,
|
|
143
143
|
args: [{
|
|
144
144
|
providedIn: 'platform',
|
|
@@ -219,10 +219,10 @@ class LocationStrategy {
|
|
|
219
219
|
historyGo(relativePosition) {
|
|
220
220
|
throw new Error(ngDevMode ? 'Not implemented' : '');
|
|
221
221
|
}
|
|
222
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
223
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
222
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
223
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) });
|
|
224
224
|
}
|
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: LocationStrategy, decorators: [{
|
|
226
226
|
type: Injectable,
|
|
227
227
|
args: [{ providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }]
|
|
228
228
|
}] });
|
|
@@ -334,10 +334,10 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
334
334
|
historyGo(relativePosition = 0) {
|
|
335
335
|
this._platformLocation.historyGo?.(relativePosition);
|
|
336
336
|
}
|
|
337
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
338
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
337
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
338
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' });
|
|
339
339
|
}
|
|
340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: PathLocationStrategy, decorators: [{
|
|
341
341
|
type: Injectable,
|
|
342
342
|
args: [{ providedIn: 'root' }]
|
|
343
343
|
}], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
@@ -592,10 +592,10 @@ class Location {
|
|
|
592
592
|
* @returns The URL string, modified if needed.
|
|
593
593
|
*/
|
|
594
594
|
static stripTrailingSlash = stripTrailingSlash;
|
|
595
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
596
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
595
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
596
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation });
|
|
597
597
|
}
|
|
598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: Location, decorators: [{
|
|
599
599
|
type: Injectable,
|
|
600
600
|
args: [{
|
|
601
601
|
providedIn: 'root',
|
package/fesm2022/module.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.2.0-next.
|
|
2
|
+
* @license Angular v20.2.0-next.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1158,6 +1158,12 @@ class HttpResponseBase {
|
|
|
1158
1158
|
* Type of the response, narrowed to either the full response or the header.
|
|
1159
1159
|
*/
|
|
1160
1160
|
type;
|
|
1161
|
+
/**
|
|
1162
|
+
* Indicates whether the HTTP response was redirected during the request.
|
|
1163
|
+
* This property is only available when using the Fetch API using `withFetch()`
|
|
1164
|
+
* When using the default XHR Request this property will be `undefined`
|
|
1165
|
+
*/
|
|
1166
|
+
redirected;
|
|
1161
1167
|
/**
|
|
1162
1168
|
* Super-constructor for all responses.
|
|
1163
1169
|
*
|
|
@@ -1171,6 +1177,7 @@ class HttpResponseBase {
|
|
|
1171
1177
|
this.status = init.status !== undefined ? init.status : defaultStatus;
|
|
1172
1178
|
this.statusText = init.statusText || defaultStatusText;
|
|
1173
1179
|
this.url = init.url || null;
|
|
1180
|
+
this.redirected = init.redirected;
|
|
1174
1181
|
// Cache the ok value to avoid defining a getter.
|
|
1175
1182
|
this.ok = this.status >= 200 && this.status < 300;
|
|
1176
1183
|
}
|
|
@@ -1236,6 +1243,7 @@ class HttpResponse extends HttpResponseBase {
|
|
|
1236
1243
|
status: update.status !== undefined ? update.status : this.status,
|
|
1237
1244
|
statusText: update.statusText || this.statusText,
|
|
1238
1245
|
url: update.url || this.url || undefined,
|
|
1246
|
+
redirected: update.redirected ?? this.redirected,
|
|
1239
1247
|
});
|
|
1240
1248
|
}
|
|
1241
1249
|
}
|
|
@@ -1373,6 +1381,7 @@ function addBody(options, body) {
|
|
|
1373
1381
|
reportProgress: options.reportProgress,
|
|
1374
1382
|
responseType: options.responseType,
|
|
1375
1383
|
withCredentials: options.withCredentials,
|
|
1384
|
+
credentials: options.credentials,
|
|
1376
1385
|
transferCache: options.transferCache,
|
|
1377
1386
|
timeout: options.timeout,
|
|
1378
1387
|
keepalive: options.keepalive,
|
|
@@ -1380,6 +1389,8 @@ function addBody(options, body) {
|
|
|
1380
1389
|
cache: options.cache,
|
|
1381
1390
|
mode: options.mode,
|
|
1382
1391
|
redirect: options.redirect,
|
|
1392
|
+
integrity: options.integrity,
|
|
1393
|
+
referrer: options.referrer,
|
|
1383
1394
|
};
|
|
1384
1395
|
}
|
|
1385
1396
|
/**
|
|
@@ -1669,10 +1680,10 @@ class HttpClient {
|
|
|
1669
1680
|
put(url, body, options = {}) {
|
|
1670
1681
|
return this.request('PUT', url, addBody(options, body));
|
|
1671
1682
|
}
|
|
1672
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
1673
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
1683
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1684
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClient });
|
|
1674
1685
|
}
|
|
1675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
1686
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClient, decorators: [{
|
|
1676
1687
|
type: Injectable
|
|
1677
1688
|
}], ctorParameters: () => [{ type: HttpHandler }] });
|
|
1678
1689
|
|
|
@@ -1838,7 +1849,7 @@ class FetchBackend {
|
|
|
1838
1849
|
const chunksAll = this.concatChunks(chunks, receivedLength);
|
|
1839
1850
|
try {
|
|
1840
1851
|
const contentType = response.headers.get(CONTENT_TYPE_HEADER) ?? '';
|
|
1841
|
-
body = this.parseBody(request, chunksAll, contentType);
|
|
1852
|
+
body = this.parseBody(request, chunksAll, contentType, status);
|
|
1842
1853
|
}
|
|
1843
1854
|
catch (error) {
|
|
1844
1855
|
// Body loading or parsing failed
|
|
@@ -1861,6 +1872,7 @@ class FetchBackend {
|
|
|
1861
1872
|
// but a successful status code can still result in an error if the user
|
|
1862
1873
|
// asked for JSON data and the body cannot be parsed as such.
|
|
1863
1874
|
const ok = status >= 200 && status < 300;
|
|
1875
|
+
const redirected = response.redirected;
|
|
1864
1876
|
if (ok) {
|
|
1865
1877
|
observer.next(new HttpResponse({
|
|
1866
1878
|
body,
|
|
@@ -1868,6 +1880,7 @@ class FetchBackend {
|
|
|
1868
1880
|
status,
|
|
1869
1881
|
statusText,
|
|
1870
1882
|
url,
|
|
1883
|
+
redirected,
|
|
1871
1884
|
}));
|
|
1872
1885
|
// The full body has been received and delivered, no further events
|
|
1873
1886
|
// are possible. This request is complete.
|
|
@@ -1880,15 +1893,31 @@ class FetchBackend {
|
|
|
1880
1893
|
status,
|
|
1881
1894
|
statusText,
|
|
1882
1895
|
url,
|
|
1896
|
+
redirected,
|
|
1883
1897
|
}));
|
|
1884
1898
|
}
|
|
1885
1899
|
}
|
|
1886
|
-
parseBody(request, binContent, contentType) {
|
|
1900
|
+
parseBody(request, binContent, contentType, status) {
|
|
1887
1901
|
switch (request.responseType) {
|
|
1888
1902
|
case 'json':
|
|
1889
1903
|
// stripping the XSSI when present
|
|
1890
1904
|
const text = new TextDecoder().decode(binContent).replace(XSSI_PREFIX$1, '');
|
|
1891
|
-
|
|
1905
|
+
if (text === '') {
|
|
1906
|
+
return null;
|
|
1907
|
+
}
|
|
1908
|
+
try {
|
|
1909
|
+
return JSON.parse(text);
|
|
1910
|
+
}
|
|
1911
|
+
catch (e) {
|
|
1912
|
+
// Allow handling non-JSON errors (!) as plain text, same as the XHR
|
|
1913
|
+
// backend. Without this special sauce, any non-JSON error would be
|
|
1914
|
+
// completely inaccessible downstream as the `HttpErrorResponse.error`
|
|
1915
|
+
// would be set to the `SyntaxError` from then failing `JSON.parse`.
|
|
1916
|
+
if (status < 200 || status >= 300) {
|
|
1917
|
+
return text;
|
|
1918
|
+
}
|
|
1919
|
+
throw e;
|
|
1920
|
+
}
|
|
1892
1921
|
case 'text':
|
|
1893
1922
|
return new TextDecoder().decode(binContent);
|
|
1894
1923
|
case 'blob':
|
|
@@ -1947,10 +1976,10 @@ class FetchBackend {
|
|
|
1947
1976
|
}
|
|
1948
1977
|
return chunksAll;
|
|
1949
1978
|
}
|
|
1950
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
1951
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
1979
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1980
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: FetchBackend });
|
|
1952
1981
|
}
|
|
1953
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
1982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: FetchBackend, decorators: [{
|
|
1954
1983
|
type: Injectable
|
|
1955
1984
|
}], ctorParameters: () => [] });
|
|
1956
1985
|
/**
|
|
@@ -2094,10 +2123,10 @@ class HttpInterceptorHandler extends HttpHandler {
|
|
|
2094
2123
|
return this.chain(initialRequest, (downstreamRequest) => this.backend.handle(downstreamRequest));
|
|
2095
2124
|
}
|
|
2096
2125
|
}
|
|
2097
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2098
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2126
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2127
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpInterceptorHandler });
|
|
2099
2128
|
}
|
|
2100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
2101
2130
|
type: Injectable
|
|
2102
2131
|
}], ctorParameters: () => [{ type: HttpBackend }, { type: i0.EnvironmentInjector }] });
|
|
2103
2132
|
|
|
@@ -2299,10 +2328,10 @@ class JsonpClientBackend {
|
|
|
2299
2328
|
foreignDocument ??= this.document.implementation.createHTMLDocument();
|
|
2300
2329
|
foreignDocument.adoptNode(script);
|
|
2301
2330
|
}
|
|
2302
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2303
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2331
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2332
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: JsonpClientBackend });
|
|
2304
2333
|
}
|
|
2305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
2306
2335
|
type: Injectable
|
|
2307
2336
|
}], ctorParameters: () => [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
2308
2337
|
type: Inject,
|
|
@@ -2341,10 +2370,10 @@ class JsonpInterceptor {
|
|
|
2341
2370
|
intercept(initialRequest, next) {
|
|
2342
2371
|
return runInInjectionContext(this.injector, () => jsonpInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
|
|
2343
2372
|
}
|
|
2344
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2345
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2373
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2374
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: JsonpInterceptor });
|
|
2346
2375
|
}
|
|
2347
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
2348
2377
|
type: Injectable
|
|
2349
2378
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
2350
2379
|
|
|
@@ -2696,10 +2725,10 @@ class HttpXhrBackend {
|
|
|
2696
2725
|
});
|
|
2697
2726
|
}));
|
|
2698
2727
|
}
|
|
2699
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2700
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2728
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpXhrBackend, deps: [{ token: XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2729
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpXhrBackend });
|
|
2701
2730
|
}
|
|
2702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
2703
2732
|
type: Injectable
|
|
2704
2733
|
}], ctorParameters: () => [{ type: XhrFactory }] });
|
|
2705
2734
|
|
|
@@ -2749,10 +2778,10 @@ class HttpXsrfCookieExtractor {
|
|
|
2749
2778
|
}
|
|
2750
2779
|
return this.lastToken;
|
|
2751
2780
|
}
|
|
2752
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2753
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2781
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2782
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpXsrfCookieExtractor });
|
|
2754
2783
|
}
|
|
2755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2756
2785
|
type: Injectable
|
|
2757
2786
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2758
2787
|
type: Inject,
|
|
@@ -2793,10 +2822,10 @@ class HttpXsrfInterceptor {
|
|
|
2793
2822
|
intercept(initialRequest, next) {
|
|
2794
2823
|
return runInInjectionContext(this.injector, () => xsrfInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
|
|
2795
2824
|
}
|
|
2796
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2797
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2825
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2826
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpXsrfInterceptor });
|
|
2798
2827
|
}
|
|
2799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
2828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2800
2829
|
type: Injectable
|
|
2801
2830
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
2802
2831
|
|
|
@@ -3062,9 +3091,9 @@ class HttpClientXsrfModule {
|
|
|
3062
3091
|
providers: withXsrfConfiguration(options).ɵproviders,
|
|
3063
3092
|
};
|
|
3064
3093
|
}
|
|
3065
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
3066
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.
|
|
3067
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
3094
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3095
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientXsrfModule });
|
|
3096
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
3068
3097
|
HttpXsrfInterceptor,
|
|
3069
3098
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
3070
3099
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -3075,7 +3104,7 @@ class HttpClientXsrfModule {
|
|
|
3075
3104
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
3076
3105
|
] });
|
|
3077
3106
|
}
|
|
3078
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
3107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
3079
3108
|
type: NgModule,
|
|
3080
3109
|
args: [{
|
|
3081
3110
|
providers: [
|
|
@@ -3101,11 +3130,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1",
|
|
|
3101
3130
|
* @deprecated use `provideHttpClient(withInterceptorsFromDi())` as providers instead
|
|
3102
3131
|
*/
|
|
3103
3132
|
class HttpClientModule {
|
|
3104
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
3105
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.
|
|
3106
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
3133
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3134
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientModule });
|
|
3135
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientModule, providers: [provideHttpClient(withInterceptorsFromDi())] });
|
|
3107
3136
|
}
|
|
3108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
3137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
3109
3138
|
type: NgModule,
|
|
3110
3139
|
args: [{
|
|
3111
3140
|
/**
|
|
@@ -3125,11 +3154,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.1",
|
|
|
3125
3154
|
* @deprecated `withJsonpSupport()` as providers instead
|
|
3126
3155
|
*/
|
|
3127
3156
|
class HttpClientJsonpModule {
|
|
3128
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
3129
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.
|
|
3130
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
3157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3158
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientJsonpModule });
|
|
3159
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientJsonpModule, providers: [withJsonpSupport().ɵproviders] });
|
|
3131
3160
|
}
|
|
3132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.
|
|
3161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.2.0-next.3", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
3133
3162
|
type: NgModule,
|
|
3134
3163
|
args: [{
|
|
3135
3164
|
providers: [withJsonpSupport().ɵproviders],
|