@angular/common 15.0.0-next.0 → 15.0.0-next.1

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.
Files changed (61) hide show
  1. package/esm2020/http/src/client.mjs +4 -4
  2. package/esm2020/http/src/interceptor.mjs +3 -3
  3. package/esm2020/http/src/jsonp.mjs +6 -6
  4. package/esm2020/http/src/module.mjs +15 -15
  5. package/esm2020/http/src/xhr.mjs +3 -3
  6. package/esm2020/http/src/xsrf.mjs +6 -6
  7. package/esm2020/http/testing/src/backend.mjs +3 -3
  8. package/esm2020/http/testing/src/module.mjs +4 -4
  9. package/esm2020/src/common_module.mjs +4 -4
  10. package/esm2020/src/directives/ng_class.mjs +3 -3
  11. package/esm2020/src/directives/ng_component_outlet.mjs +3 -3
  12. package/esm2020/src/directives/ng_for_of.mjs +3 -3
  13. package/esm2020/src/directives/ng_if.mjs +3 -3
  14. package/esm2020/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
  15. package/esm2020/src/directives/ng_optimized_image/ng_optimized_image.mjs +10 -10
  16. package/esm2020/src/directives/ng_optimized_image/preconnect_link_checker.mjs +7 -6
  17. package/esm2020/src/directives/ng_plural.mjs +6 -6
  18. package/esm2020/src/directives/ng_style.mjs +3 -3
  19. package/esm2020/src/directives/ng_switch.mjs +9 -9
  20. package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
  21. package/esm2020/src/i18n/localization.mjs +6 -6
  22. package/esm2020/src/location/hash_location_strategy.mjs +3 -3
  23. package/esm2020/src/location/location.mjs +3 -3
  24. package/esm2020/src/location/location_strategy.mjs +6 -6
  25. package/esm2020/src/location/platform_location.mjs +6 -6
  26. package/esm2020/src/pipes/async_pipe.mjs +3 -3
  27. package/esm2020/src/pipes/case_conversion_pipes.mjs +9 -9
  28. package/esm2020/src/pipes/date_pipe.mjs +3 -3
  29. package/esm2020/src/pipes/i18n_plural_pipe.mjs +3 -3
  30. package/esm2020/src/pipes/i18n_select_pipe.mjs +3 -3
  31. package/esm2020/src/pipes/json_pipe.mjs +3 -3
  32. package/esm2020/src/pipes/keyvalue_pipe.mjs +3 -3
  33. package/esm2020/src/pipes/number_pipe.mjs +9 -9
  34. package/esm2020/src/pipes/slice_pipe.mjs +3 -3
  35. package/esm2020/src/version.mjs +1 -1
  36. package/esm2020/testing/src/location_mock.mjs +3 -3
  37. package/esm2020/testing/src/mock_location_strategy.mjs +3 -3
  38. package/esm2020/testing/src/mock_platform_location.mjs +5 -5
  39. package/esm2020/upgrade/src/location_upgrade_module.mjs +4 -4
  40. package/fesm2015/common.mjs +120 -119
  41. package/fesm2015/common.mjs.map +1 -1
  42. package/fesm2015/http/testing.mjs +8 -8
  43. package/fesm2015/http.mjs +37 -37
  44. package/fesm2015/http.mjs.map +1 -1
  45. package/fesm2015/testing.mjs +11 -11
  46. package/fesm2015/testing.mjs.map +1 -1
  47. package/fesm2015/upgrade.mjs +5 -5
  48. package/fesm2020/common.mjs +120 -119
  49. package/fesm2020/common.mjs.map +1 -1
  50. package/fesm2020/http/testing.mjs +8 -8
  51. package/fesm2020/http.mjs +37 -37
  52. package/fesm2020/http.mjs.map +1 -1
  53. package/fesm2020/testing.mjs +11 -11
  54. package/fesm2020/testing.mjs.map +1 -1
  55. package/fesm2020/upgrade.mjs +5 -5
  56. package/http/index.d.ts +72 -69
  57. package/http/testing/index.d.ts +1 -1
  58. package/index.d.ts +1 -1
  59. package/package.json +2 -2
  60. package/testing/index.d.ts +1 -1
  61. package/upgrade/index.d.ts +1 -1
