@angular/common 15.2.8 → 15.2.9
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/interceptor.mjs +3 -3
- package/esm2020/http/src/jsonp.mjs +10 -10
- package/esm2020/http/src/module.mjs +12 -12
- package/esm2020/http/src/provider.mjs +16 -16
- package/esm2020/http/src/xhr.mjs +6 -6
- 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 +4 -4
- package/esm2020/src/directives/ng_class.mjs +3 -3
- package/esm2020/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2020/src/directives/ng_for_of.mjs +3 -3
- package/esm2020/src/directives/ng_if.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/ng_optimized_image.mjs +16 -6
- package/esm2020/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
- package/esm2020/src/directives/ng_plural.mjs +6 -6
- package/esm2020/src/directives/ng_style.mjs +3 -3
- package/esm2020/src/directives/ng_switch.mjs +9 -9
- package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2020/src/dom_tokens.mjs +4 -5
- 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 +3 -3
- package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2020/src/pipes/date_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2020/src/pipes/json_pipe.mjs +3 -3
- package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2020/src/pipes/number_pipe.mjs +9 -9
- package/esm2020/src/pipes/slice_pipe.mjs +3 -3
- 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 +129 -120
- package/fesm2015/common.mjs.map +1 -1
- package/fesm2015/http/testing.mjs +8 -8
- package/fesm2015/http.mjs +54 -54
- package/fesm2015/http.mjs.map +1 -1
- package/fesm2015/testing.mjs +10 -10
- package/fesm2015/upgrade.mjs +5 -5
- package/fesm2020/common.mjs +129 -120
- package/fesm2020/common.mjs.map +1 -1
- package/fesm2020/http/testing.mjs +8 -8
- package/fesm2020/http.mjs +54 -54
- package/fesm2020/http.mjs.map +1 -1
- package/fesm2020/testing.mjs +10 -10
- package/fesm2020/upgrade.mjs +5 -5
- package/http/index.d.ts +21 -21
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +4 -5
- 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 v15.2.
|
|
2
|
+
* @license Angular v15.2.9
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -309,9 +309,9 @@ class HttpClientTestingBackend {
|
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
HttpClientTestingBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
313
|
-
HttpClientTestingBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
312
|
+
HttpClientTestingBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
313
|
+
HttpClientTestingBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientTestingBackend });
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
|
|
315
315
|
type: Injectable
|
|
316
316
|
}] });
|
|
317
317
|
function describeRequest(testRequest) {
|
|
@@ -337,12 +337,12 @@ function provideHttpClientTesting() {
|
|
|
337
337
|
*/
|
|
338
338
|
class HttpClientTestingModule {
|
|
339
339
|
}
|
|
340
|
-
HttpClientTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
341
|
-
HttpClientTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
|
342
|
-
HttpClientTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
|
340
|
+
HttpClientTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
341
|
+
HttpClientTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] });
|
|
342
|
+
HttpClientTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientTestingModule, providers: [
|
|
343
343
|
provideHttpClientTesting(),
|
|
344
344
|
], imports: [HttpClientModule] });
|
|
345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientTestingModule, decorators: [{
|
|
346
346
|
type: NgModule,
|
|
347
347
|
args: [{
|
|
348
348
|
imports: [
|
package/fesm2020/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.2.
|
|
2
|
+
* @license Angular v15.2.9
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1372,9 +1372,9 @@ class HttpClient {
|
|
|
1372
1372
|
return this.request('PUT', url, addBody(options, body));
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
HttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1376
|
-
HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1375
|
+
HttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1376
|
+
HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClient });
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClient, decorators: [{
|
|
1378
1378
|
type: Injectable
|
|
1379
1379
|
}], ctorParameters: function () { return [{ type: HttpHandler }]; } });
|
|
1380
1380
|
|
|
@@ -1447,9 +1447,9 @@ class HttpInterceptorHandler extends HttpHandler {
|
|
|
1447
1447
|
return this.chain(initialRequest, downstreamRequest => this.backend.handle(downstreamRequest));
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
|
-
HttpInterceptorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1451
|
-
HttpInterceptorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1452
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1450
|
+
HttpInterceptorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1451
|
+
HttpInterceptorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpInterceptorHandler });
|
|
1452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
1453
1453
|
type: Injectable
|
|
1454
1454
|
}], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.EnvironmentInjector }]; } });
|
|
1455
1455
|
|
|
@@ -1499,8 +1499,8 @@ function jsonpCallbackContext() {
|
|
|
1499
1499
|
/**
|
|
1500
1500
|
* Processes an `HttpRequest` with the JSONP method,
|
|
1501
1501
|
* by performing JSONP style requests.
|
|
1502
|
-
* @see
|
|
1503
|
-
* @see
|
|
1502
|
+
* @see {@link HttpHandler}
|
|
1503
|
+
* @see {@link HttpXhrBackend}
|
|
1504
1504
|
*
|
|
1505
1505
|
* @publicApi
|
|
1506
1506
|
*/
|
|
@@ -1652,9 +1652,9 @@ class JsonpClientBackend {
|
|
|
1652
1652
|
foreignDocument.adoptNode(script);
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
JsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1656
|
-
JsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1655
|
+
JsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1656
|
+
JsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JsonpClientBackend });
|
|
1657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
1658
1658
|
type: Injectable
|
|
1659
1659
|
}], ctorParameters: function () { return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
1660
1660
|
type: Inject,
|
|
@@ -1674,7 +1674,7 @@ function jsonpInterceptorFn(req, next) {
|
|
|
1674
1674
|
* Identifies requests with the method JSONP and
|
|
1675
1675
|
* shifts them to the `JsonpClientBackend`.
|
|
1676
1676
|
*
|
|
1677
|
-
* @see
|
|
1677
|
+
* @see {@link HttpInterceptor}
|
|
1678
1678
|
*
|
|
1679
1679
|
* @publicApi
|
|
1680
1680
|
*/
|
|
@@ -1693,9 +1693,9 @@ class JsonpInterceptor {
|
|
|
1693
1693
|
return this.injector.runInContext(() => jsonpInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
1694
1694
|
}
|
|
1695
1695
|
}
|
|
1696
|
-
JsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1697
|
-
JsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1698
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1696
|
+
JsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1697
|
+
JsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JsonpInterceptor });
|
|
1698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
1699
1699
|
type: Injectable
|
|
1700
1700
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
1701
1701
|
|
|
@@ -1715,8 +1715,8 @@ function getResponseUrl(xhr) {
|
|
|
1715
1715
|
}
|
|
1716
1716
|
/**
|
|
1717
1717
|
* Uses `XMLHttpRequest` to send requests to a backend server.
|
|
1718
|
-
* @see
|
|
1719
|
-
* @see
|
|
1718
|
+
* @see {@link HttpHandler}
|
|
1719
|
+
* @see {@link JsonpClientBackend}
|
|
1720
1720
|
*
|
|
1721
1721
|
* @publicApi
|
|
1722
1722
|
*/
|
|
@@ -1964,9 +1964,9 @@ class HttpXhrBackend {
|
|
|
1964
1964
|
});
|
|
1965
1965
|
}
|
|
1966
1966
|
}
|
|
1967
|
-
HttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
1968
|
-
HttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
1969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
1967
|
+
HttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1968
|
+
HttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpXhrBackend });
|
|
1969
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
1970
1970
|
type: Injectable
|
|
1971
1971
|
}], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });
|
|
1972
1972
|
|
|
@@ -2016,9 +2016,9 @@ class HttpXsrfCookieExtractor {
|
|
|
2016
2016
|
return this.lastToken;
|
|
2017
2017
|
}
|
|
2018
2018
|
}
|
|
2019
|
-
HttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2020
|
-
HttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2021
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
2019
|
+
HttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2020
|
+
HttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpXsrfCookieExtractor });
|
|
2021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2022
2022
|
type: Injectable
|
|
2023
2023
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2024
2024
|
type: Inject,
|
|
@@ -2059,9 +2059,9 @@ class HttpXsrfInterceptor {
|
|
|
2059
2059
|
return this.injector.runInContext(() => xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
2060
2060
|
}
|
|
2061
2061
|
}
|
|
2062
|
-
HttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2063
|
-
HttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
2064
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
2062
|
+
HttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2063
|
+
HttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpXsrfInterceptor });
|
|
2064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2065
2065
|
type: Injectable
|
|
2066
2066
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
2067
2067
|
|
|
@@ -2093,12 +2093,12 @@ function makeHttpFeature(kind, providers) {
|
|
|
2093
2093
|
* feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the
|
|
2094
2094
|
* `withInterceptors(...)` feature.
|
|
2095
2095
|
*
|
|
2096
|
-
* @see withInterceptors
|
|
2097
|
-
* @see withInterceptorsFromDi
|
|
2098
|
-
* @see withXsrfConfiguration
|
|
2099
|
-
* @see withNoXsrfProtection
|
|
2100
|
-
* @see withJsonpSupport
|
|
2101
|
-
* @see withRequestsMadeViaParent
|
|
2096
|
+
* @see {@link withInterceptors}
|
|
2097
|
+
* @see {@link withInterceptorsFromDi}
|
|
2098
|
+
* @see {@link withXsrfConfiguration}
|
|
2099
|
+
* @see {@link withNoXsrfProtection}
|
|
2100
|
+
* @see {@link withJsonpSupport}
|
|
2101
|
+
* @see {@link withRequestsMadeViaParent}
|
|
2102
2102
|
*/
|
|
2103
2103
|
function provideHttpClient(...features) {
|
|
2104
2104
|
if (ngDevMode) {
|
|
@@ -2133,8 +2133,8 @@ function provideHttpClient(...features) {
|
|
|
2133
2133
|
* Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`
|
|
2134
2134
|
* instance.
|
|
2135
2135
|
*
|
|
2136
|
-
* @see HttpInterceptorFn
|
|
2137
|
-
* @see provideHttpClient
|
|
2136
|
+
* @see {@link HttpInterceptorFn}
|
|
2137
|
+
* @see {@link provideHttpClient}
|
|
2138
2138
|
* @publicApi
|
|
2139
2139
|
*/
|
|
2140
2140
|
function withInterceptors(interceptorFns) {
|
|
@@ -2154,9 +2154,9 @@ const LEGACY_INTERCEPTOR_FN = new InjectionToken('LEGACY_INTERCEPTOR_FN');
|
|
|
2154
2154
|
* Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided
|
|
2155
2155
|
* interceptors may be phased out in a later release.
|
|
2156
2156
|
*
|
|
2157
|
-
* @see HttpInterceptor
|
|
2158
|
-
* @see HTTP_INTERCEPTORS
|
|
2159
|
-
* @see provideHttpClient
|
|
2157
|
+
* @see {@link HttpInterceptor}
|
|
2158
|
+
* @see {@link HTTP_INTERCEPTORS}
|
|
2159
|
+
* @see {@link provideHttpClient}
|
|
2160
2160
|
*/
|
|
2161
2161
|
function withInterceptorsFromDi() {
|
|
2162
2162
|
// Note: the legacy interceptor function is provided here via an intermediate token
|
|
@@ -2181,7 +2181,7 @@ function withInterceptorsFromDi() {
|
|
|
2181
2181
|
*
|
|
2182
2182
|
* This feature is incompatible with the `withNoXsrfProtection` feature.
|
|
2183
2183
|
*
|
|
2184
|
-
* @see provideHttpClient
|
|
2184
|
+
* @see {@link provideHttpClient}
|
|
2185
2185
|
*/
|
|
2186
2186
|
function withXsrfConfiguration({ cookieName, headerName }) {
|
|
2187
2187
|
const providers = [];
|
|
@@ -2198,7 +2198,7 @@ function withXsrfConfiguration({ cookieName, headerName }) {
|
|
|
2198
2198
|
*
|
|
2199
2199
|
* This feature is incompatible with the `withXsrfConfiguration` feature.
|
|
2200
2200
|
*
|
|
2201
|
-
* @see provideHttpClient
|
|
2201
|
+
* @see {@link provideHttpClient}
|
|
2202
2202
|
*/
|
|
2203
2203
|
function withNoXsrfProtection() {
|
|
2204
2204
|
return makeHttpFeature(HttpFeatureKind.NoXsrfProtection, [
|
|
@@ -2211,7 +2211,7 @@ function withNoXsrfProtection() {
|
|
|
2211
2211
|
/**
|
|
2212
2212
|
* Add JSONP support to the configuration of the current `HttpClient` instance.
|
|
2213
2213
|
*
|
|
2214
|
-
* @see provideHttpClient
|
|
2214
|
+
* @see {@link provideHttpClient}
|
|
2215
2215
|
*/
|
|
2216
2216
|
function withJsonpSupport() {
|
|
2217
2217
|
return makeHttpFeature(HttpFeatureKind.JsonpSupport, [
|
|
@@ -2237,7 +2237,7 @@ function withJsonpSupport() {
|
|
|
2237
2237
|
* "bubble up" until either reaching the root level or an `HttpClient` which was not configured with
|
|
2238
2238
|
* this option.
|
|
2239
2239
|
*
|
|
2240
|
-
* @see provideHttpClient
|
|
2240
|
+
* @see {@link provideHttpClient}
|
|
2241
2241
|
* @developerPreview
|
|
2242
2242
|
*/
|
|
2243
2243
|
function withRequestsMadeViaParent() {
|
|
@@ -2294,9 +2294,9 @@ class HttpClientXsrfModule {
|
|
|
2294
2294
|
};
|
|
2295
2295
|
}
|
|
2296
2296
|
}
|
|
2297
|
-
HttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2298
|
-
HttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
|
2299
|
-
HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
|
2297
|
+
HttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2298
|
+
HttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: HttpClientXsrfModule });
|
|
2299
|
+
HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
2300
2300
|
HttpXsrfInterceptor,
|
|
2301
2301
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
2302
2302
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -2306,7 +2306,7 @@ HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ve
|
|
|
2306
2306
|
}).ɵproviders,
|
|
2307
2307
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
2308
2308
|
] });
|
|
2309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
2309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
2310
2310
|
type: NgModule,
|
|
2311
2311
|
args: [{
|
|
2312
2312
|
providers: [
|
|
@@ -2332,12 +2332,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
|
2332
2332
|
*/
|
|
2333
2333
|
class HttpClientModule {
|
|
2334
2334
|
}
|
|
2335
|
-
HttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2336
|
-
HttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
|
2337
|
-
HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
|
2335
|
+
HttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2336
|
+
HttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: HttpClientModule });
|
|
2337
|
+
HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientModule, providers: [
|
|
2338
2338
|
provideHttpClient(withInterceptorsFromDi()),
|
|
2339
2339
|
] });
|
|
2340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
2340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
2341
2341
|
type: NgModule,
|
|
2342
2342
|
args: [{
|
|
2343
2343
|
/**
|
|
@@ -2359,12 +2359,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
|
2359
2359
|
*/
|
|
2360
2360
|
class HttpClientJsonpModule {
|
|
2361
2361
|
}
|
|
2362
|
-
HttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
2363
|
-
HttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
|
2364
|
-
HttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
|
2362
|
+
HttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2363
|
+
HttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: HttpClientJsonpModule });
|
|
2364
|
+
HttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientJsonpModule, providers: [
|
|
2365
2365
|
withJsonpSupport().ɵproviders,
|
|
2366
2366
|
] });
|
|
2367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
2367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
2368
2368
|
type: NgModule,
|
|
2369
2369
|
args: [{
|
|
2370
2370
|
providers: [
|