@angular/common 14.1.0-next.1 → 14.1.0-next.4
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/esm2020/http/src/client.mjs +3 -3
- package/esm2020/http/src/headers.mjs +17 -1
- package/esm2020/http/src/interceptor.mjs +3 -3
- package/esm2020/http/src/jsonp.mjs +6 -6
- package/esm2020/http/src/module.mjs +15 -15
- package/esm2020/http/src/xhr.mjs +3 -3
- package/esm2020/http/src/xsrf.mjs +6 -6
- package/esm2020/http/testing/src/backend.mjs +3 -3
- package/esm2020/http/testing/src/module.mjs +4 -4
- package/esm2020/src/common_module.mjs +6 -11
- package/esm2020/src/directives/ng_class.mjs +8 -5
- package/esm2020/src/directives/ng_component_outlet.mjs +8 -5
- package/esm2020/src/directives/ng_for_of.mjs +18 -9
- package/esm2020/src/directives/ng_if.mjs +8 -5
- package/esm2020/src/directives/ng_plural.mjs +15 -9
- package/esm2020/src/directives/ng_style.mjs +12 -9
- package/esm2020/src/directives/ng_switch.mjs +22 -13
- package/esm2020/src/directives/ng_template_outlet.mjs +8 -5
- package/esm2020/src/errors.mjs +1 -1
- package/esm2020/src/i18n/localization.mjs +6 -6
- package/esm2020/src/location/hash_location_strategy.mjs +3 -3
- package/esm2020/src/location/location.mjs +3 -3
- package/esm2020/src/location/location_strategy.mjs +6 -6
- package/esm2020/src/location/platform_location.mjs +6 -6
- package/esm2020/src/pipes/async_pipe.mjs +9 -5
- package/esm2020/src/pipes/case_conversion_pipes.mjs +22 -13
- package/esm2020/src/pipes/date_pipe.mjs +9 -5
- package/esm2020/src/pipes/i18n_plural_pipe.mjs +9 -5
- package/esm2020/src/pipes/i18n_select_pipe.mjs +9 -5
- package/esm2020/src/pipes/invalid_pipe_argument_error.mjs +2 -5
- package/esm2020/src/pipes/json_pipe.mjs +9 -5
- package/esm2020/src/pipes/keyvalue_pipe.mjs +9 -5
- package/esm2020/src/pipes/number_pipe.mjs +22 -13
- package/esm2020/src/pipes/slice_pipe.mjs +9 -5
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/location_mock.mjs +3 -3
- package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2020/testing/src/mock_platform_location.mjs +3 -3
- package/esm2020/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2015/common.mjs +220 -143
- package/fesm2015/common.mjs.map +1 -1
- package/fesm2015/http/testing.mjs +8 -8
- package/fesm2015/http.mjs +53 -37
- package/fesm2015/http.mjs.map +1 -1
- package/fesm2015/testing.mjs +10 -10
- package/fesm2015/upgrade.mjs +5 -5
- package/fesm2020/common.mjs +220 -143
- package/fesm2020/common.mjs.map +1 -1
- package/fesm2020/http/testing.mjs +8 -8
- package/fesm2020/http.mjs +53 -37
- package/fesm2020/http.mjs.map +1 -1
- package/fesm2020/testing.mjs +10 -10
- package/fesm2020/upgrade.mjs +5 -5
- package/http/index.d.ts +1 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +26 -31
- 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 v14.1.0-next.
|
|
2
|
+
* @license Angular v14.1.0-next.4
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -330,9 +330,9 @@ class HttpClientTestingBackend {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
-
HttpClientTestingBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
334
|
-
HttpClientTestingBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
333
|
+
HttpClientTestingBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
334
|
+
HttpClientTestingBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientTestingBackend });
|
|
335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
|
|
336
336
|
type: Injectable
|
|
337
337
|
}] });
|
|
338
338
|
function describeRequest(testRequest) {
|
|
@@ -357,14 +357,14 @@ function describeRequest(testRequest) {
|
|
|
357
357
|
*/
|
|
358
358
|
class HttpClientTestingModule {
|
|
359
359
|
}
|
|
360
|
-
HttpClientTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
361
|
-
HttpClientTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-next.
|
|
362
|
-
HttpClientTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
360
|
+
HttpClientTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
361
|
+
HttpClientTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] });
|
|
362
|
+
HttpClientTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientTestingModule, providers: [
|
|
363
363
|
HttpClientTestingBackend,
|
|
364
364
|
{ provide: HttpBackend, useExisting: HttpClientTestingBackend },
|
|
365
365
|
{ provide: HttpTestingController, useExisting: HttpClientTestingBackend },
|
|
366
366
|
], imports: [HttpClientModule] });
|
|
367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientTestingModule, decorators: [{
|
|
368
368
|
type: NgModule,
|
|
369
369
|
args: [{
|
|
370
370
|
imports: [
|
package/fesm2020/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.1.0-next.
|
|
2
|
+
* @license Angular v14.1.0-next.4
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -96,6 +96,9 @@ class HttpHeaders {
|
|
|
96
96
|
}
|
|
97
97
|
else {
|
|
98
98
|
this.lazyInit = () => {
|
|
99
|
+
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
100
|
+
assertValidHeaders(headers);
|
|
101
|
+
}
|
|
99
102
|
this.headers = new Map();
|
|
100
103
|
Object.keys(headers).forEach(name => {
|
|
101
104
|
let values = headers[name];
|
|
@@ -273,6 +276,19 @@ class HttpHeaders {
|
|
|
273
276
|
.forEach(key => fn(this.normalizedNames.get(key), this.headers.get(key)));
|
|
274
277
|
}
|
|
275
278
|
}
|
|
279
|
+
/**
|
|
280
|
+
* Verifies that the headers object has the right shape: the values
|
|
281
|
+
* must be either strings or arrays. Throws an error if an invalid
|
|
282
|
+
* header value is present.
|
|
283
|
+
*/
|
|
284
|
+
function assertValidHeaders(headers) {
|
|
285
|
+
for (const [key, value] of Object.entries(headers)) {
|
|
286
|
+
if (typeof value !== 'string' && !Array.isArray(value)) {
|
|
287
|
+
throw new Error(`Unexpected value of the \`${key}\` header provided. ` +
|
|
288
|
+
`Expecting either a string or an array, but got: \`${value}\`.`);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
276
292
|
|
|
277
293
|
/**
|
|
278
294
|
* @license
|
|
@@ -1399,9 +1415,9 @@ class HttpClient {
|
|
|
1399
1415
|
return this.request('PUT', url, addBody(options, body));
|
|
1400
1416
|
}
|
|
1401
1417
|
}
|
|
1402
|
-
HttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1403
|
-
HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1404
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1418
|
+
HttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1419
|
+
HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClient });
|
|
1420
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClient, decorators: [{
|
|
1405
1421
|
type: Injectable
|
|
1406
1422
|
}], ctorParameters: function () { return [{ type: HttpHandler }]; } });
|
|
1407
1423
|
|
|
@@ -1438,9 +1454,9 @@ class NoopInterceptor {
|
|
|
1438
1454
|
return next.handle(req);
|
|
1439
1455
|
}
|
|
1440
1456
|
}
|
|
1441
|
-
NoopInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1442
|
-
NoopInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1443
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1457
|
+
NoopInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: NoopInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1458
|
+
NoopInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: NoopInterceptor });
|
|
1459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: NoopInterceptor, decorators: [{
|
|
1444
1460
|
type: Injectable
|
|
1445
1461
|
}] });
|
|
1446
1462
|
|
|
@@ -1636,9 +1652,9 @@ class JsonpClientBackend {
|
|
|
1636
1652
|
foreignDocument.adoptNode(script);
|
|
1637
1653
|
}
|
|
1638
1654
|
}
|
|
1639
|
-
JsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1640
|
-
JsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1655
|
+
JsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1656
|
+
JsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: JsonpClientBackend });
|
|
1657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
1642
1658
|
type: Injectable
|
|
1643
1659
|
}], ctorParameters: function () { return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
1644
1660
|
type: Inject,
|
|
@@ -1671,9 +1687,9 @@ class JsonpInterceptor {
|
|
|
1671
1687
|
return next.handle(req);
|
|
1672
1688
|
}
|
|
1673
1689
|
}
|
|
1674
|
-
JsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1675
|
-
JsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1676
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1690
|
+
JsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: JsonpInterceptor, deps: [{ token: JsonpClientBackend }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1691
|
+
JsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: JsonpInterceptor });
|
|
1692
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
1677
1693
|
type: Injectable
|
|
1678
1694
|
}], ctorParameters: function () { return [{ type: JsonpClientBackend }]; } });
|
|
1679
1695
|
|
|
@@ -1949,9 +1965,9 @@ class HttpXhrBackend {
|
|
|
1949
1965
|
});
|
|
1950
1966
|
}
|
|
1951
1967
|
}
|
|
1952
|
-
HttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1953
|
-
HttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
1968
|
+
HttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1969
|
+
HttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpXhrBackend });
|
|
1970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
1955
1971
|
type: Injectable
|
|
1956
1972
|
}], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });
|
|
1957
1973
|
|
|
@@ -1999,9 +2015,9 @@ class HttpXsrfCookieExtractor {
|
|
|
1999
2015
|
return this.lastToken;
|
|
2000
2016
|
}
|
|
2001
2017
|
}
|
|
2002
|
-
HttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2003
|
-
HttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2018
|
+
HttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2019
|
+
HttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpXsrfCookieExtractor });
|
|
2020
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2005
2021
|
type: Injectable
|
|
2006
2022
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2007
2023
|
type: Inject,
|
|
@@ -2039,9 +2055,9 @@ class HttpXsrfInterceptor {
|
|
|
2039
2055
|
return next.handle(req);
|
|
2040
2056
|
}
|
|
2041
2057
|
}
|
|
2042
|
-
HttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2043
|
-
HttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2058
|
+
HttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: HttpXsrfTokenExtractor }, { token: XSRF_HEADER_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2059
|
+
HttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpXsrfInterceptor });
|
|
2060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2045
2061
|
type: Injectable
|
|
2046
2062
|
}], ctorParameters: function () { return [{ type: HttpXsrfTokenExtractor }, { type: undefined, decorators: [{
|
|
2047
2063
|
type: Inject,
|
|
@@ -2078,9 +2094,9 @@ class HttpInterceptingHandler {
|
|
|
2078
2094
|
return this.chain.handle(req);
|
|
2079
2095
|
}
|
|
2080
2096
|
}
|
|
2081
|
-
HttpInterceptingHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2082
|
-
HttpInterceptingHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2097
|
+
HttpInterceptingHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpInterceptingHandler, deps: [{ token: HttpBackend }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2098
|
+
HttpInterceptingHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpInterceptingHandler });
|
|
2099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpInterceptingHandler, decorators: [{
|
|
2084
2100
|
type: Injectable
|
|
2085
2101
|
}], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.Injector }]; } });
|
|
2086
2102
|
/**
|
|
@@ -2153,16 +2169,16 @@ class HttpClientXsrfModule {
|
|
|
2153
2169
|
};
|
|
2154
2170
|
}
|
|
2155
2171
|
}
|
|
2156
|
-
HttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2157
|
-
HttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-next.
|
|
2158
|
-
HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2172
|
+
HttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2173
|
+
HttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientXsrfModule });
|
|
2174
|
+
HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
2159
2175
|
HttpXsrfInterceptor,
|
|
2160
2176
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
2161
2177
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
2162
2178
|
{ provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN' },
|
|
2163
2179
|
{ provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN' },
|
|
2164
2180
|
] });
|
|
2165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
2166
2182
|
type: NgModule,
|
|
2167
2183
|
args: [{
|
|
2168
2184
|
providers: [
|
|
@@ -2185,9 +2201,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.1",
|
|
|
2185
2201
|
*/
|
|
2186
2202
|
class HttpClientModule {
|
|
2187
2203
|
}
|
|
2188
|
-
HttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2189
|
-
HttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-next.
|
|
2190
|
-
HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2204
|
+
HttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2205
|
+
HttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientModule, imports: [HttpClientXsrfModule] });
|
|
2206
|
+
HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientModule, providers: [
|
|
2191
2207
|
HttpClient,
|
|
2192
2208
|
{ provide: HttpHandler, useClass: HttpInterceptingHandler },
|
|
2193
2209
|
HttpXhrBackend,
|
|
@@ -2196,7 +2212,7 @@ HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versio
|
|
|
2196
2212
|
cookieName: 'XSRF-TOKEN',
|
|
2197
2213
|
headerName: 'X-XSRF-TOKEN',
|
|
2198
2214
|
})] });
|
|
2199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
2200
2216
|
type: NgModule,
|
|
2201
2217
|
args: [{
|
|
2202
2218
|
/**
|
|
@@ -2233,14 +2249,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.1",
|
|
|
2233
2249
|
*/
|
|
2234
2250
|
class HttpClientJsonpModule {
|
|
2235
2251
|
}
|
|
2236
|
-
HttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2237
|
-
HttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-next.
|
|
2238
|
-
HttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2252
|
+
HttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2253
|
+
HttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientJsonpModule });
|
|
2254
|
+
HttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientJsonpModule, providers: [
|
|
2239
2255
|
JsonpClientBackend,
|
|
2240
2256
|
{ provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },
|
|
2241
2257
|
{ provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true },
|
|
2242
2258
|
] });
|
|
2243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.
|
|
2259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
2244
2260
|
type: NgModule,
|
|
2245
2261
|
args: [{
|
|
2246
2262
|
providers: [
|