"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/schematics/angular/directive/index.ts" between
angular-cli-12.0.3.tar.gz and angular-cli-12.0.4.tar.gz

About: Angular CLI is a command line interface for Angular.

index.ts  (angular-cli-12.0.3):index.ts  (angular-cli-12.0.4)
skipping to change at line 113 skipping to change at line 113
} }
return strings.camelize(selector); return strings.camelize(selector);
} }
export default function (options: DirectiveOptions): Rule { export default function (options: DirectiveOptions): Rule {
return async (host: Tree) => { return async (host: Tree) => {
const workspace = await getWorkspace(host); const workspace = await getWorkspace(host);
const project = workspace.projects.get(options.project as string); const project = workspace.projects.get(options.project as string);
if (!project) { if (!project) {
throw new SchematicsException(`Invalid project name (${options.project})`) ; throw new SchematicsException(`Project "${options.project}" does not exist .`);
} }
if (options.path === undefined) { if (options.path === undefined) {
options.path = buildDefaultPath(project); options.path = buildDefaultPath(project);
} }
options.module = findModuleFromOptions(host, options); options.module = findModuleFromOptions(host, options);
const parsedPath = parseName(options.path, options.name); const parsedPath = parseName(options.path, options.name);
options.name = parsedPath.name; options.name = parsedPath.name;
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)