diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..fb1a017c4 --- /dev/null +++ b/.snyk @@ -0,0 +1,34 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - react-chartjs-2 > lodash: + patched: '2020-05-01T04:10:58.044Z' + - redux > lodash: + patched: '2020-05-01T04:10:58.044Z' + - react-dnd > lodash: + patched: '2020-05-01T04:10:58.044Z' + - react-dnd-html5-backend > lodash: + patched: '2020-05-01T04:10:58.044Z' + - react-redux > lodash: + patched: '2020-05-01T04:10:58.044Z' + - react-dnd > dnd-core > lodash: + patched: '2020-05-01T04:10:58.044Z' + - react-sortable-tree > react-dnd > lodash: + patched: '2020-05-01T04:10:58.044Z' + - react-sortable-tree > react-dnd-html5-backend > lodash: + patched: '2020-05-01T04:10:58.044Z' + - react-hot-loader > react-proxy > lodash: + patched: '2020-05-01T04:10:58.044Z' + - react-dnd > dnd-core > redux > lodash: + patched: '2020-05-01T04:10:58.044Z' + - react-sortable-tree > react-dnd > dnd-core > lodash: + patched: '2020-05-01T04:10:58.044Z' + - react-sortable-tree > react-dnd > dnd-core > redux > lodash: + patched: '2020-05-01T04:10:58.044Z' + - yup > lodash: + patched: '2020-05-01T04:10:58.044Z' + - lodash: + patched: '2020-05-01T04:10:58.044Z' diff --git a/package.json b/package.json index 0220dbe55..8b945d778 100644 --- a/package.json +++ b/package.json @@ -1,156 +1,160 @@ { - "name": "apla-front", - "version": "2.2.1", - "author": { - "name": "apla-front" - }, - "license": "GPLv2", - "repository": { - "type": "git", - "url": "https://github.com/AplaProject/apla-front" - }, - "private": true, - "main": "./electron/index.js", - "dependencies": { - "bluebird": "^3.5.1", - "centrifuge": "^1.4.6", - "chart.js": "^2.7.2", - "classnames": "^2.2.5", - "commander": "^2.15.1", - "connected-react-router": "^4.3.0", - "crypto-js": "^3.1.9-1", - "electron-devtools-installer": "^2.2.1", - "electron-squirrel-startup": "^1.0.0", - "electron-store": "^1.3.0", - "font-awesome": "^4.7.0", - "html2json": "^1.0.2", - "immutable": "^3.8.2", - "int64-buffer": "^0.1.9", - "js-beautify": "^1.7.5", - "jspolyfill-array.prototype.find": "^0.1.3", - "jsrsasign": "^8.0.3", - "lodash": "^4.17.12", - "long": "^4.0.0", - "msgpack-lite": "^0.1.26", - "prop-types": "^15.6.0", - "qrcode.react": "^0.7.2", - "query-string": "^5.1.0", - "random-js": "^1.0.8", - "react-arcgis": "^3.3.3", - "react-autosuggest": "^9.4.2", - "react-bootstrap": "^0.31.2", - "react-chartjs-2": "^2.7.2", - "react-contenteditable": "^2.0.7", - "react-copy-to-clipboard": "^5.0.1", - "react-cropper": "^1.0.0", - "react-custom-scrollbars": "^4.2.1", - "react-dnd": "^2.5.4", - "react-dnd-html5-backend": "^2.5.4", - "react-document-title": "^2.0.3", - "react-hot-loader": "^3.1.3", - "react-intl": "^2.4.0", - "react-measure": "^2.0.2", - "react-monaco-editor": "^0.25.1", - "react-onclickoutside": "^6.6.0", - "react-redux": "^5.0.6", - "react-router-dom": "^4.1.2", - "react-router-transition": "^1.1.0", - "react-sortable-tree": "^2.1.0", - "react-test-renderer": "^15.6.2", - "react-transition-group": "^2.2.1", - "redux": "^3.7.2", - "redux-localstorage": "^1.0.0-rc5", - "redux-localstorage-debounce": "^0.1.0", - "redux-localstorage-filter": "^0.1.1", - "redux-observable": "^0.16.0", - "route-parser": "^0.0.5", - "rxjs": "^5.4.3", - "simple-line-icons": "^2.4.1", - "sockjs-client": "^1.1.4", - "styled-components": "^2.1.2", - "typescript-fsa": "2.5.0", - "typescript-fsa-reducers": "^0.4.4", - "url-join": "^4.0.0", - "url-template": "^2.0.8", - "uuid": "^3.1.0", - "whatwg-fetch": "^2.0.4", - "yup": "^0.27.0" - }, - "scripts": { - "build-css": "node-sass-chokidar --include-path ./src/app/styles/scss --include-path ./node_modules src/app/styles/scss/sass.scss -o src/app/styles/built", - "watch-css": "npm run build-css && node-sass-chokidar --include-path ./src/app/styles/scss --include-path ./node_modules src/app/styles/scss/sass.scss -o src/app/styles/built --watch --recursive", - "start-js": "react-scripts-ts start", - "start": "cross-env REACT_APP_VERSION=$npm_package_version npm-run-all -p watch-css start-js", - "build": "npm run build-css && cross-env REACT_APP_VERSION=$npm_package_version react-scripts-ts build", - "test": "react-scripts-ts test --env=jsdom", - "eject": "react-scripts-ts eject", - "start-desktop": "cross-env REACT_APP_VERSION=$npm_package_version npm-run-all -p watch-css start-js-desktop", - "start-js-desktop": "react-scripts-ts-electron start", - "build-desktop": "npm run build-css && cross-env PUBLIC_URL=./ REACT_APP_VERSION=$npm_package_version react-scripts-ts-electron build", - "package": "electron-builder --config electron-builder.json --dir", - "release": "electron-builder --config electron-builder.json", - "serve": "now ./build -A ../now.json -n apla" - }, - "devDependencies": { - "@types/bluebird": "^3.5.18", - "@types/chart.js": "^2.7.22", - "@types/classnames": "^2.2.3", - "@types/crypto-js": "^3.1.43", - "@types/electron-store": "^1.3.0", - "@types/jest": "^21.1.8", - "@types/js-beautify": "^0.0.31", - "@types/lodash": "^4.14.107", - "@types/long": "^4.0.0", - "@types/markerclustererplus": "^2.1.33", - "@types/msgpack-lite": "^0.1.6", - "@types/node": "^8.0.57", - "@types/prop-types": "^15.5.2", - "@types/qrcode.react": "^0.6.2", - "@types/query-string": "^5.1.0", - "@types/random-js": "^1.0.30", - "@types/react-autosuggest": "^9.3.6", - "@types/react-bootstrap": "^0.0.52", - "@types/react-chartjs-2": "^2.5.7", - "@types/react-copy-to-clipboard": "^4.2.3", - "@types/react-cropper": "^0.10.1", - "@types/react-custom-scrollbars": "^4.0.5", - "@types/react-dnd": "^2.0.34", - "@types/react-dnd-html5-backend": "^2.1.8", - "@types/react-document-title": "^2.0.0", - "@types/react-intl": "^2.3.1", - "@types/react-measure": "^2.0.0", - "@types/react-onclickoutside": "^6.0.1", - "@types/react-places-autocomplete": "^6.1.3", - "@types/react-redux": "^5.0.4", - "@types/react-router-dom": "^4.0.7", - "@types/react-sortable-tree": "^0.1.4", - "@types/react-test-renderer": "^15.5.4", - "@types/react-transition-group": "^2.0.6", - "@types/redux-localstorage": "^1.0.8", - "@types/redux-localstorage-debounce": "^0.1.4", - "@types/redux-localstorage-filter": "^0.1.4", - "@types/route-parser": "^0.1.3", - "@types/rx": "^4.1.1", - "@types/sockjs-client": "^1.0.32", - "@types/url-join": "^0.8.2", - "@types/url-template": "^2.0.28", - "@types/uuid": "^3.4.3", - "@types/yup": "^0.26.12", - "cross-env": "^5.1.3", - "electron": "^3.0.10", - "electron-builder": "^20.0.4", - "node-sass-chokidar": "^0.0.3", - "npm-run-all": "^4.1.1", - "react": "^16.2.0", - "react-dom": "^16.2.0", - "react-scripts-ts": "^2.15.1", - "react-scripts-ts-electron": "git+https://git@github.com/GenesisKernel/cra-typescript-electron.git", - "ts-jest": "^22.4.4", - "tslint-react": "^3.2.0", - "typescript": "^2.8.3", - "typescript-react-intl": "^0.1.7" - }, - "resolutions": { - "**/event-stream": "^4.0.1" - } + "name": "apla-front", + "version": "2.2.1", + "author": { + "name": "apla-front" + }, + "license": "GPLv2", + "repository": { + "type": "git", + "url": "https://github.com/AplaProject/apla-front" + }, + "private": true, + "main": "./electron/index.js", + "dependencies": { + "bluebird": "^3.5.1", + "centrifuge": "^1.4.6", + "chart.js": "^2.7.2", + "classnames": "^2.2.5", + "commander": "^2.15.1", + "connected-react-router": "^4.3.0", + "crypto-js": "^3.1.9-1", + "electron-devtools-installer": "^2.2.1", + "electron-squirrel-startup": "^1.0.0", + "electron-store": "^1.3.0", + "font-awesome": "^4.7.0", + "html2json": "^1.0.2", + "immutable": "^3.8.2", + "int64-buffer": "^0.1.9", + "js-beautify": "^1.7.5", + "jspolyfill-array.prototype.find": "^0.1.3", + "jsrsasign": "^8.0.3", + "lodash": "^4.17.12", + "long": "^4.0.0", + "msgpack-lite": "^0.1.26", + "prop-types": "^15.6.0", + "qrcode.react": "^0.7.2", + "query-string": "^5.1.0", + "random-js": "^1.0.8", + "react-arcgis": "^3.3.3", + "react-autosuggest": "^9.4.2", + "react-bootstrap": "^0.31.2", + "react-chartjs-2": "^2.7.2", + "react-contenteditable": "^2.0.7", + "react-copy-to-clipboard": "^5.0.1", + "react-cropper": "^1.0.0", + "react-custom-scrollbars": "^4.2.1", + "react-dnd": "^2.5.4", + "react-dnd-html5-backend": "^2.5.4", + "react-document-title": "^2.0.3", + "react-hot-loader": "^3.1.3", + "react-intl": "^2.4.0", + "react-measure": "^2.0.2", + "react-monaco-editor": "^0.25.1", + "react-onclickoutside": "^6.6.0", + "react-redux": "^5.0.6", + "react-router-dom": "^4.1.2", + "react-router-transition": "^1.1.0", + "react-sortable-tree": "^2.1.0", + "react-test-renderer": "^15.6.2", + "react-transition-group": "^2.2.1", + "redux": "^3.7.2", + "redux-localstorage": "^1.0.0-rc5", + "redux-localstorage-debounce": "^0.1.0", + "redux-localstorage-filter": "^0.1.1", + "redux-observable": "^0.16.0", + "route-parser": "^0.0.5", + "rxjs": "^5.4.3", + "simple-line-icons": "^2.4.1", + "sockjs-client": "^1.1.4", + "styled-components": "^2.1.2", + "typescript-fsa": "2.5.0", + "typescript-fsa-reducers": "^0.4.4", + "url-join": "^4.0.0", + "url-template": "^2.0.8", + "uuid": "^3.1.0", + "whatwg-fetch": "^2.0.4", + "yup": "^0.27.0", + "snyk": "^1.316.1" + }, + "scripts": { + "build-css": "node-sass-chokidar --include-path ./src/app/styles/scss --include-path ./node_modules src/app/styles/scss/sass.scss -o src/app/styles/built", + "watch-css": "npm run build-css && node-sass-chokidar --include-path ./src/app/styles/scss --include-path ./node_modules src/app/styles/scss/sass.scss -o src/app/styles/built --watch --recursive", + "start-js": "react-scripts-ts start", + "start": "cross-env REACT_APP_VERSION=$npm_package_version npm-run-all -p watch-css start-js", + "build": "npm run build-css && cross-env REACT_APP_VERSION=$npm_package_version react-scripts-ts build", + "test": "react-scripts-ts test --env=jsdom", + "eject": "react-scripts-ts eject", + "start-desktop": "cross-env REACT_APP_VERSION=$npm_package_version npm-run-all -p watch-css start-js-desktop", + "start-js-desktop": "react-scripts-ts-electron start", + "build-desktop": "npm run build-css && cross-env PUBLIC_URL=./ REACT_APP_VERSION=$npm_package_version react-scripts-ts-electron build", + "package": "electron-builder --config electron-builder.json --dir", + "release": "electron-builder --config electron-builder.json", + "serve": "now ./build -A ../now.json -n apla", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" + }, + "devDependencies": { + "@types/bluebird": "^3.5.18", + "@types/chart.js": "^2.7.22", + "@types/classnames": "^2.2.3", + "@types/crypto-js": "^3.1.43", + "@types/electron-store": "^1.3.0", + "@types/jest": "^21.1.8", + "@types/js-beautify": "^0.0.31", + "@types/lodash": "^4.14.107", + "@types/long": "^4.0.0", + "@types/markerclustererplus": "^2.1.33", + "@types/msgpack-lite": "^0.1.6", + "@types/node": "^8.0.57", + "@types/prop-types": "^15.5.2", + "@types/qrcode.react": "^0.6.2", + "@types/query-string": "^5.1.0", + "@types/random-js": "^1.0.30", + "@types/react-autosuggest": "^9.3.6", + "@types/react-bootstrap": "^0.0.52", + "@types/react-chartjs-2": "^2.5.7", + "@types/react-copy-to-clipboard": "^4.2.3", + "@types/react-cropper": "^0.10.1", + "@types/react-custom-scrollbars": "^4.0.5", + "@types/react-dnd": "^2.0.34", + "@types/react-dnd-html5-backend": "^2.1.8", + "@types/react-document-title": "^2.0.0", + "@types/react-intl": "^2.3.1", + "@types/react-measure": "^2.0.0", + "@types/react-onclickoutside": "^6.0.1", + "@types/react-places-autocomplete": "^6.1.3", + "@types/react-redux": "^5.0.4", + "@types/react-router-dom": "^4.0.7", + "@types/react-sortable-tree": "^0.1.4", + "@types/react-test-renderer": "^15.5.4", + "@types/react-transition-group": "^2.0.6", + "@types/redux-localstorage": "^1.0.8", + "@types/redux-localstorage-debounce": "^0.1.4", + "@types/redux-localstorage-filter": "^0.1.4", + "@types/route-parser": "^0.1.3", + "@types/rx": "^4.1.1", + "@types/sockjs-client": "^1.0.32", + "@types/url-join": "^0.8.2", + "@types/url-template": "^2.0.28", + "@types/uuid": "^3.4.3", + "@types/yup": "^0.26.12", + "cross-env": "^5.1.3", + "electron": "^3.0.10", + "electron-builder": "^20.0.4", + "node-sass-chokidar": "^0.0.3", + "npm-run-all": "^4.1.1", + "react": "^16.2.0", + "react-dom": "^16.2.0", + "react-scripts-ts": "^2.15.1", + "react-scripts-ts-electron": "git+https://git@github.com/GenesisKernel/cra-typescript-electron.git", + "ts-jest": "^22.4.4", + "tslint-react": "^3.2.0", + "typescript": "^2.8.3", + "typescript-react-intl": "^0.1.7" + }, + "resolutions": { + "**/event-stream": "^4.0.1" + }, + "snyk": true } \ No newline at end of file