@angular/core
Advanced tools
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
+2
-2
| { | ||
| "name": "@angular/core", | ||
| "version": "21.2.5", | ||
| "version": "21.2.6", | ||
| "description": "Angular - the core framework", | ||
@@ -49,3 +49,3 @@ "author": "angular", | ||
| "peerDependencies": { | ||
| "@angular/compiler": "21.2.5", | ||
| "@angular/compiler": "21.2.6", | ||
| "rxjs": "^6.5.3 || ^7.4.0", | ||
@@ -52,0 +52,0 @@ "zone.js": "~0.15.0 || ~0.16.0" |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -1324,27 +1324,33 @@ * License: MIT | ||
| function migrate(options) { | ||
| return async (tree) => { | ||
| return async (tree, context) => { | ||
| const basePath = process.cwd(); | ||
| let pathToMigrate; | ||
| if (options.path) { | ||
| if (options.path.startsWith('..')) { | ||
| throw new schematics.SchematicsException('Cannot run inject migration outside of the current project.'); | ||
| } | ||
| pathToMigrate = compiler_host.normalizePath(path.join(basePath, options.path)); | ||
| } | ||
| const { buildPaths, testPaths } = await project_tsconfig_paths.getProjectTsConfigPaths(tree); | ||
| const basePath = process.cwd(); | ||
| const allPaths = [...buildPaths, ...testPaths]; | ||
| const pathToMigrate = compiler_host.normalizePath(path.join(basePath, options.path)); | ||
| if (!allPaths.length) { | ||
| throw new schematics.SchematicsException('Could not find any tsconfig file. Cannot run the inject migration.'); | ||
| context.logger.warn('Could not find any tsconfig file. Cannot run the inject migration.'); | ||
| return; | ||
| } | ||
| let sourceFilesCount = 0; | ||
| for (const tsconfigPath of allPaths) { | ||
| runInjectMigration(tree, tsconfigPath, basePath, pathToMigrate, options); | ||
| const program = compiler_host.createMigrationProgram(tree, tsconfigPath, basePath); | ||
| const sourceFiles = program | ||
| .getSourceFiles() | ||
| .filter((sourceFile) => (pathToMigrate ? sourceFile.fileName.startsWith(pathToMigrate) : true) && | ||
| compiler_host.canMigrateFile(basePath, sourceFile, program)); | ||
| sourceFilesCount += runInjectMigration(tree, sourceFiles, basePath, options); | ||
| } | ||
| if (sourceFilesCount === 0) { | ||
| context.logger.warn('Inject migration did not find any files to migrate'); | ||
| } | ||
| }; | ||
| } | ||
| function runInjectMigration(tree, tsconfigPath, basePath, pathToMigrate, schematicOptions) { | ||
| if (schematicOptions.path.startsWith('..')) { | ||
| throw new schematics.SchematicsException('Cannot run inject migration outside of the current project.'); | ||
| } | ||
| const program = compiler_host.createMigrationProgram(tree, tsconfigPath, basePath); | ||
| const sourceFiles = program | ||
| .getSourceFiles() | ||
| .filter((sourceFile) => sourceFile.fileName.startsWith(pathToMigrate) && | ||
| compiler_host.canMigrateFile(basePath, sourceFile, program)); | ||
| if (sourceFiles.length === 0) { | ||
| throw new schematics.SchematicsException(`Could not find any files to migrate under the path ${pathToMigrate}. Cannot run the inject migration.`); | ||
| } | ||
| function runInjectMigration(tree, sourceFiles, basePath, schematicOptions) { | ||
| let migratedFiles = 0; | ||
| for (const sourceFile of sourceFiles) { | ||
@@ -1361,6 +1367,8 @@ const changes = migrateFile(sourceFile, schematicOptions); | ||
| tree.commitUpdate(update); | ||
| migratedFiles++; | ||
| } | ||
| } | ||
| return migratedFiles; | ||
| } | ||
| exports.migrate = migrate; |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| 'use strict'; | ||
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -5,0 +5,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
| /** | ||
| * @license Angular v21.2.5 | ||
| * @license Angular v21.2.6 | ||
| * (c) 2010-2026 Google LLC. https://angular.dev/ | ||
@@ -4,0 +4,0 @@ * License: MIT |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
6767170
0.01%66504
0.02%