"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular_devkit/build_angular/src/webpack/plugins/index-html-webpack-plugin.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-html-webpack-plugin.ts  (angular-cli-12.0.3):index-html-webpack-plugin.ts  (angular-cli-12.0.4)
skipping to change at line 112 skipping to change at line 112
} }
async readAsset(path: string): Promise<string> { async readAsset(path: string): Promise<string> {
const data = this.compilation.assets[basename(path)].source(); const data = this.compilation.assets[basename(path)].source();
return typeof data === 'string' ? data : data.toString(); return typeof data === 'string' ? data : data.toString();
} }
protected async readIndex(path: string): Promise<string> { protected async readIndex(path: string): Promise<string> {
return new Promise<string>((resolve, reject) => { return new Promise<string>((resolve, reject) => {
this.compilation.inputFileSystem.readFile(path, (err?: Error, data?: strin this.compilation.inputFileSystem.readFile(
g | Buffer) => { path,
if (err) { (err?: Error | null, data?: string | Buffer) => {
reject(err); if (err) {
reject(err);
return; return;
} }
this.compilation.fileDependencies.add(path); this.compilation.fileDependencies.add(path);
resolve(data?.toString() ?? ''); resolve(data?.toString() ?? '');
}); },
);
}); });
} }
} }
 End of changes. 3 change blocks. 
9 lines changed or deleted 11 lines changed or added

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