@angular/common 16.0.1 → 16.0.3
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/errors.mjs +9 -0
- package/esm2022/http/src/interceptor.mjs +3 -3
- package/esm2022/http/src/jsonp.mjs +6 -6
- package/esm2022/http/src/module.mjs +12 -12
- package/esm2022/http/src/xhr.mjs +31 -23
- 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 +11 -8
- 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/errors.mjs +1 -1
- package/esm2022/src/i18n/format_date.mjs +2 -2
- package/esm2022/src/i18n/format_number.mjs +4 -4
- package/esm2022/src/i18n/locale_data_api.mjs +27 -27
- 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 +151 -148
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +61 -53
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +1 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +29 -29
- 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.
|
|
2
|
+
* @license Angular v16.0.3
|
|
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.
|
|
312
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
311
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
312
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientTestingBackend }); }
|
|
313
313
|
}
|
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", 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.
|
|
340
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.
|
|
341
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.
|
|
339
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
340
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] }); }
|
|
341
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientTestingModule, providers: [
|
|
342
342
|
provideHttpClientTesting(),
|
|
343
343
|
], imports: [HttpClientModule] }); }
|
|
344
344
|
}
|
|
345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientTestingModule, decorators: [{
|
|
346
346
|
type: NgModule,
|
|
347
347
|
args: [{
|
|
348
348
|
imports: [
|
package/fesm2022/http.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.0.
|
|
2
|
+
* @license Angular v16.0.3
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as i0 from '@angular/core';
|
|
8
|
-
import { Injectable, InjectionToken, inject, Inject, PLATFORM_ID, makeEnvironmentProviders, NgModule, TransferState, makeStateKey, ɵENABLED_SSR_FEATURES, APP_BOOTSTRAP_LISTENER, ApplicationRef, ɵInitialRenderPendingTasks } from '@angular/core';
|
|
8
|
+
import { Injectable, InjectionToken, inject, Inject, ɵRuntimeError, PLATFORM_ID, makeEnvironmentProviders, NgModule, TransferState, makeStateKey, ɵENABLED_SSR_FEATURES, APP_BOOTSTRAP_LISTENER, ApplicationRef, ɵInitialRenderPendingTasks } from '@angular/core';
|
|
9
9
|
import { of, Observable, from } from 'rxjs';
|
|
10
10
|
import { concatMap, filter, map, switchMap, tap, first } from 'rxjs/operators';
|
|
11
11
|
import * as i1 from '@angular/common';
|
|
@@ -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.
|
|
1375
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1374
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1375
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClient }); }
|
|
1376
1376
|
}
|
|
1377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", 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.
|
|
1457
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1456
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", 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.3", ngImport: i0, type: HttpInterceptorHandler }); }
|
|
1458
1458
|
}
|
|
1459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpInterceptorHandler, decorators: [{
|
|
1460
1460
|
type: Injectable
|
|
1461
1461
|
}], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.EnvironmentInjector }]; } });
|
|
1462
1462
|
|
|
@@ -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.
|
|
1662
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1661
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", 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.3", ngImport: i0, type: JsonpClientBackend }); }
|
|
1663
1663
|
}
|
|
1664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
1665
1665
|
type: Injectable
|
|
1666
1666
|
}], ctorParameters: function () { return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
1667
1667
|
type: Inject,
|
|
@@ -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.
|
|
1703
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
1702
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", 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.3", ngImport: i0, type: JsonpInterceptor }); }
|
|
1704
1704
|
}
|
|
1705
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
1705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
1706
1706
|
type: Injectable
|
|
1707
1707
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
1708
1708
|
|
|
@@ -1740,8 +1740,12 @@ class HttpXhrBackend {
|
|
|
1740
1740
|
// Quick check to give a better error message when a user attempts to use
|
|
1741
1741
|
// HttpClient.jsonp() without installing the HttpClientJsonpModule
|
|
1742
1742
|
if (req.method === 'JSONP') {
|
|
1743
|
-
throw new
|
|
1743
|
+
throw new ɵRuntimeError(-2800 /* RuntimeErrorCode.MISSING_JSONP_MODULE */, (typeof ngDevMode === 'undefined' || ngDevMode) &&
|
|
1744
|
+
`Cannot make a JSONP request without JSONP support. To fix the problem, either add the \`withJsonpSupport()\` call (if \`provideHttpClient()\` is used) or import the \`HttpClientJsonpModule\` in the root NgModule.`);
|
|
1744
1745
|
}
|
|
1746
|
+
// Schedule a macrotask. This will cause NgZone.isStable to be set to false,
|
|
1747
|
+
// Which delays server rendering until the request is completed.
|
|
1748
|
+
const macroTaskCanceller = createBackgroundMacroTask();
|
|
1745
1749
|
// Check whether this factory has a special function to load an XHR implementation
|
|
1746
1750
|
// for various non-browser environments. We currently limit it to only `ServerXhr`
|
|
1747
1751
|
// class, which needs to load an XHR implementation.
|
|
@@ -1891,6 +1895,8 @@ class HttpXhrBackend {
|
|
|
1891
1895
|
url: url || undefined,
|
|
1892
1896
|
});
|
|
1893
1897
|
observer.error(res);
|
|
1898
|
+
// Cancel the background macrotask.
|
|
1899
|
+
macroTaskCanceller();
|
|
1894
1900
|
};
|
|
1895
1901
|
// The sentHeaders flag tracks whether the HttpResponseHeaders event
|
|
1896
1902
|
// has been sent on the stream. This is necessary to track if progress
|
|
@@ -1955,31 +1961,28 @@ class HttpXhrBackend {
|
|
|
1955
1961
|
xhr.upload.addEventListener('progress', onUpProgress);
|
|
1956
1962
|
}
|
|
1957
1963
|
}
|
|
1958
|
-
let macroTaskCanceller;
|
|
1959
1964
|
/** Tear down logic to cancel the backround macrotask. */
|
|
1960
|
-
const
|
|
1961
|
-
macroTaskCanceller ??= createBackgroundMacroTask();
|
|
1962
|
-
};
|
|
1963
|
-
const onLoadEnd = () => {
|
|
1964
|
-
macroTaskCanceller?.();
|
|
1965
|
-
};
|
|
1966
|
-
xhr.addEventListener('loadstart', onLoadStart);
|
|
1965
|
+
const onLoadEnd = () => macroTaskCanceller();
|
|
1967
1966
|
xhr.addEventListener('loadend', onLoadEnd);
|
|
1968
1967
|
// Fire the request, and notify the event stream that it was fired.
|
|
1969
|
-
|
|
1968
|
+
try {
|
|
1969
|
+
xhr.send(reqBody);
|
|
1970
|
+
}
|
|
1971
|
+
catch (e) {
|
|
1972
|
+
onError(e);
|
|
1973
|
+
}
|
|
1970
1974
|
observer.next({ type: HttpEventType.Sent });
|
|
1971
1975
|
// This is the return from the Observable function, which is the
|
|
1972
1976
|
// request cancellation handler.
|
|
1973
1977
|
return () => {
|
|
1974
1978
|
// On a cancellation, remove all registered event listeners.
|
|
1975
|
-
xhr.removeEventListener('loadstart', onLoadStart);
|
|
1976
1979
|
xhr.removeEventListener('loadend', onLoadEnd);
|
|
1977
1980
|
xhr.removeEventListener('error', onError);
|
|
1978
1981
|
xhr.removeEventListener('abort', onError);
|
|
1979
1982
|
xhr.removeEventListener('load', onLoad);
|
|
1980
1983
|
xhr.removeEventListener('timeout', onError);
|
|
1981
|
-
//
|
|
1982
|
-
macroTaskCanceller
|
|
1984
|
+
// Cancel the background macrotask.
|
|
1985
|
+
macroTaskCanceller();
|
|
1983
1986
|
if (req.reportProgress) {
|
|
1984
1987
|
xhr.removeEventListener('progress', onDownProgress);
|
|
1985
1988
|
if (reqBody !== null && xhr.upload) {
|
|
@@ -1994,16 +1997,14 @@ class HttpXhrBackend {
|
|
|
1994
1997
|
});
|
|
1995
1998
|
}));
|
|
1996
1999
|
}
|
|
1997
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
1998
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
2000
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2001
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpXhrBackend }); }
|
|
1999
2002
|
}
|
|
2000
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2003
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
2001
2004
|
type: Injectable
|
|
2002
2005
|
}], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });
|
|
2003
|
-
// Cannot use `Number.MAX_VALUE` as it does not fit into a 32-bit signed integer.
|
|
2004
|
-
const MAX_INT = 2147483647;
|
|
2005
2006
|
/**
|
|
2006
|
-
* A method that creates a background macrotask
|
|
2007
|
+
* A method that creates a background macrotask using Zone.js.
|
|
2007
2008
|
*
|
|
2008
2009
|
* This is so that Zone.js can intercept HTTP calls, this is important for server rendering,
|
|
2009
2010
|
* as the application is only rendered once the application is stabilized, meaning there are pending
|
|
@@ -2012,8 +2013,15 @@ const MAX_INT = 2147483647;
|
|
|
2012
2013
|
* @returns a callback method to cancel the macrotask.
|
|
2013
2014
|
*/
|
|
2014
2015
|
function createBackgroundMacroTask() {
|
|
2015
|
-
|
|
2016
|
-
|
|
2016
|
+
// We use Zone.js when it's defined as otherwise a `setTimeout` will leave open timers which
|
|
2017
|
+
// causes `fakeAsync` tests to fail.
|
|
2018
|
+
const noop = () => { };
|
|
2019
|
+
if (typeof Zone !== 'undefined') {
|
|
2020
|
+
const zoneCurrent = Zone.current;
|
|
2021
|
+
const task = zoneCurrent.scheduleMacroTask('httpMacroTask', noop, undefined, noop, noop);
|
|
2022
|
+
return () => zoneCurrent.cancelTask(task);
|
|
2023
|
+
}
|
|
2024
|
+
return noop;
|
|
2017
2025
|
}
|
|
2018
2026
|
|
|
2019
2027
|
const XSRF_ENABLED = new InjectionToken('XSRF_ENABLED');
|
|
@@ -2061,10 +2069,10 @@ class HttpXsrfCookieExtractor {
|
|
|
2061
2069
|
}
|
|
2062
2070
|
return this.lastToken;
|
|
2063
2071
|
}
|
|
2064
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2065
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
2072
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2073
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpXsrfCookieExtractor }); }
|
|
2066
2074
|
}
|
|
2067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2075
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
2068
2076
|
type: Injectable
|
|
2069
2077
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2070
2078
|
type: Inject,
|
|
@@ -2104,10 +2112,10 @@ class HttpXsrfInterceptor {
|
|
|
2104
2112
|
intercept(initialRequest, next) {
|
|
2105
2113
|
return this.injector.runInContext(() => xsrfInterceptorFn(initialRequest, downstreamRequest => next.handle(downstreamRequest)));
|
|
2106
2114
|
}
|
|
2107
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2108
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.
|
|
2115
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2116
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpXsrfInterceptor }); }
|
|
2109
2117
|
}
|
|
2110
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2118
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2111
2119
|
type: Injectable
|
|
2112
2120
|
}], ctorParameters: function () { return [{ type: i0.EnvironmentInjector }]; } });
|
|
2113
2121
|
|
|
@@ -2339,9 +2347,9 @@ class HttpClientXsrfModule {
|
|
|
2339
2347
|
providers: withXsrfConfiguration(options).ɵproviders,
|
|
2340
2348
|
};
|
|
2341
2349
|
}
|
|
2342
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2343
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.
|
|
2344
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.
|
|
2350
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2351
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: HttpClientXsrfModule }); }
|
|
2352
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
2345
2353
|
HttpXsrfInterceptor,
|
|
2346
2354
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
2347
2355
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
@@ -2352,7 +2360,7 @@ class HttpClientXsrfModule {
|
|
|
2352
2360
|
{ provide: XSRF_ENABLED, useValue: true },
|
|
2353
2361
|
] }); }
|
|
2354
2362
|
}
|
|
2355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2363
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
2356
2364
|
type: NgModule,
|
|
2357
2365
|
args: [{
|
|
2358
2366
|
providers: [
|
|
@@ -2377,13 +2385,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
2377
2385
|
* @publicApi
|
|
2378
2386
|
*/
|
|
2379
2387
|
class HttpClientModule {
|
|
2380
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2381
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.
|
|
2382
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.
|
|
2388
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2389
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: HttpClientModule }); }
|
|
2390
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientModule, providers: [
|
|
2383
2391
|
provideHttpClient(withInterceptorsFromDi()),
|
|
2384
2392
|
] }); }
|
|
2385
2393
|
}
|
|
2386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
2387
2395
|
type: NgModule,
|
|
2388
2396
|
args: [{
|
|
2389
2397
|
/**
|
|
@@ -2404,13 +2412,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImpor
|
|
|
2404
2412
|
* @publicApi
|
|
2405
2413
|
*/
|
|
2406
2414
|
class HttpClientJsonpModule {
|
|
2407
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.
|
|
2408
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.
|
|
2409
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.
|
|
2415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2416
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.3", ngImport: i0, type: HttpClientJsonpModule }); }
|
|
2417
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientJsonpModule, providers: [
|
|
2410
2418
|
withJsonpSupport().ɵproviders,
|
|
2411
2419
|
] }); }
|
|
2412
2420
|
}
|
|
2413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.
|
|
2421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
2414
2422
|
type: NgModule,
|
|
2415
2423
|
args: [{
|
|
2416
2424
|
providers: [
|