Skip to content

Commit 946b391

Browse files
authored
Merge pull request #912 from Particular/release-merge
Address security audit alerts (#910)
2 parents 00a1142 + 2545db5 commit 946b391

File tree

4 files changed

+2644
-6811
lines changed

4 files changed

+2644
-6811
lines changed

src/ServicePulse.Host/app/modules/configuration/js/configuration.service.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ class ConfigurationService {
5555
let headers = response.headers();
5656

5757
let allow = headers.allow;
58+
if (!headers.allow) {
59+
return false;
60+
}
61+
5862
let deleteAllowed = allow.indexOf(`DELETE`) >= 0;
5963

6064
return deleteAllowed;

src/ServicePulse.Host/app/modules/modules.webpackconfig.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require('path');
22
const CleanWebpackPlugin = require('clean-webpack-plugin');
33
const webpack = require('webpack');
4-
const ExtractTextPlugin = require('extract-text-webpack-plugin');
4+
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
55

66
module.exports = {
77
entry: {
@@ -23,7 +23,9 @@ module.exports = {
2323
new webpack.ProvidePlugin({
2424
moment: 'moment'
2525
}),
26-
new ExtractTextPlugin("vendor.css"),
26+
new MiniCssExtractPlugin({
27+
filename: 'vendor.css',
28+
})
2729
],
2830
module: {
2931
rules: [{
@@ -47,10 +49,7 @@ module.exports = {
4749
}]
4850
}, {
4951
test: /\.css$/,
50-
use: ExtractTextPlugin.extract({
51-
fallback: "style-loader",
52-
use: "css-loader"
53-
})
52+
use: [MiniCssExtractPlugin.loader, 'css-loader'],
5453
}, {
5554
test: require.resolve('jquery'), loader: 'expose-loader?$!expose-loader?jQuery'
5655
},

0 commit comments

Comments
 (0)