package/http/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.0-next.0
2
+ * @license Angular v15.0.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -247,8 +247,8 @@ export declare class HttpClient {
247
247
  withCredentials?: boolean;
248
248
  }): Observable<HttpEvent<string>>;
249
249
  /**
250
- * Constructs a request which interprets the body as a JSON object and returns the full event
251
- * stream.
250
+ * Constructs a request which interprets the body as a JavaScript object and returns the full
251
+ * event stream.
252
252
  *
253
253
  * @param method The HTTP method.
254
254
  * @param url The endpoint URL.
@@ -272,8 +272,8 @@ export declare class HttpClient {
272
272
  withCredentials?: boolean;
273
273
  }): Observable<HttpEvent<any>>;
274
274
  /**
275
- * Constructs a request which interprets the body as a JSON object and returns the full event
276
- * stream.
275
+ * Constructs a request which interprets the body as a JavaScript object and returns the full
276
+ * event stream.
277
277
  *
278
278
  * @param method The HTTP method.
279
279
  * @param url The endpoint URL.
@@ -368,7 +368,7 @@ export declare class HttpClient {
368
368
  withCredentials?: boolean;
369
369
  }): Observable<HttpResponse<string>>;
370
370
  /**
371
- * Constructs a request which interprets the body as a JSON object and returns the full
371
+ * Constructs a request which interprets the body as a JavaScript object and returns the full
372
372
  * `HttpResponse`.
373
373
  *
374
374
  * @param method The HTTP method.
@@ -393,7 +393,7 @@ export declare class HttpClient {
393
393
  withCredentials?: boolean;
394
394
  }): Observable<HttpResponse<Object>>;
395
395
  /**
396
- * Constructs a request which interprets the body as a JSON object and returns
396
+ * Constructs a request which interprets the body as a JavaScript object and returns
397
397
  * the full `HttpResponse` with the response body in the requested type.
398
398
  *
399
399
  * @param method The HTTP method.
@@ -417,8 +417,8 @@ export declare class HttpClient {
417
417
  withCredentials?: boolean;
418
418
  }): Observable<HttpResponse<R>>;
419
419
  /**
420
- * Constructs a request which interprets the body as a JSON object and returns the full
421
- * `HttpResponse` as a JSON object.
420
+ * Constructs a request which interprets the body as a JavaScript object and returns the full
421
+ * `HttpResponse` as a JavaScript object.
422
422
  *
423
423
  * @param method The HTTP method.
424
424
  * @param url The endpoint URL.
@@ -441,7 +441,7 @@ export declare class HttpClient {
441
441
  withCredentials?: boolean;
442
442
  }): Observable<Object>;
443
443
  /**
444
- * Constructs a request which interprets the body as a JSON object
444
+ * Constructs a request which interprets the body as a JavaScript object
445
445
  * with the response body of the requested type.
446
446
  *
447
447
  * @param method The HTTP method.
@@ -629,7 +629,7 @@ export declare class HttpClient {
629
629
  body?: any | null;
630
630
  }): Observable<HttpEvent<string>>;
631
631
  /**
632
- * Constructs a `DELETE` request that interprets the body as a JSON object
632
+ * Constructs a `DELETE` request that interprets the body as JSON
633
633
  * and returns the full event stream.
634
634
  *
635
635
  * @param url The endpoint URL.
@@ -653,7 +653,7 @@ export declare class HttpClient {
653
653
  body?: any | null;
654
654
  }): Observable<HttpEvent<Object>>;
655
655
  /**
656
- * Constructs a `DELETE`request that interprets the body as a JSON object
656
+ * Constructs a `DELETE`request that interprets the body as JSON
657
657
  * and returns the full event stream.
658
658
  *
659
659
  * @param url The endpoint URL.
@@ -746,7 +746,7 @@ export declare class HttpClient {
746
746
  body?: any | null;
747
747
  }): Observable<HttpResponse<string>>;
748
748
  /**
749
- * Constructs a `DELETE` request the interprets the body as a JSON object and returns
749
+ * Constructs a `DELETE` request the interprets the body as a JavaScript object and returns
750
750
  * the full `HttpResponse`.
751
751
  *
752
752
  * @param url The endpoint URL.
@@ -770,7 +770,7 @@ export declare class HttpClient {
770
770
  body?: any | null;
771
771
  }): Observable<HttpResponse<Object>>;
772
772
  /**
773
- * Constructs a `DELETE` request that interprets the body as a JSON object
773
+ * Constructs a `DELETE` request that interprets the body as JSON
774
774
  * and returns the full `HttpResponse`.
775
775
  *
776
776
  * @param url The endpoint URL.
@@ -793,8 +793,8 @@ export declare class HttpClient {
793
793
  body?: any | null;
794
794
  }): Observable<HttpResponse<T>>;
795
795
  /**
796
- * Constructs a `DELETE` request that interprets the body as a JSON object and
797
- * returns the response body as a JSON object.
796
+ * Constructs a `DELETE` request that interprets the body as JSON and
797
+ * returns the response body as an object parsed from JSON.
798
798
  *
799
799
  * @param url The endpoint URL.
800
800
  * @param options The HTTP options to send with the request.
@@ -816,7 +816,7 @@ export declare class HttpClient {
816
816
  body?: any | null;
817
817
  }): Observable<Object>;
818
818
  /**
819
- * Constructs a DELETE request that interprets the body as a JSON object and returns
819
+ * Constructs a DELETE request that interprets the body as JSON and returns
820
820
  * the response in a given type.
821
821
  *
822
822
  * @param url The endpoint URL.
@@ -972,7 +972,7 @@ export declare class HttpClient {
972
972
  withCredentials?: boolean;
973
973
  }): Observable<HttpEvent<string>>;
974
974
  /**
975
- * Constructs a `GET` request that interprets the body as a JSON object
975
+ * Constructs a `GET` request that interprets the body as JSON
976
976
  * and returns the full event stream.
977
977
  *
978
978
  * @param url The endpoint URL.
@@ -994,8 +994,8 @@ export declare class HttpClient {
994
994
  withCredentials?: boolean;
995
995
  }): Observable<HttpEvent<Object>>;
996
996
  /**
997
- * Constructs a `GET` request that interprets the body as a JSON object and returns the full event
998
- * stream.
997
+ * Constructs a `GET` request that interprets the body as JSON and returns the full
998
+ * event stream.
999
999
  *
1000
1000
  * @param url The endpoint URL.
1001
1001
  * @param options The HTTP options to send with the request.
@@ -1085,7 +1085,7 @@ export declare class HttpClient {
1085
1085
  withCredentials?: boolean;
1086
1086
  }): Observable<HttpResponse<string>>;
1087
1087
  /**
1088
- * Constructs a `GET` request that interprets the body as a JSON object and
1088
+ * Constructs a `GET` request that interprets the body as JSON and
1089
1089
  * returns the full `HttpResponse`.
1090
1090
  *
1091
1091
  * @param url The endpoint URL.
@@ -1108,7 +1108,7 @@ export declare class HttpClient {
1108
1108
  withCredentials?: boolean;
1109
1109
  }): Observable<HttpResponse<Object>>;
1110
1110
  /**
1111
- * Constructs a `GET` request that interprets the body as a JSON object and
1111
+ * Constructs a `GET` request that interprets the body as JSON and
1112
1112
  * returns the full `HttpResponse`.
1113
1113
  *
1114
1114
  * @param url The endpoint URL.
@@ -1131,14 +1131,14 @@ export declare class HttpClient {
1131
1131
  withCredentials?: boolean;
1132
1132
  }): Observable<HttpResponse<T>>;
1133
1133
  /**
1134
- * Constructs a `GET` request that interprets the body as a JSON object and
1135
- * returns the response body as a JSON object.
1134
+ * Constructs a `GET` request that interprets the body as JSON and
1135
+ * returns the response body as an object parsed from JSON.
1136
1136
  *
1137
1137
  * @param url The endpoint URL.
1138
1138
  * @param options The HTTP options to send with the request.
1139
1139
  *
1140
1140
  *
1141
- * @return An `Observable` of the response body as a JSON object.
1141
+ * @return An `Observable` of the response body as a JavaScript object.
1142
1142
  */
