New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@angular/core

Package Overview
Dependencies
Maintainers
2
Versions
883
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 19.2.0-next.3 to 19.2.0-rc.0

schematics/bundles/apply_import_manager-a930fcf1.js

2

package.json
{
"name": "@angular/core",
"version": "19.2.0-next.3",
"version": "19.2.0-rc.0",
"description": "Angular - the core framework",

@@ -5,0 +5,0 @@ "author": "angular",

/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

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

/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -283,3 +283,3 @@ * License: MIT

export declare function setThrowInvalidWriteToSignalError(fn: () => never): void;
export declare function setThrowInvalidWriteToSignalError(fn: <T>(node: SignalNode<T>) => never): void;

@@ -286,0 +286,0 @@ /**

/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

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

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -13,9 +13,10 @@ * License: MIT

var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
var apply_import_manager = require('./apply_import_manager-f4d044b2.js');
var project_paths = require('./project_paths-b073c4d6.js');
require('os');
var ts = require('typescript');
var checker = require('./checker-32db85a6.js');
var program = require('./program-507de2f1.js');
var checker = require('./checker-2eecc677.js');
var program = require('./program-24da9092.js');
require('path');
require('./index-7ee8967e.js');
require('./index-3891dd55.js');
var apply_import_manager = require('./apply_import_manager-a930fcf1.js');
require('@angular-devkit/core');

@@ -32,3 +33,3 @@ require('node:path/posix');

/** Migration that cleans up unused imports from a project. */
class UnusedImportsMigration extends apply_import_manager.TsurgeFunnelMigration {
class UnusedImportsMigration extends project_paths.TsurgeFunnelMigration {
printer = ts__default["default"].createPrinter();

@@ -72,6 +73,6 @@ createProgram(tsconfigAbsPath, fs) {

});
return apply_import_manager.confirmAsSerializable({ replacements, removedIdentifiers, changedFiles });
return project_paths.confirmAsSerializable({ replacements, removedIdentifiers, changedFiles });
}
async migrate(globalData) {
return apply_import_manager.confirmAsSerializable(globalData);
return project_paths.confirmAsSerializable(globalData);
}

@@ -100,3 +101,3 @@ async combine(unitA, unitB) {

});
return apply_import_manager.confirmAsSerializable({
return project_paths.confirmAsSerializable({
replacements: combinedReplacements,

@@ -108,3 +109,3 @@ removedIdentifiers: combinedRemovedIdentifiers,

async globalMeta(combinedData) {
return apply_import_manager.confirmAsSerializable(combinedData);
return project_paths.confirmAsSerializable(combinedData);
}

@@ -236,3 +237,3 @@ async stats(globalMetadata) {

fullRemovals.forEach((node) => {
replacements.push(new apply_import_manager.Replacement(apply_import_manager.projectFile(sourceFile, info), new apply_import_manager.TextUpdate({
replacements.push(new project_paths.Replacement(project_paths.projectFile(sourceFile, info), new project_paths.TextUpdate({
position: node.getStart(),

@@ -246,3 +247,3 @@ end: node.getEnd(),

const newNode = ts__default["default"].factory.updateArrayLiteralExpression(node, node.elements.filter((el) => !toRemove.has(el)));
replacements.push(new apply_import_manager.Replacement(apply_import_manager.projectFile(sourceFile, info), new apply_import_manager.TextUpdate({
replacements.push(new project_paths.Replacement(project_paths.projectFile(sourceFile, info), new project_paths.TextUpdate({
position: node.getStart(),

@@ -283,3 +284,3 @@ end: node.getEnd(),

}
const fs = new apply_import_manager.DevkitMigrationFilesystem(tree);
const fs = new project_paths.DevkitMigrationFilesystem(tree);
checker.setFileSystem(fs);

@@ -298,3 +299,3 @@ const migration = new UnusedImportsMigration();

}
const combined = await apply_import_manager.synchronouslyCombineUnitData(migration, unitResults);
const combined = await project_paths.synchronouslyCombineUnitData(migration, unitResults);
if (combined === null) {

@@ -307,3 +308,3 @@ context.logger.error('Schematic failed unexpectedly with no analysis data');

const { replacements } = await migration.migrate(globalMeta);
const changesPerFile = apply_import_manager.groupReplacementsByFile(replacements);
const changesPerFile = project_paths.groupReplacementsByFile(replacements);
for (const [file, changes] of changesPerFile) {

@@ -310,0 +311,0 @@ if (!replacementsPerFile.has(file)) {

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -14,7 +14,7 @@ * License: MIT

var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
var compiler_host = require('./compiler_host-540e221c.js');
var compiler_host = require('./compiler_host-c280a924.js');
var ts = require('typescript');
var imports = require('./imports-abe29092.js');
require('@angular-devkit/core');
require('./checker-32db85a6.js');
require('./checker-2eecc677.js');
require('os');

@@ -21,0 +21,0 @@ require('fs');

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

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

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -13,8 +13,9 @@ * License: MIT

var p = require('path');
var compiler_host = require('./compiler_host-540e221c.js');
var compiler_host = require('./compiler_host-c280a924.js');
var ts = require('typescript');
var nodes = require('./nodes-a9f0b985.js');
var ng_decorators = require('./ng_decorators-e699c081.js');
var imports = require('./imports-abe29092.js');
var nodes = require('./nodes-a535b2be.js');
var leading_space = require('./leading_space-d190b83b.js');
require('./checker-32db85a6.js');
require('./checker-2eecc677.js');
require('os');

@@ -129,3 +130,3 @@ require('fs');

else if (ts__default["default"].isClassDeclaration(node)) {
const decorators = nodes.getAngularDecorators(localTypeChecker, ts__default["default"].getDecorators(node) || []);
const decorators = ng_decorators.getAngularDecorators(localTypeChecker, ts__default["default"].getDecorators(node) || []);
const isAbstract = !!node.modifiers?.some((m) => m.kind === ts__default["default"].SyntaxKind.AbstractKeyword);

@@ -143,3 +144,3 @@ const supportsDI = decorators.some((dec) => DECORATORS_SUPPORTING_DI.has(dec.name));

}
return nodes.getAngularDecorators(localTypeChecker, ts__default["default"].getDecorators(param) || []).some((dec) => dec.name === 'Inject' || dec.name === 'Attribute');
return ng_decorators.getAngularDecorators(localTypeChecker, ts__default["default"].getDecorators(param) || []).some((dec) => dec.name === 'Inject' || dec.name === 'Attribute');
});

@@ -828,3 +829,3 @@ // Don't migrate abstract classes by default, because

const sourceFile = param.getSourceFile();
const decorators = nodes.getAngularDecorators(localTypeChecker, ts__default["default"].getDecorators(param) || []);
const decorators = ng_decorators.getAngularDecorators(localTypeChecker, ts__default["default"].getDecorators(param) || []);
const literalProps = [];

@@ -831,0 +832,0 @@ const type = param.type;

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

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

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -13,9 +13,10 @@ * License: MIT

var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
var apply_import_manager = require('./apply_import_manager-f4d044b2.js');
var project_paths = require('./project_paths-b073c4d6.js');
require('os');
var ts = require('typescript');
var checker = require('./checker-32db85a6.js');
var program = require('./program-507de2f1.js');
var checker = require('./checker-2eecc677.js');
var program = require('./program-24da9092.js');
require('path');
var index = require('./index-d5020c9c.js');
var apply_import_manager = require('./apply_import_manager-a930fcf1.js');
var index = require('./index-24a2ad1e.js');
require('@angular-devkit/core');

@@ -99,3 +100,3 @@ require('node:path/posix');

function getUniqueIdForProperty(info, prop) {
const { id } = apply_import_manager.projectFile(prop.getSourceFile(), info);
const { id } = project_paths.projectFile(prop.getSourceFile(), info);
id.replace(/\.d\.ts$/, '.ts');

@@ -179,3 +180,3 @@ return `${id}@@${prop.parent.name ?? 'unknown-class'}@@${prop.name.getText()}`;

const addRemove = [];
const file = apply_import_manager.projectFile(sf, info);
const file = project_paths.projectFile(sf, info);
importManager.addImport({

@@ -236,3 +237,3 @@ requestedFile: sf,

const sf = node.getSourceFile();
return new apply_import_manager.Replacement(apply_import_manager.projectFile(sf, info), new apply_import_manager.TextUpdate({
return new project_paths.Replacement(project_paths.projectFile(sf, info), new project_paths.TextUpdate({
position: start ?? node.getStart(),

@@ -244,3 +245,3 @@ end: node.getEnd(),

function prepareTextReplacement(file, replacement, start, end) {
return new apply_import_manager.Replacement(file, new apply_import_manager.TextUpdate({
return new project_paths.Replacement(file, new project_paths.TextUpdate({
position: start,

@@ -252,3 +253,3 @@ end: end,

class OutputMigration extends apply_import_manager.TsurgeFunnelMigration {
class OutputMigration extends project_paths.TsurgeFunnelMigration {
config;

@@ -304,3 +305,3 @@ constructor(config = {}) {

};
const outputFile = apply_import_manager.projectFile(node.getSourceFile(), info);
const outputFile = project_paths.projectFile(node.getSourceFile(), info);
if (this.config.shouldMigrate === undefined ||

@@ -333,3 +334,3 @@ this.config.shouldMigrate({

const id = getUniqueIdForProperty(info, propertyDeclaration);
const outputFile = apply_import_manager.projectFile(node.getSourceFile(), info);
const outputFile = project_paths.projectFile(node.getSourceFile(), info);
addOutputReplacement(outputFieldReplacements, id, outputFile, calculateNextFnReplacement(info, node.expression.name));

@@ -343,3 +344,3 @@ }

const id = getUniqueIdForProperty(info, propertyDeclaration);
const outputFile = apply_import_manager.projectFile(node.getSourceFile(), info);
const outputFile = project_paths.projectFile(node.getSourceFile(), info);
if (ts__default["default"].isExpressionStatement(node.parent)) {

@@ -363,3 +364,3 @@ addOutputReplacement(outputFieldReplacements, id, outputFile, calculateCompleteCallReplacement(info, node.parent));

if (isTestFile) {
const outputFile = apply_import_manager.projectFile(node.getSourceFile(), info);
const outputFile = project_paths.projectFile(node.getSourceFile(), info);
addOutputReplacement(outputFieldReplacements, id, outputFile, ...calculatePipeCallReplacement(info, node));

@@ -408,3 +409,3 @@ }

const importReplacements = calculateImportReplacements(info, filesWithOutputDeclarations);
return apply_import_manager.confirmAsSerializable({
return project_paths.confirmAsSerializable({
problematicDeclarationCount,

@@ -439,3 +440,3 @@ outputFields: outputFieldReplacements,

}
return apply_import_manager.confirmAsSerializable({
return project_paths.confirmAsSerializable({
problematicDeclarationCount,

@@ -462,3 +463,3 @@ outputFields,

// Noop here as we don't have any form of special global metadata.
return apply_import_manager.confirmAsSerializable(combinedData);
return project_paths.confirmAsSerializable(combinedData);
}

@@ -526,3 +527,3 @@ async stats(globalMetadata) {

}
const fs = new apply_import_manager.DevkitMigrationFilesystem(tree);
const fs = new project_paths.DevkitMigrationFilesystem(tree);
checker.setFileSystem(fs);

@@ -557,3 +558,3 @@ const migration = new OutputMigration({

context.logger.info(``);
const combined = await apply_import_manager.synchronouslyCombineUnitData(migration, unitResults);
const combined = await project_paths.synchronouslyCombineUnitData(migration, unitResults);
if (combined === null) {

@@ -568,3 +569,3 @@ context.logger.error('Migration failed unexpectedly with no analysis data');

const { replacements } = await migration.migrate(globalMeta);
const changesPerFile = apply_import_manager.groupReplacementsByFile(replacements);
const changesPerFile = project_paths.groupReplacementsByFile(replacements);
for (const [file, changes] of changesPerFile) {

@@ -571,0 +572,0 @@ if (!replacementsPerFile.has(file)) {

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -14,7 +14,7 @@ * License: MIT

var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
var compiler_host = require('./compiler_host-540e221c.js');
var compiler_host = require('./compiler_host-c280a924.js');
var ts = require('typescript');
var imports = require('./imports-abe29092.js');
require('@angular-devkit/core');
require('./checker-32db85a6.js');
require('./checker-2eecc677.js');
require('os');

@@ -21,0 +21,0 @@ require('fs');

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

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

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -14,7 +14,7 @@ * License: MIT

var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
var compiler_host = require('./compiler_host-540e221c.js');
var compiler_host = require('./compiler_host-c280a924.js');
var ts = require('typescript');
var imports = require('./imports-abe29092.js');
require('@angular-devkit/core');
require('./checker-32db85a6.js');
require('./checker-2eecc677.js');
require('os');

@@ -21,0 +21,0 @@ require('fs');

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -14,6 +14,7 @@ * License: MIT

var p = require('path');
var compiler_host = require('./compiler_host-540e221c.js');
var compiler_host = require('./compiler_host-c280a924.js');
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
var ts = require('typescript');
var checker = require('./checker-32db85a6.js');
var checker = require('./checker-2eecc677.js');
var property_name = require('./property_name-7c8433f5.js');
require('os');

@@ -40,7 +41,2 @@ require('@angular-devkit/core');

/** Finds a property with a specific name in an object literal expression. */
function findLiteralProperty(literal, name) {
return literal.properties.find((prop) => prop.name && ts__default["default"].isIdentifier(prop.name) && prop.name.text === name);
}
/*!

@@ -69,3 +65,3 @@ * @license

if (ts__default["default"].isObjectLiteralExpression(arg)) {
const property = findLiteralProperty(arg, 'standalone');
const property = property_name.findLiteralProperty(arg, 'standalone');
if (property) {

@@ -276,6 +272,6 @@ return property.initializer.getText() === 'true';

const importsToRemove = [];
const component = findLiteralProperty(element, 'component');
const component = property_name.findLiteralProperty(element, 'component');
// this can be empty string or a variable that is not a string, or not present at all
const routePath = findLiteralProperty(element, 'path')?.getText() ?? '';
const children = findLiteralProperty(element, 'children');
const routePath = property_name.findLiteralProperty(element, 'path')?.getText() ?? '';
const children = property_name.findLiteralProperty(element, 'children');
// recursively migrate children routes first if they exist

@@ -282,0 +278,0 @@ if (children && ts__default["default"].isArrayLiteralExpression(children.initializer)) {

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -13,11 +13,12 @@ * License: MIT

var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
var apply_import_manager = require('./apply_import_manager-f4d044b2.js');
var project_paths = require('./project_paths-b073c4d6.js');
require('os');
var ts = require('typescript');
var checker = require('./checker-32db85a6.js');
var program = require('./program-507de2f1.js');
var checker = require('./checker-2eecc677.js');
var program = require('./program-24da9092.js');
require('path');
var migrate_ts_type_references = require('./migrate_ts_type_references-26986908.js');
var apply_import_manager = require('./apply_import_manager-a930fcf1.js');
var migrate_ts_type_references = require('./migrate_ts_type_references-71b3a951.js');
var assert = require('assert');
var index = require('./index-d5020c9c.js');
var index = require('./index-24a2ad1e.js');
require('@angular-devkit/core');

@@ -67,3 +68,3 @@ require('node:path/posix');

: `()`;
host.replacements.push(new apply_import_manager.Replacement(apply_import_manager.projectFile(bindingField.getSourceFile(), info), new apply_import_manager.TextUpdate({ position: readEndPos, end: readEndPos, toInsert: appendText })));
host.replacements.push(new project_paths.Replacement(project_paths.projectFile(bindingField.getSourceFile(), info), new project_paths.TextUpdate({ position: readEndPos, end: readEndPos, toInsert: appendText })));
}

@@ -97,3 +98,3 @@ }

: `()`;
host.replacements.push(new apply_import_manager.Replacement(reference.from.templateFile, new apply_import_manager.TextUpdate({
host.replacements.push(new project_paths.Replacement(reference.from.templateFile, new project_paths.TextUpdate({
position: reference.from.read.sourceSpan.end,

@@ -229,3 +230,3 @@ end: reference.from.read.sourceSpan.end,

return [
new apply_import_manager.Replacement(apply_import_manager.projectFile(node.getSourceFile(), info), new apply_import_manager.TextUpdate({
new project_paths.Replacement(project_paths.projectFile(node.getSourceFile(), info), new project_paths.TextUpdate({
position: node.getStart(),

@@ -271,3 +272,3 @@ end: node.getEnd(),

}
const id = apply_import_manager.projectFile(property.getSourceFile(), info).id.replace(/\.d\.ts$/, '.ts');
const id = project_paths.projectFile(property.getSourceFile(), info).id.replace(/\.d\.ts$/, '.ts');
// Note: If a class is nested, there could be an ID clash.

@@ -396,3 +397,3 @@ // This is highly unlikely though, and this is not a problem because

const descriptor = { key: id, node: queryField };
const file = apply_import_manager.projectFile(queryField.getSourceFile(), this.info);
const file = project_paths.projectFile(queryField.getSourceFile(), this.info);
if (this.config.shouldMigrateQuery !== undefined &&

@@ -596,3 +597,3 @@ !this.config.shouldMigrateQuery(descriptor, file)) {

const toArrayExpr = toArrayCallExpr.expression;
replacements.push(new apply_import_manager.Replacement(apply_import_manager.projectFile(toArrayExpr.getSourceFile(), info), new apply_import_manager.TextUpdate({
replacements.push(new project_paths.Replacement(project_paths.projectFile(toArrayExpr.getSourceFile(), info), new project_paths.TextUpdate({
// Delete from expression end to call end. E.g. `.toArray(<..>)`.

@@ -612,3 +613,3 @@ position: toArrayExpr.expression.getEnd(),

const offset = index.isHostBindingReference(ref) ? ref.from.hostPropertyNode.getStart() + 1 : 0;
replacements.push(new apply_import_manager.Replacement(file, new apply_import_manager.TextUpdate({
replacements.push(new project_paths.Replacement(file, new project_paths.TextUpdate({
// Delete from expression end to call end. E.g. `.toArray(<..>)`.

@@ -637,3 +638,3 @@ position: offset + callExpr.receiver.receiver.sourceSpan.end,

const getExpr = getCallExpr.expression;
replacements.push(new apply_import_manager.Replacement(apply_import_manager.projectFile(getExpr.getSourceFile(), info), new apply_import_manager.TextUpdate({
replacements.push(new project_paths.Replacement(project_paths.projectFile(getExpr.getSourceFile(), info), new project_paths.TextUpdate({
position: getExpr.name.getStart(),

@@ -652,3 +653,3 @@ end: getExpr.name.getEnd(),

const offset = index.isHostBindingReference(ref) ? ref.from.hostPropertyNode.getStart() + 1 : 0;
replacements.push(new apply_import_manager.Replacement(file, new apply_import_manager.TextUpdate({
replacements.push(new project_paths.Replacement(file, new project_paths.TextUpdate({
position: offset + callExpr.receiver.nameSpan.start,

@@ -708,3 +709,3 @@ end: offset + callExpr.receiver.nameSpan.end,

}
replacements.push(new apply_import_manager.Replacement(apply_import_manager.projectFile(expr.getSourceFile(), info), new apply_import_manager.TextUpdate({
replacements.push(new project_paths.Replacement(project_paths.projectFile(expr.getSourceFile(), info), new project_paths.TextUpdate({
position: expr.name.getStart(),

@@ -723,3 +724,3 @@ end: expr.name.getEnd(),

const offset = index.isHostBindingReference(ref) ? ref.from.hostPropertyNode.getStart() + 1 : 0;
replacements.push(new apply_import_manager.Replacement(file, new apply_import_manager.TextUpdate({
replacements.push(new project_paths.Replacement(file, new project_paths.TextUpdate({
position: offset + expr.nameSpan.start,

@@ -731,3 +732,3 @@ end: offset + expr.nameSpan.end,

class SignalQueriesMigration extends apply_import_manager.TsurgeComplexMigration {
class SignalQueriesMigration extends project_paths.TsurgeComplexMigration {
config;

@@ -770,3 +771,3 @@ constructor(config = {}) {

};
const containingFile = apply_import_manager.projectFile(queryNode.getSourceFile(), info);
const containingFile = project_paths.projectFile(queryNode.getSourceFile(), info);
// If we have a config filter function, use it here for later

@@ -875,3 +876,3 @@ // perf-boosted reference lookups. Useful in non-batch mode.

}
return apply_import_manager.confirmAsSerializable(res);
return project_paths.confirmAsSerializable(res);
}

@@ -916,3 +917,3 @@ async combine(unitA, unitB) {

}
return apply_import_manager.confirmAsSerializable(combined);
return project_paths.confirmAsSerializable(combined);
}

@@ -930,3 +931,3 @@ async globalMeta(combinedData) {

}
return apply_import_manager.confirmAsSerializable(globalUnitData);
return project_paths.confirmAsSerializable(globalUnitData);
}

@@ -1136,3 +1137,3 @@ async migrate(globalMetadata, info) {

}
const fs = new apply_import_manager.DevkitMigrationFilesystem(tree);
const fs = new project_paths.DevkitMigrationFilesystem(tree);
checker.setFileSystem(fs);

@@ -1169,3 +1170,3 @@ const migration = new SignalQueriesMigration({

context.logger.info(``);
const combined = await apply_import_manager.synchronouslyCombineUnitData(migration, unitResults);
const combined = await project_paths.synchronouslyCombineUnitData(migration, unitResults);
if (combined === null) {

@@ -1180,3 +1181,3 @@ context.logger.error('Migration failed unexpectedly with no analysis data');

const { replacements } = await migration.migrate(globalMeta, info);
const changesPerFile = apply_import_manager.groupReplacementsByFile(replacements);
const changesPerFile = project_paths.groupReplacementsByFile(replacements);
for (const [file, changes] of changesPerFile) {

@@ -1183,0 +1184,0 @@ if (!replacementsPerFile.has(file)) {

'use strict';
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (c) 2010-2024 Google LLC. https://angular.io/

@@ -17,7 +17,7 @@ * License: MIT

require('@angular-devkit/core');
require('./apply_import_manager-f4d044b2.js');
require('./project_paths-b073c4d6.js');
require('node:path/posix');
require('os');
require('typescript');
require('./checker-32db85a6.js');
require('./checker-2eecc677.js');
require('fs');

@@ -27,6 +27,7 @@ require('module');

require('url');
require('./program-507de2f1.js');
require('./migrate_ts_type_references-26986908.js');
require('./program-24da9092.js');
require('./apply_import_manager-a930fcf1.js');
require('./migrate_ts_type_references-71b3a951.js');
require('assert');
require('./index-d5020c9c.js');
require('./index-24a2ad1e.js');
require('./leading_space-d190b83b.js');

@@ -33,0 +34,0 @@

@@ -54,4 +54,10 @@ {

"schema": "./ng-generate/cleanup-unused-imports/schema.json"
},
"self-closing-tags-migration": {
"description": "Updates the components templates to use self-closing tags where possible",
"factory": "./bundles/self-closing-tags-migration#migrate",
"schema": "./ng-generate/self-closing-tags-migration/schema.json",
"aliases": ["self-closing-tag"]
}
}
}
/**
* @license Angular v19.2.0-next.3
* @license Angular v19.2.0-rc.0
* (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 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

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