New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@angular/core

Package Overview
Dependencies
Maintainers
2
Versions
1031
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular/core - npm Package Compare versions

Comparing version
21.2.5
to
21.2.6
+1
-1
fesm2022/_attribute-chunk.mjs
/**
* @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

{
"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