@angular/common 15.2.7 → 15.2.9
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/esm2020/http/src/client.mjs +3 -3
- package/esm2020/http/src/headers.mjs +16 -10
- package/esm2020/http/src/interceptor.mjs +3 -3
- package/esm2020/http/src/jsonp.mjs +10 -10
- package/esm2020/http/src/module.mjs +12 -12
- package/esm2020/http/src/provider.mjs +16 -16
- package/esm2020/http/src/xhr.mjs +6 -6
- 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 +4 -4
- package/esm2020/src/directives/ng_class.mjs +3 -3
- package/esm2020/src/directives/ng_component_outlet.mjs +3 -3
- package/esm2020/src/directives/ng_for_of.mjs +3 -3
- package/esm2020/src/directives/ng_if.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/lcp_image_observer.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/ng_optimized_image.mjs +16 -6
- package/esm2020/src/directives/ng_optimized_image/preconnect_link_checker.mjs +3 -3
- package/esm2020/src/directives/ng_optimized_image/preload-link-creator.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 +9 -9
- package/esm2020/src/directives/ng_template_outlet.mjs +3 -3
- package/esm2020/src/dom_tokens.mjs +4 -5
- package/esm2020/src/i18n/localization.mjs +6 -6
- package/esm2020/src/location/hash_location_strategy.mjs +3 -3
- package/esm2020/src/location/location.mjs +3 -3
- package/esm2020/src/location/location_strategy.mjs +6 -6
- 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 +3 -3
- 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 +129 -120
- package/fesm2015/common.mjs.map +1 -1
- package/fesm2015/http/testing.mjs +8 -8
- package/fesm2015/http.mjs +69 -63
- package/fesm2015/http.mjs.map +1 -1
- package/fesm2015/testing.mjs +10 -10
- package/fesm2015/upgrade.mjs +5 -5
- package/fesm2020/common.mjs +129 -120
- package/fesm2020/common.mjs.map +1 -1
- package/fesm2020/http/testing.mjs +8 -8
- package/fesm2020/http.mjs +69 -63
- package/fesm2020/http.mjs.map +1 -1
- package/fesm2020/testing.mjs +10 -10
- package/fesm2020/upgrade.mjs +5 -5
- package/http/index.d.ts +22 -22
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +4 -5
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2020/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.2.
|
|
2
|
+
* @license Angular v15.2.9
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -204,9 +204,9 @@ class SpyLocation {
|
|
|
204
204
|
this._historyIndex = this._history.length - 1;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
SpyLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
208
|
-
SpyLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
207
|
+
SpyLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
208
|
+
SpyLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpyLocation });
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpyLocation, decorators: [{
|
|
210
210
|
type: Injectable
|
|
211
211
|
}] });
|
|
212
212
|
class LocationState {
|
|
@@ -286,9 +286,9 @@ class MockLocationStrategy extends LocationStrategy {
|
|
|
286
286
|
return this.stateChanges[(this.stateChanges.length || 1) - 1];
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
MockLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
290
|
-
MockLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
289
|
+
MockLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
290
|
+
MockLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockLocationStrategy });
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockLocationStrategy, decorators: [{
|
|
292
292
|
type: Injectable
|
|
293
293
|
}], ctorParameters: function () { return []; } });
|
|
294
294
|
class _MockPopStateEvent {
|
|
@@ -485,9 +485,9 @@ class MockPlatformLocation {
|
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
MockPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
489
|
-
MockPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.
|
|
490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
488
|
+
MockPlatformLocation.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
489
|
+
MockPlatformLocation.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockPlatformLocation });
|
|
490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: MockPlatformLocation, decorators: [{
|
|
491
491
|
type: Injectable
|
|
492
492
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
493
493
|
type: Inject,
|
package/fesm2020/upgrade.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.2.
|
|
2
|
+
* @license Angular v15.2.9
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -848,10 +848,10 @@ class LocationUpgradeModule {
|
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
|
-
LocationUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.
|
|
852
|
-
LocationUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.
|
|
853
|
-
LocationUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.
|
|
854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.
|
|
851
|
+
LocationUpgradeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
852
|
+
LocationUpgradeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
|
|
853
|
+
LocationUpgradeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] });
|
|
854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: LocationUpgradeModule, decorators: [{
|
|
855
855
|
type: NgModule,
|
|
856
856
|
args: [{ imports: [CommonModule] }]
|
|
857
857
|
}] });
|
package/http/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.2.
|
|
2
|
+
* @license Angular v15.2.9
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -3309,7 +3309,7 @@ export declare class HttpHeaders {
|
|
|
3309
3309
|
private lazyUpdate;
|
|
3310
3310
|
/** Constructs a new HTTP header object with the given values.*/
|
|
3311
3311
|
constructor(headers?: string | {
|
|
3312
|
-
[name: string]: string | string[];
|
|
3312
|
+
[name: string]: string | number | (string | number)[];
|
|
3313
3313
|
});
|
|
3314
3314
|
/**
|
|
3315
3315
|
* Checks for existence of a given header.
|
|
@@ -3946,8 +3946,8 @@ export declare interface HttpUserEvent<T> {
|
|
|
3946
3946
|
|
|
3947
3947
|
/**
|
|
3948
3948
|
* Uses `XMLHttpRequest` to send requests to a backend server.
|
|
3949
|
-
* @see
|
|
3950
|
-
* @see
|
|
3949
|
+
* @see {@link HttpHandler}
|
|
3950
|
+
* @see {@link JsonpClientBackend}
|
|
3951
3951
|
*
|
|
3952
3952
|
* @publicApi
|
|
3953
3953
|
*/
|
|
@@ -3992,8 +3992,8 @@ declare abstract class JsonpCallbackContext {
|
|
|
3992
3992
|
/**
|
|
3993
3993
|
* Processes an `HttpRequest` with the JSONP method,
|
|
3994
3994
|
* by performing JSONP style requests.
|
|
3995
|
-
* @see
|
|
3996
|
-
* @see
|
|
3995
|
+
* @see {@link HttpHandler}
|
|
3996
|
+
* @see {@link HttpXhrBackend}
|
|
3997
3997
|
*
|
|
3998
3998
|
* @publicApi
|
|
3999
3999
|
*/
|
|
@@ -4025,7 +4025,7 @@ export declare class JsonpClientBackend implements HttpBackend {
|
|
|
4025
4025
|
* Identifies requests with the method JSONP and
|
|
4026
4026
|
* shifts them to the `JsonpClientBackend`.
|
|
4027
4027
|
*
|
|
4028
|
-
* @see
|
|
4028
|
+
* @see {@link HttpInterceptor}
|
|
4029
4029
|
*
|
|
4030
4030
|
* @publicApi
|
|
4031
4031
|
*/
|
|
@@ -4052,12 +4052,12 @@ export declare class JsonpInterceptor {
|
|
|
4052
4052
|
* feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the
|
|
4053
4053
|
* `withInterceptors(...)` feature.
|
|
4054
4054
|
*
|
|
4055
|
-
* @see withInterceptors
|
|
4056
|
-
* @see withInterceptorsFromDi
|
|
4057
|
-
* @see withXsrfConfiguration
|
|
4058
|
-
* @see withNoXsrfProtection
|
|
4059
|
-
* @see withJsonpSupport
|
|
4060
|
-
* @see withRequestsMadeViaParent
|
|
4055
|
+
* @see {@link withInterceptors}
|
|
4056
|
+
* @see {@link withInterceptorsFromDi}
|
|
4057
|
+
* @see {@link withXsrfConfiguration}
|
|
4058
|
+
* @see {@link withNoXsrfProtection}
|
|
4059
|
+
* @see {@link withJsonpSupport}
|
|
4060
|
+
* @see {@link withRequestsMadeViaParent}
|
|
4061
4061
|
*/
|
|
4062
4062
|
export declare function provideHttpClient(...features: HttpFeature<HttpFeatureKind>[]): EnvironmentProviders;
|
|
4063
4063
|
|
|
@@ -4065,8 +4065,8 @@ export declare function provideHttpClient(...features: HttpFeature<HttpFeatureKi
|
|
|
4065
4065
|
* Adds one or more functional-style HTTP interceptors to the configuration of the `HttpClient`
|
|
4066
4066
|
* instance.
|
|
4067
4067
|
*
|
|
4068
|
-
* @see HttpInterceptorFn
|
|
4069
|
-
* @see provideHttpClient
|
|
4068
|
+
* @see {@link HttpInterceptorFn}
|
|
4069
|
+
* @see {@link provideHttpClient}
|
|
4070
4070
|
* @publicApi
|
|
4071
4071
|
*/
|
|
4072
4072
|
export declare function withInterceptors(interceptorFns: HttpInterceptorFn[]): HttpFeature<HttpFeatureKind.Interceptors>;
|
|
@@ -4078,16 +4078,16 @@ export declare function withInterceptors(interceptorFns: HttpInterceptorFn[]): H
|
|
|
4078
4078
|
* Prefer `withInterceptors` and functional interceptors instead, as support for DI-provided
|
|
4079
4079
|
* interceptors may be phased out in a later release.
|
|
4080
4080
|
*
|
|
4081
|
-
* @see HttpInterceptor
|
|
4082
|
-
* @see HTTP_INTERCEPTORS
|
|
4083
|
-
* @see provideHttpClient
|
|
4081
|
+
* @see {@link HttpInterceptor}
|
|
4082
|
+
* @see {@link HTTP_INTERCEPTORS}
|
|
4083
|
+
* @see {@link provideHttpClient}
|
|
4084
4084
|
*/
|
|
4085
4085
|
export declare function withInterceptorsFromDi(): HttpFeature<HttpFeatureKind.LegacyInterceptors>;
|
|
4086
4086
|
|
|
4087
4087
|
/**
|
|
4088
4088
|
* Add JSONP support to the configuration of the current `HttpClient` instance.
|
|
4089
4089
|
*
|
|
4090
|
-
* @see provideHttpClient
|
|
4090
|
+
* @see {@link provideHttpClient}
|
|
4091
4091
|
*/
|
|
4092
4092
|
export declare function withJsonpSupport(): HttpFeature<HttpFeatureKind.JsonpSupport>;
|
|
4093
4093
|
|
|
@@ -4096,7 +4096,7 @@ export declare function withJsonpSupport(): HttpFeature<HttpFeatureKind.JsonpSup
|
|
|
4096
4096
|
*
|
|
4097
4097
|
* This feature is incompatible with the `withXsrfConfiguration` feature.
|
|
4098
4098
|
*
|
|
4099
|
-
* @see provideHttpClient
|
|
4099
|
+
* @see {@link provideHttpClient}
|
|
4100
4100
|
*/
|
|
4101
4101
|
export declare function withNoXsrfProtection(): HttpFeature<HttpFeatureKind.NoXsrfProtection>;
|
|
4102
4102
|
|
|
@@ -4117,7 +4117,7 @@ export declare function withNoXsrfProtection(): HttpFeature<HttpFeatureKind.NoXs
|
|
|
4117
4117
|
* "bubble up" until either reaching the root level or an `HttpClient` which was not configured with
|
|
4118
4118
|
* this option.
|
|
4119
4119
|
*
|
|
4120
|
-
* @see provideHttpClient
|
|
4120
|
+
* @see {@link provideHttpClient}
|
|
4121
4121
|
* @developerPreview
|
|
4122
4122
|
*/
|
|
4123
4123
|
export declare function withRequestsMadeViaParent(): HttpFeature<HttpFeatureKind.RequestsMadeViaParent>;
|
|
@@ -4127,7 +4127,7 @@ export declare function withRequestsMadeViaParent(): HttpFeature<HttpFeatureKind
|
|
|
4127
4127
|
*
|
|
4128
4128
|
* This feature is incompatible with the `withNoXsrfProtection` feature.
|
|
4129
4129
|
*
|
|
4130
|
-
* @see provideHttpClient
|
|
4130
|
+
* @see {@link provideHttpClient}
|
|
4131
4131
|
*/
|
|
4132
4132
|
export declare function withXsrfConfiguration({ cookieName, headerName }: {
|
|
4133
4133
|
cookieName?: string;
|
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.2.
|
|
2
|
+
* @license Angular v15.2.9
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -501,10 +501,9 @@ export declare class DecimalPipe implements PipeTransform {
|
|
|
501
501
|
declare function defaultComparator<K, V>(keyValueA: KeyValue<K, V>, keyValueB: KeyValue<K, V>): number;
|
|
502
502
|
|
|
503
503
|
/**
|
|
504
|
-
* A DI Token representing the main rendering context.
|
|
505
|
-
*
|
|
506
|
-
*
|
|
507
|
-
* Contexts are not the same (e.g. when running the application in a Web Worker).
|
|
504
|
+
* A DI Token representing the main rendering context.
|
|
505
|
+
* In a browser and SSR this is the DOM Document.
|
|
506
|
+
* When using SSR, that document is created by [Domino](https://github.com/angular/domino).
|
|
508
507
|
*
|
|
509
508
|
* @publicApi
|
|
510
509
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.9",
|
|
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.2.
|
|
66
|
+
"@angular/core": "15.2.9",
|
|
67
67
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
68
68
|
},
|
|
69
69
|
"repository": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED