diff --git a/modules/common/file-utils.ts b/modules/common/file-utils.ts index 77f87b3..58def37 100644 --- a/modules/common/file-utils.ts +++ b/modules/common/file-utils.ts @@ -5,7 +5,6 @@ import * as crypto from 'crypto' import * as fileType from 'file-type' import * as readChunk from 'read-chunk' import * as rawBody from 'raw-body' -import { V4Options } from 'uuid' import { IImageFile, IOptimizeOptions, SupportedExt } from '../common/constants' export const tmpdir = path.resolve(os.tmpdir(), 'imageOptimizer') diff --git a/modules/renderer/components/TaskList.tsx b/modules/renderer/components/TaskList.tsx index 7c0a576..88c6d28 100644 --- a/modules/renderer/components/TaskList.tsx +++ b/modules/renderer/components/TaskList.tsx @@ -18,7 +18,7 @@ export interface ITaskListDispatchProps { onOptionsChange(task: ITaskItem, options: IOptimizeOptions): void } -export default class TaskList extends PureComponent { +export default class TaskList extends PureComponent { render() { if (this.props.tasks.length) { return ( diff --git a/modules/renderer/components/TaskView.tsx b/modules/renderer/components/TaskView.tsx index 06c08ba..a64928f 100644 --- a/modules/renderer/components/TaskView.tsx +++ b/modules/renderer/components/TaskView.tsx @@ -20,7 +20,7 @@ interface ITaskViewProps { onOptionsChange(task: ITaskItem, options: IOptimizeOptions): void } -class TaskView extends PureComponent { +class TaskView extends PureComponent { handleClear = (e: React.MouseEvent) => { e.preventDefault() e.stopPropagation() diff --git a/package.json b/package.json index 156b9fc..9c80b19 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "@types/electron-devtools-installer": "^2.0.2", "@types/file-type": "0.0.2", "@types/fs-extra": "^3.0.0", - "@types/jest": "^19.2.3", + "@types/jest": "^20.0.2", "@types/lodash": "^4.14.64", "@types/pify": "0.0.28", "@types/raw-body": "^2.1.4", @@ -31,7 +31,7 @@ "@types/react-redux": "^4.4.40", "@types/react-transition-group": "^1.1.0", "@types/redux-actions": "^1.2.4", - "@types/uuid": "^2.0.29", + "@types/uuid": "^3.0.0", "@types/webpack-dev-server": "^2.4.0", "babili-webpack-plugin": "^0.1.1", "classnames": "^2.2.5", @@ -39,7 +39,7 @@ "cross-env": "^5.0.1", "css-loader": "^0.28.1", "electron": "^1.6.10", - "electron-builder": "^18.2.2", + "electron-builder": "^19.7.1", "electron-devtools-installer": "^2.2.0", "extract-text-webpack-plugin": "^2.1.0", "file-loader": "^0.11.1", @@ -69,7 +69,7 @@ "dependencies": { "child-process-promise": "^2.2.1", "electron-log": "^2.2.6", - "file-type": "^4.2.0", + "file-type": "^5.2.0", "fs-extra": "^3.0.0", "lodash": "^4.17.4", "mozjpeg": "^4.1.1",