@angular/common 16.0.0-rc.4 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/http/src/client.mjs +3 -3
- package/esm2022/http/src/interceptor.mjs +3 -3
- package/esm2022/http/src/jsonp.mjs +10 -10
- package/esm2022/http/src/module.mjs +12 -12
- package/esm2022/http/src/provider.mjs +16 -16
- package/esm2022/http/src/xhr.mjs +6 -6
- package/esm2022/http/src/xsrf.mjs +6 -6
- package/esm2022/http/testing/src/backend.mjs +3 -3
- package/esm2022/http/testing/src/module.mjs +4 -4
- package/esm2022/src/common_module.mjs +4 -4
- package/esm2022/src/directives/ng_class.mjs +3 -3
- package/esm2022/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2022/src/directives/ng_for_of.mjs +3 -3
- package/esm2022/src/directives/ng_if.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/ng_optimized_image.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
- package/esm2022/src/directives/ng_optimized_image/preload-link-creator.mjs +3 -3
- package/esm2022/src/directives/ng_plural.mjs +6 -6
- package/esm2022/src/directives/ng_style.mjs +3 -3
- package/esm2022/src/directives/ng_switch.mjs +9 -9
- package/esm2022/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2022/src/i18n/localization.mjs +6 -6
- package/esm2022/src/location/hash_location_strategy.mjs +3 -3
- package/esm2022/src/location/location.mjs +3 -3
- package/esm2022/src/location/location_strategy.mjs +6 -6
- package/esm2022/src/location/platform_location.mjs +6 -6
- package/esm2022/src/pipes/async_pipe.mjs +3 -3
- package/esm2022/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2022/src/pipes/date_pipe.mjs +3 -3
- package/esm2022/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2022/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2022/src/pipes/json_pipe.mjs +3 -3
- package/esm2022/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2022/src/pipes/number_pipe.mjs +9 -9
- package/esm2022/src/pipes/slice_pipe.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/location_mock.mjs +3 -3
- package/esm2022/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2022/testing/src/mock_platform_location.mjs +3 -3
- package/esm2022/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2022/common.mjs +114 -114
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +54 -54
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +21 -21
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +1 -1
- 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 v16.0.0
|
|
2
|
+
* @license Angular v16.0.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -308,10 +308,10 @@ class HttpClientTestingBackend {
|
|
|
308
308
|
return `Match by function: ${matcher.name}`;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
312
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0
|
|
311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
312
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientTestingBackend }); }
|
|
313
313
|
}
|
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
|
|
315
315
|
type: Injectable
|
|
316
316
|
}] });
|
|
317
317
|
function describeRequest(testRequest) {
|
|
@@ -336,13 +336,13 @@ function provideHttpClientTesting() {
|
|
|
336
336
|
* @publicApi
|
|
337
337
|
*/
|
|
338
338
|
class HttpClientTestingModule {
|
|
339
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
340
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0
|
|
341
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0
|
|
339
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
340
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] }); }
|
|
341
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientTestingModule, providers: [
|
|
342
342
|
provideHttpClientTesting(),
|
|
343
343
|
], imports: [HttpClientModule] }); }
|
|
344
344
|
}
|
|
345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientTestingModule, decorators: [{
|
|
346
346
|
type: NgModule,
|
|
347
347
|
args: [{
|
|
348
348
|
imports: [
|
package/fesm2022/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.0
|
|
2
|
+
* @license Angular v16.0.0
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1371,10 +1371,10 @@ class HttpClient {
|
|
|
1371
1371
|
put(url, body, options = {}) {
|
|
1372
1372
|
return this.request('PUT', url, addBody(options, body));
|
|
1373
1373
|
}
|
|
1374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
1375
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0
|
|
1374
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1375
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClient }); }
|
|
1376
1376
|
}
|
|
1377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClient, decorators: [{
|
|
1378
1378
|
type: Injectable
|
|
1379
1379
|
}], ctorParameters: function () { return [{ type: HttpHandler }]; } });
|
|
1380
1380
|
|
|
@@ -1453,10 +1453,10 @@ class HttpInterceptorHandler extends HttpHandler {
|
|
|
1453
1453
|
}
|
|
1454
1454
|
return this.chain(initialRequest, downstreamRequest => this.backend.handle(downstreamRequest));
|
|
1455
1455
|
}
|
|
1456
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
1457
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0
|
|
1456
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1457
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpInterceptorHandler }); }
|
|
1458
1458
|
}
|
|
1459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
1459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
1460
1460
|
type: Injectable
|
|
1461
1461
|
}], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.EnvironmentInjector }]; } });
|
|
1462
1462
|
|
|
@@ -1506,8 +1506,8 @@ function jsonpCallbackContext() {
|
|
|
1506
1506
|
/**
|
|
1507
1507
|
* Processes an `HttpRequest` with the JSONP method,
|
|
1508
1508
|
* by performing JSONP style requests.
|
|
1509
|
-
* @see
|
|
1510
|
-
* @see
|
|
1509
|
+
* @see {@link HttpHandler}
|
|
1510
|
+
* @see {@link HttpXhrBackend}
|
|
1511
1511
|
*
|
|
1512
1512
|
* @publicApi
|
|
1513
1513
|
*/
|
|
@@ -1658,10 +1658,10 @@ class JsonpClientBackend {
|
|
|
1658
1658
|
}
|
|
1659
1659
|
foreignDocument.adoptNode(script);
|
|
1660
1660
|
}
|
|
1661
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
1662
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0
|
|
1661
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1662
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: JsonpClientBackend }); }
|
|
1663
1663
|
}
|
|
1664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
1664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
1665
1665
|
type: Injectable
|
|
1666
1666
|
}], ctorParameters: function () { return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
1667
1667
|
type: Inject,
|
|
@@ -1681,7 +1681,7 @@ function jsonpInterceptorFn(req, next) {
|
|
|
1681
1681
|
* Identifies requests with the method JSONP and
|
|
1682
1682
|
* shifts them to the `JsonpClientBackend`.
|
|
1683
1683
|
*
|
|
1684
|
-
* @see
|
|
1684
|
+
* @see {@link HttpInterceptor}
|
|
1685
1685
|
*
|
|
1686
1686
|
* @publicApi
|
|
1687
1687
|
*/
|
|
@@ -1699,10 +1699,10 @@ class JsonpInterceptor {
|
|
|
1699
1699
|
intercept(initialRequest, next) {
|
|
1700
1700
|
return this.injector.runInContext(() => jsonpInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
1701
1701
|
}
|
|
1702
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
1703
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0
|
|
1702
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1703
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: JsonpInterceptor }); }
|
|
1704
1704
|
}
|
|
1705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
1705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
1706
1706
|
type: Injectable
|
|
1707
1707
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
1708
1708
|
|
|
@@ -1722,8 +1722,8 @@ function getResponseUrl(xhr) {
|
|
|
1722
1722
|
}
|
|
1723
1723
|
/**
|
|
1724
1724
|
* Uses `XMLHttpRequest` to send requests to a backend server.
|
|
1725
|
-
* @see
|
|
1726
|
-
* @see
|
|
1725
|
+
* @see {@link HttpHandler}
|
|
1726
|
+
* @see {@link JsonpClientBackend}
|
|
1727
1727
|
*
|
|
1728
1728
|
* @publicApi
|
|
1729
1729
|
*/
|
|
@@ -1984,10 +1984,10 @@ class HttpXhrBackend {
|
|
|
1984
1984
|
};
|
|
1985
1985
|
});
|
|
1986
1986
|
}
|
|
1987
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
1988
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0
|
|
1987
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1988
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpXhrBackend }); }
|
|
1989
1989
|
}
|
|
1990
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
1990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
1991
1991
|
type: Injectable
|
|
1992
1992
|
}], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });
|
|
1993
1993
|
// Cannot use `Number.MAX_VALUE` as it does not fit into a 32-bit signed integer.
|
|
@@ -2051,10 +2051,10 @@ class HttpXsrfCookieExtractor {
|
|
|
2051
2051
|
}
|
|
2052
2052
|
return this.lastToken;
|
|
2053
2053
|
}
|
|
2054
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
2055
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0
|
|
2054
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2055
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpXsrfCookieExtractor }); }
|
|
2056
2056
|
}
|
|
2057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
2057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2058
2058
|
type: Injectable
|
|
2059
2059
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2060
2060
|
type: Inject,
|
|
@@ -2094,10 +2094,10 @@ class HttpXsrfInterceptor {
|
|
|
2094
2094
|
intercept(initialRequest, next) {
|
|
2095
2095
|
return this.injector.runInContext(() => xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
2096
2096
|
}
|
|
2097
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
2098
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0
|
|
2097
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2098
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpXsrfInterceptor }); }
|
|
2099
2099
|
}
|
|
2100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
2100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2101
2101
|
type: Injectable
|
|
2102
2102
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
2103
2103
|
|
|
@@ -2129,12 +2129,12 @@ function makeHttpFeature(kind, providers) {
|
|
|
2129
2129
|
* feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the
|
|
2130
2130
|
* `withInterceptors(...)` feature.
|
|
2131
2131
|
*
|
|
2132
|
-
* @see withInterceptors
|
|
2133
|
-
* @see withInterceptorsFromDi
|
|
2134
|
-
* @see withXsrfConfiguration
|
|
2135
|
-
* @see withNoXsrfProtection
|
|
2136
|
-
* @see withJsonpSupport
|
|
2137
|
-
* @see withRequestsMadeViaParent
|
|
2132
|
+
* @see {@link withInterceptors}
|
|
2133
|
+
* @see {@link withInterceptorsFromDi}
|
|
2134
|
+
* @see {@link withXsrfConfiguration}
|
|
2135
|
+
* @see {@link withNoXsrfProtection}
|
|
2136
|
+
* @see {@link withJsonpSupport}
|
|
2137
|
+
* @see {@link withRequestsMadeViaParent}
|
|
2138
2138
|
*/
|
|
2139
2139
|
function provideHttpClient(...features) {
|
|
2140
2140
|
if (ngDevMode) {
|
|
@@ -2169,8 +2169,8 @@ function provideHttpClient(...features) {
|
|
|
2169
2169
|
* Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`
|
|
2170
2170
|
* instance.
|
|
2171
2171
|
*
|
|
2172
|
-
* @see HttpInterceptorFn
|
|
2173
|
-
* @see provideHttpClient
|
|
2172
|
+
* @see {@link HttpInterceptorFn}
|
|
2173
|
+
* @see {@link provideHttpClient}
|
|
2174
2174
|
* @publicApi
|
|
2175
2175
|
*/
|
|
2176
2176
|
function withInterceptors(interceptorFns) {
|
|
@@ -2190,9 +2190,9 @@ const LEGACY_INTERCEPTOR_FN = new InjectionToken('LEGACY_INTERCEPTOR_FN');
|
|
|
2190
2190
|
* Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided
|
|
2191
2191
|
* interceptors may be phased out in a later release.
|
|
2192
2192
|
*
|
|
2193
|
-
* @see HttpInterceptor
|
|
2194
|
-
* @see HTTP_INTERCEPTORS
|
|
2195
|
-
* @see provideHttpClient
|
|
2193
|
+
* @see {@link HttpInterceptor}
|
|
2194
|
+
* @see {@link HTTP_INTERCEPTORS}
|
|
2195
|
+
* @see {@link provideHttpClient}
|
|
2196
2196
|
*/
|
|
2197
2197
|
function withInterceptorsFromDi() {
|
|
2198
2198
|
// Note: the legacy interceptor function is provided here via an intermediate token
|
|
@@ -2217,7 +2217,7 @@ function withInterceptorsFromDi() {
|
|
|
2217
2217
|
*
|
|
2218
2218
|
* This feature is incompatible with the `withNoXsrfProtection` feature.
|
|
2219
2219
|
*
|
|
2220
|
-
* @see provideHttpClient
|
|
2220
|
+
* @see {@link provideHttpClient}
|
|
2221
2221
|
*/
|
|
2222
2222
|
function withXsrfConfiguration({ cookieName, headerName }) {
|
|
2223
2223
|
const providers = [];
|
|
@@ -2234,7 +2234,7 @@ function withXsrfConfiguration({ cookieName, headerName }) {
|
|
|
2234
2234
|
*
|
|
2235
2235
|
* This feature is incompatible with the `withXsrfConfiguration` feature.
|
|
2236
2236
|
*
|
|
2237
|
-
* @see provideHttpClient
|
|
2237
|
+
* @see {@link provideHttpClient}
|
|
2238
2238
|
*/
|
|
2239
2239
|
function withNoXsrfProtection() {
|
|
2240
2240
|
return makeHttpFeature(HttpFeatureKind.NoXsrfProtection, [
|
|
@@ -2247,7 +2247,7 @@ function withNoXsrfProtection() {
|
|
|
2247
2247
|
/**
|
|
2248
2248
|
* Add JSONP support to the configuration of the current `HttpClient` instance.
|
|
2249
2249
|
*
|
|
2250
|
-
* @see provideHttpClient
|
|
2250
|
+
* @see {@link provideHttpClient}
|
|
2251
2251
|
*/
|
|
2252
2252
|
function withJsonpSupport() {
|
|
2253
2253
|
return makeHttpFeature(HttpFeatureKind.JsonpSupport, [
|
|
@@ -2273,7 +2273,7 @@ function withJsonpSupport() {
|
|
|
2273
2273
|
* "bubble up" until either reaching the root level or an `HttpClient` which was not configured with
|
|
2274
2274
|
* this option.
|
|
2275
2275
|
*
|
|
2276
|
-
* @see provideHttpClient
|
|
2276
|
+
* @see {@link provideHttpClient}
|
|
2277
2277
|
* @developerPreview
|
|
2278
2278
|
*/
|
|
2279
2279
|
function withRequestsMadeViaParent() {
|
|
@@ -2329,9 +2329,9 @@ class HttpClientXsrfModule {
|
|
|
2329
2329
|
providers: withXsrfConfiguration(options).ɵproviders,
|
|
2330
2330
|
};
|
|
2331
2331
|
}
|
|
2332
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
2333
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0
|
|
2334
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0
|
|
2332
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2333
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: HttpClientXsrfModule }); }
|
|
2334
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
2335
2335
|
HttpXsrfInterceptor,
|
|
2336
2336
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
2337
2337
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -2342,7 +2342,7 @@ class HttpClientXsrfModule {
|
|
|
2342
2342
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
2343
2343
|
] }); }
|
|
2344
2344
|
}
|
|
2345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
2345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
2346
2346
|
type: NgModule,
|
|
2347
2347
|
args: [{
|
|
2348
2348
|
providers: [
|
|
@@ -2367,13 +2367,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.4", ng
|
|
|
2367
2367
|
* @publicApi
|
|
2368
2368
|
*/
|
|
2369
2369
|
class HttpClientModule {
|
|
2370
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
2371
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0
|
|
2372
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0
|
|
2370
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2371
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: HttpClientModule }); }
|
|
2372
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientModule, providers: [
|
|
2373
2373
|
provideHttpClient(withInterceptorsFromDi()),
|
|
2374
2374
|
] }); }
|
|
2375
2375
|
}
|
|
2376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
2376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
2377
2377
|
type: NgModule,
|
|
2378
2378
|
args: [{
|
|
2379
2379
|
/**
|
|
@@ -2394,13 +2394,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.4", ng
|
|
|
2394
2394
|
* @publicApi
|
|
2395
2395
|
*/
|
|
2396
2396
|
class HttpClientJsonpModule {
|
|
2397
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0
|
|
2398
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0
|
|
2399
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0
|
|
2397
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2398
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0", ngImport: i0, type: HttpClientJsonpModule }); }
|
|
2399
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientJsonpModule, providers: [
|
|
2400
2400
|
withJsonpSupport().ɵproviders,
|
|
2401
2401
|
] }); }
|
|
2402
2402
|
}
|
|
2403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0
|
|
2403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
2404
2404
|
type: NgModule,
|
|
2405
2405
|
args: [{
|
|
2406
2406
|
providers: [
|