@angular/common 16.2.0 → 16.2.2
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/fetch.mjs +3 -3
- package/esm2022/http/src/interceptor.mjs +4 -4
- package/esm2022/http/src/jsonp.mjs +6 -6
- package/esm2022/http/src/module.mjs +12 -12
- package/esm2022/http/src/xhr.mjs +3 -3
- 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 +14 -6
- 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/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 +5 -4
- 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 +125 -116
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +8 -8
- package/fesm2022/http.mjs +37 -37
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +10 -10
- package/fesm2022/upgrade.mjs +5 -5
- package/http/index.d.ts +31 -3
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +153 -1
- package/package.json +2 -2
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.2.
|
|
2
|
+
* @license Angular v16.2.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -203,10 +203,10 @@ class SpyLocation {
|
|
|
203
203
|
this._history.push(new LocationState(path, query, state));
|
|
204
204
|
this._historyIndex = this._history.length - 1;
|
|
205
205
|
}
|
|
206
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
207
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.
|
|
206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: SpyLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
207
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: SpyLocation }); }
|
|
208
208
|
}
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: SpyLocation, decorators: [{
|
|
210
210
|
type: Injectable
|
|
211
211
|
}] });
|
|
212
212
|
class LocationState {
|
|
@@ -285,10 +285,10 @@ class MockLocationStrategy extends LocationStrategy {
|
|
|
285
285
|
getState() {
|
|
286
286
|
return this.stateChanges[(this.stateChanges.length || 1) - 1];
|
|
287
287
|
}
|
|
288
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
289
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.
|
|
288
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: MockLocationStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
289
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: MockLocationStrategy }); }
|
|
290
290
|
}
|
|
291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: MockLocationStrategy, decorators: [{
|
|
292
292
|
type: Injectable
|
|
293
293
|
}], ctorParameters: function () { return []; } });
|
|
294
294
|
class _MockPopStateEvent {
|
|
@@ -484,10 +484,10 @@ class MockPlatformLocation {
|
|
|
484
484
|
this.hashUpdate.next({ type: 'hashchange', state: null, oldUrl, newUrl: this.url });
|
|
485
485
|
}
|
|
486
486
|
}
|
|
487
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
488
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.
|
|
487
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: MockPlatformLocation, deps: [{ token: MOCK_PLATFORM_LOCATION_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
488
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: MockPlatformLocation }); }
|
|
489
489
|
}
|
|
490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: MockPlatformLocation, decorators: [{
|
|
491
491
|
type: Injectable
|
|
492
492
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
493
493
|
type: Inject,
|
package/fesm2022/upgrade.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.2.
|
|
2
|
+
* @license Angular v16.2.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -847,11 +847,11 @@ class LocationUpgradeModule {
|
|
|
847
847
|
],
|
|
848
848
|
};
|
|
849
849
|
}
|
|
850
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.
|
|
851
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.
|
|
852
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.
|
|
850
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: LocationUpgradeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
851
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.2", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
|
|
852
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.2", ngImport: i0, type: LocationUpgradeModule, imports: [CommonModule] }); }
|
|
853
853
|
}
|
|
854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.
|
|
854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.2", 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 v16.2.
|
|
2
|
+
* @license Angular v16.2.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -3425,6 +3425,7 @@ export declare class HttpHeaders {
|
|
|
3425
3425
|
* @publicApi
|
|
3426
3426
|
*
|
|
3427
3427
|
* @see [HTTP Guide](guide/http-intercept-requests-and-responses)
|
|
3428
|
+
* @see {@link HttpInterceptorFn}
|
|
3428
3429
|
*
|
|
3429
3430
|
* @usageNotes
|
|
3430
3431
|
*
|
|
@@ -3456,8 +3457,35 @@ export declare interface HttpInterceptor {
|
|
|
3456
3457
|
* request) is provided. Most interceptors will delegate to this function, but that is not required
|
|
3457
3458
|
* (see `HttpHandlerFn` for more details).
|
|
3458
3459
|
*
|
|
3459
|
-
* `HttpInterceptorFn`s
|
|
3460
|
-
* configured.
|
|
3460
|
+
* `HttpInterceptorFn`s are executed in an [injection context](/guide/dependency-injection-context).
|
|
3461
|
+
* They have access to `inject()` via the `EnvironmentInjector` from which they were configured.
|
|
3462
|
+
*
|
|
3463
|
+
* @see [HTTP Guide](guide/http-intercept-requests-and-responses)
|
|
3464
|
+
* @see {@link withInterceptors}
|
|
3465
|
+
*
|
|
3466
|
+
* @usageNotes
|
|
3467
|
+
* Here is a noop interceptor that passes the request through without modifying it:
|
|
3468
|
+
* ```typescript
|
|
3469
|
+
* export const noopInterceptor: HttpInterceptorFn = (req: HttpRequest<unknown>, next:
|
|
3470
|
+
* HttpHandlerFn) => {
|
|
3471
|
+
* return next(modifiedReq);
|
|
3472
|
+
* };
|
|
3473
|
+
* ```
|
|
3474
|
+
*
|
|
3475
|
+
* If you want to alter a request, clone it first and modify the clone before passing it to the
|
|
3476
|
+
* `next()` handler function.
|
|
3477
|
+
*
|
|
3478
|
+
* Here is a basic interceptor that adds a bearer token to the headers
|
|
3479
|
+
* ```typescript
|
|
3480
|
+
* export const authenticationInterceptor: HttpInterceptorFn = (req: HttpRequest<unknown>, next:
|
|
3481
|
+
* HttpHandlerFn) => {
|
|
3482
|
+
* const userToken = 'MY_TOKEN'; const modifiedReq = req.clone({
|
|
3483
|
+
* headers: req.headers.set('Authorization', `Bearer ${userToken}`),
|
|
3484
|
+
* });
|
|
3485
|
+
*
|
|
3486
|
+
* return next(modifiedReq);
|
|
3487
|
+
* };
|
|
3488
|
+
* ```
|
|
3461
3489
|
*/
|
|
3462
3490
|
export declare type HttpInterceptorFn = (req: HttpRequest<unknown>, next: HttpHandlerFn) => Observable<HttpEvent<unknown>>;
|
|
3463
3491
|
|
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v16.2.
|
|
2
|
+
* @license Angular v16.2.2
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -31,6 +31,18 @@ import { Type } from '@angular/core';
|
|
|
31
31
|
import { Version } from '@angular/core';
|
|
32
32
|
import { ViewContainerRef } from '@angular/core';
|
|
33
33
|
|
|
34
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType.Html): value is SafeHtml;
|
|
35
|
+
|
|
36
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType.ResourceUrl): value is SafeResourceUrl;
|
|
37
|
+
|
|
38
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType.Script): value is SafeScript;
|
|
39
|
+
|
|
40
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType.Style): value is SafeStyle;
|
|
41
|
+
|
|
42
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType.Url): value is SafeUrl;
|
|
43
|
+
|
|
44
|
+
declare function allowSanitizationBypassAndThrow(value: any, type: BypassType): boolean;
|
|
45
|
+
|
|
34
46
|
/**
|
|
35
47
|
* A predefined [DI token](guide/glossary#di-token) for the base href
|
|
36
48
|
* to be used with the `PathLocationStrategy`.
|
|
@@ -136,6 +148,70 @@ export declare class BrowserPlatformLocation extends PlatformLocation {
|
|
|
136
148
|
static ɵprov: i0.ɵɵInjectableDeclaration<BrowserPlatformLocation>;
|
|
137
149
|
}
|
|
138
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Mark `html` string as trusted.
|
|
153
|
+
*
|
|
154
|
+
* This function wraps the trusted string in `String` and brands it in a way which makes it
|
|
155
|
+
* recognizable to {@link htmlSanitizer} to be trusted implicitly.
|
|
156
|
+
*
|
|
157
|
+
* @param trustedHtml `html` string which needs to be implicitly trusted.
|
|
158
|
+
* @returns a `html` which has been branded to be implicitly trusted.
|
|
159
|
+
*/
|
|
160
|
+
declare function bypassSanitizationTrustHtml(trustedHtml: string): SafeHtml;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Mark `url` string as trusted.
|
|
164
|
+
*
|
|
165
|
+
* This function wraps the trusted string in `String` and brands it in a way which makes it
|
|
166
|
+
* recognizable to {@link resourceUrlSanitizer} to be trusted implicitly.
|
|
167
|
+
*
|
|
168
|
+
* @param trustedResourceUrl `url` string which needs to be implicitly trusted.
|
|
169
|
+
* @returns a `url` which has been branded to be implicitly trusted.
|
|
170
|
+
*/
|
|
171
|
+
declare function bypassSanitizationTrustResourceUrl(trustedResourceUrl: string): SafeResourceUrl;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Mark `script` string as trusted.
|
|
175
|
+
*
|
|
176
|
+
* This function wraps the trusted string in `String` and brands it in a way which makes it
|
|
177
|
+
* recognizable to {@link scriptSanitizer} to be trusted implicitly.
|
|
178
|
+
*
|
|
179
|
+
* @param trustedScript `script` string which needs to be implicitly trusted.
|
|
180
|
+
* @returns a `script` which has been branded to be implicitly trusted.
|
|
181
|
+
*/
|
|
182
|
+
declare function bypassSanitizationTrustScript(trustedScript: string): SafeScript;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* Mark `style` string as trusted.
|
|
186
|
+
*
|
|
187
|
+
* This function wraps the trusted string in `String` and brands it in a way which makes it
|
|
188
|
+
* recognizable to {@link styleSanitizer} to be trusted implicitly.
|
|
189
|
+
*
|
|
190
|
+
* @param trustedStyle `style` string which needs to be implicitly trusted.
|
|
191
|
+
* @returns a `style` hich has been branded to be implicitly trusted.
|
|
192
|
+
*/
|
|
193
|
+
declare function bypassSanitizationTrustStyle(trustedStyle: string): SafeStyle;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Mark `url` string as trusted.
|
|
197
|
+
*
|
|
198
|
+
* This function wraps the trusted string in `String` and brands it in a way which makes it
|
|
199
|
+
* recognizable to {@link urlSanitizer} to be trusted implicitly.
|
|
200
|
+
*
|
|
201
|
+
* @param trustedUrl `url` string which needs to be implicitly trusted.
|
|
202
|
+
* @returns a `url` which has been branded to be implicitly trusted.
|
|
203
|
+
*/
|
|
204
|
+
declare function bypassSanitizationTrustUrl(trustedUrl: string): SafeUrl;
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
declare const enum BypassType {
|
|
208
|
+
Url = "URL",
|
|
209
|
+
Html = "HTML",
|
|
210
|
+
ResourceUrl = "ResourceURL",
|
|
211
|
+
Script = "Script",
|
|
212
|
+
Style = "Style"
|
|
213
|
+
}
|
|
214
|
+
|
|
139
215
|
/**
|
|
140
216
|
* Exports all the basic Angular directives and pipes,
|
|
141
217
|
* such as `NgIf`, `NgForOf`, `DecimalPipe`, and so on.
|
|
@@ -357,6 +433,7 @@ export declare const DATE_PIPE_DEFAULT_TIMEZONE: InjectionToken<string>;
|
|
|
357
433
|
* {{ dateObj | date:'medium' }} // output is 'Jun 15, 2015, 9:43:11 PM'
|
|
358
434
|
* {{ dateObj | date:'shortTime' }} // output is '9:43 PM'
|
|
359
435
|
* {{ dateObj | date:'mm:ss' }} // output is '43:11'
|
|
436
|
+
* {{ dateObj | date:"MMM dd, yyyy 'at' hh:mm a" }} // output is 'Jun 15, 2015 at 09:43 PM'
|
|
360
437
|
* ```
|
|
361
438
|
*
|
|
362
439
|
* ### Usage example
|
|
@@ -948,6 +1025,8 @@ export declare function getLocaleWeekEndRange(locale: string): [WeekDay, WeekDay
|
|
|
948
1025
|
*/
|
|
949
1026
|
export declare function getNumberOfCurrencyDigits(code: string): number;
|
|
950
1027
|
|
|
1028
|
+
declare function getSanitizationBypassType(value: any): BypassType | null;
|
|
1029
|
+
|
|
951
1030
|
/**
|
|
952
1031
|
* @description
|
|
953
1032
|
* A {@link LocationStrategy} used to configure the {@link Location} service to
|
|
@@ -1110,6 +1189,26 @@ export declare class I18nSelectPipe implements PipeTransform {
|
|
|
1110
1189
|
static ɵpipe: i0.ɵɵPipeDeclaration<I18nSelectPipe, "i18nSelect", true>;
|
|
1111
1190
|
}
|
|
1112
1191
|
|
|
1192
|
+
declare namespace i1_2 {
|
|
1193
|
+
export {
|
|
1194
|
+
unwrapSafeValue,
|
|
1195
|
+
allowSanitizationBypassAndThrow,
|
|
1196
|
+
getSanitizationBypassType,
|
|
1197
|
+
bypassSanitizationTrustHtml,
|
|
1198
|
+
bypassSanitizationTrustStyle,
|
|
1199
|
+
bypassSanitizationTrustScript,
|
|
1200
|
+
bypassSanitizationTrustUrl,
|
|
1201
|
+
bypassSanitizationTrustResourceUrl,
|
|
1202
|
+
BypassType,
|
|
1203
|
+
SafeValue,
|
|
1204
|
+
SafeHtml,
|
|
1205
|
+
SafeStyle,
|
|
1206
|
+
SafeScript,
|
|
1207
|
+
SafeUrl,
|
|
1208
|
+
SafeResourceUrl
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1113
1212
|
declare namespace i2 {
|
|
1114
1213
|
export {
|
|
1115
1214
|
NgComponentOutlet
|
|
@@ -2308,6 +2407,7 @@ export declare class NgOptimizedImage implements OnInit, OnChanges, OnDestroy {
|
|
|
2308
2407
|
private setHostAttribute;
|
|
2309
2408
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgOptimizedImage, never>;
|
|
2310
2409
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgOptimizedImage, "img[ngSrc]", never, { "ngSrc": { "alias": "ngSrc"; "required": true; }; "ngSrcset": { "alias": "ngSrcset"; "required": false; }; "sizes": { "alias": "sizes"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "priority": { "alias": "priority"; "required": false; }; "loaderParams": { "alias": "loaderParams"; "required": false; }; "disableOptimizedSrcset": { "alias": "disableOptimizedSrcset"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "src": { "alias": "src"; "required": false; }; "srcset": { "alias": "srcset"; "required": false; }; }, {}, never, never, true, never>;
|
|
2410
|
+
static ngAcceptInputType_ngSrc: string | i1_2.SafeValue;
|
|
2311
2411
|
static ngAcceptInputType_width: unknown;
|
|
2312
2412
|
static ngAcceptInputType_height: unknown;
|
|
2313
2413
|
static ngAcceptInputType_priority: unknown;
|
|
@@ -2976,6 +3076,54 @@ export declare const provideImgixLoader: (path: string) => Provider[];
|
|
|
2976
3076
|
*/
|
|
2977
3077
|
export declare function registerLocaleData(data: any, localeId?: string | any, extraData?: any): void;
|
|
2978
3078
|
|
|
3079
|
+
/**
|
|
3080
|
+
* Marker interface for a value that's safe to use as HTML.
|
|
3081
|
+
*
|
|
3082
|
+
* @publicApi
|
|
3083
|
+
*/
|
|
3084
|
+
declare interface SafeHtml extends SafeValue {
|
|
3085
|
+
}
|
|
3086
|
+
|
|
3087
|
+
/**
|
|
3088
|
+
* Marker interface for a value that's safe to use as a URL to load executable code from.
|
|
3089
|
+
*
|
|
3090
|
+
* @publicApi
|
|
3091
|
+
*/
|
|
3092
|
+
declare interface SafeResourceUrl extends SafeValue {
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3095
|
+
/**
|
|
3096
|
+
* Marker interface for a value that's safe to use as JavaScript.
|
|
3097
|
+
*
|
|
3098
|
+
* @publicApi
|
|
3099
|
+
*/
|
|
3100
|
+
declare interface SafeScript extends SafeValue {
|
|
3101
|
+
}
|
|
3102
|
+
|
|
3103
|
+
/**
|
|
3104
|
+
* Marker interface for a value that's safe to use as style (CSS).
|
|
3105
|
+
*
|
|
3106
|
+
* @publicApi
|
|
3107
|
+
*/
|
|
3108
|
+
declare interface SafeStyle extends SafeValue {
|
|
3109
|
+
}
|
|
3110
|
+
|
|
3111
|
+
/**
|
|
3112
|
+
* Marker interface for a value that's safe to use as a URL linking to a document.
|
|
3113
|
+
*
|
|
3114
|
+
* @publicApi
|
|
3115
|
+
*/
|
|
3116
|
+
declare interface SafeUrl extends SafeValue {
|
|
3117
|
+
}
|
|
3118
|
+
|
|
3119
|
+
/**
|
|
3120
|
+
* Marker interface for a value that's safe to use in a particular context.
|
|
3121
|
+
*
|
|
3122
|
+
* @publicApi
|
|
3123
|
+
*/
|
|
3124
|
+
declare interface SafeValue {
|
|
3125
|
+
}
|
|
3126
|
+
|
|
2979
3127
|
/**
|
|
2980
3128
|
* @ngModule CommonModule
|
|
2981
3129
|
* @description
|
|
@@ -3103,6 +3251,10 @@ export declare enum TranslationWidth {
|
|
|
3103
3251
|
Short = 3
|
|
3104
3252
|
}
|
|
3105
3253
|
|
|
3254
|
+
declare function unwrapSafeValue(value: SafeValue): string;
|
|
3255
|
+
|
|
3256
|
+
declare function unwrapSafeValue<T>(value: T): T;
|
|
3257
|
+
|
|
3106
3258
|
/**
|
|
3107
3259
|
* Transforms text to all upper case.
|
|
3108
3260
|
* @see {@link LowerCasePipe}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "16.2.
|
|
3
|
+
"version": "16.2.2",
|
|
4
4
|
"description": "Angular - commonly needed directives and services",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@angular/core": "16.2.
|
|
56
|
+
"@angular/core": "16.2.2",
|
|
57
57
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED