"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "packages/angular_devkit/build_angular/src/webpack/plugins/karma/karma.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.

karma.ts  (angular-cli-12.0.3):karma.ts  (angular-cli-12.0.4)
skipping to change at line 304 skipping to change at line 304
if (webpackMiddleware) { if (webpackMiddleware) {
if (request.url && !new RegExp(`\\/${KARMA_APPLICATION_PATH}\\/.*`).test(r equest.url)) { if (request.url && !new RegExp(`\\/${KARMA_APPLICATION_PATH}\\/.*`).test(r equest.url)) {
request.url = '/' + KARMA_APPLICATION_PATH + request.url; request.url = '/' + KARMA_APPLICATION_PATH + request.url;
} }
webpackMiddleware(request, response, () => { webpackMiddleware(request, response, () => {
const alwaysServe = [ const alwaysServe = [
`/${KARMA_APPLICATION_PATH}/runtime.js`, `/${KARMA_APPLICATION_PATH}/runtime.js`,
`/${KARMA_APPLICATION_PATH}/polyfills.js`, `/${KARMA_APPLICATION_PATH}/polyfills.js`,
`/${KARMA_APPLICATION_PATH}/polyfills-es5.js`, `/${KARMA_APPLICATION_PATH}/polyfills-es5.js`,
`/${KARMA_APPLICATION_PATH}/scripts.js`, `/${KARMA_APPLICATION_PATH}/scripts.js`,
`/${KARMA_APPLICATION_PATH}/styles.js`, `/${KARMA_APPLICATION_PATH}/styles.css`,
`/${KARMA_APPLICATION_PATH}/vendor.js`, `/${KARMA_APPLICATION_PATH}/vendor.js`,
]; ];
if (request.url && alwaysServe.includes(request.url)) { if (request.url && alwaysServe.includes(request.url)) {
response.statusCode = 200; response.statusCode = 200;
response.end(); response.end();
} else { } else {
next(); next();
} }
}); });
} else { } else {
 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)