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
877
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.1.0-next.4 to 19.1.0-rc.0

schematics/bundles/apply_import_manager-6508401d.js

2

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

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

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

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

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

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

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

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

'use strict';
/**
* @license Angular v19.1.0-next.4
* @license Angular v19.1.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-22f6513d.js');
var compiler_host = require('./compiler_host-5f693799.js');
var ts = require('typescript');
var imports = require('./imports-abe29092.js');
require('@angular-devkit/core');
require('./checker-884633eb.js');
require('./checker-24b68d23.js');
require('os');

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

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

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

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

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

var p = require('path');
var compiler_host = require('./compiler_host-22f6513d.js');
var compiler_host = require('./compiler_host-5f693799.js');
var ts = require('typescript');

@@ -19,3 +19,3 @@ var nodes = require('./nodes-a9f0b985.js');

var leading_space = require('./leading_space-d190b83b.js');
require('./checker-884633eb.js');
require('./checker-24b68d23.js');
require('os');

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

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

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

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

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

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

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

var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
var combine_units = require('./combine_units-4a95b1b9.js');
var apply_import_manager = require('./apply_import_manager-6508401d.js');
require('os');
var ts = require('typescript');
var checker = require('./checker-884633eb.js');
var program = require('./program-094352ba.js');
var checker = require('./checker-24b68d23.js');
var program = require('./program-c810a4c2.js');
require('path');
var index = require('./index-767e341d.js');
require('@angular-devkit/core');

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

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

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

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

@@ -185,6 +186,6 @@ requestedFile: sf,

});
combine_units.applyImportManagerChanges(importManager, addOnly, [sf], info);
apply_import_manager.applyImportManagerChanges(importManager, addOnly, [sf], info);
importManager.removeImport(sf, 'Output', '@angular/core');
importManager.removeImport(sf, 'EventEmitter', '@angular/core');
combine_units.applyImportManagerChanges(importManager, addRemove, [sf], info);
apply_import_manager.applyImportManagerChanges(importManager, addRemove, [sf], info);
importReplacements[file.id] = {

@@ -226,3 +227,3 @@ add: addOnly,

];
combine_units.applyImportManagerChanges(importManager, replacements, [sf], info);
apply_import_manager.applyImportManagerChanges(importManager, replacements, [sf], info);
return replacements;

@@ -237,3 +238,3 @@ }

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

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

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

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

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

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

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

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

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

@@ -344,3 +345,3 @@ }

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

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

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

@@ -382,3 +383,3 @@ }

const referenceResult = { references: [] };
const { visitor: templateHostRefVisitor } = combine_units.createFindAllSourceFileReferencesVisitor(info, checker$1, reflector, resourceLoader, evaluator, templateTypeChecker, knownFields, null, // TODO: capture known output names as an optimization
const { visitor: templateHostRefVisitor } = index.createFindAllSourceFileReferencesVisitor(info, checker$1, reflector, resourceLoader, evaluator, templateTypeChecker, knownFields, null, // TODO: capture known output names as an optimization
referenceResult);

@@ -391,3 +392,3 @@ // calculate template / host binding replacements

// detect .next usages that should be migrated to .emit in template and host binding expressions
if (ref.kind === combine_units.ReferenceKind.InTemplate) {
if (ref.kind === index.ReferenceKind.InTemplate) {
const callExpr = checkNonTsReferenceCallsField(ref, 'next');

@@ -402,3 +403,3 @@ // TODO: here and below for host bindings, we should ideally filter in the global meta stage

}
else if (ref.kind === combine_units.ReferenceKind.InHostBinding) {
else if (ref.kind === index.ReferenceKind.InHostBinding) {
const callExpr = checkNonTsReferenceCallsField(ref, 'next');

@@ -412,3 +413,3 @@ if (callExpr !== null && outputFieldReplacements[ref.target.key] !== undefined) {

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

@@ -443,3 +444,3 @@ outputFields: outputFieldReplacements,

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

@@ -466,3 +467,3 @@ outputFields,

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

@@ -530,3 +531,3 @@ async stats(globalMetadata) {

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

@@ -561,3 +562,3 @@ const migration = new OutputMigration({

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

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

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

@@ -575,0 +576,0 @@ if (!replacementsPerFile.has(file)) {

'use strict';
/**
* @license Angular v19.1.0-next.4
* @license Angular v19.1.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-22f6513d.js');
var compiler_host = require('./compiler_host-5f693799.js');
var ts = require('typescript');
var imports = require('./imports-abe29092.js');
require('@angular-devkit/core');
require('./checker-884633eb.js');
require('./checker-24b68d23.js');
require('os');

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

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

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

'use strict';
/**
* @license Angular v19.1.0-next.4
* @license Angular v19.1.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-22f6513d.js');
var compiler_host = require('./compiler_host-5f693799.js');
var ts = require('typescript');
var imports = require('./imports-abe29092.js');
require('@angular-devkit/core');
require('./checker-884633eb.js');
require('./checker-24b68d23.js');
require('os');

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

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

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

var p = require('path');
var compiler_host = require('./compiler_host-22f6513d.js');
var compiler_host = require('./compiler_host-5f693799.js');
var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
var ts = require('typescript');
var checker = require('./checker-884633eb.js');
var checker = require('./checker-24b68d23.js');
require('os');

@@ -20,0 +20,0 @@ require('@angular-devkit/core');

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

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

var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
var combine_units = require('./combine_units-4a95b1b9.js');
var apply_import_manager = require('./apply_import_manager-6508401d.js');
require('os');
var ts = require('typescript');
var checker = require('./checker-884633eb.js');
var program = require('./program-094352ba.js');
var checker = require('./checker-24b68d23.js');
var program = require('./program-c810a4c2.js');
require('path');
var migrate_ts_type_references = require('./migrate_ts_type_references-4b11f3f2.js');
var migrate_ts_type_references = require('./migrate_ts_type_references-bc7d8784.js');
var assert = require('assert');
var index = require('./index-767e341d.js');
require('@angular-devkit/core');

@@ -42,3 +43,3 @@ require('node:path/posix');

// This pass only deals with host binding references.
if (!combine_units.isHostBindingReference(reference)) {
if (!index.isHostBindingReference(reference)) {
continue;

@@ -67,3 +68,3 @@ }

: `()`;
host.replacements.push(new combine_units.Replacement(combine_units.projectFile(bindingField.getSourceFile(), info), new combine_units.TextUpdate({ position: readEndPos, end: readEndPos, toInsert: appendText })));
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 })));
}

@@ -80,3 +81,3 @@ }

// This pass only deals with HTML template references.
if (!combine_units.isTemplateReference(reference)) {
if (!index.isTemplateReference(reference)) {
continue;

@@ -98,3 +99,3 @@ }

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

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

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

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

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

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

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

@@ -512,3 +513,3 @@ !this.config.shouldMigrateQuery(descriptor, file)) {

function checkTsReferenceAccessesField(ref, fieldName) {
const accessNode = combine_units.traverseAccess(ref.from.node);
const accessNode = index.traverseAccess(ref.from.node);
// Check if the reference is part of a property access.

@@ -582,3 +583,3 @@ if (!ts__default["default"].isPropertyAccessExpression(accessNode.parent) ||

function removeQueryListToArrayCall(ref, info, globalMetadata, knownQueries, replacements) {
if (!combine_units.isHostBindingReference(ref) && !combine_units.isTemplateReference(ref) && !combine_units.isTsReference(ref)) {
if (!index.isHostBindingReference(ref) && !index.isTemplateReference(ref) && !index.isTsReference(ref)) {
return;

@@ -593,3 +594,3 @@ }

// TS references.
if (combine_units.isTsReference(ref)) {
if (index.isTsReference(ref)) {
const toArrayCallExpr = checkTsReferenceCallsField(ref, 'toArray');

@@ -600,3 +601,3 @@ if (toArrayCallExpr === null) {

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

@@ -614,5 +615,5 @@ position: toArrayExpr.expression.getEnd(),

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

@@ -626,3 +627,3 @@ position: offset + callExpr.receiver.receiver.sourceSpan.end,

function replaceQueryListGetCall(ref, info, globalMetadata, knownQueries, replacements) {
if (!combine_units.isHostBindingReference(ref) && !combine_units.isTemplateReference(ref) && !combine_units.isTsReference(ref)) {
if (!index.isHostBindingReference(ref) && !index.isTemplateReference(ref) && !index.isTsReference(ref)) {
return;

@@ -636,3 +637,3 @@ }

}
if (combine_units.isTsReference(ref)) {
if (index.isTsReference(ref)) {
const getCallExpr = checkTsReferenceCallsField(ref, 'get');

@@ -643,3 +644,3 @@ if (getCallExpr === null) {

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

@@ -656,5 +657,5 @@ end: getExpr.name.getEnd(),

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

@@ -675,3 +676,3 @@ end: offset + callExpr.receiver.nameSpan.end,

function checkForIncompatibleQueryListAccesses(ref, result) {
if (combine_units.isTsReference(ref)) {
if (index.isTsReference(ref)) {
for (const problematicFn of problematicQueryListMethods) {

@@ -685,3 +686,3 @@ const access = checkTsReferenceAccessesField(ref, problematicFn);

}
if (combine_units.isHostBindingReference(ref) || combine_units.isTemplateReference(ref)) {
if (index.isHostBindingReference(ref) || index.isTemplateReference(ref)) {
for (const problematicFn of problematicQueryListMethods) {

@@ -702,3 +703,3 @@ const access = checkNonTsReferenceAccessesField(ref, problematicFn);

function replaceQueryListFirstAndLastReferences(ref, info, globalMetadata, knownQueries, replacements) {
if (!combine_units.isHostBindingReference(ref) && !combine_units.isTemplateReference(ref) && !combine_units.isTsReference(ref)) {
if (!index.isHostBindingReference(ref) && !index.isTemplateReference(ref) && !index.isTsReference(ref)) {
return;

@@ -712,3 +713,3 @@ }

}
if (combine_units.isTsReference(ref)) {
if (index.isTsReference(ref)) {
const expr = checkTsReferenceAccessesField(ref, 'first') ?? checkTsReferenceAccessesField(ref, 'last');

@@ -718,3 +719,3 @@ if (expr === null) {

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

@@ -731,5 +732,5 @@ end: expr.name.getEnd(),

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

@@ -741,3 +742,3 @@ end: offset + expr.nameSpan.end,

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

@@ -780,3 +781,3 @@ constructor(config = {}) {

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

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

};
groupedAstVisitor.register(combine_units.createFindAllSourceFileReferencesVisitor(info, checker$1, reflector, resourceLoader, evaluator, templateTypeChecker, allFieldsOrKnownQueries,
groupedAstVisitor.register(index.createFindAllSourceFileReferencesVisitor(info, checker$1, reflector, resourceLoader, evaluator, templateTypeChecker, allFieldsOrKnownQueries,
// In non-batch mode, we know what inputs exist and can optimize the reference

@@ -869,6 +870,6 @@ // resolution significantly (for e.g. VSCode integration)— as we know what

for (const ref of referenceResult.references) {
if (combine_units.isTsReference(ref) && ref.from.isWrite) {
if (index.isTsReference(ref) && ref.from.isWrite) {
markFieldIncompatibleInMetadata(res.potentialProblematicQueries, ref.target.key, migrate_ts_type_references.FieldIncompatibilityReason.WriteAssignment);
}
if ((combine_units.isTemplateReference(ref) || combine_units.isHostBindingReference(ref)) && ref.from.isWrite) {
if ((index.isTemplateReference(ref) || index.isHostBindingReference(ref)) && ref.from.isWrite) {
markFieldIncompatibleInMetadata(res.potentialProblematicQueries, ref.target.key, migrate_ts_type_references.FieldIncompatibilityReason.WriteAssignment);

@@ -878,3 +879,3 @@ }

// https://github.com/angular/angular/pull/55456.
if (combine_units.isTemplateReference(ref) && ref.from.isLikelyPartOfNarrowing) {
if (index.isTemplateReference(ref) && ref.from.isLikelyPartOfNarrowing) {
markFieldIncompatibleInMetadata(res.potentialProblematicQueries, ref.target.key, migrate_ts_type_references.FieldIncompatibilityReason.PotentiallyNarrowedInTemplateButNoSupportYet);

@@ -888,3 +889,3 @@ }

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

@@ -929,3 +930,3 @@ async combine(unitA, unitB) {

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

@@ -943,3 +944,3 @@ async globalMeta(combinedData) {

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

@@ -1007,3 +1008,3 @@ async migrate(globalMetadata, info) {

else {
groupedAstVisitor.register(combine_units.createFindAllSourceFileReferencesVisitor(info, checker$1, reflector, resourceLoader, evaluator, templateTypeChecker, knownQueries, fieldNamesToConsiderForReferenceLookup, referenceResult).visitor);
groupedAstVisitor.register(index.createFindAllSourceFileReferencesVisitor(info, checker$1, reflector, resourceLoader, evaluator, templateTypeChecker, knownQueries, fieldNamesToConsiderForReferenceLookup, referenceResult).visitor);
}

@@ -1081,3 +1082,3 @@ // Check inheritance.

}
combine_units.applyImportManagerChanges(importManager, replacements, sourceFiles, info);
apply_import_manager.applyImportManagerChanges(importManager, replacements, sourceFiles, info);
return { replacements, knownQueries };

@@ -1145,3 +1146,3 @@ }

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

@@ -1178,3 +1179,3 @@ const migration = new SignalQueriesMigration({

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

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

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

@@ -1192,0 +1193,0 @@ if (!replacementsPerFile.has(file)) {

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

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

require('@angular-devkit/core');
require('./combine_units-4a95b1b9.js');
require('./apply_import_manager-6508401d.js');
require('node:path/posix');
require('os');
require('typescript');
require('./checker-884633eb.js');
require('./checker-24b68d23.js');
require('fs');

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

require('url');
require('./program-094352ba.js');
require('./migrate_ts_type_references-4b11f3f2.js');
require('./program-c810a4c2.js');
require('./migrate_ts_type_references-bc7d8784.js');
require('assert');
require('./index-767e341d.js');
require('./leading_space-d190b83b.js');

@@ -32,0 +33,0 @@

@@ -49,4 +49,9 @@ {

"schema": "./ng-generate/signals/schema.json"
},
"cleanup-unused-imports": {
"description": "Removes unused imports from standalone components.",
"factory": "./bundles/cleanup-unused-imports#migrate",
"schema": "./ng-generate/cleanup-unused-imports/schema.json"
}
}
}
/**
* @license Angular v19.1.0-next.4
* @license Angular v19.1.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 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

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