From 93939e72bc2d409bdd283a9c9299de9a94e24845 Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Sun, 5 May 2024 22:35:49 +0900 Subject: [PATCH] Cleanup dependencies Signed-off-by: Sora Morimoto --- package.json | 38 ++--- src/util/file-system.js | 3 +- src/util/request.js | 19 ++- yarn.lock | 356 ++++++---------------------------------- 4 files changed, 81 insertions(+), 335 deletions(-) diff --git a/package.json b/package.json index 5ccf4bd8..5a7d4af2 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "test:--another-array-type": "node tests/spec/another-array-type/test.js", "test:--axios": "node tests/spec/axios/test.js", "test:--axios--single-http-client": "node tests/spec/axiosSingleHttpClient/test.js", - "test:--cli": "rimraf tests/spec/cli/schema.ts && node index.js -p tests/spec/cli/schema.json -o tests/spec/cli -n schema.ts --extract-response-body --extract-response-error --api-class-name MySuperApi --type-prefix Prefix && node tests/spec/cli/test.js", + "test:--cli": "shx rm -rf tests/spec/cli/schema.ts && node index.js -p tests/spec/cli/schema.json -o tests/spec/cli -n schema.ts --extract-response-body --extract-response-error --api-class-name MySuperApi --type-prefix Prefix && node tests/spec/cli/test.js", "test:--default-as-success": "node tests/spec/defaultAsSuccess/test.js", "test:--default-response": "node tests/spec/defaultResponse/test.js", "test:--dot-path-params": "node tests/spec/dot-path-params/test.js", @@ -101,31 +101,31 @@ "validate:debug": "node --nolazy tests/validate.js" }, "dependencies": { - "@types/swagger-schema-official": "2.0.25", - "cosmiconfig": "9.0.0", + "@types/swagger-schema-official": "^2.0.25", + "cosmiconfig": "^9.0.0", "didyoumean": "^1.2.2", "eta": "^2.2.0", - "js-yaml": "4.1.0", - "lodash": "4.17.21", - "make-dir": "4.0.0", - "nanoid": "3.3.6", - "node-emoji": "2.1.3", - "node-fetch": "^3.3.1", + "js-yaml": "^4.1.0", + "lodash": "^4.17.21", + "nanoid": "^3.3.7", + "node-emoji": "^2.1.3", "prettier": "3.2.5", "swagger-schema-official": "2.0.0-bab6bed", - "swagger2openapi": "7.0.8", + "swagger2openapi": "^7.0.8", "typescript": "5.4.5" }, "devDependencies": { "@biomejs/biome": "1.7.2", - "@types/lodash": "^4.14.195", - "@types/node": "^20.4.1", - "@types/prettier": "^3.0.0", - "axios": "^1.4.0", - "cross-env": "^7.0.3", - "dotenv": "^16.3.1", - "git-diff": "^2.0.6", - "rimraf": "^5.0.1" + "@types/lodash": "4.17.1", + "@types/node": "20.12.8", + "axios": "1.6.8", + "cross-env": "7.0.3", + "dotenv": "16.4.5", + "git-diff": "2.0.6", + "shx": "0.3.4" }, - "packageManager": "yarn@4.2.1" + "packageManager": "yarn@4.2.1", + "engines": { + "node": ">=18.0.0" + } } diff --git a/src/util/file-system.js b/src/util/file-system.js index 9408bb57..3bf750a7 100644 --- a/src/util/file-system.js +++ b/src/util/file-system.js @@ -1,5 +1,4 @@ const fs = require("node:fs"); -const makeDir = require("make-dir"); const { resolve } = require("node:path"); const _ = require("lodash"); const { Logger } = require("./logger"); @@ -68,7 +67,7 @@ class FileSystem { createDir = (path) => { try { - makeDir.sync(path); + fs.mkdirSync(path, { recursive: true }); } catch (e) { this.logger.debug("failed to create dir", e); } diff --git a/src/util/request.js b/src/util/request.js index 44db6c4e..870d7647 100644 --- a/src/util/request.js +++ b/src/util/request.js @@ -1,6 +1,4 @@ const _ = require("lodash"); -const https = require("node:https"); -const fetch = require("node-fetch-h2"); class Request { /** @@ -18,23 +16,30 @@ class Request { } /** - * * @param url {string} * @param disableStrictSSL * @param authToken - * @param options {Partial} + * @param options {Partial} * @return {Promise} */ async download({ url, disableStrictSSL, authToken, ...options }) { /** - * @type {Partial} + * @type {Partial} */ const requestOptions = {}; if (disableStrictSSL && !_.startsWith(url, "http://")) { - requestOptions.agent = new https.Agent({ - rejectUnauthorized: false, + const undiciGlobalDispatcher = + global[Symbol.for("undici.globalDispatcher.1")]; + if (!undiciGlobalDispatcher) { + throw new Error("Could not find the global Undici dispatcher"); + } + const newDispatcher = new undiciGlobalDispatcher.constructor({ + connect: { + rejectUnauthorized: false, + }, }); + global[unidiciGlobalDispatcherSymbol] = newDispatcher; } if (authToken) { requestOptions.headers = { diff --git a/yarn.lock b/yarn.lock index 7bbfa63a..7e3bc8f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -132,27 +132,6 @@ __metadata: languageName: node linkType: hard -"@isaacs/cliui@npm:^8.0.2": - version: 8.0.2 - resolution: "@isaacs/cliui@npm:8.0.2" - dependencies: - string-width: "npm:^5.1.2" - string-width-cjs: "npm:string-width@^4.2.0" - strip-ansi: "npm:^7.0.1" - strip-ansi-cjs: "npm:strip-ansi@^6.0.1" - wrap-ansi: "npm:^8.1.0" - wrap-ansi-cjs: "npm:wrap-ansi@^7.0.0" - checksum: 10c0/b1bf42535d49f11dc137f18d5e4e63a28c5569de438a221c369483731e9dac9fb797af554e8bf02b6192d1e5eba6e6402cf93900c3d0ac86391d00d04876789e - languageName: node - linkType: hard - -"@pkgjs/parseargs@npm:^0.11.0": - version: 0.11.0 - resolution: "@pkgjs/parseargs@npm:0.11.0" - checksum: 10c0/5bd7576bb1b38a47a7fc7b51ac9f38748e772beebc56200450c4a817d712232b8f1d3ef70532c80840243c657d491cf6a6be1e3a214cff907645819fdc34aadd - languageName: node - linkType: hard - "@sindresorhus/is@npm:^4.6.0": version: 4.6.0 resolution: "@sindresorhus/is@npm:4.6.0" @@ -160,14 +139,14 @@ __metadata: languageName: node linkType: hard -"@types/lodash@npm:^4.14.195": +"@types/lodash@npm:4.17.1": version: 4.17.1 resolution: "@types/lodash@npm:4.17.1" checksum: 10c0/af2ad8a3c8d7deb170a7ec6e18afc5ae8980576e5f7fe798d8a95a1df7222c15bdf967a25a35879f575a3b64743de00145710ee461a0051e055e94e4fe253f45 languageName: node linkType: hard -"@types/node@npm:^20.4.1": +"@types/node@npm:20.12.8": version: 20.12.8 resolution: "@types/node@npm:20.12.8" dependencies: @@ -176,16 +155,7 @@ __metadata: languageName: node linkType: hard -"@types/prettier@npm:^3.0.0": - version: 3.0.0 - resolution: "@types/prettier@npm:3.0.0" - dependencies: - prettier: "npm:*" - checksum: 10c0/edab8c0c0e56936e89c919cac17e384a9f231ce12062fb3beeb45bc45e7dcc4035dd3d7df3333b0bdd39f3b4501f22267a9dba45e22b9728c139857142e90282 - languageName: node - linkType: hard - -"@types/swagger-schema-official@npm:2.0.25": +"@types/swagger-schema-official@npm:^2.0.25": version: 2.0.25 resolution: "@types/swagger-schema-official@npm:2.0.25" checksum: 10c0/688669a509d8e6c93aa8bf99ce1a02fd6429e6e4e0948be2e08528b1a2c9b710e9d40051b7620da80cc80783219f1d6808012c9738be02664cc5c4af3db1d26b @@ -199,13 +169,6 @@ __metadata: languageName: node linkType: hard -"ansi-regex@npm:^6.0.1": - version: 6.0.1 - resolution: "ansi-regex@npm:6.0.1" - checksum: 10c0/cbe16dbd2c6b2735d1df7976a7070dd277326434f0212f43abf6d87674095d247968209babdaad31bb00882fa68807256ba9be340eec2f1004de14ca75f52a08 - languageName: node - linkType: hard - "ansi-styles@npm:^3.2.1": version: 3.2.1 resolution: "ansi-styles@npm:3.2.1" @@ -224,13 +187,6 @@ __metadata: languageName: node linkType: hard -"ansi-styles@npm:^6.1.0": - version: 6.2.1 - resolution: "ansi-styles@npm:6.2.1" - checksum: 10c0/5d1ec38c123984bcedd996eac680d548f31828bd679a66db2bdf11844634dde55fec3efa9c6bb1d89056a5e79c1ac540c4c784d592ea1d25028a92227d2f2d5c - languageName: node - linkType: hard - "argparse@npm:^2.0.1": version: 2.0.1 resolution: "argparse@npm:2.0.1" @@ -245,7 +201,7 @@ __metadata: languageName: node linkType: hard -"axios@npm:^1.4.0": +"axios@npm:1.6.8": version: 1.6.8 resolution: "axios@npm:1.6.8" dependencies: @@ -273,15 +229,6 @@ __metadata: languageName: node linkType: hard -"brace-expansion@npm:^2.0.1": - version: 2.0.1 - resolution: "brace-expansion@npm:2.0.1" - dependencies: - balanced-match: "npm:^1.0.0" - checksum: 10c0/b358f2fe060e2d7a87aa015979ecea07f3c37d4018f8d6deb5bd4c229ad3a0384fe6029bb76cd8be63c81e516ee52d1a0673edbe2023d53a5191732ae3c3e49f - languageName: node - linkType: hard - "call-me-maybe@npm:^1.0.1": version: 1.0.2 resolution: "call-me-maybe@npm:1.0.2" @@ -373,7 +320,7 @@ __metadata: languageName: node linkType: hard -"cosmiconfig@npm:9.0.0": +"cosmiconfig@npm:^9.0.0": version: 9.0.0 resolution: "cosmiconfig@npm:9.0.0" dependencies: @@ -390,7 +337,7 @@ __metadata: languageName: node linkType: hard -"cross-env@npm:^7.0.3": +"cross-env@npm:7.0.3": version: 7.0.3 resolution: "cross-env@npm:7.0.3" dependencies: @@ -402,7 +349,7 @@ __metadata: languageName: node linkType: hard -"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.1": +"cross-spawn@npm:^7.0.1": version: 7.0.3 resolution: "cross-spawn@npm:7.0.3" dependencies: @@ -413,13 +360,6 @@ __metadata: languageName: node linkType: hard -"data-uri-to-buffer@npm:^4.0.0": - version: 4.0.1 - resolution: "data-uri-to-buffer@npm:4.0.1" - checksum: 10c0/20a6b93107597530d71d4cb285acee17f66bcdfc03fd81040921a81252f19db27588d87fc8fc69e1950c55cfb0bf8ae40d0e5e21d907230813eb5d5a7f9eb45b - languageName: node - linkType: hard - "delayed-stream@npm:~1.0.0": version: 1.0.0 resolution: "delayed-stream@npm:1.0.0" @@ -441,20 +381,13 @@ __metadata: languageName: node linkType: hard -"dotenv@npm:^16.3.1": +"dotenv@npm:16.4.5": version: 16.4.5 resolution: "dotenv@npm:16.4.5" checksum: 10c0/48d92870076832af0418b13acd6e5a5a3e83bb00df690d9812e94b24aff62b88ade955ac99a05501305b8dc8f1b0ee7638b18493deb6fe93d680e5220936292f languageName: node linkType: hard -"eastasianwidth@npm:^0.2.0": - version: 0.2.0 - resolution: "eastasianwidth@npm:0.2.0" - checksum: 10c0/26f364ebcdb6395f95124fda411f63137a4bfb5d3a06453f7f23dfe52502905bd84e0488172e0f9ec295fdc45f05c23d5d91baf16bd26f0fe9acd777a188dc39 - languageName: node - linkType: hard - "emoji-regex@npm:^8.0.0": version: 8.0.0 resolution: "emoji-regex@npm:8.0.0" @@ -462,13 +395,6 @@ __metadata: languageName: node linkType: hard -"emoji-regex@npm:^9.2.2": - version: 9.2.2 - resolution: "emoji-regex@npm:9.2.2" - checksum: 10c0/af014e759a72064cf66e6e694a7fc6b0ed3d8db680427b021a89727689671cefe9d04151b2cad51dbaf85d5ba790d061cd167f1cf32eb7b281f6368b3c181639 - languageName: node - linkType: hard - "emojilib@npm:^2.4.0": version: 2.4.0 resolution: "emojilib@npm:2.4.0" @@ -527,16 +453,6 @@ __metadata: languageName: node linkType: hard -"fetch-blob@npm:^3.1.2, fetch-blob@npm:^3.1.4": - version: 3.2.0 - resolution: "fetch-blob@npm:3.2.0" - dependencies: - node-domexception: "npm:^1.0.0" - web-streams-polyfill: "npm:^3.0.3" - checksum: 10c0/60054bf47bfa10fb0ba6cb7742acec2f37c1f56344f79a70bb8b1c48d77675927c720ff3191fa546410a0442c998d27ab05e9144c32d530d8a52fbe68f843b69 - languageName: node - linkType: hard - "follow-redirects@npm:^1.15.6": version: 1.15.6 resolution: "follow-redirects@npm:1.15.6" @@ -547,16 +463,6 @@ __metadata: languageName: node linkType: hard -"foreground-child@npm:^3.1.0": - version: 3.1.1 - resolution: "foreground-child@npm:3.1.1" - dependencies: - cross-spawn: "npm:^7.0.0" - signal-exit: "npm:^4.0.1" - checksum: 10c0/9700a0285628abaeb37007c9a4d92bd49f67210f09067638774338e146c8e9c825c5c877f072b2f75f41dc6a2d0be8664f79ffc03f6576649f54a84fb9b47de0 - languageName: node - linkType: hard - "form-data@npm:^4.0.0": version: 4.0.0 resolution: "form-data@npm:4.0.0" @@ -568,15 +474,6 @@ __metadata: languageName: node linkType: hard -"formdata-polyfill@npm:^4.0.10": - version: 4.0.10 - resolution: "formdata-polyfill@npm:4.0.10" - dependencies: - fetch-blob: "npm:^3.1.2" - checksum: 10c0/5392ec484f9ce0d5e0d52fb5a78e7486637d516179b0eb84d81389d7eccf9ca2f663079da56f761355c0a65792810e3b345dc24db9a8bbbcf24ef3c8c88570c6 - languageName: node - linkType: hard - "fs.realpath@npm:^1.0.0": version: 1.0.0 resolution: "fs.realpath@npm:1.0.0" @@ -598,7 +495,7 @@ __metadata: languageName: node linkType: hard -"git-diff@npm:^2.0.6": +"git-diff@npm:2.0.6": version: 2.0.6 resolution: "git-diff@npm:2.0.6" dependencies: @@ -611,21 +508,6 @@ __metadata: languageName: node linkType: hard -"glob@npm:^10.3.7": - version: 10.3.12 - resolution: "glob@npm:10.3.12" - dependencies: - foreground-child: "npm:^3.1.0" - jackspeak: "npm:^2.3.6" - minimatch: "npm:^9.0.1" - minipass: "npm:^7.0.4" - path-scurry: "npm:^1.10.2" - bin: - glob: dist/esm/bin.mjs - checksum: 10c0/f60cefdc1cf3f958b2bb5823e1b233727f04916d489dc4641d76914f016e6704421e06a83cbb68b0cb1cb9382298b7a88075b844ad2127fc9727ea22b18b0711 - languageName: node - linkType: hard - "glob@npm:^7.0.0": version: 7.2.3 resolution: "glob@npm:7.2.3" @@ -727,19 +609,6 @@ __metadata: languageName: node linkType: hard -"jackspeak@npm:^2.3.6": - version: 2.3.6 - resolution: "jackspeak@npm:2.3.6" - dependencies: - "@isaacs/cliui": "npm:^8.0.2" - "@pkgjs/parseargs": "npm:^0.11.0" - dependenciesMeta: - "@pkgjs/parseargs": - optional: true - checksum: 10c0/f01d8f972d894cd7638bc338e9ef5ddb86f7b208ce177a36d718eac96ec86638a6efa17d0221b10073e64b45edc2ce15340db9380b1f5d5c5d000cbc517dc111 - languageName: node - linkType: hard - "js-tokens@npm:^4.0.0": version: 4.0.0 resolution: "js-tokens@npm:4.0.0" @@ -747,7 +616,7 @@ __metadata: languageName: node linkType: hard -"js-yaml@npm:4.1.0, js-yaml@npm:^4.1.0": +"js-yaml@npm:^4.1.0": version: 4.1.0 resolution: "js-yaml@npm:4.1.0" dependencies: @@ -772,7 +641,7 @@ __metadata: languageName: node linkType: hard -"lodash@npm:4.17.21": +"lodash@npm:^4.17.21": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: 10c0/d8cbea072bb08655bb4c989da418994b073a608dffa608b09ac04b43a791b12aeae7cd7ad919aa4c925f33b48490b5cfe6c1f71d827956071dae2e7bb3a6b74c @@ -786,31 +655,6 @@ __metadata: languageName: node linkType: hard -"lru-cache@npm:^10.2.0": - version: 10.2.2 - resolution: "lru-cache@npm:10.2.2" - checksum: 10c0/402d31094335851220d0b00985084288136136992979d0e015f0f1697e15d1c86052d7d53ae86b614e5b058425606efffc6969a31a091085d7a2b80a8a1e26d6 - languageName: node - linkType: hard - -"lru-cache@npm:^6.0.0": - version: 6.0.0 - resolution: "lru-cache@npm:6.0.0" - dependencies: - yallist: "npm:^4.0.0" - checksum: 10c0/cb53e582785c48187d7a188d3379c181b5ca2a9c78d2bce3e7dee36f32761d1c42983da3fe12b55cb74e1779fa94cdc2e5367c028a9b35317184ede0c07a30a9 - languageName: node - linkType: hard - -"make-dir@npm:4.0.0": - version: 4.0.0 - resolution: "make-dir@npm:4.0.0" - dependencies: - semver: "npm:^7.5.3" - checksum: 10c0/69b98a6c0b8e5c4fe9acb61608a9fbcfca1756d910f51e5dbe7a9e5cfb74fca9b8a0c8a0ffdf1294a740826c1ab4871d5bf3f62f72a3049e5eac6541ddffed68 - languageName: node - linkType: hard - "mime-db@npm:1.52.0": version: 1.52.0 resolution: "mime-db@npm:1.52.0" @@ -836,39 +680,23 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^9.0.1": - version: 9.0.4 - resolution: "minimatch@npm:9.0.4" - dependencies: - brace-expansion: "npm:^2.0.1" - checksum: 10c0/2c16f21f50e64922864e560ff97c587d15fd491f65d92a677a344e970fe62aafdbeafe648965fa96d33c061b4d0eabfe0213466203dd793367e7f28658cf6414 +"minimist@npm:^1.2.3": + version: 1.2.8 + resolution: "minimist@npm:1.2.8" + checksum: 10c0/19d3fcdca050087b84c2029841a093691a91259a47def2f18222f41e7645a0b7c44ef4b40e88a1e58a40c84d2ef0ee6047c55594d298146d0eb3f6b737c20ce6 languageName: node linkType: hard -"minipass@npm:^5.0.0 || ^6.0.2 || ^7.0.0, minipass@npm:^7.0.4": - version: 7.1.0 - resolution: "minipass@npm:7.1.0" - checksum: 10c0/6861c6ec9dc3cb99c745b287d92b2a8f409951852940205b4bb106faceb790544288622a0db7aa152f37793e2fc8f303628787883d9a679f2126605204feb97f - languageName: node - linkType: hard - -"nanoid@npm:3.3.6": - version: 3.3.6 - resolution: "nanoid@npm:3.3.6" +"nanoid@npm:^3.3.7": + version: 3.3.7 + resolution: "nanoid@npm:3.3.7" bin: nanoid: bin/nanoid.cjs - checksum: 10c0/606b355960d0fcbe3d27924c4c52ef7d47d3b57208808ece73279420d91469b01ec1dce10fae512b6d4a8c5a5432b352b228336a8b2202a6ea68e67fa348e2ee - languageName: node - linkType: hard - -"node-domexception@npm:^1.0.0": - version: 1.0.0 - resolution: "node-domexception@npm:1.0.0" - checksum: 10c0/5e5d63cda29856402df9472335af4bb13875e1927ad3be861dc5ebde38917aecbf9ae337923777af52a48c426b70148815e890a5d72760f1b4d758cc671b1a2b + checksum: 10c0/e3fb661aa083454f40500473bb69eedb85dc160e763150b9a2c567c7e9ff560ce028a9f833123b618a6ea742e311138b591910e795614a629029e86e180660f3 languageName: node linkType: hard -"node-emoji@npm:2.1.3": +"node-emoji@npm:^2.1.3": version: 2.1.3 resolution: "node-emoji@npm:2.1.3" dependencies: @@ -903,17 +731,6 @@ __metadata: languageName: node linkType: hard -"node-fetch@npm:^3.3.1": - version: 3.3.2 - resolution: "node-fetch@npm:3.3.2" - dependencies: - data-uri-to-buffer: "npm:^4.0.0" - fetch-blob: "npm:^3.1.4" - formdata-polyfill: "npm:^4.0.10" - checksum: 10c0/f3d5e56190562221398c9f5750198b34cf6113aa304e34ee97c94fd300ec578b25b2c2906edba922050fce983338fde0d5d34fcb0fc3336ade5bd0e429ad7538 - languageName: node - linkType: hard - "node-readfiles@npm:^0.2.0": version: 0.2.0 resolution: "node-readfiles@npm:0.2.0" @@ -1032,16 +849,6 @@ __metadata: languageName: node linkType: hard -"path-scurry@npm:^1.10.2": - version: 1.10.2 - resolution: "path-scurry@npm:1.10.2" - dependencies: - lru-cache: "npm:^10.2.0" - minipass: "npm:^5.0.0 || ^6.0.2 || ^7.0.0" - checksum: 10c0/d723777fbf9627f201e64656680f66ebd940957eebacf780e6cce1c2919c29c116678b2d7dbf8821b3a2caa758d125f4444005ccec886a25c8f324504e48e601 - languageName: node - linkType: hard - "picocolors@npm:^1.0.0": version: 1.0.0 resolution: "picocolors@npm:1.0.0" @@ -1049,7 +856,7 @@ __metadata: languageName: node linkType: hard -"prettier@npm:*, prettier@npm:3.2.5": +"prettier@npm:3.2.5": version: 3.2.5 resolution: "prettier@npm:3.2.5" bin: @@ -1121,28 +928,6 @@ __metadata: languageName: node linkType: hard -"rimraf@npm:^5.0.1": - version: 5.0.5 - resolution: "rimraf@npm:5.0.5" - dependencies: - glob: "npm:^10.3.7" - bin: - rimraf: dist/esm/bin.mjs - checksum: 10c0/d50dbe724f33835decd88395b25ed35995077c60a50ae78ded06e0185418914e555817aad1b4243edbff2254548c2f6ad6f70cc850040bebb4da9e8cc016f586 - languageName: node - linkType: hard - -"semver@npm:^7.5.3": - version: 7.6.0 - resolution: "semver@npm:7.6.0" - dependencies: - lru-cache: "npm:^6.0.0" - bin: - semver: bin/semver.js - checksum: 10c0/fbfe717094ace0aa8d6332d7ef5ce727259815bd8d8815700853f4faf23aacbd7192522f0dc5af6df52ef4fa85a355ebd2f5d39f554bd028200d6cf481ab9b53 - languageName: node - linkType: hard - "shebang-command@npm:^2.0.0": version: 2.0.0 resolution: "shebang-command@npm:2.0.0" @@ -1166,7 +951,7 @@ __metadata: languageName: node linkType: hard -"shelljs@npm:^0.8.1": +"shelljs@npm:^0.8.1, shelljs@npm:^0.8.5": version: 0.8.5 resolution: "shelljs@npm:0.8.5" dependencies: @@ -1235,10 +1020,15 @@ __metadata: languageName: node linkType: hard -"signal-exit@npm:^4.0.1": - version: 4.1.0 - resolution: "signal-exit@npm:4.1.0" - checksum: 10c0/41602dce540e46d599edba9d9860193398d135f7ff72cab629db5171516cfae628d21e7bfccde1bbfdf11c48726bc2a6d1a8fb8701125852fbfda7cf19c6aa83 +"shx@npm:0.3.4": + version: 0.3.4 + resolution: "shx@npm:0.3.4" + dependencies: + minimist: "npm:^1.2.3" + shelljs: "npm:^0.8.5" + bin: + shx: lib/cli.js + checksum: 10c0/83251fb09314682f5a192f0249a4be68c755933313a41b5152b11c19fc0a68311954d3ca971a0cbae05815786a893c59b82f356484d8eeb009c84f4066b3fa31 languageName: node linkType: hard @@ -1251,7 +1041,7 @@ __metadata: languageName: node linkType: hard -"string-width-cjs@npm:string-width@^4.2.0, string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": +"string-width@npm:^4.1.0, string-width@npm:^4.2.0, string-width@npm:^4.2.3": version: 4.2.3 resolution: "string-width@npm:4.2.3" dependencies: @@ -1262,18 +1052,7 @@ __metadata: languageName: node linkType: hard -"string-width@npm:^5.0.1, string-width@npm:^5.1.2": - version: 5.1.2 - resolution: "string-width@npm:5.1.2" - dependencies: - eastasianwidth: "npm:^0.2.0" - emoji-regex: "npm:^9.2.2" - strip-ansi: "npm:^7.0.1" - checksum: 10c0/ab9c4264443d35b8b923cbdd513a089a60de339216d3b0ed3be3ba57d6880e1a192b70ae17225f764d7adbf5994e9bb8df253a944736c15a0240eff553c678ca - languageName: node - linkType: hard - -"strip-ansi-cjs@npm:strip-ansi@^6.0.1, strip-ansi@npm:^6.0.0, strip-ansi@npm:^6.0.1": +"strip-ansi@npm:^6.0.0, strip-ansi@npm:^6.0.1": version: 6.0.1 resolution: "strip-ansi@npm:6.0.1" dependencies: @@ -1282,15 +1061,6 @@ __metadata: languageName: node linkType: hard -"strip-ansi@npm:^7.0.1": - version: 7.1.0 - resolution: "strip-ansi@npm:7.1.0" - dependencies: - ansi-regex: "npm:^6.0.1" - checksum: 10c0/a198c3762e8832505328cbf9e8c8381de14a4fa50a4f9b2160138158ea88c0f5549fb50cb13c651c3088f47e63a108b34622ec18c0499b6c8c3a5ddf6b305ac4 - languageName: node - linkType: hard - "supports-color@npm:^5.3.0": version: 5.5.0 resolution: "supports-color@npm:5.5.0" @@ -1319,27 +1089,24 @@ __metadata: resolution: "swagger-typescript-api@workspace:." dependencies: "@biomejs/biome": "npm:1.7.2" - "@types/lodash": "npm:^4.14.195" - "@types/node": "npm:^20.4.1" - "@types/prettier": "npm:^3.0.0" - "@types/swagger-schema-official": "npm:2.0.25" - axios: "npm:^1.4.0" - cosmiconfig: "npm:9.0.0" - cross-env: "npm:^7.0.3" + "@types/lodash": "npm:4.17.1" + "@types/node": "npm:20.12.8" + "@types/swagger-schema-official": "npm:^2.0.25" + axios: "npm:1.6.8" + cosmiconfig: "npm:^9.0.0" + cross-env: "npm:7.0.3" didyoumean: "npm:^1.2.2" - dotenv: "npm:^16.3.1" + dotenv: "npm:16.4.5" eta: "npm:^2.2.0" - git-diff: "npm:^2.0.6" - js-yaml: "npm:4.1.0" - lodash: "npm:4.17.21" - make-dir: "npm:4.0.0" - nanoid: "npm:3.3.6" - node-emoji: "npm:2.1.3" - node-fetch: "npm:^3.3.1" + git-diff: "npm:2.0.6" + js-yaml: "npm:^4.1.0" + lodash: "npm:^4.17.21" + nanoid: "npm:^3.3.7" + node-emoji: "npm:^2.1.3" prettier: "npm:3.2.5" - rimraf: "npm:^5.0.1" + shx: "npm:0.3.4" swagger-schema-official: "npm:2.0.0-bab6bed" - swagger2openapi: "npm:7.0.8" + swagger2openapi: "npm:^7.0.8" typescript: "npm:5.4.5" bin: sta: index.js @@ -1347,7 +1114,7 @@ __metadata: languageName: unknown linkType: soft -"swagger2openapi@npm:7.0.8": +"swagger2openapi@npm:^7.0.8": version: 7.0.8 resolution: "swagger2openapi@npm:7.0.8" dependencies: @@ -1411,13 +1178,6 @@ __metadata: languageName: node linkType: hard -"web-streams-polyfill@npm:^3.0.3": - version: 3.3.3 - resolution: "web-streams-polyfill@npm:3.3.3" - checksum: 10c0/64e855c47f6c8330b5436147db1c75cb7e7474d924166800e8e2aab5eb6c76aac4981a84261dd2982b3e754490900b99791c80ae1407a9fa0dcff74f82ea3a7f - languageName: node - linkType: hard - "webidl-conversions@npm:^3.0.0": version: 3.0.1 resolution: "webidl-conversions@npm:3.0.1" @@ -1446,7 +1206,7 @@ __metadata: languageName: node linkType: hard -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0, wrap-ansi@npm:^7.0.0": +"wrap-ansi@npm:^7.0.0": version: 7.0.0 resolution: "wrap-ansi@npm:7.0.0" dependencies: @@ -1457,17 +1217,6 @@ __metadata: languageName: node linkType: hard -"wrap-ansi@npm:^8.1.0": - version: 8.1.0 - resolution: "wrap-ansi@npm:8.1.0" - dependencies: - ansi-styles: "npm:^6.1.0" - string-width: "npm:^5.0.1" - strip-ansi: "npm:^7.0.1" - checksum: 10c0/138ff58a41d2f877eae87e3282c0630fc2789012fc1af4d6bd626eeb9a2f9a65ca92005e6e69a75c7b85a68479fe7443c7dbe1eb8fbaa681a4491364b7c55c60 - languageName: node - linkType: hard - "wrappy@npm:1": version: 1.0.2 resolution: "wrappy@npm:1.0.2" @@ -1482,13 +1231,6 @@ __metadata: languageName: node linkType: hard -"yallist@npm:^4.0.0": - version: 4.0.0 - resolution: "yallist@npm:4.0.0" - checksum: 10c0/2286b5e8dbfe22204ab66e2ef5cc9bbb1e55dfc873bbe0d568aa943eb255d131890dfd5bf243637273d31119b870f49c18fcde2c6ffbb7a7a092b870dc90625a - languageName: node - linkType: hard - "yaml@npm:^1.10.0": version: 1.10.2 resolution: "yaml@npm:1.10.2"