1143
1143
  get(url: string, options?: {
1144
1144
  headers?: HttpHeaders | {
@@ -1154,7 +1154,7 @@ export declare class HttpClient {
1154
1154
  withCredentials?: boolean;
1155
1155
  }): Observable<Object>;
1156
1156
  /**
1157
- * Constructs a `GET` request that interprets the body as a JSON object and returns
1157
+ * Constructs a `GET` request that interprets the body as JSON and returns
1158
1158
  * the response body in a given type.
1159
1159
  *
1160
1160
  * @param url The endpoint URL.
@@ -1311,7 +1311,7 @@ export declare class HttpClient {
1311
1311
  withCredentials?: boolean;
1312
1312
  }): Observable<HttpEvent<string>>;
1313
1313
  /**
1314
- * Constructs a `HEAD` request that interprets the body as a JSON object
1314
+ * Constructs a `HEAD` request that interprets the body as JSON
1315
1315
  * and returns the full HTTP event stream.
1316
1316
  *
1317
1317
  * @param url The endpoint URL.
@@ -1334,7 +1334,7 @@ export declare class HttpClient {
1334
1334
  withCredentials?: boolean;
1335
1335
  }): Observable<HttpEvent<Object>>;
1336
1336
  /**
1337
- * Constructs a `HEAD` request that interprets the body as a JSON object and
1337
+ * Constructs a `HEAD` request that interprets the body as JSON and
1338
1338
  * returns the full event stream.
1339
1339
  *
1340
1340
  * @return An `Observable` of all the `HttpEvent`s for the request,
@@ -1426,7 +1426,7 @@ export declare class HttpClient {
1426
1426
  withCredentials?: boolean;
1427
1427
  }): Observable<HttpResponse<string>>;
1428
1428
  /**
1429
- * Constructs a `HEAD` request that interprets the body as a JSON object and
1429
+ * Constructs a `HEAD` request that interprets the body as JSON and
1430
1430
  * returns the full `HttpResponse`.
1431
1431
  *
1432
1432
  * @param url The endpoint URL.
@@ -1449,7 +1449,7 @@ export declare class HttpClient {
1449
1449
  withCredentials?: boolean;
1450
1450
  }): Observable<HttpResponse<Object>>;
1451
1451
  /**
1452
- * Constructs a `HEAD` request that interprets the body as a JSON object
1452
+ * Constructs a `HEAD` request that interprets the body as JSON
1453
1453
  * and returns the full `HttpResponse`.
1454
1454
  *
1455
1455
  * @param url The endpoint URL.
@@ -1472,13 +1472,14 @@ export declare class HttpClient {
1472
1472
  withCredentials?: boolean;
1473
1473
  }): Observable<HttpResponse<T>>;
1474
1474
  /**
1475
- * Constructs a `HEAD` request that interprets the body as a JSON object and
1476
- * returns the response body as a JSON object.
1475
+
1476
+ * Constructs a `HEAD` request that interprets the body as JSON and
1477
+ * returns the response body as an object parsed from JSON.
1477
1478
  *
1478
1479
  * @param url The endpoint URL.
1479
1480
  * @param options The HTTP options to send with the request.
1480
1481
  *
1481
- * @return An `Observable` of the response, with the response body as a JSON object.
1482
+ * @return An `Observable` of the response, with the response body as an object parsed from JSON.
1482
1483
  */
1483
1484
  head(url: string, options?: {
1484
1485
  headers?: HttpHeaders | {
@@ -1494,7 +1495,7 @@ export declare class HttpClient {
1494
1495
  withCredentials?: boolean;
1495
1496
  }): Observable<Object>;
1496
1497
  /**
1497
- * Constructs a `HEAD` request that interprets the body as a JSON object and returns
1498
+ * Constructs a `HEAD` request that interprets the body as JSON and returns
1498
1499
  * the response in a given type.
1499
1500
  *
1500
1501
  * @param url The endpoint URL.
@@ -1674,7 +1675,7 @@ export declare class HttpClient {
1674
1675
  withCredentials?: boolean;
1675
1676
  }): Observable<HttpEvent<string>>;
1676
1677
  /**
1677
- * Constructs an `OPTIONS` request that interprets the body as a JSON object
1678
+ * Constructs an `OPTIONS` request that interprets the body as JSON
1678
1679
  * and returns the full event stream.
1679
1680
  *
1680
1681
  * @param url The endpoint URL.
@@ -1697,7 +1698,7 @@ export declare class HttpClient {
1697
1698
  withCredentials?: boolean;
1698
1699
  }): Observable<HttpEvent<Object>>;
1699
1700
  /**
1700
- * Constructs an `OPTIONS` request that interprets the body as a JSON object and
1701
+ * Constructs an `OPTIONS` request that interprets the body as JSON and
1701
1702
  * returns the full event stream.
1702
1703
  *
1703
1704
  * @param url The endpoint URL.
@@ -1789,7 +1790,7 @@ export declare class HttpClient {
1789
1790
  withCredentials?: boolean;
1790
1791
  }): Observable<HttpResponse<string>>;
1791
1792
  /**
1792
- * Constructs an `OPTIONS` request that interprets the body as a JSON object
1793
+ * Constructs an `OPTIONS` request that interprets the body as JSON
1793
1794
  * and returns the full `HttpResponse`.
1794
1795
  *
1795
1796
  * @param url The endpoint URL.
@@ -1812,7 +1813,7 @@ export declare class HttpClient {
1812
1813
  withCredentials?: boolean;
1813
1814
  }): Observable<HttpResponse<Object>>;
1814
1815
  /**
1815
- * Constructs an `OPTIONS` request that interprets the body as a JSON object and
1816
+ * Constructs an `OPTIONS` request that interprets the body as JSON and
1816
1817
  * returns the full `HttpResponse`.
1817
1818
  *
1818
1819
  * @param url The endpoint URL.
@@ -1835,13 +1836,14 @@ export declare class HttpClient {
1835
1836
  withCredentials?: boolean;
1836
1837
  }): Observable<HttpResponse<T>>;
1837
1838
  /**
1838
- * Constructs an `OPTIONS` request that interprets the body as a JSON object and returns the
1839
- * response body as a JSON object.
1839
+
1840
+ * Constructs an `OPTIONS` request that interprets the body as JSON and returns the
1841
+ * response body as an object parsed from JSON.
1840
1842
  *
1841
1843
  * @param url The endpoint URL.
1842
1844
  * @param options HTTP options.
1843
1845
  *
1844
- * @return An `Observable` of the response, with the response body as a JSON object.
1846
+ * @return An `Observable` of the response, with the response body as an object parsed from JSON.
1845
1847
  */
1846
1848
  options(url: string, options?: {
1847
1849
  headers?: HttpHeaders | {
@@ -1857,7 +1859,7 @@ export declare class HttpClient {
1857
1859
  withCredentials?: boolean;
1858
1860
  }): Observable<Object>;
1859
1861
  /**
1860
- * Constructs an `OPTIONS` request that interprets the body as a JSON object and returns the
1862
+ * Constructs an `OPTIONS` request that interprets the body as JSON and returns the
1861
1863
  * response in a given type.
1862
1864
  *
1863
1865
  * @param url The endpoint URL.
@@ -2020,7 +2022,7 @@ export declare class HttpClient {
2020
2022
  withCredentials?: boolean;
2021
2023
  }): Observable<HttpEvent<string>>;
2022
2024
  /**
2023
- * Constructs a `PATCH` request that interprets the body as a JSON object
2025
+ * Constructs a `PATCH` request that interprets the body as JSON
2024
2026
  * and returns the full event stream.
2025
2027
  *
2026
2028
  * @param url The endpoint URL.
@@ -2044,7 +2046,7 @@ export declare class HttpClient {
2044
2046
  withCredentials?: boolean;
2045
2047
  }): Observable<HttpEvent<Object>>;
2046
2048
  /**
2047
- * Constructs a `PATCH` request that interprets the body as a JSON object
2049
+ * Constructs a `PATCH` request that interprets the body as JSON
2048
2050
  * and returns the full event stream.
2049
2051
  *
2050
2052
  * @param url The endpoint URL.
@@ -2140,7 +2142,7 @@ export declare class HttpClient {
2140
2142
  withCredentials?: boolean;
2141
2143
  }): Observable<HttpResponse<string>>;
2142
2144
  /**
2143
- * Constructs a `PATCH` request that interprets the body as a JSON object
2145
+ * Constructs a `PATCH` request that interprets the body as JSON
2144
2146
  * and returns the full `HttpResponse`.
2145
2147
  *
2146
2148
  * @param url The endpoint URL.
@@ -2164,7 +2166,7 @@ export declare class HttpClient {
2164
2166
  withCredentials?: boolean;
2165
2167
  }): Observable<HttpResponse<Object>>;
2166
2168
  /**
2167
- * Constructs a `PATCH` request that interprets the body as a JSON object
2169
+ * Constructs a `PATCH` request that interprets the body as JSON
2168
2170
  * and returns the full `HttpResponse`.
2169
2171
  *
2170
2172
  * @param url The endpoint URL.
@@ -2188,14 +2190,15 @@ export declare class HttpClient {
2188
2190
  withCredentials?: boolean;
2189
2191
  }): Observable<HttpResponse<T>>;
2190
2192
  /**
2191
- * Constructs a `PATCH` request that interprets the body as a JSON object and
2192
- * returns the response body as a JSON object.
2193
+
2194
+ * Constructs a `PATCH` request that interprets the body as JSON and
2195
+ * returns the response body as an object parsed from JSON.
2193
2196
  *
2194
2197
  * @param url The endpoint URL.
2195
2198
  * @param body The resources to edit.
2196
2199
  * @param options HTTP options.
2197
2200
  *
2198
- * @return An `Observable` of the response, with the response body as a JSON object.
2201
+ * @return An `Observable` of the response, with the response body as an object parsed from JSON.
2199
2202
  */
2200
2203
  patch(url: string, body: any | null, options?: {
2201
2204
  headers?: HttpHeaders | {
@@ -2211,7 +2214,7 @@ export declare class HttpClient {
2211
2214
  withCredentials?: boolean;
2212
2215
  }): Observable<Object>;
2213
2216
  /**
2214
- * Constructs a `PATCH` request that interprets the body as a JSON object
2217
+ * Constructs a `PATCH` request that interprets the body as JSON
2215
2218
  * and returns the response in a given type.
2216
2219
  *
2217
2220
  * @param url The endpoint URL.
@@ -2375,8 +2378,8 @@ export declare class HttpClient {
2375
2378
  withCredentials?: boolean;
2376
2379
  }): Observable<HttpEvent<string>>;
2377
2380
  /**
2378
- * Constructs a POST request that interprets the body as a JSON object and returns the full event
2379
- * stream.
2381
+ * Constructs a POST request that interprets the body as JSON and returns the full
2382
+ * event stream.
2380
2383
  *
2381
2384
  * @param url The endpoint URL.
2382
2385
  * @param body The content to replace with.
@@ -2399,8 +2402,8 @@ export declare class HttpClient {
2399
2402
  withCredentials?: boolean;
2400
2403
  }): Observable<HttpEvent<Object>>;
2401
2404
  /**
2402
- * Constructs a POST request that interprets the body as a JSON object and returns the full event
2403
- * stream.
2405
+ * Constructs a POST request that interprets the body as JSON and returns the full
2406
+ * event stream.
2404
2407
  *
2405
2408
  * @param url The endpoint URL.
2406
2409
  * @param body The content to replace with.
@@ -2495,7 +2498,7 @@ export declare class HttpClient {
2495
2498
  withCredentials?: boolean;
2496
2499
  }): Observable<HttpResponse<string>>;
2497
2500
  /**
2498
- * Constructs a `POST` request that interprets the body as a JSON object
2501
+ * Constructs a `POST` request that interprets the body as JSON
2499
2502
  * and returns the full `HttpResponse`.
2500
2503
  *
2501
2504
  * @param url The endpoint URL.
@@ -2519,8 +2522,8 @@ export declare class HttpClient {
2519
2522
  withCredentials?: boolean;
2520
2523
  }): Observable<HttpResponse<Object>>;
2521
2524
  /**
2522
- * Constructs a `POST` request that interprets the body as a JSON object and returns the full
2523
- * `HttpResponse`.
2525
+ * Constructs a `POST` request that interprets the body as JSON and returns the
2526
+ * full `HttpResponse`.
2524
2527
  *
2525
2528
  *
2526
2529
  * @param url The endpoint URL.
@@ -2544,14 +2547,14 @@ export declare class HttpClient {
2544
2547
  withCredentials?: boolean;
2545
2548
  }): Observable<HttpResponse<T>>;
2546
2549
  /**
2547
- * Constructs a `POST` request that interprets the body as a
2548
- * JSON object and returns the response body as a JSON object.
2550
+ * Constructs a `POST` request that interprets the body as JSON
2551
+ * and returns the response body as an object parsed from JSON.
2549
2552
  *
2550
2553
  * @param url The endpoint URL.
2551
2554
  * @param body The content to replace with.
2552
2555
  * @param options HTTP options
2553
2556
  *
2554
- * @return An `Observable` of the response, with the response body as a JSON object.
2557
+ * @return An `Observable` of the response, with the response body as an object parsed from JSON.
2555
2558
  */
2556
2559
  post(url: string, body: any | null, options?: {
2557
2560
  headers?: HttpHeaders | {
@@ -2567,7 +2570,7 @@ export declare class HttpClient {
2567
2570
  withCredentials?: boolean;
2568
2571
  }): Observable<Object>;
2569
2572
  /**
2570
- * Constructs a `POST` request that interprets the body as a JSON object
2573
+ * Constructs a `POST` request that interprets the body as JSON
2571
2574
  * and returns an observable of the response.
2572
2575
  *
2573
2576
  * @param url The endpoint URL.
@@ -2732,8 +2735,8 @@ export declare class HttpClient {
2732
2735
  withCredentials?: boolean;
2733
2736
  }): Observable<HttpEvent<string>>;
2734
2737
  /**
2735
- * Constructs a `PUT` request that interprets the body as a JSON object and returns the full event
2736
- * stream.
2738
+ * Constructs a `PUT` request that interprets the body as JSON and returns the full
2739
+ * event stream.
2737
2740
  *
2738
2741
  * @param url The endpoint URL.
2739
2742
  * @param body The resources to add/update.
@@ -2756,7 +2759,7 @@ export declare class HttpClient {
2756
2759
  withCredentials?: boolean;
2757
2760
  }): Observable<HttpEvent<Object>>;
2758
2761
  /**
2759
- * Constructs a `PUT` request that interprets the body as a JSON object and returns the
2762
+ * Constructs a `PUT` request that interprets the body as JSON and returns the
2760
2763
  * full event stream.
2761
2764
  *
2762
2765
  * @param url The endpoint URL.
@@ -2852,8 +2855,8 @@ export declare class HttpClient {
2852
2855
  withCredentials?: boolean;
2853
2856
  }): Observable<HttpResponse<string>>;
2854
2857
  /**
2855
- * Constructs a `PUT` request that interprets the body as a JSON object and returns the full HTTP
2856
- * response.
2858
+ * Constructs a `PUT` request that interprets the body as JSON and returns the full
2859
+ * HTTP response.
2857
2860
  *
2858
2861
  * @param url The endpoint URL.
2859
2862
  * @param body The resources to add/update.
@@ -2900,14 +2903,14 @@ export declare class HttpClient {
2900
2903
  withCredentials?: boolean;
2901
2904
  }): Observable<HttpResponse<T>>;
2902
2905
  /**
2903
- * Constructs a `PUT` request that interprets the body as a JSON object
2904
- * and returns an observable of JSON object.
2906
+ * Constructs a `PUT` request that interprets the body as JSON
2907
+ * and returns an observable of JavaScript object.
2905
2908
  *
2906
2909
  * @param url The endpoint URL.
2907
2910
  * @param body The resources to add/update.
2908
2911
  * @param options HTTP options
2909
2912
  *
2910
- * @return An `Observable` of the response as a JSON object.
2913
+ * @return An `Observable` of the response as a JavaScript object.
2911
2914
  */
2912
2915
  put(url: string, body: any | null, options?: {
2913
2916
  headers?: HttpHeaders | {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.0-next.0
2
+ * @license Angular v15.0.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.0-next.0
2
+ * @license Angular v15.0.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "15.0.0-next.0",
3
+ "version": "15.0.0-next.1",
4
4
  "description": "Angular - commonly needed directives and services",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -63,7 +63,7 @@
63
63
  }
64
64
  },
65
65
  "peerDependencies": {
66
- "@angular/core": "15.0.0-next.0",
66
+ "@angular/core": "15.0.0-next.1",
67
67
  "rxjs": "^6.5.3 || ^7.4.0"
68
68
  },
69
69
  "repository": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.0-next.0
2
+ * @license Angular v15.0.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.0.0-next.0
2
+ * @license Angular v15.0.0-next.1
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */