Skip to content

Commit

Permalink
fix: upgrade dependencies potential security vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
yantze committed Dec 24, 2021
1 parent 00d46fd commit 567a00b
Show file tree
Hide file tree
Showing 6 changed files with 233 additions and 276 deletions.
7 changes: 7 additions & 0 deletions build/pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,12 @@ electronBuilder.build({
mac: {
target: 'dmg',
},
win: {
artifactName: '${productName}-${version}.${ext}',
target: [{
target: 'nsis',
arch: ['x64'],
}],
},
}
})
4 changes: 2 additions & 2 deletions build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"private": true,
"dependencies": {
"vscode-ripgrep": "^1.3.1",
"node-pty": "0.10.1",
"node-pty": "0.10.0",
"nsfw": "2.1.2",
"spdlog": "0.11.1",
"vscode-oniguruma": "^1.5.1"
},
"__npminstall_done": false
}
}
16 changes: 8 additions & 8 deletions build/webpack.browser.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,17 +123,17 @@ module.exports = {
new HtmlWebpackPlugin({
template: path.join(srcDir, '/index.html'),
}),

new MiniCssExtractPlugin({
filename: '[name].[chunkhash:8].css',
chunkFilename: '[id].css',
}),
new CopyPlugin([
{ from: path.join(srcDir, './vendor'), to: distDir },
{
from: require.resolve('@opensumi/ide-core-electron-main/browser-preload/index.js'),
to: path.join(distDir, 'preload.js'),
},
]),
new CopyPlugin({
patterns: [
{
from: require.resolve('@opensumi/ide-core-electron-main/browser-preload/index.js'),
to: path.join(distDir, 'preload.js'),
},
]
}),
],
};
14 changes: 8 additions & 6 deletions build/webpack.webview.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ module.exports = {
moduleExtensions: ['-loader'],
},
plugins: [
new CopyPlugin([
{
from: require.resolve('@opensumi/ide-webview/lib/electron-webview/plain-preload.js'),
to: path.join(distDir, 'plain-preload.js'),
},
]),
new CopyPlugin({
patterns: [
{
from: require.resolve('@opensumi/ide-webview/lib/electron-webview/plain-preload.js'),
to: path.join(distDir, 'plain-preload.js'),
},
]
}),
],
};
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
"resolutions": {
"urllib": "2.37.3",
"requestretry": "6.0.0",
"y18n": "4.0.0"
"glob-parent": "5.1.2",
"y18n": "5.0.8",
"ansi-regex": "5.0.1"
},
"devDependencies": {
"@opensumi/di": "^1.1.0",
Expand Down Expand Up @@ -93,15 +95,13 @@
"@opensumi/ide-workspace": "^2.13.0",
"@opensumi/ide-workspace-edit": "^2.13.0",
"@typescript-eslint/eslint-plugin": "^4.22.0",
"clean-webpack-plugin": "^3.0.0",
"copy-webpack-plugin": "^5.0.3",
"copy-webpack-plugin": "^6.4.1",
"css-loader": "^2.1.1",
"electron": "13.6.2",
"electron-builder": "^22.14.5",
"eslint": "^7.25.0",
"eslint-plugin-react": "^7.23.2",
"file-loader": "^3.0.1",
"friendly-errors-webpack-plugin": "^1.7.0",
"fs-extra": "^8.1.0",
"glob-to-regexp": "0.4.1",
"html-webpack-plugin": "^3.2.0",
Expand All @@ -113,7 +113,6 @@
"mini-css-extract-plugin": "^0.6.0",
"mobx": "^5.9.4",
"mobx-react-lite": "^1.3.1",
"node-notifier": "^5.4.0",
"npm-run": "^5.0.1",
"npm-run-all": "^4.1.5",
"null-loader": "^4.0.1",
Expand Down
Loading

0 comments on commit 567a00b

Please sign in to comment.