@angular/common 21.0.0-next.6 → 21.0.0-next.7
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_module-chunk.mjs +87 -87
- package/fesm2022/_common_module-chunk.mjs.map +1 -1
- package/fesm2022/_location-chunk.mjs +17 -17
- package/fesm2022/_module-chunk.mjs +67 -47
- package/fesm2022/_module-chunk.mjs.map +1 -1
- package/fesm2022/_platform_navigation-chunk.mjs +5 -5
- package/fesm2022/_xhr-chunk.mjs +2 -2
- package/fesm2022/common.mjs +15 -15
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http-testing.mjs +9 -9
- package/fesm2022/http.mjs +2 -2
- package/fesm2022/testing.mjs +14 -14
- package/fesm2022/upgrade.mjs +6 -6
- package/package.json +2 -2
- package/types/_common_module-chunk.d.ts +3 -2
- package/types/_module-chunk.d.ts +16 -2
- package/types/_platform_location-chunk.d.ts +2 -2
- package/types/_xhr-chunk.d.ts +2 -2
- package/types/common.d.ts +2 -2
- package/types/http-testing.d.ts +2 -2
- package/types/http.d.ts +123 -2
- package/types/testing.d.ts +2 -2
- package/types/upgrade.d.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.
|
|
2
|
+
* @license Angular v21.0.0-next.7
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -50,10 +50,10 @@ class PlatformLocation {
|
|
|
50
50
|
historyGo(relativePosition) {
|
|
51
51
|
throw new Error(ngDevMode ? 'Not implemented' : '');
|
|
52
52
|
}
|
|
53
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
54
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
53
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: PlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
54
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: PlatformLocation, providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) });
|
|
55
55
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
56
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: PlatformLocation, decorators: [{
|
|
57
57
|
type: Injectable,
|
|
58
58
|
args: [{ providedIn: 'platform', useFactory: () => inject(BrowserPlatformLocation) }]
|
|
59
59
|
}] });
|
|
@@ -135,10 +135,10 @@ class BrowserPlatformLocation extends PlatformLocation {
|
|
|
135
135
|
getState() {
|
|
136
136
|
return this._history.state;
|
|
137
137
|
}
|
|
138
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
139
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
138
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: BrowserPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
139
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: BrowserPlatformLocation, providedIn: 'platform', useFactory: () => new BrowserPlatformLocation() });
|
|
140
140
|
}
|
|
141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: BrowserPlatformLocation, decorators: [{
|
|
142
142
|
type: Injectable,
|
|
143
143
|
args: [{
|
|
144
144
|
providedIn: 'platform',
|
|
@@ -219,10 +219,10 @@ class LocationStrategy {
|
|
|
219
219
|
historyGo(relativePosition) {
|
|
220
220
|
throw new Error(ngDevMode ? 'Not implemented' : '');
|
|
221
221
|
}
|
|
222
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
223
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
222
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: LocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
223
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: LocationStrategy, providedIn: 'root', useFactory: () => inject(PathLocationStrategy) });
|
|
224
224
|
}
|
|
225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: LocationStrategy, decorators: [{
|
|
226
226
|
type: Injectable,
|
|
227
227
|
args: [{ providedIn: 'root', useFactory: () => inject(PathLocationStrategy) }]
|
|
228
228
|
}] });
|
|
@@ -334,10 +334,10 @@ class PathLocationStrategy extends LocationStrategy {
|
|
|
334
334
|
historyGo(relativePosition = 0) {
|
|
335
335
|
this._platformLocation.historyGo?.(relativePosition);
|
|
336
336
|
}
|
|
337
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
338
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
337
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: PathLocationStrategy, deps: [{ token: PlatformLocation }, { token: APP_BASE_HREF, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
338
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: PathLocationStrategy, providedIn: 'root' });
|
|
339
339
|
}
|
|
340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: PathLocationStrategy, decorators: [{
|
|
341
341
|
type: Injectable,
|
|
342
342
|
args: [{ providedIn: 'root' }]
|
|
343
343
|
}], ctorParameters: () => [{ type: PlatformLocation }, { type: undefined, decorators: [{
|
|
@@ -592,10 +592,10 @@ class Location {
|
|
|
592
592
|
* @returns The URL string, modified if needed.
|
|
593
593
|
*/
|
|
594
594
|
static stripTrailingSlash = stripTrailingSlash;
|
|
595
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
596
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
595
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: Location, deps: [{ token: LocationStrategy }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
596
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: Location, providedIn: 'root', useFactory: createLocation });
|
|
597
597
|
}
|
|
598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
598
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: Location, decorators: [{
|
|
599
599
|
type: Injectable,
|
|
600
600
|
args: [{
|
|
601
601
|
providedIn: 'root',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.
|
|
2
|
+
* @license Angular v21.0.0-next.7
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -788,6 +788,11 @@ class HttpRequest {
|
|
|
788
788
|
* A cryptographic hash of the resource to be fetched by request
|
|
789
789
|
*/
|
|
790
790
|
integrity;
|
|
791
|
+
/**
|
|
792
|
+
* The referrer policy of the request, which can be used to specify the referrer information to be included with the request.
|
|
793
|
+
* This can affect the amount of referrer information sent with the request, and can be used to enhance privacy and security.
|
|
794
|
+
*/
|
|
795
|
+
referrerPolicy;
|
|
791
796
|
/**
|
|
792
797
|
* The expected response type of the server.
|
|
793
798
|
*
|
|
@@ -887,6 +892,9 @@ class HttpRequest {
|
|
|
887
892
|
if (options.referrer) {
|
|
888
893
|
this.referrer = options.referrer;
|
|
889
894
|
}
|
|
895
|
+
if (options.referrerPolicy) {
|
|
896
|
+
this.referrerPolicy = options.referrerPolicy;
|
|
897
|
+
}
|
|
890
898
|
// We do want to assign transferCache even if it's falsy (false is valid value)
|
|
891
899
|
this.transferCache = options.transferCache;
|
|
892
900
|
}
|
|
@@ -1008,6 +1016,7 @@ class HttpRequest {
|
|
|
1008
1016
|
const credentials = update.credentials || this.credentials;
|
|
1009
1017
|
const referrer = update.referrer || this.referrer;
|
|
1010
1018
|
const integrity = update.integrity || this.integrity;
|
|
1019
|
+
const referrerPolicy = update.referrerPolicy || this.referrerPolicy;
|
|
1011
1020
|
// Carefully handle the transferCache to differentiate between
|
|
1012
1021
|
// `false` and `undefined` in the update args.
|
|
1013
1022
|
const transferCache = update.transferCache ?? this.transferCache;
|
|
@@ -1055,6 +1064,7 @@ class HttpRequest {
|
|
|
1055
1064
|
credentials,
|
|
1056
1065
|
referrer,
|
|
1057
1066
|
integrity,
|
|
1067
|
+
referrerPolicy,
|
|
1058
1068
|
});
|
|
1059
1069
|
}
|
|
1060
1070
|
}
|
|
@@ -1111,6 +1121,8 @@ class HttpResponseBase {
|
|
|
1111
1121
|
* Textual description of response status code, defaults to OK.
|
|
1112
1122
|
*
|
|
1113
1123
|
* Do not depend on this.
|
|
1124
|
+
*
|
|
1125
|
+
* @deprecated With HTTP/2 and later versions, this will incorrectly remain set to 'OK' even when the status code of a response is not 200.
|
|
1114
1126
|
*/
|
|
1115
1127
|
statusText;
|
|
1116
1128
|
/**
|
|
@@ -1261,6 +1273,7 @@ class HttpErrorResponse extends HttpResponseBase {
|
|
|
1261
1273
|
this.message = `Http failure during parsing for ${init.url || '(unknown url)'}`;
|
|
1262
1274
|
}
|
|
1263
1275
|
else {
|
|
1276
|
+
// TODO: Cleanup G3 to update the tests that rely on having the status text in the Error message.
|
|
1264
1277
|
this.message = `Http failure response for ${init.url || '(unknown url)'}: ${init.status} ${init.statusText}`;
|
|
1265
1278
|
}
|
|
1266
1279
|
this.error = init.error || null;
|
|
@@ -1613,6 +1626,7 @@ class FetchBackend {
|
|
|
1613
1626
|
redirect: req.redirect,
|
|
1614
1627
|
referrer: req.referrer,
|
|
1615
1628
|
integrity: req.integrity,
|
|
1629
|
+
referrerPolicy: req.referrerPolicy,
|
|
1616
1630
|
};
|
|
1617
1631
|
}
|
|
1618
1632
|
concatChunks(chunks, totalLength) {
|
|
@@ -1624,10 +1638,10 @@ class FetchBackend {
|
|
|
1624
1638
|
}
|
|
1625
1639
|
return chunksAll;
|
|
1626
1640
|
}
|
|
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.
|
|
1641
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1642
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: FetchBackend });
|
|
1629
1643
|
}
|
|
1630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
1644
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: FetchBackend, decorators: [{
|
|
1631
1645
|
type: Injectable
|
|
1632
1646
|
}], ctorParameters: () => [] });
|
|
1633
1647
|
/**
|
|
@@ -1690,6 +1704,10 @@ function validateXhrCompatibility(req) {
|
|
|
1690
1704
|
property: 'referrer',
|
|
1691
1705
|
errorCode: 2821 /* RuntimeErrorCode.REFERRER_NOT_SUPPORTED_WITH_XHR */,
|
|
1692
1706
|
},
|
|
1707
|
+
{
|
|
1708
|
+
property: 'referrerPolicy',
|
|
1709
|
+
errorCode: 2823 /* RuntimeErrorCode.REFERRER_POLICY_NOT_SUPPORTED_WITH_XHR */,
|
|
1710
|
+
},
|
|
1693
1711
|
];
|
|
1694
1712
|
// Check each unsupported option and warn if present
|
|
1695
1713
|
for (const { property, errorCode } of unsupportedOptions) {
|
|
@@ -1985,10 +2003,10 @@ class HttpXhrBackend {
|
|
|
1985
2003
|
});
|
|
1986
2004
|
}));
|
|
1987
2005
|
}
|
|
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.
|
|
2006
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXhrBackend, deps: [{ token: XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2007
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXhrBackend, providedIn: 'root' });
|
|
1990
2008
|
}
|
|
1991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
1992
2010
|
type: Injectable,
|
|
1993
2011
|
args: [{ providedIn: 'root' }]
|
|
1994
2012
|
}], ctorParameters: () => [{ type: XhrFactory }] });
|
|
@@ -2069,10 +2087,10 @@ function legacyInterceptorFnFactory() {
|
|
|
2069
2087
|
* @publicApi
|
|
2070
2088
|
*/
|
|
2071
2089
|
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.
|
|
2090
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2091
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpBackend, providedIn: 'root', useExisting: HttpXhrBackend });
|
|
2074
2092
|
}
|
|
2075
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpBackend, decorators: [{
|
|
2076
2094
|
type: Injectable,
|
|
2077
2095
|
args: [{ providedIn: 'root', useExisting: HttpXhrBackend }]
|
|
2078
2096
|
}] });
|
|
@@ -2131,10 +2149,10 @@ class HttpInterceptorHandler {
|
|
|
2131
2149
|
return this.chain(initialRequest, (downstreamRequest) => this.backend.handle(downstreamRequest));
|
|
2132
2150
|
}
|
|
2133
2151
|
}
|
|
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.
|
|
2152
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2153
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpInterceptorHandler, providedIn: 'root' });
|
|
2136
2154
|
}
|
|
2137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
2138
2156
|
type: Injectable,
|
|
2139
2157
|
args: [{ providedIn: 'root' }]
|
|
2140
2158
|
}], ctorParameters: () => [{ type: HttpBackend }, { type: i0.EnvironmentInjector }] });
|
|
@@ -2151,10 +2169,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.6",
|
|
|
2151
2169
|
* @publicApi
|
|
2152
2170
|
*/
|
|
2153
2171
|
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.
|
|
2172
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2173
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpHandler, providedIn: 'root', useExisting: HttpInterceptorHandler });
|
|
2156
2174
|
}
|
|
2157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpHandler, decorators: [{
|
|
2158
2176
|
type: Injectable,
|
|
2159
2177
|
args: [{ providedIn: 'root', useExisting: HttpInterceptorHandler }]
|
|
2160
2178
|
}] });
|
|
@@ -2189,6 +2207,7 @@ function addBody(options, body) {
|
|
|
2189
2207
|
redirect: options.redirect,
|
|
2190
2208
|
integrity: options.integrity,
|
|
2191
2209
|
referrer: options.referrer,
|
|
2210
|
+
referrerPolicy: options.referrerPolicy,
|
|
2192
2211
|
};
|
|
2193
2212
|
}
|
|
2194
2213
|
/**
|
|
@@ -2322,6 +2341,7 @@ class HttpClient {
|
|
|
2322
2341
|
redirect: options.redirect,
|
|
2323
2342
|
credentials: options.credentials,
|
|
2324
2343
|
referrer: options.referrer,
|
|
2344
|
+
referrerPolicy: options.referrerPolicy,
|
|
2325
2345
|
integrity: options.integrity,
|
|
2326
2346
|
timeout: options.timeout,
|
|
2327
2347
|
});
|
|
@@ -2478,10 +2498,10 @@ class HttpClient {
|
|
|
2478
2498
|
put(url, body, options = {}) {
|
|
2479
2499
|
return this.request('PUT', url, addBody(options, body));
|
|
2480
2500
|
}
|
|
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.
|
|
2501
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2502
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClient, providedIn: 'root' });
|
|
2483
2503
|
}
|
|
2484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClient, decorators: [{
|
|
2485
2505
|
type: Injectable,
|
|
2486
2506
|
args: [{ providedIn: 'root' }]
|
|
2487
2507
|
}], ctorParameters: () => [{ type: HttpHandler }] });
|
|
@@ -2684,10 +2704,10 @@ class JsonpClientBackend {
|
|
|
2684
2704
|
foreignDocument ??= this.document.implementation.createHTMLDocument();
|
|
2685
2705
|
foreignDocument.adoptNode(script);
|
|
2686
2706
|
}
|
|
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.
|
|
2707
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2708
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: JsonpClientBackend });
|
|
2689
2709
|
}
|
|
2690
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
2691
2711
|
type: Injectable
|
|
2692
2712
|
}], ctorParameters: () => [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
2693
2713
|
type: Inject,
|
|
@@ -2726,10 +2746,10 @@ class JsonpInterceptor {
|
|
|
2726
2746
|
intercept(initialRequest, next) {
|
|
2727
2747
|
return runInInjectionContext(this.injector, () => jsonpInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
|
|
2728
2748
|
}
|
|
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.
|
|
2749
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2750
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: JsonpInterceptor });
|
|
2731
2751
|
}
|
|
2732
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2752
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
2733
2753
|
type: Injectable
|
|
2734
2754
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
2735
2755
|
|
|
@@ -2774,10 +2794,10 @@ class HttpXsrfCookieExtractor {
|
|
|
2774
2794
|
}
|
|
2775
2795
|
return this.lastToken;
|
|
2776
2796
|
}
|
|
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.
|
|
2797
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2798
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXsrfCookieExtractor, providedIn: 'root' });
|
|
2779
2799
|
}
|
|
2780
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2781
2801
|
type: Injectable,
|
|
2782
2802
|
args: [{ providedIn: 'root' }]
|
|
2783
2803
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -2793,10 +2813,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.6",
|
|
|
2793
2813
|
* @publicApi
|
|
2794
2814
|
*/
|
|
2795
2815
|
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.
|
|
2816
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXsrfTokenExtractor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2817
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXsrfTokenExtractor, providedIn: 'root', useExisting: HttpXsrfCookieExtractor });
|
|
2798
2818
|
}
|
|
2799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2819
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXsrfTokenExtractor, decorators: [{
|
|
2800
2820
|
type: Injectable,
|
|
2801
2821
|
args: [{ providedIn: 'root', useExisting: HttpXsrfCookieExtractor }]
|
|
2802
2822
|
}] });
|
|
@@ -2832,10 +2852,10 @@ class HttpXsrfInterceptor {
|
|
|
2832
2852
|
intercept(initialRequest, next) {
|
|
2833
2853
|
return runInInjectionContext(this.injector, () => xsrfInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
|
|
2834
2854
|
}
|
|
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.
|
|
2855
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2856
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXsrfInterceptor });
|
|
2837
2857
|
}
|
|
2838
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
2858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2839
2859
|
type: Injectable
|
|
2840
2860
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
2841
2861
|
|
|
@@ -3098,9 +3118,9 @@ class HttpClientXsrfModule {
|
|
|
3098
3118
|
providers: withXsrfConfiguration(options).ɵproviders,
|
|
3099
3119
|
};
|
|
3100
3120
|
}
|
|
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.
|
|
3121
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3122
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientXsrfModule });
|
|
3123
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
3104
3124
|
HttpXsrfInterceptor,
|
|
3105
3125
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
3106
3126
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -3111,7 +3131,7 @@ class HttpClientXsrfModule {
|
|
|
3111
3131
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
3112
3132
|
] });
|
|
3113
3133
|
}
|
|
3114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
3115
3135
|
type: NgModule,
|
|
3116
3136
|
args: [{
|
|
3117
3137
|
providers: [
|
|
@@ -3137,11 +3157,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.6",
|
|
|
3137
3157
|
* @deprecated use `provideHttpClient(withInterceptorsFromDi())` as providers instead
|
|
3138
3158
|
*/
|
|
3139
3159
|
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.
|
|
3160
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3161
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientModule });
|
|
3162
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientModule, providers: [provideHttpClient(withInterceptorsFromDi())] });
|
|
3143
3163
|
}
|
|
3144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
3145
3165
|
type: NgModule,
|
|
3146
3166
|
args: [{
|
|
3147
3167
|
/**
|
|
@@ -3161,11 +3181,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.6",
|
|
|
3161
3181
|
* @deprecated `withJsonpSupport()` as providers instead
|
|
3162
3182
|
*/
|
|
3163
3183
|
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.
|
|
3184
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3185
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientJsonpModule });
|
|
3186
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientJsonpModule, providers: [withJsonpSupport().ɵproviders] });
|
|
3167
3187
|
}
|
|
3168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
3188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.7", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
3169
3189
|
type: NgModule,
|
|
3170
3190
|
args: [{
|
|
3171
3191
|
providers: [withJsonpSupport().ɵproviders],
|