From f3232210ca55d4a93d853938a17386809c21889d Mon Sep 17 00:00:00 2001 From: HejdaJakub Date: Mon, 23 Oct 2023 09:30:37 +0200 Subject: [PATCH] build(npm): remove unused dependencies * These unused libraries have been removed: chart.js, core-js, ng2-charts, save, y18n, @nestjs/common, ajv, dotenv and ts-node. --- package-lock.json | 131 +++------------------------------------------- package.json | 35 +++++-------- 2 files changed, 20 insertions(+), 146 deletions(-) diff --git a/package-lock.json b/package-lock.json index 819197e11..36a87d724 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,24 +28,19 @@ "@swimlane/ngx-graph": "^8.2.2", "angular-oauth2-oidc": "^13.0.1", "bootstrap": "5.2.3", - "chart.js": "^4.1.1", - "core-js": "^3.27.1", "d3-graphviz": "^5.0.2", "d3-shape": "^3.1.0", "dompurify": "^2.4.3", "eslint-plugin-unused-imports": "^2.0.0", "file-saver": "^2.0.5", "moment-timezone": "^0.5.35", - "ng2-charts": "^4.1.1", "ngx-mat-select-search": "7.0.2", "ngx-scrollbar": "^10.0.1", "npm": "^9.8.0", "pdfmake": "^0.2.7", "rxjs": "7.8.1", - "save": "^2.4.0", "tinycolor2": "1.6.0", "tslib": "^2.3.1", - "y18n": "^5.0.8", "zone.js": "0.13.1" }, "devDependencies": { @@ -61,7 +56,6 @@ "@commitlint/cli": "^17.6.6", "@commitlint/config-conventional": "^17.6.6", "@commitlint/cz-commitlint": "^17.5.0", - "@nestjs/common": "^9.4.2", "@nx/cypress": "16.10.0", "@nx/eslint-plugin": "16.10.0", "@nx/jest": "16.10.0", @@ -78,12 +72,10 @@ "@types/node": "16.11.25", "@typescript-eslint/eslint-plugin": "5.62.0", "@typescript-eslint/parser": "5.62.0", - "ajv": "^8.12.0", "commitizen": "^4.3.0", "conventional-changelog-conventionalcommits": "^6.1.0", "cypress": "^13.3.1", "cypress-fail-on-console-error": "^4.0.2", - "dotenv": "10.0.0", "eslint": "8.22.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-cypress": "^2.12.1", @@ -96,7 +88,6 @@ "prettier": "2.7.1", "semantic-release": "^21.0.7", "ts-jest": "29.1.1", - "ts-node": "10.8.2", "typescript": "4.9.3", "webpack-bundle-analyzer": "^4.5.0" } @@ -5335,11 +5326,6 @@ "@jridgewell/sourcemap-codec": "1.4.14" } }, - "node_modules/@kurkle/color": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.1.tgz", - "integrity": "sha512-hW0GwZj06z/ZFUW2Espl7toVDjghJN+EKqyXzPSV8NV89d5BYp5rRMBJoc+aUN0x5OXDMeRQHazejr2Xmqj2tw==" - }, "node_modules/@leichtgewicht/ip-codec": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz", @@ -6125,6 +6111,7 @@ "resolved": "https://registry.npmjs.org/@nestjs/common/-/common-9.4.2.tgz", "integrity": "sha512-sea+qZnbD5x3YWZDVQT/wbVJ2NiABaM1tyZTLuW9hpkcM2KFA96xKtK3VaCxyz49zoXIgSOefsyK7HuUMCe27Q==", "dev": true, + "peer": true, "dependencies": { "iterare": "1.2.1", "tslib": "2.5.2", @@ -6157,13 +6144,15 @@ "version": "2.5.2", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz", "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==", - "dev": true + "dev": true, + "peer": true }, "node_modules/@nestjs/common/node_modules/uid": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/uid/-/uid-2.0.2.tgz", "integrity": "sha512-u3xV3X7uzvi5b1MncmZo3i2Aw222Zk1keqLA1YkHldREkAhAqi65wuPfe7lHx8H/Wzy+8CE7S7uS3jekIM5s8g==", "dev": true, + "peer": true, "dependencies": { "@lukeed/csprng": "^1.0.0" }, @@ -12207,17 +12196,6 @@ "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==" }, - "node_modules/chart.js": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.1.1.tgz", - "integrity": "sha512-P0pCosNXp+LR8zO/QTkZKT6Hb7p0DPFtypEeVOf+6x06hX13NIb75R0DXUA4Ksx/+48chDQKtCCmRCviQRTqsA==", - "dependencies": { - "@kurkle/color": "^0.3.0" - }, - "engines": { - "pnpm": "^7.0.0" - } - }, "node_modules/check-error": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/check-error/-/check-error-1.0.2.tgz", @@ -13083,16 +13061,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/core-js": { - "version": "3.27.1", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.27.1.tgz", - "integrity": "sha512-GutwJLBChfGCpwwhbYoqfv03LAfmiz7e7D/BNxzeMxwQf10GRSzqiOjx7AmtEk+heiD/JWmBuyBPgFtx0Sg1ww==", - "hasInstallScript": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/core-js-compat": { "version": "3.31.1", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.31.1.tgz", @@ -14510,15 +14478,6 @@ "node": ">=8" } }, - "node_modules/dotenv": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", - "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", - "dev": true, - "engines": { - "node": ">=10" - } - }, "node_modules/dotenv-expand": { "version": "10.0.0", "resolved": "https://registry.npmjs.org/dotenv-expand/-/dotenv-expand-10.0.0.tgz", @@ -15785,20 +15744,6 @@ "es5-ext": "~0.10.14" } }, - "node_modules/event-stream": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/event-stream/-/event-stream-4.0.1.tgz", - "integrity": "sha512-qACXdu/9VHPBzcyhdOWR5/IahhGMf0roTeZJfzz077GwylcDd90yOHLouhmv7GJ5XzPi6ekaQWd8AvPP2nOvpA==", - "dependencies": { - "duplexer": "^0.1.1", - "from": "^0.1.7", - "map-stream": "0.0.7", - "pause-stream": "^0.0.11", - "split": "^1.0.1", - "stream-combiner": "^0.2.2", - "through": "^2.3.8" - } - }, "node_modules/eventemitter-asyncresource": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/eventemitter-asyncresource/-/eventemitter-asyncresource-1.0.0.tgz", @@ -16627,11 +16572,6 @@ "node": ">= 0.6" } }, - "node_modules/from": { - "version": "0.1.7", - "resolved": "https://registry.npmjs.org/from/-/from-0.1.7.tgz", - "integrity": "sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==" - }, "node_modules/from2": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/from2/-/from2-2.3.0.tgz", @@ -20751,12 +20691,8 @@ "node_modules/lodash-es": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", - "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" - }, - "node_modules/lodash.assign": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.assign/-/lodash.assign-4.2.0.tgz", - "integrity": "sha512-hFuH8TY+Yji7Eja3mGiuAxBqLagejScbG8GbG0j6o9vzn0YL14My+ktnqtZgFTosKymC9/44wP6s7xyuLfnClw==" + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==", + "dev": true }, "node_modules/lodash.camelcase": { "version": "4.3.0", @@ -21171,11 +21107,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/map-stream": { - "version": "0.0.7", - "resolved": "https://registry.npmjs.org/map-stream/-/map-stream-0.0.7.tgz", - "integrity": "sha512-C0X0KQmGm3N2ftbTGBhSyuydQ+vV1LC3f3zPvT3RXHXNZrvfPZcoXp/N5DOa8vedX/rTMm2CjTtivFg2STJMRQ==" - }, "node_modules/marked": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", @@ -21503,11 +21434,6 @@ "node": ">=4" } }, - "node_modules/mingo": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/mingo/-/mingo-1.3.3.tgz", - "integrity": "sha512-Y4wGTD/M7AMqF8QxKaBGps+axq/Z48hdtRAeiKtInkEXMLzUWUwT0OPDzrB26xrav9GF1AOYJfwVWPcLwnkgTA==" - }, "node_modules/mini-css-extract-plugin": { "version": "2.7.6", "resolved": "https://registry.npmjs.org/mini-css-extract-plugin/-/mini-css-extract-plugin-2.7.6.tgz", @@ -21833,22 +21759,6 @@ "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" }, - "node_modules/ng2-charts": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ng2-charts/-/ng2-charts-4.1.1.tgz", - "integrity": "sha512-iHwXDbmX86lfeH8VRcsaW2tJATsuAZo4kvvC/Yk2l35zOHjevja1qBvO6BAibiDazi9r9aS6ZRJOqWPsz1pP2w==", - "dependencies": { - "lodash-es": "^4.17.15", - "tslib": "^2.3.0" - }, - "peerDependencies": { - "@angular/cdk": ">=14.0.0", - "@angular/common": ">=14.0.0", - "@angular/core": ">=14.0.0", - "chart.js": "^3.4.0 || ^4.0.0", - "rxjs": "^6.5.3 || ^7.4.0" - } - }, "node_modules/ngx-mat-select-search": { "version": "7.0.2", "resolved": "https://registry.npmjs.org/ngx-mat-select-search/-/ngx-mat-select-search-7.0.2.tgz", @@ -26026,14 +25936,6 @@ "node": "*" } }, - "node_modules/pause-stream": { - "version": "0.0.11", - "resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz", - "integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==", - "dependencies": { - "through": "~2.3" - } - }, "node_modules/pdfmake": { "version": "0.2.7", "resolved": "https://registry.npmjs.org/pdfmake/-/pdfmake-0.2.7.tgz", @@ -27899,17 +27801,6 @@ } } }, - "node_modules/save": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/save/-/save-2.5.0.tgz", - "integrity": "sha512-xiVLpKVbx8EmW0HDkNRjYL271OnIRCo8VGWAEq6/K+E0dgNrwKV2xvKXdfPj6HGYA6l760800LyewSY3ooljCg==", - "dependencies": { - "async": "^3.2.2", - "event-stream": "^4.0.1", - "lodash.assign": "^4.2.0", - "mingo": "1" - } - }, "node_modules/sax": { "version": "1.2.4", "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", @@ -28905,6 +28796,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/split/-/split-1.0.1.tgz", "integrity": "sha512-mTyOoPbrivtXnwnIxZRFYRrPNtEFKlpB2fvjSnCQUiAA6qAZzqwna5envK4uk6OIeP17CsdF3rSBGYVBsU0Tkg==", + "dev": true, "dependencies": { "through": "2" }, @@ -29215,15 +29107,6 @@ "node": ">= 0.8" } }, - "node_modules/stream-combiner": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.2.2.tgz", - "integrity": "sha512-6yHMqgLYDzQDcAkL+tjJDC5nSNuNIx0vZtRZeiPh7Saef7VHX9H5Ijn9l2VIol2zaNYlYEX6KyuT/237A58qEQ==", - "dependencies": { - "duplexer": "~0.1.1", - "through": "~2.3.4" - } - }, "node_modules/stream-combiner2": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", diff --git a/package.json b/package.json index 04a18cdd2..72f2c44f1 100644 --- a/package.json +++ b/package.json @@ -55,30 +55,25 @@ "@angular/router": "16.2.9", "@ngx-translate/core": "^14.0.0", "@ngx-translate/http-loader": "^7.0.0", + "@nx/angular": "16.10.0", "@swimlane/ngx-charts": "^20.4.1", "@swimlane/ngx-graph": "^8.2.2", "angular-oauth2-oidc": "^13.0.1", "bootstrap": "5.2.3", - "chart.js": "^4.1.1", - "core-js": "^3.27.1", "d3-graphviz": "^5.0.2", "d3-shape": "^3.1.0", "dompurify": "^2.4.3", "eslint-plugin-unused-imports": "^2.0.0", "file-saver": "^2.0.5", "moment-timezone": "^0.5.35", - "ng2-charts": "^4.1.1", "ngx-mat-select-search": "7.0.2", "ngx-scrollbar": "^10.0.1", "npm": "^9.8.0", "pdfmake": "^0.2.7", "rxjs": "7.8.1", - "save": "^2.4.0", "tinycolor2": "1.6.0", "tslib": "^2.3.1", - "y18n": "^5.0.8", - "zone.js": "0.13.1", - "@nx/angular": "16.10.0" + "zone.js": "0.13.1" }, "devDependencies": { "@angular-devkit/build-angular": "16.2.6", @@ -90,7 +85,9 @@ "@angular/cli": "~16.2.0", "@angular/compiler-cli": "16.2.9", "@angular/language-service": "16.2.9", - "@nestjs/common": "^9.4.2", + "@commitlint/cli": "^17.6.6", + "@commitlint/config-conventional": "^17.6.6", + "@commitlint/cz-commitlint": "^17.5.0", "@nx/cypress": "16.10.0", "@nx/eslint-plugin": "16.10.0", "@nx/jest": "16.10.0", @@ -98,39 +95,33 @@ "@nx/workspace": "16.10.0", "@openapitools/openapi-generator-cli": "^2.7.0", "@schematics/angular": "16.2.6", + "@semantic-release/changelog": "^6.0.3", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^9.0.3", "@types/dompurify": "^2.4.0", "@types/file-saver": "^2.0.5", "@types/jest": "29.4.4", "@types/node": "16.11.25", "@typescript-eslint/eslint-plugin": "5.62.0", "@typescript-eslint/parser": "5.62.0", - "ajv": "^8.12.0", + "commitizen": "^4.3.0", + "conventional-changelog-conventionalcommits": "^6.1.0", "cypress": "^13.3.1", "cypress-fail-on-console-error": "^4.0.2", - "dotenv": "10.0.0", "eslint": "8.22.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-cypress": "^2.12.1", "eslint-plugin-import": "^2.25.4", + "inquirer": "^8.2.5", "jest": "29.5.0", "jest-environment-jsdom": "29.5.0", "jest-preset-angular": "13.1.2", "nx": "16.10.0", "prettier": "2.7.1", + "semantic-release": "^21.0.7", "ts-jest": "29.1.1", - "ts-node": "10.8.2", "typescript": "4.9.3", - "webpack-bundle-analyzer": "^4.5.0", - "@commitlint/cli": "^17.6.6", - "@commitlint/config-conventional": "^17.6.6", - "@commitlint/cz-commitlint": "^17.5.0", - "@semantic-release/changelog": "^6.0.3", - "@semantic-release/git": "^10.0.1", - "@semantic-release/github": "^9.0.3", - "commitizen": "^4.3.0", - "conventional-changelog-conventionalcommits": "^6.1.0", - "inquirer": "^8.2.5", - "semantic-release": "^21.0.7" + "webpack-bundle-analyzer": "^4.5.0" }, "config": { "commitizen": {