From 2d97d4417dab41173aea347ff988037448d82da0 Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Thu, 7 Jul 2022 17:31:00 +0300 Subject: [PATCH] perf: deps revision --- package.json | 20 ++++++------- src/test/ts/transmitter.ts | 2 -- yarn.lock | 61 +++++++++++--------------------------- 3 files changed, 26 insertions(+), 57 deletions(-) diff --git a/package.json b/package.json index 031caf8..9dbc0df 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "description": "Async adapter to save & deliver reasonable events to some endpoint", "private": false, "main": "./target/es5/index.js", - "source": "target/ts/index.ts", "exports": { "require": "./target/es5/index.js", "import": "./target/es6/index.js", @@ -26,13 +25,13 @@ "lint": "eslint src/**/*.{ts,js}", "lint:fix": "yarn lint --fix", "format": "prettier --write \"src/**/*.ts\"", - "test:deps": "npm-run-all -p -l test:depcheck test:depauditfix", - "test:depcheck": "npx depcheck --ignores tslib,@swissquote/crafty-preset-jest,@types/jest,@types/node,typedoc", + "test": "yarn test:unit && yarn test:target && yarn lint", + "test:deps": "npm-run-all -p -l test:depcheck", + "test:depcheck": "npx depcheck --ignores='tslib,tsc-esm-fix,tsm,@types/node,typedoc,@qiwi/esm,globby-cp'", "test:depaudit": "yarn audit --groups dependencies --level=moderate; [[ $? -ge 4 ]] && exit 1 || exit 0", "test:depauditfix": "npx yarn-audit-fix --audit-level=moderate", - "test": "yarn test:unit && yarn test:target && yarn lint", "test:unit": "c8 -r html -r text -r lcov loadr -- uvu 'src/test/ts'", - "test:target": "uvu -r esm 'src/test/js'", + "test:target": "uvu -r @qiwi/esm 'src/test/js'", "prebuild": "yarn clean && npx buildstamp --git --out.path buildstamp.json", "build": "npm-run-all -p -l build:es5 build:es6 build:ts build:libdef build:bundle docs", "build:es5": "mkdirp target/es5 && tsc -p tsconfig.es5.json && yarn", @@ -70,20 +69,19 @@ "tslib": "^2.4.0" }, "devDependencies": { + "@qiwi/esm": "^1.1.7", "@qiwi/libdefkit": "^4.0.8", "@qiwi/npm-run-all": "^4.1.7", "@types/lodash.once": "^4.1.7", "@types/lodash.set": "^4.3.7", - "@types/node": "^18.0.0", + "@types/node": "^18.0.3", "@types/safe-json-stringify": "^1.1.2", "c8": "^7.11.3", "coveralls": "^3.1.1", - "cross-fetch": "^3.1.5", - "eslint": "^8.18.0", + "eslint": "^8.19.0", "eslint-config-prettier": "^8.5.0", "eslint-config-qiwi": "^1.17.3", - "esm": "^3.2.25", - "globby-cp": "^0.0.2", + "globby-cp": "^1.1.1", "loadr": "^0.1.1", "microbundle": "^0.15.0", "mkdirp": "^1.0.4", @@ -93,7 +91,7 @@ "terser": "^5.14.1", "tsc-esm-fix": "^2.18.0", "tsm": "^2.2.1", - "typedoc": "^0.23.2", + "typedoc": "^0.23.5", "typescript": "4.7.4", "uvu": "^0.5.6" }, diff --git a/src/test/ts/transmitter.ts b/src/test/ts/transmitter.ts index 9c73b8d..d0ee63a 100644 --- a/src/test/ts/transmitter.ts +++ b/src/test/ts/transmitter.ts @@ -1,5 +1,3 @@ -// import 'cross-fetch/polyfill' - import { test } from 'uvu' import * as assert from 'uvu/assert' diff --git a/yarn.lock b/yarn.lock index bef6287..2efc25e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1110,6 +1110,11 @@ glob "^7.1.6" mkdirp "^1.0.4" +"@qiwi/esm@^1.1.7": + version "1.1.7" + resolved "https://registry.yarnpkg.com/@qiwi/esm/-/esm-1.1.7.tgz#fc740641ee42328ff703191cec8277dff61e5564" + integrity sha512-t6rywkOIWVWd9MiGf/822EAag1fq6CpxP32IT+tkIXrs+RY0XR61anOn/cZSmhjDFpTgGhW6GvELus8mlkvsyw== + "@qiwi/libdefkit@^4.0.8": version "4.0.8" resolved "https://registry.yarnpkg.com/@qiwi/libdefkit/-/libdefkit-4.0.8.tgz#2a7aebc8ec2b6eed0d3211133555510c4e157a64" @@ -1319,7 +1324,7 @@ dependencies: "@types/node" "*" -"@types/node@*", "@types/node@^18.0.0": +"@types/node@*": version "18.0.1" resolved "https://registry.yarnpkg.com/@types/node/-/node-18.0.1.tgz#e91bd73239b338557a84d1f67f7b9e0f25643870" integrity sha512-CmR8+Tsy95hhwtZBKJBs0/FFq4XX7sDZHlGGf+0q+BRZfMbOTkzkj0AFAuTyXbObDIoanaBBW0+KEW+m3N16Wg== @@ -1329,6 +1334,11 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.35.tgz#42c953a4e2b18ab931f72477e7012172f4ffa313" integrity sha512-Lt+wj8NVPx0zUmUwumiVXapmaLUcAk3yPuHCFVXras9k5VT9TdhJqKqGVUQCD60OTMCl0qxJ57OiTL0Mic3Iag== +"@types/node@^18.0.3": + version "18.0.3" + resolved "https://registry.yarnpkg.com/@types/node/-/node-18.0.3.tgz#463fc47f13ec0688a33aec75d078a0541a447199" + integrity sha512-HzNRZtp4eepNitP+BD6k2L6DROIDG4Q0fm4x+dwfsr6LGmROENnok75VGw40628xf+iR24WeMFcHuuBDUAzzsQ== + "@types/normalize-package-data@^2.4.0": version "2.4.1" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301" @@ -1942,13 +1952,6 @@ coveralls@^3.1.1: minimist "^1.2.5" request "^2.88.2" -cross-fetch@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/cross-fetch/-/cross-fetch-3.1.5.tgz#e1389f44d9e7ba767907f7af8454787952ab534f" - integrity sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw== - dependencies: - node-fetch "2.6.7" - cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" @@ -2631,7 +2634,7 @@ eslint-visitor-keys@^3.3.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== -eslint@^8.18.0: +eslint@^8.19.0: version "8.19.0" resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.19.0.tgz#7342a3cbc4fbc5c106a1eefe0fd0b50b6b1a7d28" integrity sha512-SXOPj3x9VKvPe81TjjUJCYlV4oJjQw68Uek+AM0X4p+33dj2HY5bpTZOgnQHcG2eAm1mtCU9uNMnJi7exU/kYw== @@ -2672,11 +2675,6 @@ eslint@^8.18.0: text-table "^0.2.0" v8-compile-cache "^2.0.3" -esm@^3.2.25: - version "3.2.25" - resolved "https://registry.yarnpkg.com/esm/-/esm-3.2.25.tgz#342c18c29d56157688ba5ce31f8431fbb795cc10" - integrity sha512-U1suiZ2oDVWv4zPO56S0NcR5QriEahGtdN2OR6FiOG4WJvcjBVFB0qI4+eKoWFH483PKGuLuu6V8Z4T5g63UVA== - espree@^9.3.2: version "9.3.2" resolved "https://registry.yarnpkg.com/espree/-/espree-9.3.2.tgz#f58f77bd334731182801ced3380a8cc859091596" @@ -3058,10 +3056,10 @@ globalyzer@0.1.0: resolved "https://registry.yarnpkg.com/globalyzer/-/globalyzer-0.1.0.tgz#cb76da79555669a1519d5a8edf093afaa0bf1465" integrity sha512-40oNTM9UfG6aBmuKxk/giHn5nQ8RVz/SS4Ir6zgzOv9/qC3kKZ9v4etGTcJbEl/NyVQH7FGU7d+X1egr57Md2Q== -globby-cp@^0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/globby-cp/-/globby-cp-0.0.2.tgz#5d4375a66a5fb59f82fbc3b6103515c12122198d" - integrity sha512-8F+ovHz+39mDtf+9LZ3r4j82+6sUYWalNs647MX5yNgRHf66lkJRY7hDPqpKvSTQgUasQjLkAcAr/Otx94XdEQ== +globby-cp@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/globby-cp/-/globby-cp-1.1.1.tgz#7e6de81a4ec390c58a69c3bd36a01b37256e55f0" + integrity sha512-Gk9RALz17+fvz1czS0hnvoJ7fryB69lraZqzvEF9qvVDdGfaxgHHgrXFdyYT6i5V1+jy8qmm4y5Yukk4SPdmlg== dependencies: fs-extra "^10.1.0" globby "^13.1.2" @@ -3951,13 +3949,6 @@ natural-compare@^1.4.0: resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== -node-fetch@2.6.7: - version "2.6.7" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.7.tgz#24de9fba827e3b4ae44dc8b20256a379160052ad" - integrity sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ== - dependencies: - whatwg-url "^5.0.0" - node-releases@^2.0.5: version "2.0.5" resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.5.tgz#280ed5bc3eba0d96ce44897d8aee478bfb3d9666" @@ -5320,11 +5311,6 @@ tough-cookie@~2.5.0: psl "^1.1.28" punycode "^2.1.1" -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" - integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== - trim-newlines@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-4.0.2.tgz#d6aaaf6a0df1b4b536d183879a6b939489808c7c" @@ -5425,7 +5411,7 @@ type-fest@^2.12.2: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-2.16.0.tgz#1250fbd64dafaf4c8e405e393ef3fb16d9651db2" integrity sha512-qpaThT2HQkFb83gMOrdKVsfCN7LKxP26Yq+smPzY1FqoHRjqmjqHXA7n5Gkxi8efirtbeEUxzfEdePthQWCuHw== -typedoc@^0.23.2: +typedoc@^0.23.5: version "0.23.5" resolved "https://registry.yarnpkg.com/typedoc/-/typedoc-0.23.5.tgz#a28a3eeca739b6ae9ca6081f429bfe52dc28423b" integrity sha512-5ydWUOe4E9Z3a/r33cC5X5CJPLnFDKIondHYtdnEnO0sa/s8f+Nrfe+LBGOk/UTkV2IPYyL1Gm1PtUKIihklyw== @@ -5576,19 +5562,6 @@ vscode-textmate@5.2.0: resolved "https://registry.yarnpkg.com/vscode-textmate/-/vscode-textmate-5.2.0.tgz#01f01760a391e8222fe4f33fbccbd1ad71aed74e" integrity sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ== -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" - integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== - -whatwg-url@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" - integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== - dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" - which-boxed-primitive@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6"