Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
if (
ts.isVariableDeclaration(node) &&
node.type &&
renameKeys.includes(node.type.getText(sourceFile))
) {
change = {
node: node.type,
text: node.type.getText(sourceFile),
};
}
if (change) {
changes.push(
createReplaceChange(
sourceFile,
change.node,
change.text,
(renames as any)[change.text]
)
);
}
ts.forEachChild(node, childNode => find(childNode, changes));
}
}
.map(({ specifier, text }) =>
createReplaceChange(
sourceFile,
specifier!,
text!,
(renames as any)[text!]
)
);
const changes = imports.map(specifier =>
createReplaceChange(
sourceFile,
specifier.moduleSpecifier,
"'ngrx-data'",
"'@ngrx/data'"
)
);