@angular/common 19.2.0-next.0 → 19.2.0-next.2
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.mjs +146 -161
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +51 -46
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +16 -16
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +1 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +1 -3
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.0-next.
|
|
2
|
+
* @license Angular v19.2.0-next.2
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -315,10 +315,10 @@ class HttpClientTestingBackend {
|
|
|
315
315
|
return `Match by function: ${matcher.name}`;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
319
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
318
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
319
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientTestingBackend });
|
|
320
320
|
}
|
|
321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
|
|
322
322
|
type: Injectable
|
|
323
323
|
}] });
|
|
324
324
|
function describeRequest(testRequest) {
|
|
@@ -346,11 +346,11 @@ function provideHttpClientTesting() {
|
|
|
346
346
|
* @deprecated Add `provideHttpClientTesting()` to your providers instead.
|
|
347
347
|
*/
|
|
348
348
|
class HttpClientTestingModule {
|
|
349
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
350
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0-next.
|
|
351
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
349
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
350
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] });
|
|
351
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientTestingModule, providers: [provideHttpClientTesting()], imports: [HttpClientModule] });
|
|
352
352
|
}
|
|
353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientTestingModule, decorators: [{
|
|
354
354
|
type: NgModule,
|
|
355
355
|
args: [{
|
|
356
356
|
imports: [HttpClientModule],
|
package/fesm2022/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.0-next.
|
|
2
|
+
* @license Angular v19.2.0-next.2
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -714,6 +714,11 @@ function isUrlSearchParams(value) {
|
|
|
714
714
|
* or received from the server.
|
|
715
715
|
*/
|
|
716
716
|
const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
717
|
+
/**
|
|
718
|
+
* The `Accept` header is an HTTP request header that indicates the media types
|
|
719
|
+
* (or content types) the client is willing to receive from the server.
|
|
720
|
+
*/
|
|
721
|
+
const ACCEPT_HEADER = 'Accept';
|
|
717
722
|
/**
|
|
718
723
|
* `X-Request-URL` is a custom HTTP header used in older browser versions,
|
|
719
724
|
* including Firefox (< 32), Chrome (< 37), Safari (< 8), and Internet Explorer,
|
|
@@ -737,7 +742,7 @@ const JSON_CONTENT_TYPE = 'application/json';
|
|
|
737
742
|
* to accept from the server, with a preference for `application/json` and `text/plain`,
|
|
738
743
|
* but also accepting any other type (*\/*).
|
|
739
744
|
*/
|
|
740
|
-
const
|
|
745
|
+
const ACCEPT_HEADER_VALUE = `${JSON_CONTENT_TYPE}, ${TEXT_CONTENT_TYPE}, */*`;
|
|
741
746
|
/**
|
|
742
747
|
* An outgoing HTTP request with an optional typed body.
|
|
743
748
|
*
|
|
@@ -1441,7 +1446,7 @@ class HttpClient {
|
|
|
1441
1446
|
return res$.pipe(map((res) => {
|
|
1442
1447
|
// Validate that the body is an ArrayBuffer.
|
|
1443
1448
|
if (res.body !== null && !(res.body instanceof ArrayBuffer)) {
|
|
1444
|
-
throw new
|
|
1449
|
+
throw new ɵRuntimeError(2806 /* RuntimeErrorCode.RESPONSE_IS_NOT_AN_ARRAY_BUFFER */, ngDevMode && 'Response is not an ArrayBuffer.');
|
|
1445
1450
|
}
|
|
1446
1451
|
return res.body;
|
|
1447
1452
|
}));
|
|
@@ -1449,7 +1454,7 @@ class HttpClient {
|
|
|
1449
1454
|
return res$.pipe(map((res) => {
|
|
1450
1455
|
// Validate that the body is a Blob.
|
|
1451
1456
|
if (res.body !== null && !(res.body instanceof Blob)) {
|
|
1452
|
-
throw new
|
|
1457
|
+
throw new ɵRuntimeError(2807 /* RuntimeErrorCode.RESPONSE_IS_NOT_A_BLOB */, ngDevMode && 'Response is not a Blob.');
|
|
1453
1458
|
}
|
|
1454
1459
|
return res.body;
|
|
1455
1460
|
}));
|
|
@@ -1457,7 +1462,7 @@ class HttpClient {
|
|
|
1457
1462
|
return res$.pipe(map((res) => {
|
|
1458
1463
|
// Validate that the body is a string.
|
|
1459
1464
|
if (res.body !== null && typeof res.body !== 'string') {
|
|
1460
|
-
throw new
|
|
1465
|
+
throw new ɵRuntimeError(2808 /* RuntimeErrorCode.RESPONSE_IS_NOT_A_STRING */, ngDevMode && 'Response is not a string.');
|
|
1461
1466
|
}
|
|
1462
1467
|
return res.body;
|
|
1463
1468
|
}));
|
|
@@ -1471,7 +1476,7 @@ class HttpClient {
|
|
|
1471
1476
|
return res$;
|
|
1472
1477
|
default:
|
|
1473
1478
|
// Guard against new future observe types being added.
|
|
1474
|
-
throw new
|
|
1479
|
+
throw new ɵRuntimeError(2809 /* RuntimeErrorCode.UNHANDLED_OBSERVE_TYPE */, ngDevMode && `Unreachable: unhandled observe type ${options.observe}}`);
|
|
1475
1480
|
}
|
|
1476
1481
|
}
|
|
1477
1482
|
/**
|
|
@@ -1565,10 +1570,10 @@ class HttpClient {
|
|
|
1565
1570
|
put(url, body, options = {}) {
|
|
1566
1571
|
return this.request('PUT', url, addBody(options, body));
|
|
1567
1572
|
}
|
|
1568
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
1569
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
1573
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1574
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClient });
|
|
1570
1575
|
}
|
|
1571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
1576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClient, decorators: [{
|
|
1572
1577
|
type: Injectable
|
|
1573
1578
|
}], ctorParameters: () => [{ type: HttpHandler }] });
|
|
1574
1579
|
|
|
@@ -1756,8 +1761,8 @@ class FetchBackend {
|
|
|
1756
1761
|
// Setting all the requested headers.
|
|
1757
1762
|
req.headers.forEach((name, values) => (headers[name] = values.join(',')));
|
|
1758
1763
|
// Add an Accept header if one isn't present already.
|
|
1759
|
-
if (!req.headers.has(
|
|
1760
|
-
headers[
|
|
1764
|
+
if (!req.headers.has(ACCEPT_HEADER)) {
|
|
1765
|
+
headers[ACCEPT_HEADER] = ACCEPT_HEADER_VALUE;
|
|
1761
1766
|
}
|
|
1762
1767
|
// Auto-detect the Content-Type header if one isn't present already.
|
|
1763
1768
|
if (!req.headers.has(CONTENT_TYPE_HEADER)) {
|
|
@@ -1783,10 +1788,10 @@ class FetchBackend {
|
|
|
1783
1788
|
}
|
|
1784
1789
|
return chunksAll;
|
|
1785
1790
|
}
|
|
1786
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
1787
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
1791
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1792
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: FetchBackend });
|
|
1788
1793
|
}
|
|
1789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
1794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: FetchBackend, decorators: [{
|
|
1790
1795
|
type: Injectable
|
|
1791
1796
|
}] });
|
|
1792
1797
|
/**
|
|
@@ -1927,10 +1932,10 @@ class HttpInterceptorHandler extends HttpHandler {
|
|
|
1927
1932
|
return this.chain(initialRequest, (downstreamRequest) => this.backend.handle(downstreamRequest));
|
|
1928
1933
|
}
|
|
1929
1934
|
}
|
|
1930
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
1931
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
1935
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1936
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpInterceptorHandler });
|
|
1932
1937
|
}
|
|
1933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
1938
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
1934
1939
|
type: Injectable
|
|
1935
1940
|
}], ctorParameters: () => [{ type: HttpBackend }, { type: i0.EnvironmentInjector }] });
|
|
1936
1941
|
|
|
@@ -2132,10 +2137,10 @@ class JsonpClientBackend {
|
|
|
2132
2137
|
foreignDocument ??= this.document.implementation.createHTMLDocument();
|
|
2133
2138
|
foreignDocument.adoptNode(script);
|
|
2134
2139
|
}
|
|
2135
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2136
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2141
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: JsonpClientBackend });
|
|
2137
2142
|
}
|
|
2138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
2139
2144
|
type: Injectable
|
|
2140
2145
|
}], ctorParameters: () => [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
2141
2146
|
type: Inject,
|
|
@@ -2174,10 +2179,10 @@ class JsonpInterceptor {
|
|
|
2174
2179
|
intercept(initialRequest, next) {
|
|
2175
2180
|
return runInInjectionContext(this.injector, () => jsonpInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
|
|
2176
2181
|
}
|
|
2177
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2178
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2182
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2183
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: JsonpInterceptor });
|
|
2179
2184
|
}
|
|
2180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
2181
2186
|
type: Injectable
|
|
2182
2187
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
2183
2188
|
|
|
@@ -2240,8 +2245,8 @@ class HttpXhrBackend {
|
|
|
2240
2245
|
// Add all the requested headers.
|
|
2241
2246
|
req.headers.forEach((name, values) => xhr.setRequestHeader(name, values.join(',')));
|
|
2242
2247
|
// Add an Accept header if one isn't present already.
|
|
2243
|
-
if (!req.headers.has(
|
|
2244
|
-
xhr.setRequestHeader(
|
|
2248
|
+
if (!req.headers.has(ACCEPT_HEADER)) {
|
|
2249
|
+
xhr.setRequestHeader(ACCEPT_HEADER, ACCEPT_HEADER_VALUE);
|
|
2245
2250
|
}
|
|
2246
2251
|
// Auto-detect the Content-Type header if one isn't present already.
|
|
2247
2252
|
if (!req.headers.has(CONTENT_TYPE_HEADER)) {
|
|
@@ -2459,10 +2464,10 @@ class HttpXhrBackend {
|
|
|
2459
2464
|
});
|
|
2460
2465
|
}));
|
|
2461
2466
|
}
|
|
2462
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2463
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2467
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2468
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpXhrBackend });
|
|
2464
2469
|
}
|
|
2465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
2466
2471
|
type: Injectable
|
|
2467
2472
|
}], ctorParameters: () => [{ type: i1.XhrFactory }] });
|
|
2468
2473
|
|
|
@@ -2514,10 +2519,10 @@ class HttpXsrfCookieExtractor {
|
|
|
2514
2519
|
}
|
|
2515
2520
|
return this.lastToken;
|
|
2516
2521
|
}
|
|
2517
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2518
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2522
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2523
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpXsrfCookieExtractor });
|
|
2519
2524
|
}
|
|
2520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2521
2526
|
type: Injectable
|
|
2522
2527
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2523
2528
|
type: Inject,
|
|
@@ -2561,10 +2566,10 @@ class HttpXsrfInterceptor {
|
|
|
2561
2566
|
intercept(initialRequest, next) {
|
|
2562
2567
|
return runInInjectionContext(this.injector, () => xsrfInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
|
|
2563
2568
|
}
|
|
2564
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2565
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2569
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2570
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpXsrfInterceptor });
|
|
2566
2571
|
}
|
|
2567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2568
2573
|
type: Injectable
|
|
2569
2574
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
2570
2575
|
|
|
@@ -2830,9 +2835,9 @@ class HttpClientXsrfModule {
|
|
|
2830
2835
|
providers: withXsrfConfiguration(options).ɵproviders,
|
|
2831
2836
|
};
|
|
2832
2837
|
}
|
|
2833
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2834
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0-next.
|
|
2835
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2838
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2839
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientXsrfModule });
|
|
2840
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
2836
2841
|
HttpXsrfInterceptor,
|
|
2837
2842
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
2838
2843
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -2843,7 +2848,7 @@ class HttpClientXsrfModule {
|
|
|
2843
2848
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
2844
2849
|
] });
|
|
2845
2850
|
}
|
|
2846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
2847
2852
|
type: NgModule,
|
|
2848
2853
|
args: [{
|
|
2849
2854
|
providers: [
|
|
@@ -2869,11 +2874,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0",
|
|
|
2869
2874
|
* @deprecated use `provideHttpClient(withInterceptorsFromDi())` as providers instead
|
|
2870
2875
|
*/
|
|
2871
2876
|
class HttpClientModule {
|
|
2872
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2873
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0-next.
|
|
2874
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2877
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2878
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientModule });
|
|
2879
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientModule, providers: [provideHttpClient(withInterceptorsFromDi())] });
|
|
2875
2880
|
}
|
|
2876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
2877
2882
|
type: NgModule,
|
|
2878
2883
|
args: [{
|
|
2879
2884
|
/**
|
|
@@ -2893,11 +2898,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.0",
|
|
|
2893
2898
|
* @deprecated `withJsonpSupport()` as providers instead
|
|
2894
2899
|
*/
|
|
2895
2900
|
class HttpClientJsonpModule {
|
|
2896
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2897
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0-next.
|
|
2898
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2901
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2902
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientJsonpModule });
|
|
2903
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientJsonpModule, providers: [withJsonpSupport().ɵproviders] });
|
|
2899
2904
|
}
|
|
2900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.
|
|
2905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0-next.2", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
2901
2906
|
type: NgModule,
|
|
2902
2907
|
args: [{
|
|
2903
2908
|
providers: [withJsonpSupport().ɵproviders],
|