@angular/platform-browser 15.1.4 → 15.1.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.1.4
2
+ * @license Angular v15.1.5
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -205,15 +205,15 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
205
205
  */
206
206
  class BrowserTestingModule {
207
207
  }
208
- BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
209
- BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
210
- BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BrowserTestingModule, providers: [
208
+ BrowserTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
209
+ BrowserTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.5", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] });
210
+ BrowserTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BrowserTestingModule, providers: [
211
211
  { provide: APP_ID, useValue: 'a' },
212
212
  { provide: NgZone, useFactory: createNgZone },
213
213
  (ENABLE_MOCK_PLATFORM_LOCATION ? [{ provide: PlatformLocation, useClass: MockPlatformLocation }] :
214
214
  []),
215
215
  ], imports: [BrowserModule] });
216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: BrowserTestingModule, decorators: [{
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.5", ngImport: i0, type: BrowserTestingModule, decorators: [{
217
217
  type: NgModule,
218
218
  args: [{
219
219
  exports: [BrowserModule],
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.1.4
2
+ * @license Angular v15.1.5
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -237,12 +237,13 @@ export declare function disableDebugTools(): void;
237
237
  */
238
238
  export declare abstract class DomSanitizer implements Sanitizer {
239
239
  /**
240
- * Sanitizes a value for use in the given SecurityContext.
240
+ * Gets a safe value from either a known safe value or a value with unknown safety.
241
241
  *
242
- * If value is trusted for the context, this method will unwrap the contained safe value and use
243
- * it directly. Otherwise, value will be sanitized to be safe in the given context, for example
244
- * by replacing URLs that have an unsafe protocol part (such as `javascript:`). The implementation
245
- * is responsible to make sure that the value can definitely be safely used in the given context.
242
+ * If the given value is already a `SafeValue`, this method returns the unwrapped value.
243
+ * If the security context is HTML and the given value is a plain string, this method
244
+ * sanitizes the string, removing any potentially unsafe content.
245
+ * For any other security context, this method throws an error if provided
246
+ * with a plain string.
246
247
  */
247
248
  abstract sanitize(context: SecurityContext, value: SafeValue | string | null): string | null;
248
249
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-browser",
3
- "version": "15.1.4",
3
+ "version": "15.1.5",
4
4
  "description": "Angular - library for using Angular in a web browser",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,9 +11,9 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/animations": "15.1.4",
15
- "@angular/core": "15.1.4",
16
- "@angular/common": "15.1.4"
14
+ "@angular/animations": "15.1.5",
15
+ "@angular/core": "15.1.5",
16
+ "@angular/common": "15.1.5"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "@angular/animations": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.1.4
2
+ * @license Angular v15.1.5
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */