@angular/common 14.0.0-next.2 → 14.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.d.ts +18 -4
- package/esm2020/http/src/client.mjs +3 -3
- package/esm2020/http/src/interceptor.mjs +3 -3
- package/esm2020/http/src/jsonp.mjs +24 -27
- package/esm2020/http/src/module.mjs +15 -15
- package/esm2020/http/src/xhr.mjs +3 -3
- package/esm2020/http/src/xsrf.mjs +6 -6
- package/esm2020/http/testing/src/backend.mjs +3 -3
- package/esm2020/http/testing/src/module.mjs +4 -4
- package/esm2020/src/common_module.mjs +5 -11
- package/esm2020/src/directives/ng_class.mjs +3 -3
- package/esm2020/src/directives/ng_component_outlet.mjs +6 -4
- package/esm2020/src/directives/ng_for_of.mjs +5 -4
- package/esm2020/src/directives/ng_if.mjs +3 -3
- package/esm2020/src/directives/ng_plural.mjs +6 -6
- package/esm2020/src/directives/ng_style.mjs +3 -3
- package/esm2020/src/directives/ng_switch.mjs +11 -10
- package/esm2020/src/directives/ng_template_outlet.mjs +17 -8
- package/esm2020/src/i18n/localization.mjs +14 -4
- package/esm2020/src/location/hash_location_strategy.mjs +5 -4
- package/esm2020/src/location/location.mjs +20 -4
- package/esm2020/src/location/location_strategy.mjs +8 -7
- package/esm2020/src/location/platform_location.mjs +6 -6
- package/esm2020/src/pipes/async_pipe.mjs +3 -3
- package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
- package/esm2020/src/pipes/date_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
- package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
- package/esm2020/src/pipes/json_pipe.mjs +3 -3
- package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
- package/esm2020/src/pipes/number_pipe.mjs +9 -9
- package/esm2020/src/pipes/slice_pipe.mjs +3 -3
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/location_mock.mjs +18 -4
- package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
- package/esm2020/testing/src/mock_platform_location.mjs +3 -3
- package/esm2020/upgrade/src/location_upgrade_module.mjs +4 -4
- package/fesm2015/common.mjs +146 -108
- package/fesm2015/common.mjs.map +1 -1
- package/fesm2015/http/testing.mjs +8 -8
- package/fesm2015/http.mjs +54 -57
- package/fesm2015/http.mjs.map +1 -1
- package/fesm2015/testing.mjs +26 -10
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2015/upgrade.mjs +5 -5
- package/fesm2020/common.mjs +144 -108
- package/fesm2020/common.mjs.map +1 -1
- package/fesm2020/http/testing.mjs +8 -8
- package/fesm2020/http.mjs +54 -57
- package/fesm2020/http.mjs.map +1 -1
- package/fesm2020/testing.mjs +24 -10
- package/fesm2020/testing.mjs.map +1 -1
- package/fesm2020/upgrade.mjs +5 -5
- package/http/http.d.ts +2 -1
- package/http/testing/testing.d.ts +1 -1
- package/package.json +2 -2
- package/testing/testing.d.ts +3 -2
- package/upgrade/upgrade.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.5
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -330,9 +330,9 @@ class HttpClientTestingBackend {
|
|
|
330
330
|
}
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
|
-
HttpClientTestingBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
334
|
-
HttpClientTestingBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
333
|
+
HttpClientTestingBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientTestingBackend, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
334
|
+
HttpClientTestingBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientTestingBackend });
|
|
335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientTestingBackend, decorators: [{
|
|
336
336
|
type: Injectable
|
|
337
337
|
}] });
|
|
338
338
|
function describeRequest(testRequest) {
|
|
@@ -357,16 +357,16 @@ function describeRequest(testRequest) {
|
|
|
357
357
|
*/
|
|
358
358
|
class HttpClientTestingModule {
|
|
359
359
|
}
|
|
360
|
-
HttpClientTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
361
|
-
HttpClientTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
362
|
-
HttpClientTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
360
|
+
HttpClientTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
361
|
+
HttpClientTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientTestingModule, imports: [HttpClientModule] });
|
|
362
|
+
HttpClientTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientTestingModule, providers: [
|
|
363
363
|
HttpClientTestingBackend,
|
|
364
364
|
{ provide: HttpBackend, useExisting: HttpClientTestingBackend },
|
|
365
365
|
{ provide: HttpTestingController, useExisting: HttpClientTestingBackend },
|
|
366
366
|
], imports: [[
|
|
367
367
|
HttpClientModule,
|
|
368
368
|
]] });
|
|
369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientTestingModule, decorators: [{
|
|
370
370
|
type: NgModule,
|
|
371
371
|
args: [{
|
|
372
372
|
imports: [
|
package/fesm2020/http.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v14.0.0-next.
|
|
2
|
+
* @license Angular v14.0.0-next.5
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1398,9 +1398,9 @@ class HttpClient {
|
|
|
1398
1398
|
return this.request('PUT', url, addBody(options, body));
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
|
-
HttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1402
|
-
HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1401
|
+
HttpClient.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClient, deps: [{ token: HttpHandler }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1402
|
+
HttpClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClient });
|
|
1403
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClient, decorators: [{
|
|
1404
1404
|
type: Injectable
|
|
1405
1405
|
}], ctorParameters: function () { return [{ type: HttpHandler }]; } });
|
|
1406
1406
|
|
|
@@ -1437,9 +1437,9 @@ class NoopInterceptor {
|
|
|
1437
1437
|
return next.handle(req);
|
|
1438
1438
|
}
|
|
1439
1439
|
}
|
|
1440
|
-
NoopInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1441
|
-
NoopInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1440
|
+
NoopInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: NoopInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1441
|
+
NoopInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: NoopInterceptor });
|
|
1442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: NoopInterceptor, decorators: [{
|
|
1443
1443
|
type: Injectable
|
|
1444
1444
|
}] });
|
|
1445
1445
|
|
|
@@ -1455,6 +1455,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.2",
|
|
|
1455
1455
|
// from that. The next id to be assigned is tracked in a global variable here that
|
|
1456
1456
|
// is shared among all applications on the page.
|
|
1457
1457
|
let nextRequestId = 0;
|
|
1458
|
+
/**
|
|
1459
|
+
* When a pending <script> is unsubscribed we'll move it to this document, so it won't be
|
|
1460
|
+
* executed.
|
|
1461
|
+
*/
|
|
1462
|
+
let foreignDocument;
|
|
1458
1463
|
// Error text given when a JSONP script is injected, but doesn't invoke the callback
|
|
1459
1464
|
// passed in its URL.
|
|
1460
1465
|
const JSONP_ERR_NO_CALLBACK = 'JSONP injected script did not invoke callback.';
|
|
@@ -1525,19 +1530,12 @@ class JsonpClientBackend {
|
|
|
1525
1530
|
let body = null;
|
|
1526
1531
|
// Whether the response callback has been called.
|
|
1527
1532
|
let finished = false;
|
|
1528
|
-
// Whether the request has been cancelled (and thus any other callbacks)
|
|
1529
|
-
// should be ignored.
|
|
1530
|
-
let cancelled = false;
|
|
1531
1533
|
// Set the response callback in this.callbackMap (which will be the window
|
|
1532
1534
|
// object in the browser. The script being loaded via the <script> tag will
|
|
1533
1535
|
// eventually call this callback.
|
|
1534
1536
|
this.callbackMap[callback] = (data) => {
|
|
1535
1537
|
// Data has been received from the JSONP script. Firstly, delete this callback.
|
|
1536
1538
|
delete this.callbackMap[callback];
|
|
1537
|
-
// Next, make sure the request wasn't cancelled in the meantime.
|
|
1538
|
-
if (cancelled) {
|
|
1539
|
-
return;
|
|
1540
|
-
}
|
|
1541
1539
|
// Set state to indicate data was received.
|
|
1542
1540
|
body = data;
|
|
1543
1541
|
finished = true;
|
|
@@ -1559,10 +1557,6 @@ class JsonpClientBackend {
|
|
|
1559
1557
|
// If something went wrong, onLoad() may run without the response callback
|
|
1560
1558
|
// having been invoked.
|
|
1561
1559
|
const onLoad = (event) => {
|
|
1562
|
-
// Do nothing if the request has been cancelled.
|
|
1563
|
-
if (cancelled) {
|
|
1564
|
-
return;
|
|
1565
|
-
}
|
|
1566
1560
|
// We wrap it in an extra Promise, to ensure the microtask
|
|
1567
1561
|
// is scheduled after the loaded endpoint has executed any potential microtask itself,
|
|
1568
1562
|
// which is not guaranteed in Internet Explorer and EdgeHTML. See issue #39496
|
|
@@ -1597,10 +1591,6 @@ class JsonpClientBackend {
|
|
|
1597
1591
|
// a Javascript error. It emits the error via the Observable error channel as
|
|
1598
1592
|
// a HttpErrorResponse.
|
|
1599
1593
|
const onError = (error) => {
|
|
1600
|
-
// If the request was already cancelled, no need to emit anything.
|
|
1601
|
-
if (cancelled) {
|
|
1602
|
-
return;
|
|
1603
|
-
}
|
|
1604
1594
|
cleanup();
|
|
1605
1595
|
// Wrap the error in a HttpErrorResponse.
|
|
1606
1596
|
observer.error(new HttpErrorResponse({
|
|
@@ -1619,20 +1609,27 @@ class JsonpClientBackend {
|
|
|
1619
1609
|
observer.next({ type: HttpEventType.Sent });
|
|
1620
1610
|
// Cancellation handler.
|
|
1621
1611
|
return () => {
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
node.removeEventListener('load', onLoad);
|
|
1626
|
-
node.removeEventListener('error', onError);
|
|
1612
|
+
if (!finished) {
|
|
1613
|
+
this.removeListeners(node);
|
|
1614
|
+
}
|
|
1627
1615
|
// And finally, clean up the page.
|
|
1628
1616
|
cleanup();
|
|
1629
1617
|
};
|
|
1630
1618
|
});
|
|
1631
1619
|
}
|
|
1620
|
+
removeListeners(script) {
|
|
1621
|
+
// Issue #34818
|
|
1622
|
+
// Changing <script>'s ownerDocument will prevent it from execution.
|
|
1623
|
+
// https://html.spec.whatwg.org/multipage/scripting.html#execute-the-script-block
|
|
1624
|
+
if (!foreignDocument) {
|
|
1625
|
+
foreignDocument = this.document.implementation.createHTMLDocument();
|
|
1626
|
+
}
|
|
1627
|
+
foreignDocument.adoptNode(script);
|
|
1628
|
+
}
|
|
1632
1629
|
}
|
|
1633
|
-
JsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1634
|
-
JsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1630
|
+
JsonpClientBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: JsonpClientBackend, deps: [{ token: JsonpCallbackContext }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1631
|
+
JsonpClientBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: JsonpClientBackend });
|
|
1632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: JsonpClientBackend, decorators: [{
|
|
1636
1633
|
type: Injectable
|
|
1637
1634
|
}], ctorParameters: function () { return [{ type: JsonpCallbackContext }, { type: undefined, decorators: [{
|
|
1638
1635
|
type: Inject,
|
|
@@ -1665,9 +1662,9 @@ class JsonpInterceptor {
|
|
|
1665
1662
|
return next.handle(req);
|
|
1666
1663
|
}
|
|
1667
1664
|
}
|
|
1668
|
-
JsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1669
|
-
JsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1665
|
+
JsonpInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: JsonpInterceptor, deps: [{ token: JsonpClientBackend }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1666
|
+
JsonpInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: JsonpInterceptor });
|
|
1667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: JsonpInterceptor, decorators: [{
|
|
1671
1668
|
type: Injectable
|
|
1672
1669
|
}], ctorParameters: function () { return [{ type: JsonpClientBackend }]; } });
|
|
1673
1670
|
|
|
@@ -1943,9 +1940,9 @@ class HttpXhrBackend {
|
|
|
1943
1940
|
});
|
|
1944
1941
|
}
|
|
1945
1942
|
}
|
|
1946
|
-
HttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1947
|
-
HttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1943
|
+
HttpXhrBackend.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpXhrBackend, deps: [{ token: i1.XhrFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1944
|
+
HttpXhrBackend.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpXhrBackend });
|
|
1945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpXhrBackend, decorators: [{
|
|
1949
1946
|
type: Injectable
|
|
1950
1947
|
}], ctorParameters: function () { return [{ type: i1.XhrFactory }]; } });
|
|
1951
1948
|
|
|
@@ -1993,9 +1990,9 @@ class HttpXsrfCookieExtractor {
|
|
|
1993
1990
|
return this.lastToken;
|
|
1994
1991
|
}
|
|
1995
1992
|
}
|
|
1996
|
-
HttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1997
|
-
HttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1998
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
1993
|
+
HttpXsrfCookieExtractor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpXsrfCookieExtractor, deps: [{ token: DOCUMENT }, { token: PLATFORM_ID }, { token: XSRF_COOKIE_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1994
|
+
HttpXsrfCookieExtractor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpXsrfCookieExtractor });
|
|
1995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpXsrfCookieExtractor, decorators: [{
|
|
1999
1996
|
type: Injectable
|
|
2000
1997
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2001
1998
|
type: Inject,
|
|
@@ -2033,9 +2030,9 @@ class HttpXsrfInterceptor {
|
|
|
2033
2030
|
return next.handle(req);
|
|
2034
2031
|
}
|
|
2035
2032
|
}
|
|
2036
|
-
HttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2037
|
-
HttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2038
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2033
|
+
HttpXsrfInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpXsrfInterceptor, deps: [{ token: HttpXsrfTokenExtractor }, { token: XSRF_HEADER_NAME }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2034
|
+
HttpXsrfInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpXsrfInterceptor });
|
|
2035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpXsrfInterceptor, decorators: [{
|
|
2039
2036
|
type: Injectable
|
|
2040
2037
|
}], ctorParameters: function () { return [{ type: HttpXsrfTokenExtractor }, { type: undefined, decorators: [{
|
|
2041
2038
|
type: Inject,
|
|
@@ -2072,9 +2069,9 @@ class HttpInterceptingHandler {
|
|
|
2072
2069
|
return this.chain.handle(req);
|
|
2073
2070
|
}
|
|
2074
2071
|
}
|
|
2075
|
-
HttpInterceptingHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2076
|
-
HttpInterceptingHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2077
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2072
|
+
HttpInterceptingHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpInterceptingHandler, deps: [{ token: HttpBackend }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2073
|
+
HttpInterceptingHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpInterceptingHandler });
|
|
2074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpInterceptingHandler, decorators: [{
|
|
2078
2075
|
type: Injectable
|
|
2079
2076
|
}], ctorParameters: function () { return [{ type: HttpBackend }, { type: i0.Injector }]; } });
|
|
2080
2077
|
/**
|
|
@@ -2147,16 +2144,16 @@ class HttpClientXsrfModule {
|
|
|
2147
2144
|
};
|
|
2148
2145
|
}
|
|
2149
2146
|
}
|
|
2150
|
-
HttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2151
|
-
HttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2152
|
-
HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2147
|
+
HttpClientXsrfModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2148
|
+
HttpClientXsrfModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule });
|
|
2149
|
+
HttpClientXsrfModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule, providers: [
|
|
2153
2150
|
HttpXsrfInterceptor,
|
|
2154
2151
|
{ provide: HTTP_INTERCEPTORS, useExisting: HttpXsrfInterceptor, multi: true },
|
|
2155
2152
|
{ provide: HttpXsrfTokenExtractor, useClass: HttpXsrfCookieExtractor },
|
|
2156
2153
|
{ provide: XSRF_COOKIE_NAME, useValue: 'XSRF-TOKEN' },
|
|
2157
2154
|
{ provide: XSRF_HEADER_NAME, useValue: 'X-XSRF-TOKEN' },
|
|
2158
2155
|
] });
|
|
2159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientXsrfModule, decorators: [{
|
|
2160
2157
|
type: NgModule,
|
|
2161
2158
|
args: [{
|
|
2162
2159
|
providers: [
|
|
@@ -2179,9 +2176,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.2",
|
|
|
2179
2176
|
*/
|
|
2180
2177
|
class HttpClientModule {
|
|
2181
2178
|
}
|
|
2182
|
-
HttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2183
|
-
HttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2184
|
-
HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2179
|
+
HttpClientModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2180
|
+
HttpClientModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientModule, imports: [HttpClientXsrfModule] });
|
|
2181
|
+
HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientModule, providers: [
|
|
2185
2182
|
HttpClient,
|
|
2186
2183
|
{ provide: HttpHandler, useClass: HttpInterceptingHandler },
|
|
2187
2184
|
HttpXhrBackend,
|
|
@@ -2192,7 +2189,7 @@ HttpClientModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", versio
|
|
|
2192
2189
|
headerName: 'X-XSRF-TOKEN',
|
|
2193
2190
|
}),
|
|
2194
2191
|
]] });
|
|
2195
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientModule, decorators: [{
|
|
2196
2193
|
type: NgModule,
|
|
2197
2194
|
args: [{
|
|
2198
2195
|
/**
|
|
@@ -2229,14 +2226,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.2",
|
|
|
2229
2226
|
*/
|
|
2230
2227
|
class HttpClientJsonpModule {
|
|
2231
2228
|
}
|
|
2232
|
-
HttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2233
|
-
HttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2234
|
-
HttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2229
|
+
HttpClientJsonpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2230
|
+
HttpClientJsonpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule });
|
|
2231
|
+
HttpClientJsonpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule, providers: [
|
|
2235
2232
|
JsonpClientBackend,
|
|
2236
2233
|
{ provide: JsonpCallbackContext, useFactory: jsonpCallbackContext },
|
|
2237
2234
|
{ provide: HTTP_INTERCEPTORS, useClass: JsonpInterceptor, multi: true },
|
|
2238
2235
|
] });
|
|
2239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.
|
|
2236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.5", ngImport: i0, type: HttpClientJsonpModule, decorators: [{
|
|
2240
2237
|
type: NgModule,
|
|
2241
2238
|
args: [{
|
|
2242
2239
|
providers: [
|