@angular/common 21.0.0-next.4 → 21.0.0-next.5
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 +16 -16
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/common_module.mjs +88 -88
- package/fesm2022/common_module.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +3 -3
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/location.mjs +18 -18
- package/fesm2022/location.mjs.map +1 -1
- package/fesm2022/module.mjs +54 -54
- package/fesm2022/module.mjs.map +1 -1
- package/fesm2022/platform_navigation.mjs +4 -4
- package/fesm2022/testing.mjs +13 -13
- package/fesm2022/upgrade.mjs +7 -7
- package/fesm2022/upgrade.mjs.map +1 -1
- package/fesm2022/xhr.mjs +1 -1
- package/http/index.d.ts +3 -2
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/module.d.d.ts +1 -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
package/fesm2022/module.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.5
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1624,10 +1624,10 @@ class FetchBackend {
|
|
|
1624
1624
|
}
|
|
1625
1625
|
return chunksAll;
|
|
1626
1626
|
}
|
|
1627
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
1628
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
1627
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1628
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: FetchBackend });
|
|
1629
1629
|
}
|
|
1630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
1630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: FetchBackend, decorators: [{
|
|
1631
1631
|
type: Injectable
|
|
1632
1632
|
}], ctorParameters: () => [] });
|
|
1633
1633
|
/**
|
|
@@ -1985,10 +1985,10 @@ class HttpXhrBackend {
|
|
|
1985
1985
|
});
|
|
1986
1986
|
}));
|
|
1987
1987
|
}
|
|
1988
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
1989
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
1988
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXhrBackend, deps: [{ token: XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1989
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXhrBackend, providedIn: 'root' });
|
|
1990
1990
|
}
|
|
1991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
1991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
1992
1992
|
type: Injectable,
|
|
1993
1993
|
args: [{ providedIn: 'root' }]
|
|
1994
1994
|
}], ctorParameters: () => [{ type: XhrFactory }] });
|
|
@@ -2018,19 +2018,19 @@ function chainedInterceptorFn(chainTailFn, interceptorFn, injector) {
|
|
|
2018
2018
|
*
|
|
2019
2019
|
* @publicApi
|
|
2020
2020
|
*/
|
|
2021
|
-
const HTTP_INTERCEPTORS = new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTORS' : '');
|
|
2021
|
+
const HTTP_INTERCEPTORS = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'HTTP_INTERCEPTORS' : '');
|
|
2022
2022
|
/**
|
|
2023
2023
|
* A multi-provided token of `HttpInterceptorFn`s.
|
|
2024
2024
|
*/
|
|
2025
|
-
const HTTP_INTERCEPTOR_FNS = new InjectionToken(ngDevMode ? 'HTTP_INTERCEPTOR_FNS' : '', { factory: () => [] });
|
|
2025
|
+
const HTTP_INTERCEPTOR_FNS = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'HTTP_INTERCEPTOR_FNS' : '', { factory: () => [] });
|
|
2026
2026
|
/**
|
|
2027
2027
|
* A multi-provided token of `HttpInterceptorFn`s that are only set in root.
|
|
2028
2028
|
*/
|
|
2029
|
-
const HTTP_ROOT_INTERCEPTOR_FNS = new InjectionToken(ngDevMode ? 'HTTP_ROOT_INTERCEPTOR_FNS' : '');
|
|
2029
|
+
const HTTP_ROOT_INTERCEPTOR_FNS = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'HTTP_ROOT_INTERCEPTOR_FNS' : '');
|
|
2030
2030
|
// TODO(atscott): We need a larger discussion about stability and what should contribute to stability.
|
|
2031
2031
|
// Should the whole interceptor chain contribute to stability or just the backend request #55075?
|
|
2032
2032
|
// Should HttpClient contribute to stability automatically at all?
|
|
2033
|
-
const REQUESTS_CONTRIBUTE_TO_STABILITY = new InjectionToken(ngDevMode ? 'REQUESTS_CONTRIBUTE_TO_STABILITY' : '', { providedIn: 'root', factory: () => true });
|
|
2033
|
+
const REQUESTS_CONTRIBUTE_TO_STABILITY = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'REQUESTS_CONTRIBUTE_TO_STABILITY' : '', { providedIn: 'root', factory: () => true });
|
|
2034
2034
|
/**
|
|
2035
2035
|
* Creates an `HttpInterceptorFn` which lazily initializes an interceptor chain from the legacy
|
|
2036
2036
|
* class-based interceptors and runs the request through it.
|
|
@@ -2069,10 +2069,10 @@ function legacyInterceptorFnFactory() {
|
|
|
2069
2069
|
* @publicApi
|
|
2070
2070
|
*/
|
|
2071
2071
|
class HttpBackend {
|
|
2072
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2073
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2072
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2073
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpBackend, providedIn: 'root', useExisting: HttpXhrBackend });
|
|
2074
2074
|
}
|
|
2075
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2075
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpBackend, decorators: [{
|
|
2076
2076
|
type: Injectable,
|
|
2077
2077
|
args: [{ providedIn: 'root', useExisting: HttpXhrBackend }]
|
|
2078
2078
|
}] });
|
|
@@ -2131,10 +2131,10 @@ class HttpInterceptorHandler {
|
|
|
2131
2131
|
return this.chain(initialRequest, (downstreamRequest) => this.backend.handle(downstreamRequest));
|
|
2132
2132
|
}
|
|
2133
2133
|
}
|
|
2134
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2135
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2134
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2135
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpInterceptorHandler, providedIn: 'root' });
|
|
2136
2136
|
}
|
|
2137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
2138
2138
|
type: Injectable,
|
|
2139
2139
|
args: [{ providedIn: 'root' }]
|
|
2140
2140
|
}], ctorParameters: () => [{ type: HttpBackend }, { type: i0.EnvironmentInjector }] });
|
|
@@ -2151,10 +2151,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.4",
|
|
|
2151
2151
|
* @publicApi
|
|
2152
2152
|
*/
|
|
2153
2153
|
class HttpHandler {
|
|
2154
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2155
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2154
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2155
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpHandler, providedIn: 'root', useExisting: HttpInterceptorHandler });
|
|
2156
2156
|
}
|
|
2157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpHandler, decorators: [{
|
|
2158
2158
|
type: Injectable,
|
|
2159
2159
|
args: [{ providedIn: 'root', useExisting: HttpInterceptorHandler }]
|
|
2160
2160
|
}] });
|
|
@@ -2478,10 +2478,10 @@ class HttpClient {
|
|
|
2478
2478
|
put(url, body, options = {}) {
|
|
2479
2479
|
return this.request('PUT', url, addBody(options, body));
|
|
2480
2480
|
}
|
|
2481
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2482
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2481
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2482
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClient, providedIn: 'root' });
|
|
2483
2483
|
}
|
|
2484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClient, decorators: [{
|
|
2485
2485
|
type: Injectable,
|
|
2486
2486
|
args: [{ providedIn: 'root' }]
|
|
2487
2487
|
}], ctorParameters: () => [{ type: HttpHandler }] });
|
|
@@ -2684,10 +2684,10 @@ class JsonpClientBackend {
|
|
|
2684
2684
|
foreignDocument ??= this.document.implementation.createHTMLDocument();
|
|
2685
2685
|
foreignDocument.adoptNode(script);
|
|
2686
2686
|
}
|
|
2687
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2688
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2687
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2688
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: JsonpClientBackend });
|
|
2689
2689
|
}
|
|
2690
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2690
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
2691
2691
|
type: Injectable
|
|
2692
2692
|
}], ctorParameters: () => [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
2693
2693
|
type: Inject,
|
|
@@ -2726,23 +2726,23 @@ class JsonpInterceptor {
|
|
|
2726
2726
|
intercept(initialRequest, next) {
|
|
2727
2727
|
return runInInjectionContext(this.injector, () => jsonpInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
|
|
2728
2728
|
}
|
|
2729
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2730
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2729
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2730
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: JsonpInterceptor });
|
|
2731
2731
|
}
|
|
2732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
2733
2733
|
type: Injectable
|
|
2734
2734
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
2735
2735
|
|
|
2736
|
-
const XSRF_ENABLED = new InjectionToken(ngDevMode ? 'XSRF_ENABLED' : '', {
|
|
2736
|
+
const XSRF_ENABLED = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'XSRF_ENABLED' : '', {
|
|
2737
2737
|
factory: () => true,
|
|
2738
2738
|
});
|
|
2739
2739
|
const XSRF_DEFAULT_COOKIE_NAME = 'XSRF-TOKEN';
|
|
2740
|
-
const XSRF_COOKIE_NAME = new InjectionToken(ngDevMode ? 'XSRF_COOKIE_NAME' : '', {
|
|
2740
|
+
const XSRF_COOKIE_NAME = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'XSRF_COOKIE_NAME' : '', {
|
|
2741
2741
|
providedIn: 'root',
|
|
2742
2742
|
factory: () => XSRF_DEFAULT_COOKIE_NAME,
|
|
2743
2743
|
});
|
|
2744
2744
|
const XSRF_DEFAULT_HEADER_NAME = 'X-XSRF-TOKEN';
|
|
2745
|
-
const XSRF_HEADER_NAME = new InjectionToken(ngDevMode ? 'XSRF_HEADER_NAME' : '', {
|
|
2745
|
+
const XSRF_HEADER_NAME = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'XSRF_HEADER_NAME' : '', {
|
|
2746
2746
|
providedIn: 'root',
|
|
2747
2747
|
factory: () => XSRF_DEFAULT_HEADER_NAME,
|
|
2748
2748
|
});
|
|
@@ -2774,10 +2774,10 @@ class HttpXsrfCookieExtractor {
|
|
|
2774
2774
|
}
|
|
2775
2775
|
return this.lastToken;
|
|
2776
2776
|
}
|
|
2777
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2778
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2777
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2778
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXsrfCookieExtractor, providedIn: 'root' });
|
|
2779
2779
|
}
|
|
2780
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2781
2781
|
type: Injectable,
|
|
2782
2782
|
args: [{ providedIn: 'root' }]
|
|
2783
2783
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -2793,10 +2793,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.4",
|
|
|
2793
2793
|
* @publicApi
|
|
2794
2794
|
*/
|
|
2795
2795
|
class HttpXsrfTokenExtractor {
|
|
2796
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2797
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2796
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXsrfTokenExtractor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2797
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXsrfTokenExtractor, providedIn: 'root', useExisting: HttpXsrfCookieExtractor });
|
|
2798
2798
|
}
|
|
2799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXsrfTokenExtractor, decorators: [{
|
|
2800
2800
|
type: Injectable,
|
|
2801
2801
|
args: [{ providedIn: 'root', useExisting: HttpXsrfCookieExtractor }]
|
|
2802
2802
|
}] });
|
|
@@ -2832,10 +2832,10 @@ class HttpXsrfInterceptor {
|
|
|
2832
2832
|
intercept(initialRequest, next) {
|
|
2833
2833
|
return runInInjectionContext(this.injector, () => xsrfInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
|
|
2834
2834
|
}
|
|
2835
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2836
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2835
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2836
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXsrfInterceptor });
|
|
2837
2837
|
}
|
|
2838
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2839
2839
|
type: Injectable
|
|
2840
2840
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
2841
2841
|
|
|
@@ -2937,7 +2937,7 @@ function withInterceptors(interceptorFns) {
|
|
|
2937
2937
|
};
|
|
2938
2938
|
}));
|
|
2939
2939
|
}
|
|
2940
|
-
const LEGACY_INTERCEPTOR_FN = new InjectionToken(ngDevMode ? 'LEGACY_INTERCEPTOR_FN' : '');
|
|
2940
|
+
const LEGACY_INTERCEPTOR_FN = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'LEGACY_INTERCEPTOR_FN' : '');
|
|
2941
2941
|
/**
|
|
2942
2942
|
* Includes class-based interceptors configured using a multi-provider in the current injector into
|
|
2943
2943
|
* the configured `HttpClient` instance.
|
|
@@ -3098,9 +3098,9 @@ class HttpClientXsrfModule {
|
|
|
3098
3098
|
providers: withXsrfConfiguration(options).ɵproviders,
|
|
3099
3099
|
};
|
|
3100
3100
|
}
|
|
3101
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3102
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.
|
|
3103
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3101
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3102
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule });
|
|
3103
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
3104
3104
|
HttpXsrfInterceptor,
|
|
3105
3105
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
3106
3106
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -3111,7 +3111,7 @@ class HttpClientXsrfModule {
|
|
|
3111
3111
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
3112
3112
|
] });
|
|
3113
3113
|
}
|
|
3114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
3115
3115
|
type: NgModule,
|
|
3116
3116
|
args: [{
|
|
3117
3117
|
providers: [
|
|
@@ -3137,11 +3137,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.4",
|
|
|
3137
3137
|
* @deprecated use `provideHttpClient(withInterceptorsFromDi())` as providers instead
|
|
3138
3138
|
*/
|
|
3139
3139
|
class HttpClientModule {
|
|
3140
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3141
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.
|
|
3142
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3141
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientModule });
|
|
3142
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientModule, providers: [provideHttpClient(withInterceptorsFromDi())] });
|
|
3143
3143
|
}
|
|
3144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
3145
3145
|
type: NgModule,
|
|
3146
3146
|
args: [{
|
|
3147
3147
|
/**
|
|
@@ -3161,11 +3161,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.4",
|
|
|
3161
3161
|
* @deprecated `withJsonpSupport()` as providers instead
|
|
3162
3162
|
*/
|
|
3163
3163
|
class HttpClientJsonpModule {
|
|
3164
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3165
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.
|
|
3166
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3164
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3165
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule });
|
|
3166
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule, providers: [withJsonpSupport().ɵproviders] });
|
|
3167
3167
|
}
|
|
3168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
3169
3169
|
type: NgModule,
|
|
3170
3170
|
args: [{
|
|
3171
3171
|
providers: [withJsonpSupport().ɵproviders],
|