Socket
Socket
Sign inDemoInstall

@angular/upgrade

Package Overview
Dependencies
Maintainers
2
Versions
838
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/upgrade - npm Package Compare versions

Comparing version 18.2.1 to 18.2.2

esm2022/src/common/src/security/trusted_types_defs.mjs

2

index.d.ts
/**
* @license Angular v18.2.1
* @license Angular v18.2.2
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

{
"name": "@angular/upgrade",
"version": "18.2.1",
"version": "18.2.2",
"description": "Angular - the library for easing update from v1 to v2",

@@ -14,6 +14,6 @@ "author": "angular",

"peerDependencies": {
"@angular/core": "18.2.1",
"@angular/compiler": "18.2.1",
"@angular/platform-browser": "18.2.1",
"@angular/platform-browser-dynamic": "18.2.1"
"@angular/core": "18.2.2",
"@angular/compiler": "18.2.2",
"@angular/platform-browser": "18.2.2",
"@angular/platform-browser-dynamic": "18.2.2"
},

@@ -20,0 +20,0 @@ "repository": {

/**
* @license Angular v18.2.1
* @license Angular v18.2.2
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -815,2 +815,26 @@ * License: MIT

/**
* @fileoverview
* While Angular only uses Trusted Types internally for the time being,
* references to Trusted Types could leak into our public API, which would force
* anyone compiling against @angular/upgrade to provide the @types/trusted-types
* package in their compilation unit.
*
* Until https://github.com/microsoft/TypeScript/issues/30024 is resolved, we
* will keep Angular's public API surface free of references to Trusted Types.
* For internal and semi-private APIs that need to reference Trusted Types, the
* minimal type definitions for the Trusted Types API provided by this module
* should be used instead. They are marked as "declare" to prevent them from
* being renamed by compiler optimization.
*
* Adapted from
* https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/trusted-types/index.d.ts
* but restricted to the API surface used within Angular, mimicking the approach
* in packages/core/src/util/security/trusted_type_defs.ts.
*/
declare type TrustedHTML = string & {
__brand__: 'TrustedHTML';
};
declare const UPGRADE_APP_TYPE_KEY = "$$angularUpgradeAppType";

@@ -915,5 +939,5 @@

static getDirective($injector: IInjectorService, name: string): IDirective;
static getTemplate($injector: IInjectorService, directive: IDirective, fetchRemoteTemplate?: boolean, $element?: IAugmentedJQuery): string | Promise<string>;
static getTemplate($injector: IInjectorService, directive: IDirective, fetchRemoteTemplate?: boolean, $element?: IAugmentedJQuery): string | TrustedHTML | Promise<string | TrustedHTML>;
buildController(controllerType: IController, $scope: IScope): any;
compileTemplate(template?: string): ILinkFn;
compileTemplate(template?: string | TrustedHTML): ILinkFn;
onDestroy($scope: IScope, controllerInstance?: any): void;

@@ -920,0 +944,0 @@ prepareTransclusion(): ILinkFn | undefined;

/**
* @license Angular v18.2.1
* @license Angular v18.2.2
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -4,0 +4,0 @@ * License: MIT

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc