@angular/common 19.2.15 → 19.2.16
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-NEF7UaHr.d.ts +1 -1
- package/fesm2022/common.mjs +14 -14
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/common_module-Dx7dWex5.mjs +86 -86
- package/fesm2022/dom_tokens-rA0ACyx7.mjs +1 -1
- package/fesm2022/http/testing.mjs +9 -9
- package/fesm2022/http.mjs +3 -3
- package/fesm2022/location-Dq4mJT-A.mjs +16 -16
- package/fesm2022/{module-z3bvLlVg.mjs → module-JS82OH2B.mjs} +43 -41
- package/fesm2022/{module-z3bvLlVg.mjs.map → module-JS82OH2B.mjs.map} +1 -1
- package/fesm2022/platform_navigation-B45Jeakb.mjs +4 -4
- package/fesm2022/testing.mjs +13 -13
- package/fesm2022/upgrade.mjs +5 -5
- package/fesm2022/xhr-BfNfxNDv.mjs +1 -1
- package/http/index.d.ts +1 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +1 -1
- package/module.d-CnjH8Dlt.d.ts +1 -1
- package/package.json +2 -2
- package/platform_location.d-Lbv6Ueec.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
- package/xhr.d-D_1kTQR5.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.
|
|
2
|
+
* @license Angular v19.2.16
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1565,10 +1565,10 @@ class HttpClient {
|
|
|
1565
1565
|
put(url, body, options = {}) {
|
|
1566
1566
|
return this.request('PUT', url, addBody(options, body));
|
|
1567
1567
|
}
|
|
1568
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1569
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1568
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1569
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClient });
|
|
1570
1570
|
}
|
|
1571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClient, decorators: [{
|
|
1572
1572
|
type: Injectable
|
|
1573
1573
|
}], ctorParameters: () => [{ type: HttpHandler }] });
|
|
1574
1574
|
|
|
@@ -1812,10 +1812,10 @@ class FetchBackend {
|
|
|
1812
1812
|
}
|
|
1813
1813
|
return chunksAll;
|
|
1814
1814
|
}
|
|
1815
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1816
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1815
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: FetchBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1816
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: FetchBackend });
|
|
1817
1817
|
}
|
|
1818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1818
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: FetchBackend, decorators: [{
|
|
1819
1819
|
type: Injectable
|
|
1820
1820
|
}], ctorParameters: () => [] });
|
|
1821
1821
|
/**
|
|
@@ -1952,10 +1952,10 @@ class HttpInterceptorHandler extends HttpHandler {
|
|
|
1952
1952
|
return this.chain(initialRequest, (downstreamRequest) => this.backend.handle(downstreamRequest));
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
1956
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
1955
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpInterceptorHandler, deps: [{ token: HttpBackend }, { token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1956
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpInterceptorHandler });
|
|
1957
1957
|
}
|
|
1958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
1958
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
1959
1959
|
type: Injectable
|
|
1960
1960
|
}], ctorParameters: () => [{ type: HttpBackend }, { type: i0.EnvironmentInjector }] });
|
|
1961
1961
|
|
|
@@ -2157,10 +2157,10 @@ class JsonpClientBackend {
|
|
|
2157
2157
|
foreignDocument ??= this.document.implementation.createHTMLDocument();
|
|
2158
2158
|
foreignDocument.adoptNode(script);
|
|
2159
2159
|
}
|
|
2160
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2161
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
2160
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2161
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: JsonpClientBackend });
|
|
2162
2162
|
}
|
|
2163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
2164
2164
|
type: Injectable
|
|
2165
2165
|
}], ctorParameters: () => [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
2166
2166
|
type: Inject,
|
|
@@ -2199,10 +2199,10 @@ class JsonpInterceptor {
|
|
|
2199
2199
|
intercept(initialRequest, next) {
|
|
2200
2200
|
return runInInjectionContext(this.injector, () => jsonpInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
|
|
2201
2201
|
}
|
|
2202
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2203
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
2202
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: JsonpInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2203
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: JsonpInterceptor });
|
|
2204
2204
|
}
|
|
2205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
2206
2206
|
type: Injectable
|
|
2207
2207
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
2208
2208
|
|
|
@@ -2484,10 +2484,10 @@ class HttpXhrBackend {
|
|
|
2484
2484
|
});
|
|
2485
2485
|
}));
|
|
2486
2486
|
}
|
|
2487
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2488
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
2487
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpXhrBackend, deps: [{ token: XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2488
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpXhrBackend });
|
|
2489
2489
|
}
|
|
2490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
2491
2491
|
type: Injectable
|
|
2492
2492
|
}], ctorParameters: () => [{ type: XhrFactory }] });
|
|
2493
2493
|
|
|
@@ -2537,10 +2537,10 @@ class HttpXsrfCookieExtractor {
|
|
|
2537
2537
|
}
|
|
2538
2538
|
return this.lastToken;
|
|
2539
2539
|
}
|
|
2540
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2541
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
2540
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2541
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpXsrfCookieExtractor });
|
|
2542
2542
|
}
|
|
2543
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2543
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2544
2544
|
type: Injectable
|
|
2545
2545
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
2546
2546
|
type: Inject,
|
|
@@ -2549,8 +2549,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
2549
2549
|
type: Inject,
|
|
2550
2550
|
args: [XSRF_COOKIE_NAME]
|
|
2551
2551
|
}] }] });
|
|
2552
|
+
/**
|
|
2553
|
+
* Regex to match absolute URLs, including protocol-relative URLs.
|
|
2554
|
+
*/
|
|
2555
|
+
const ABSOLUTE_URL_REGEX = /^(?:https?:)?\/\//i;
|
|
2552
2556
|
function xsrfInterceptorFn(req, next) {
|
|
2553
|
-
const lcUrl = req.url.toLowerCase();
|
|
2554
2557
|
// Skip both non-mutating requests and absolute URLs.
|
|
2555
2558
|
// Non-mutating requests don't require a token, and absolute URLs require special handling
|
|
2556
2559
|
// anyway as the cookie set
|
|
@@ -2558,8 +2561,7 @@ function xsrfInterceptorFn(req, next) {
|
|
|
2558
2561
|
if (!inject(XSRF_ENABLED) ||
|
|
2559
2562
|
req.method === 'GET' ||
|
|
2560
2563
|
req.method === 'HEAD' ||
|
|
2561
|
-
|
|
2562
|
-
lcUrl.startsWith('https://')) {
|
|
2564
|
+
ABSOLUTE_URL_REGEX.test(req.url)) {
|
|
2563
2565
|
return next(req);
|
|
2564
2566
|
}
|
|
2565
2567
|
const token = inject(HttpXsrfTokenExtractor).getToken();
|
|
@@ -2581,10 +2583,10 @@ class HttpXsrfInterceptor {
|
|
|
2581
2583
|
intercept(initialRequest, next) {
|
|
2582
2584
|
return runInInjectionContext(this.injector, () => xsrfInterceptorFn(initialRequest, (downstreamRequest) => next.handle(downstreamRequest)));
|
|
2583
2585
|
}
|
|
2584
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2585
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.
|
|
2586
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2587
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpXsrfInterceptor });
|
|
2586
2588
|
}
|
|
2587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2589
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2588
2590
|
type: Injectable
|
|
2589
2591
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
2590
2592
|
|
|
@@ -2850,9 +2852,9 @@ class HttpClientXsrfModule {
|
|
|
2850
2852
|
providers: withXsrfConfiguration(options).ɵproviders,
|
|
2851
2853
|
};
|
|
2852
2854
|
}
|
|
2853
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2854
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
2855
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
2855
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2856
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: HttpClientXsrfModule });
|
|
2857
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
2856
2858
|
HttpXsrfInterceptor,
|
|
2857
2859
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
2858
2860
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -2863,7 +2865,7 @@ class HttpClientXsrfModule {
|
|
|
2863
2865
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
2864
2866
|
] });
|
|
2865
2867
|
}
|
|
2866
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
2867
2869
|
type: NgModule,
|
|
2868
2870
|
args: [{
|
|
2869
2871
|
providers: [
|
|
@@ -2889,11 +2891,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
2889
2891
|
* @deprecated use `provideHttpClient(withInterceptorsFromDi())` as providers instead
|
|
2890
2892
|
*/
|
|
2891
2893
|
class HttpClientModule {
|
|
2892
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2893
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
2894
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
2894
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2895
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: HttpClientModule });
|
|
2896
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClientModule, providers: [provideHttpClient(withInterceptorsFromDi())] });
|
|
2895
2897
|
}
|
|
2896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
2897
2899
|
type: NgModule,
|
|
2898
2900
|
args: [{
|
|
2899
2901
|
/**
|
|
@@ -2913,11 +2915,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
2913
2915
|
* @deprecated `withJsonpSupport()` as providers instead
|
|
2914
2916
|
*/
|
|
2915
2917
|
class HttpClientJsonpModule {
|
|
2916
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
2917
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.
|
|
2918
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.
|
|
2918
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2919
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.16", ngImport: i0, type: HttpClientJsonpModule });
|
|
2920
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClientJsonpModule, providers: [withJsonpSupport().ɵproviders] });
|
|
2919
2921
|
}
|
|
2920
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
2922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.16", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
2921
2923
|
type: NgModule,
|
|
2922
2924
|
args: [{
|
|
2923
2925
|
providers: [withJsonpSupport().ɵproviders],
|
|
@@ -2925,4 +2927,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
2925
2927
|
}] });
|
|
2926
2928
|
|
|
2927
2929
|
export { FetchBackend, HTTP_INTERCEPTORS, HTTP_ROOT_INTERCEPTOR_FNS, HttpBackend, HttpClient, HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContext, HttpContextToken, HttpErrorResponse, HttpEventType, HttpFeatureKind, HttpHandler, HttpHeaderResponse, HttpHeaders, HttpInterceptorHandler, HttpParams, HttpRequest, HttpResponse, HttpResponseBase, HttpStatusCode, HttpUrlEncodingCodec, HttpXhrBackend, HttpXsrfTokenExtractor, JsonpClientBackend, JsonpInterceptor, REQUESTS_CONTRIBUTE_TO_STABILITY, provideHttpClient, withFetch, withInterceptors, withInterceptorsFromDi, withJsonpSupport, withNoXsrfProtection, withRequestsMadeViaParent, withXsrfConfiguration };
|
|
2928
|
-
//# sourceMappingURL=module-
|
|
2930
|
+
//# sourceMappingURL=module-JS82OH2B.mjs.map
|