From 1e9e334097702c68d871365fc016aa096d03c491 Mon Sep 17 00:00:00 2001 From: TymanWasTaken <32660892+tymanwastaken@users.noreply.github.com> Date: Fri, 28 May 2021 21:51:02 -0600 Subject: Remove references - caused some issues, comment out some image gen code --- .pnp.js | 876 ++++++++++++++++++++++++++++++ package.json | 1 + src/commands/info/pronouns.ts | 37 +- src/commands/moulberry-bush/level.ts | 108 +++- src/commands/owner/reload.ts | 43 +- src/lib/extensions/BotClient.ts | 6 +- src/lib/extensions/Util.ts | 139 ++++- src/lib/models/Ban.ts | 9 +- src/lib/models/Modlog.ts | 9 +- src/listeners/client/syncslashcommands.ts | 5 +- yarn.lock | 802 ++++++++++++++++++++++++++- 11 files changed, 1980 insertions(+), 55 deletions(-) diff --git a/.pnp.js b/.pnp.js index ff9d194..df4f586 100755 --- a/.pnp.js +++ b/.pnp.js @@ -44,6 +44,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@typescript-eslint/eslint-plugin", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.24.0"], ["@typescript-eslint/parser", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.24.0"], ["body-parser", "npm:1.19.0"], + ["canvas", "npm:2.8.0"], ["chalk", "npm:4.1.1"], ["common-tags", "npm:1.8.0"], ["discord-akairo", "https://github.com/SkyblockDev/discord-akairo.git#commit=f6068977cc493884be781020d37109f15c8f7848"], @@ -136,6 +137,24 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["@mapbox/node-pre-gyp", [ + ["npm:1.0.5", { + "packageLocation": "./.yarn/cache/@mapbox-node-pre-gyp-npm-1.0.5-4e17430ec9-82d337a6df.zip/node_modules/@mapbox/node-pre-gyp/", + "packageDependencies": [ + ["@mapbox/node-pre-gyp", "npm:1.0.5"], + ["detect-libc", "npm:1.0.3"], + ["https-proxy-agent", "npm:5.0.0"], + ["make-dir", "npm:3.1.0"], + ["node-fetch", "npm:2.6.1"], + ["nopt", "npm:5.0.0"], + ["npmlog", "npm:4.1.2"], + ["rimraf", "npm:3.0.2"], + ["semver", "npm:7.3.5"], + ["tar", "npm:6.1.0"] + ], + "linkType": "HARD", + }] + ]], ["@nodelib/fs.scandir", [ ["npm:2.1.4", { "packageLocation": "./.yarn/cache/@nodelib-fs.scandir-npm-2.1.4-6f6ddb2372-30b3102ee3.zip/node_modules/@nodelib/fs.scandir/", @@ -167,6 +186,17 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["@npmcli/move-file", [ + ["npm:1.1.2", { + "packageLocation": "./.yarn/cache/@npmcli-move-file-npm-1.1.2-4f6c7b3354-d178d86a0a.zip/node_modules/@npmcli/move-file/", + "packageDependencies": [ + ["@npmcli/move-file", "npm:1.1.2"], + ["mkdirp", "npm:1.0.4"], + ["rimraf", "npm:3.0.2"] + ], + "linkType": "HARD", + }] + ]], ["@sindresorhus/is", [ ["npm:4.0.1", { "packageLocation": "./.yarn/cache/@sindresorhus-is-npm-4.0.1-30716423e5-16908ae19a.zip/node_modules/@sindresorhus/is/", @@ -186,6 +216,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["@tootallnate/once", [ + ["npm:1.1.2", { + "packageLocation": "./.yarn/cache/@tootallnate-once-npm-1.1.2-0517220057-d030f3fb14.zip/node_modules/@tootallnate/once/", + "packageDependencies": [ + ["@tootallnate/once", "npm:1.1.2"] + ], + "linkType": "HARD", + }] + ]], ["@types/body-parser", [ ["npm:1.19.0", { "packageLocation": "./.yarn/cache/@types-body-parser-npm-1.19.0-3ca4d08a60-4576f3fde5.zip/node_modules/@types/body-parser/", @@ -523,6 +562,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["abbrev", [ + ["npm:1.1.1", { + "packageLocation": "./.yarn/cache/abbrev-npm-1.1.1-3659247eab-9f9236a3cc.zip/node_modules/abbrev/", + "packageDependencies": [ + ["abbrev", "npm:1.1.1"] + ], + "linkType": "HARD", + }] + ]], ["abort-controller", [ ["npm:3.0.0", { "packageLocation": "./.yarn/cache/abort-controller-npm-3.0.0-2f3a9a2bcb-cc53ad8df9.zip/node_modules/abort-controller/", @@ -564,6 +612,39 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["agent-base", [ + ["npm:6.0.2", { + "packageLocation": "./.yarn/cache/agent-base-npm-6.0.2-428f325a93-e77eff83e1.zip/node_modules/agent-base/", + "packageDependencies": [ + ["agent-base", "npm:6.0.2"], + ["debug", "virtual:428f325a939c2653ad822eb3d75efb02ac311523dd0d4f9645afc39ea00bd86eceac35a9d59c9b6977d76b670a4ef0ae057ea572338a44729aa592711a8c05a3#npm:4.3.2"] + ], + "linkType": "HARD", + }] + ]], + ["agentkeepalive", [ + ["npm:4.1.4", { + "packageLocation": "./.yarn/cache/agentkeepalive-npm-4.1.4-4d5b41b4c1-c58f69d05c.zip/node_modules/agentkeepalive/", + "packageDependencies": [ + ["agentkeepalive", "npm:4.1.4"], + ["debug", "virtual:428f325a939c2653ad822eb3d75efb02ac311523dd0d4f9645afc39ea00bd86eceac35a9d59c9b6977d76b670a4ef0ae057ea572338a44729aa592711a8c05a3#npm:4.3.2"], + ["depd", "npm:1.1.2"], + ["humanize-ms", "npm:1.2.1"] + ], + "linkType": "HARD", + }] + ]], + ["aggregate-error", [ + ["npm:3.1.0", { + "packageLocation": "./.yarn/cache/aggregate-error-npm-3.1.0-415a406f4e-704d2001a3.zip/node_modules/aggregate-error/", + "packageDependencies": [ + ["aggregate-error", "npm:3.1.0"], + ["clean-stack", "npm:2.2.0"], + ["indent-string", "npm:4.0.0"] + ], + "linkType": "HARD", + }] + ]], ["ajv", [ ["npm:6.12.6", { "packageLocation": "./.yarn/cache/ajv-npm-6.12.6-4b5105e2b2-19a8f3b0a0.zip/node_modules/ajv/", @@ -598,6 +679,20 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["ansi-regex", [ + ["npm:2.1.1", { + "packageLocation": "./.yarn/cache/ansi-regex-npm-2.1.1-ddd24d102b-93a53c923f.zip/node_modules/ansi-regex/", + "packageDependencies": [ + ["ansi-regex", "npm:2.1.1"] + ], + "linkType": "HARD", + }], + ["npm:3.0.0", { + "packageLocation": "./.yarn/cache/ansi-regex-npm-3.0.0-be0b845911-2e3c40d429.zip/node_modules/ansi-regex/", + "packageDependencies": [ + ["ansi-regex", "npm:3.0.0"] + ], + "linkType": "HARD", + }], ["npm:5.0.0", { "packageLocation": "./.yarn/cache/ansi-regex-npm-5.0.0-9c076068d9-cbd9b5c9db.zip/node_modules/ansi-regex/", "packageDependencies": [ @@ -633,6 +728,26 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["aproba", [ + ["npm:1.2.0", { + "packageLocation": "./.yarn/cache/aproba-npm-1.2.0-34129f0778-d4bac3e640.zip/node_modules/aproba/", + "packageDependencies": [ + ["aproba", "npm:1.2.0"] + ], + "linkType": "HARD", + }] + ]], + ["are-we-there-yet", [ + ["npm:1.1.5", { + "packageLocation": "./.yarn/cache/are-we-there-yet-npm-1.1.5-b8418908b0-2d6fdb0ddd.zip/node_modules/are-we-there-yet/", + "packageDependencies": [ + ["are-we-there-yet", "npm:1.1.5"], + ["delegates", "npm:1.0.0"], + ["readable-stream", "npm:2.3.7"] + ], + "linkType": "HARD", + }] + ]], ["argparse", [ ["npm:1.0.10", { "packageLocation": "./.yarn/cache/argparse-npm-1.0.10-528934e59d-435adaef5f.zip/node_modules/argparse/", @@ -749,6 +864,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["@typescript-eslint/eslint-plugin", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.24.0"], ["@typescript-eslint/parser", "virtual:d7ae587dddcefd495158f5c047acecbca3203324d75e681c7d8657c07f901f74e152f0b39978f7428d3a91daad7b5020c47ece28de69c22fcbd49d04707bf15c#npm:4.24.0"], ["body-parser", "npm:1.19.0"], + ["canvas", "npm:2.8.0"], ["chalk", "npm:4.1.1"], ["common-tags", "npm:1.8.0"], ["discord-akairo", "https://github.com/SkyblockDev/discord-akairo.git#commit=f6068977cc493884be781020d37109f15c8f7848"], @@ -780,6 +896,32 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["cacache", [ + ["npm:15.2.0", { + "packageLocation": "./.yarn/cache/cacache-npm-15.2.0-7b4a3a5b83-e7d6a93c34.zip/node_modules/cacache/", + "packageDependencies": [ + ["cacache", "npm:15.2.0"], + ["@npmcli/move-file", "npm:1.1.2"], + ["chownr", "npm:2.0.0"], + ["fs-minipass", "npm:2.1.0"], + ["glob", "npm:7.1.7"], + ["infer-owner", "npm:1.0.4"], + ["lru-cache", "npm:6.0.0"], + ["minipass", "npm:3.1.3"], + ["minipass-collect", "npm:1.0.2"], + ["minipass-flush", "npm:1.0.5"], + ["minipass-pipeline", "npm:1.2.4"], + ["mkdirp", "npm:1.0.4"], + ["p-map", "npm:4.0.0"], + ["promise-inflight", "virtual:7b4a3a5b83dd58ae7ce7698db506d3491e7014f774e78d5d0d3f6df0db964e99401515781c14a487335f1366f0d1c448759b6d13f1ae2d0ef08e605c4b8d5cd4#npm:1.0.1"], + ["rimraf", "npm:3.0.2"], + ["ssri", "npm:8.0.1"], + ["tar", "npm:6.1.0"], + ["unique-filename", "npm:1.1.1"] + ], + "linkType": "HARD", + }] + ]], ["cacheable-lookup", [ ["npm:5.0.4", { "packageLocation": "./.yarn/cache/cacheable-lookup-npm-5.0.4-8f13e8b44b-cb5849f584.zip/node_modules/cacheable-lookup/", @@ -814,6 +956,19 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["canvas", [ + ["npm:2.8.0", { + "packageLocation": "./.yarn/unplugged/canvas-npm-2.8.0-b8a304d4de/node_modules/canvas/", + "packageDependencies": [ + ["canvas", "npm:2.8.0"], + ["@mapbox/node-pre-gyp", "npm:1.0.5"], + ["nan", "npm:2.14.2"], + ["node-gyp", "npm:8.0.0"], + ["simple-get", "npm:3.1.0"] + ], + "linkType": "HARD", + }] + ]], ["chalk", [ ["npm:2.4.2", { "packageLocation": "./.yarn/cache/chalk-npm-2.4.2-3ea16dd91e-22c7b7b5bc.zip/node_modules/chalk/", @@ -835,6 +990,24 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["chownr", [ + ["npm:2.0.0", { + "packageLocation": "./.yarn/cache/chownr-npm-2.0.0-638f1c9c61-b06ba0bf42.zip/node_modules/chownr/", + "packageDependencies": [ + ["chownr", "npm:2.0.0"] + ], + "linkType": "HARD", + }] + ]], + ["clean-stack", [ + ["npm:2.2.0", { + "packageLocation": "./.yarn/cache/clean-stack-npm-2.2.0-a8ce435a5c-e291ce2b8c.zip/node_modules/clean-stack/", + "packageDependencies": [ + ["clean-stack", "npm:2.2.0"] + ], + "linkType": "HARD", + }] + ]], ["clone-response", [ ["npm:1.0.2", { "packageLocation": "./.yarn/cache/clone-response-npm-1.0.2-135ae8239d-71832f9219.zip/node_modules/clone-response/", @@ -845,6 +1018,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["code-point-at", [ + ["npm:1.1.0", { + "packageLocation": "./.yarn/cache/code-point-at-npm-1.1.0-37de5fe566-7d9837296e.zip/node_modules/code-point-at/", + "packageDependencies": [ + ["code-point-at", "npm:1.1.0"] + ], + "linkType": "HARD", + }] + ]], ["color-convert", [ ["npm:1.9.3", { "packageLocation": "./.yarn/cache/color-convert-npm-1.9.3-1fe690075e-5f244daa3d.zip/node_modules/color-convert/", @@ -907,6 +1089,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["console-control-strings", [ + ["npm:1.1.0", { + "packageLocation": "./.yarn/cache/console-control-strings-npm-1.1.0-e3160e5275-58a404d951.zip/node_modules/console-control-strings/", + "packageDependencies": [ + ["console-control-strings", "npm:1.1.0"] + ], + "linkType": "HARD", + }] + ]], ["content-type", [ ["npm:1.0.4", { "packageLocation": "./.yarn/cache/content-type-npm-1.0.4-3b1a5ca16b-ff6e19cbf2.zip/node_modules/content-type/", @@ -916,6 +1107,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["core-util-is", [ + ["npm:1.0.2", { + "packageLocation": "./.yarn/cache/core-util-is-npm-1.0.2-9fc2b94dc3-089015ee3c.zip/node_modules/core-util-is/", + "packageDependencies": [ + ["core-util-is", "npm:1.0.2"] + ], + "linkType": "HARD", + }] + ]], ["cross-spawn", [ ["npm:7.0.3", { "packageLocation": "./.yarn/cache/cross-spawn-npm-7.0.3-e4ff3e65b3-51f10036f5.zip/node_modules/cross-spawn/", @@ -943,6 +1143,25 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "SOFT", }], + ["npm:4.3.2", { + "packageLocation": "./.yarn/cache/debug-npm-4.3.2-f0148b6afe-5543570879.zip/node_modules/debug/", + "packageDependencies": [ + ["debug", "npm:4.3.2"] + ], + "linkType": "SOFT", + }], + ["virtual:428f325a939c2653ad822eb3d75efb02ac311523dd0d4f9645afc39ea00bd86eceac35a9d59c9b6977d76b670a4ef0ae057ea572338a44729aa592711a8c05a3#npm:4.3.2", { + "packageLocation": "./.yarn/$$virtual/debug-virtual-c8b34b81df/0/cache/debug-npm-4.3.2-f0148b6afe-5543570879.zip/node_modules/debug/", + "packageDependencies": [ + ["debug", "virtual:428f325a939c2653ad822eb3d75efb02ac311523dd0d4f9645afc39ea00bd86eceac35a9d59c9b6977d76b670a4ef0ae057ea572338a44729aa592711a8c05a3#npm:4.3.2"], + ["ms", "npm:2.1.2"], + ["supports-color", null] + ], + "packagePeers": [ + "supports-color" + ], + "linkType": "HARD", + }], ["virtual:48933b28331d16c1d73786360e7ba20f54f6df4949c6ab5c13ac4c4353b5c70f2d36a97de9a9c531027ad3588d8fd7f384706f298f0eff0356b58bb9c47f63ec#npm:4.3.1", { "packageLocation": "./.yarn/$$virtual/debug-virtual-9b1bbab664/0/cache/debug-npm-4.3.1-22e08d605e-0d41ba5177.zip/node_modules/debug/", "packageDependencies": [ @@ -969,6 +1188,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["decompress-response", [ + ["npm:4.2.1", { + "packageLocation": "./.yarn/cache/decompress-response-npm-4.2.1-abe5b4ebe4-d854171a10.zip/node_modules/decompress-response/", + "packageDependencies": [ + ["decompress-response", "npm:4.2.1"], + ["mimic-response", "npm:2.1.0"] + ], + "linkType": "HARD", + }], ["npm:6.0.0", { "packageLocation": "./.yarn/cache/decompress-response-npm-6.0.0-359de2878c-bb8b8c42be.zip/node_modules/decompress-response/", "packageDependencies": [ @@ -1005,6 +1232,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["delegates", [ + ["npm:1.0.0", { + "packageLocation": "./.yarn/cache/delegates-npm-1.0.0-9b1942d75f-7459e34d29.zip/node_modules/delegates/", + "packageDependencies": [ + ["delegates", "npm:1.0.0"] + ], + "linkType": "HARD", + }] + ]], ["depd", [ ["npm:1.1.2", { "packageLocation": "./.yarn/cache/depd-npm-1.1.2-b0c8414da7-f45566ff70.zip/node_modules/depd/", @@ -1014,6 +1250,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["detect-libc", [ + ["npm:1.0.3", { + "packageLocation": "./.yarn/cache/detect-libc-npm-1.0.3-c30ac344d4-6cec442139.zip/node_modules/detect-libc/", + "packageDependencies": [ + ["detect-libc", "npm:1.0.3"] + ], + "linkType": "HARD", + }] + ]], ["dir-glob", [ ["npm:3.0.1", { "packageLocation": "./.yarn/cache/dir-glob-npm-3.0.1-1aea628b1b-687fa3bd60.zip/node_modules/dir-glob/", @@ -1095,6 +1340,16 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["encoding", [ + ["npm:0.1.13", { + "packageLocation": "./.yarn/cache/encoding-npm-0.1.13-82a1837d30-282d5696a4.zip/node_modules/encoding/", + "packageDependencies": [ + ["encoding", "npm:0.1.13"], + ["iconv-lite", "npm:0.6.3"] + ], + "linkType": "HARD", + }] + ]], ["end-of-stream", [ ["npm:1.4.4", { "packageLocation": "./.yarn/cache/end-of-stream-npm-1.4.4-497fc6dee1-7da60e458b.zip/node_modules/end-of-stream/", @@ -1115,6 +1370,24 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["env-paths", [ + ["npm:2.2.1", { + "packageLocation": "./.yarn/cache/env-paths-npm-2.2.1-7c7577428c-9579868bc7.zip/node_modules/env-paths/", + "packageDependencies": [ + ["env-paths", "npm:2.2.1"] + ], + "linkType": "HARD", + }] + ]], + ["err-code", [ + ["npm:2.0.3", { + "packageLocation": "./.yarn/cache/err-code-npm-2.0.3-082e0ff9a7-14e09e9990.zip/node_modules/err-code/", + "packageDependencies": [ + ["err-code", "npm:2.0.3"] + ], + "linkType": "HARD", + }] + ]], ["esbuild", [ ["npm:0.12.1", { "packageLocation": "./.yarn/unplugged/esbuild-npm-0.12.1-ce7e6881a2/node_modules/esbuild/", @@ -1405,6 +1678,16 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["fs-minipass", [ + ["npm:2.1.0", { + "packageLocation": "./.yarn/cache/fs-minipass-npm-2.1.0-501ef87306-e14a490658.zip/node_modules/fs-minipass/", + "packageDependencies": [ + ["fs-minipass", "npm:2.1.0"], + ["minipass", "npm:3.1.3"] + ], + "linkType": "HARD", + }] + ]], ["fs.realpath", [ ["npm:1.0.0", { "packageLocation": "./.yarn/cache/fs.realpath-npm-1.0.0-c8f05d8126-698a91b169.zip/node_modules/fs.realpath/", @@ -1423,6 +1706,23 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["gauge", [ + ["npm:2.7.4", { + "packageLocation": "./.yarn/cache/gauge-npm-2.7.4-2189a73529-b136dbeb8e.zip/node_modules/gauge/", + "packageDependencies": [ + ["gauge", "npm:2.7.4"], + ["aproba", "npm:1.2.0"], + ["console-control-strings", "npm:1.1.0"], + ["has-unicode", "npm:2.0.1"], + ["object-assign", "npm:4.1.1"], + ["signal-exit", "npm:3.0.3"], + ["string-width", "npm:1.0.2"], + ["strip-ansi", "npm:3.0.1"], + ["wide-align", "npm:1.1.3"] + ], + "linkType": "HARD", + }] + ]], ["get-stream", [ ["npm:5.2.0", { "packageLocation": "./.yarn/cache/get-stream-npm-5.2.0-2cfd3b452b-c71c5625f4.zip/node_modules/get-stream/", @@ -1511,6 +1811,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["graceful-fs", [ + ["npm:4.2.6", { + "packageLocation": "./.yarn/cache/graceful-fs-npm-4.2.6-535b2234f1-84d39c7756.zip/node_modules/graceful-fs/", + "packageDependencies": [ + ["graceful-fs", "npm:4.2.6"] + ], + "linkType": "HARD", + }] + ]], ["has-flag", [ ["npm:3.0.0", { "packageLocation": "./.yarn/cache/has-flag-npm-3.0.0-16ac11fe05-63aade480d.zip/node_modules/has-flag/", @@ -1527,6 +1836,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["has-unicode", [ + ["npm:2.0.1", { + "packageLocation": "./.yarn/cache/has-unicode-npm-2.0.1-893adb4747-ed3719f95c.zip/node_modules/has-unicode/", + "packageDependencies": [ + ["has-unicode", "npm:2.0.1"] + ], + "linkType": "HARD", + }] + ]], ["http-cache-semantics", [ ["npm:4.1.0", { "packageLocation": "./.yarn/cache/http-cache-semantics-npm-4.1.0-860520a31f-451df9784a.zip/node_modules/http-cache-semantics/", @@ -1550,6 +1868,18 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["http-proxy-agent", [ + ["npm:4.0.1", { + "packageLocation": "./.yarn/cache/http-proxy-agent-npm-4.0.1-ce9ef61788-6703aeb5c5.zip/node_modules/http-proxy-agent/", + "packageDependencies": [ + ["http-proxy-agent", "npm:4.0.1"], + ["@tootallnate/once", "npm:1.1.2"], + ["agent-base", "npm:6.0.2"], + ["debug", "virtual:428f325a939c2653ad822eb3d75efb02ac311523dd0d4f9645afc39ea00bd86eceac35a9d59c9b6977d76b670a4ef0ae057ea572338a44729aa592711a8c05a3#npm:4.3.2"] + ], + "linkType": "HARD", + }] + ]], ["http2-wrapper", [ ["npm:1.0.3", { "packageLocation": "./.yarn/cache/http2-wrapper-npm-1.0.3-5b58ade1df-2fc0140a69.zip/node_modules/http2-wrapper/", @@ -1561,6 +1891,27 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["https-proxy-agent", [ + ["npm:5.0.0", { + "packageLocation": "./.yarn/cache/https-proxy-agent-npm-5.0.0-bb777903c3-18aa04ea08.zip/node_modules/https-proxy-agent/", + "packageDependencies": [ + ["https-proxy-agent", "npm:5.0.0"], + ["agent-base", "npm:6.0.2"], + ["debug", "virtual:428f325a939c2653ad822eb3d75efb02ac311523dd0d4f9645afc39ea00bd86eceac35a9d59c9b6977d76b670a4ef0ae057ea572338a44729aa592711a8c05a3#npm:4.3.2"] + ], + "linkType": "HARD", + }] + ]], + ["humanize-ms", [ + ["npm:1.2.1", { + "packageLocation": "./.yarn/cache/humanize-ms-npm-1.2.1-e942bd7329-4a08769434.zip/node_modules/humanize-ms/", + "packageDependencies": [ + ["humanize-ms", "npm:1.2.1"], + ["ms", "npm:2.1.3"] + ], + "linkType": "HARD", + }] + ]], ["iconv-lite", [ ["npm:0.4.24", { "packageLocation": "./.yarn/cache/iconv-lite-npm-0.4.24-c5c4ac6695-a9b9521066.zip/node_modules/iconv-lite/", @@ -1569,6 +1920,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["safer-buffer", "npm:2.1.2"] ], "linkType": "HARD", + }], + ["npm:0.6.3", { + "packageLocation": "./.yarn/cache/iconv-lite-npm-0.6.3-24b8aae27e-9b4f24db66.zip/node_modules/iconv-lite/", + "packageDependencies": [ + ["iconv-lite", "npm:0.6.3"], + ["safer-buffer", "npm:2.1.2"] + ], + "linkType": "HARD", }] ]], ["ignore", [ @@ -1607,6 +1966,24 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["indent-string", [ + ["npm:4.0.0", { + "packageLocation": "./.yarn/cache/indent-string-npm-4.0.0-7b717435b2-3e54996c6e.zip/node_modules/indent-string/", + "packageDependencies": [ + ["indent-string", "npm:4.0.0"] + ], + "linkType": "HARD", + }] + ]], + ["infer-owner", [ + ["npm:1.0.4", { + "packageLocation": "./.yarn/cache/infer-owner-npm-1.0.4-685ac3d2af-56aa1d87b0.zip/node_modules/infer-owner/", + "packageDependencies": [ + ["infer-owner", "npm:1.0.4"] + ], + "linkType": "HARD", + }] + ]], ["inflection", [ ["npm:1.12.0", { "packageLocation": "./.yarn/cache/inflection-npm-1.12.0-528e724bc4-b08d8b92fc.zip/node_modules/inflection/", @@ -1643,6 +2020,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["ip", [ + ["npm:1.1.5", { + "packageLocation": "./.yarn/cache/ip-npm-1.1.5-af36318aa6-3ad007368c.zip/node_modules/ip/", + "packageDependencies": [ + ["ip", "npm:1.1.5"] + ], + "linkType": "HARD", + }] + ]], ["is-extglob", [ ["npm:2.1.1", { "packageLocation": "./.yarn/cache/is-extglob-npm-2.1.1-0870ea68b5-ca623e2c56.zip/node_modules/is-extglob/", @@ -1653,6 +2039,21 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["is-fullwidth-code-point", [ + ["npm:1.0.0", { + "packageLocation": "./.yarn/cache/is-fullwidth-code-point-npm-1.0.0-0e436ba1ef-fc3d51ef08.zip/node_modules/is-fullwidth-code-point/", + "packageDependencies": [ + ["is-fullwidth-code-point", "npm:1.0.0"], + ["number-is-nan", "npm:1.0.1"] + ], + "linkType": "HARD", + }], + ["npm:2.0.0", { + "packageLocation": "./.yarn/cache/is-fullwidth-code-point-npm-2.0.0-507f56ec71-e1e5284f84.zip/node_modules/is-fullwidth-code-point/", + "packageDependencies": [ + ["is-fullwidth-code-point", "npm:2.0.0"] + ], + "linkType": "HARD", + }], ["npm:3.0.0", { "packageLocation": "./.yarn/cache/is-fullwidth-code-point-npm-3.0.0-1ecf4ebee5-a01a19ecac.zip/node_modules/is-fullwidth-code-point/", "packageDependencies": [ @@ -1671,6 +2072,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["is-lambda", [ + ["npm:1.0.1", { + "packageLocation": "./.yarn/cache/is-lambda-npm-1.0.1-7ab55bc8a8-669ea37e8f.zip/node_modules/is-lambda/", + "packageDependencies": [ + ["is-lambda", "npm:1.0.1"] + ], + "linkType": "HARD", + }] + ]], ["is-number", [ ["npm:7.0.0", { "packageLocation": "./.yarn/cache/is-number-npm-7.0.0-060086935c-eec6e506c6.zip/node_modules/is-number/", @@ -1680,6 +2090,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["isarray", [ + ["npm:1.0.0", { + "packageLocation": "./.yarn/cache/isarray-npm-1.0.0-db4f547720-b0ff31a290.zip/node_modules/isarray/", + "packageDependencies": [ + ["isarray", "npm:1.0.0"] + ], + "linkType": "HARD", + }] + ]], ["isexe", [ ["npm:2.0.0", { "packageLocation": "./.yarn/cache/isexe-npm-2.0.0-b58870bd2e-7b437980bb.zip/node_modules/isexe/", @@ -1810,6 +2229,40 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["make-dir", [ + ["npm:3.1.0", { + "packageLocation": "./.yarn/cache/make-dir-npm-3.1.0-d1d7505142-54b6f186c2.zip/node_modules/make-dir/", + "packageDependencies": [ + ["make-dir", "npm:3.1.0"], + ["semver", "npm:6.3.0"] + ], + "linkType": "HARD", + }] + ]], + ["make-fetch-happen", [ + ["npm:8.0.14", { + "packageLocation": "./.yarn/cache/make-fetch-happen-npm-8.0.14-fa5d78adad-0847aca9a3.zip/node_modules/make-fetch-happen/", + "packageDependencies": [ + ["make-fetch-happen", "npm:8.0.14"], + ["agentkeepalive", "npm:4.1.4"], + ["cacache", "npm:15.2.0"], + ["http-cache-semantics", "npm:4.1.0"], + ["http-proxy-agent", "npm:4.0.1"], + ["https-proxy-agent", "npm:5.0.0"], + ["is-lambda", "npm:1.0.1"], + ["lru-cache", "npm:6.0.0"], + ["minipass", "npm:3.1.3"], + ["minipass-collect", "npm:1.0.2"], + ["minipass-fetch", "npm:1.3.3"], + ["minipass-flush", "npm:1.0.5"], + ["minipass-pipeline", "npm:1.2.4"], + ["promise-retry", "npm:2.0.1"], + ["socks-proxy-agent", "npm:5.0.0"], + ["ssri", "npm:8.0.1"] + ], + "linkType": "HARD", + }] + ]], ["media-typer", [ ["npm:0.3.0", { "packageLocation": "./.yarn/cache/media-typer-npm-0.3.0-8674f8f0f5-be1c825782.zip/node_modules/media-typer/", @@ -1866,6 +2319,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ], "linkType": "HARD", }], + ["npm:2.1.0", { + "packageLocation": "./.yarn/cache/mimic-response-npm-2.1.0-037463e454-9c206f3aeb.zip/node_modules/mimic-response/", + "packageDependencies": [ + ["mimic-response", "npm:2.1.0"] + ], + "linkType": "HARD", + }], ["npm:3.1.0", { "packageLocation": "./.yarn/cache/mimic-response-npm-3.1.0-a4a24b4e96-cfbf19f66d.zip/node_modules/mimic-response/", "packageDependencies": [ @@ -1884,6 +2344,89 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["minipass", [ + ["npm:3.1.3", { + "packageLocation": "./.yarn/cache/minipass-npm-3.1.3-af723e33f3-d12b95a845.zip/node_modules/minipass/", + "packageDependencies": [ + ["minipass", "npm:3.1.3"], + ["yallist", "npm:4.0.0"] + ], + "linkType": "HARD", + }] + ]], + ["minipass-collect", [ + ["npm:1.0.2", { + "packageLocation": "./.yarn/cache/minipass-collect-npm-1.0.2-3b4676eab5-529ef62123.zip/node_modules/minipass-collect/", + "packageDependencies": [ + ["minipass-collect", "npm:1.0.2"], + ["minipass", "npm:3.1.3"] + ], + "linkType": "HARD", + }] + ]], + ["minipass-fetch", [ + ["npm:1.3.3", { + "packageLocation": "./.yarn/cache/minipass-fetch-npm-1.3.3-6dd11d4b13-cc93f86391.zip/node_modules/minipass-fetch/", + "packageDependencies": [ + ["minipass-fetch", "npm:1.3.3"], + ["encoding", "npm:0.1.13"], + ["minipass", "npm:3.1.3"], + ["minipass-sized", "npm:1.0.3"], + ["minizlib", "npm:2.1.2"] + ], + "linkType": "HARD", + }] + ]], + ["minipass-flush", [ + ["npm:1.0.5", { + "packageLocation": "./.yarn/cache/minipass-flush-npm-1.0.5-efe79d9826-d354ca0da8.zip/node_modules/minipass-flush/", + "packageDependencies": [ + ["minipass-flush", "npm:1.0.5"], + ["minipass", "npm:3.1.3"] + ], + "linkType": "HARD", + }] + ]], + ["minipass-pipeline", [ + ["npm:1.2.4", { + "packageLocation": "./.yarn/cache/minipass-pipeline-npm-1.2.4-5924cb077f-001d5a4a0c.zip/node_modules/minipass-pipeline/", + "packageDependencies": [ + ["minipass-pipeline", "npm:1.2.4"], + ["minipass", "npm:3.1.3"] + ], + "linkType": "HARD", + }] + ]], + ["minipass-sized", [ + ["npm:1.0.3", { + "packageLocation": "./.yarn/cache/minipass-sized-npm-1.0.3-306d86f432-747cb22e8a.zip/node_modules/minipass-sized/", + "packageDependencies": [ + ["minipass-sized", "npm:1.0.3"], + ["minipass", "npm:3.1.3"] + ], + "linkType": "HARD", + }] + ]], + ["minizlib", [ + ["npm:2.1.2", { + "packageLocation": "./.yarn/cache/minizlib-npm-2.1.2-ea89cd0cfb-5a45b57b34.zip/node_modules/minizlib/", + "packageDependencies": [ + ["minizlib", "npm:2.1.2"], + ["minipass", "npm:3.1.3"], + ["yallist", "npm:4.0.0"] + ], + "linkType": "HARD", + }] + ]], + ["mkdirp", [ + ["npm:1.0.4", { + "packageLocation": "./.yarn/cache/mkdirp-npm-1.0.4-37f6ef56b9-1aa3a6a2d7.zip/node_modules/mkdirp/", + "packageDependencies": [ + ["mkdirp", "npm:1.0.4"] + ], + "linkType": "HARD", + }] + ]], ["moment", [ ["npm:2.29.1", { "packageLocation": "./.yarn/cache/moment-npm-2.29.1-787d9fdafd-86729013fe.zip/node_modules/moment/", @@ -1917,6 +2460,23 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { ["ms", "npm:2.1.2"] ], "linkType": "HARD", + }], + ["npm:2.1.3", { + "packageLocation": "./.yarn/cache/ms-npm-2.1.3-81ff3cfac1-6e721e648a.zip/node_modules/ms/", + "packageDependencies": [ + ["ms", "npm:2.1.3"] + ], + "linkType": "HARD", + }] + ]], + ["nan", [ + ["npm:2.14.2", { + "packageLocation": "./.yarn/unplugged/nan-npm-2.14.2-e3ede8ce5d/node_modules/nan/", + "packageDependencies": [ + ["nan", "npm:2.14.2"], + ["node-gyp", "npm:8.0.0"] + ], + "linkType": "HARD", }] ]], ["natural-compare", [ @@ -1937,6 +2497,35 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["node-gyp", [ + ["npm:8.0.0", { + "packageLocation": "./.yarn/unplugged/node-gyp-npm-8.0.0-a27599670d/node_modules/node-gyp/", + "packageDependencies": [ + ["node-gyp", "npm:8.0.0"], + ["env-paths", "npm:2.2.1"], + ["glob", "npm:7.1.7"], + ["graceful-fs", "npm:4.2.6"], + ["make-fetch-happen", "npm:8.0.14"], + ["nopt", "npm:5.0.0"], + ["npmlog", "npm:4.1.2"], + ["rimraf", "npm:3.0.2"], + ["semver", "npm:7.3.5"], + ["tar", "npm:6.1.0"], + ["which", "npm:2.0.2"] + ], + "linkType": "HARD", + }] + ]], + ["nopt", [ + ["npm:5.0.0", { + "packageLocation": "./.yarn/cache/nopt-npm-5.0.0-304b40fbfe-e1523158fc.zip/node_modules/nopt/", + "packageDependencies": [ + ["nopt", "npm:5.0.0"], + ["abbrev", "npm:1.1.1"] + ], + "linkType": "HARD", + }] + ]], ["normalize-url", [ ["npm:4.5.0", { "packageLocation": "./.yarn/cache/normalize-url-npm-4.5.0-14a0c5430f-09794941db.zip/node_modules/normalize-url/", @@ -1946,6 +2535,37 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["npmlog", [ + ["npm:4.1.2", { + "packageLocation": "./.yarn/cache/npmlog-npm-4.1.2-cfb32957b5-0cd63f127c.zip/node_modules/npmlog/", + "packageDependencies": [ + ["npmlog", "npm:4.1.2"], + ["are-we-there-yet", "npm:1.1.5"], + ["console-control-strings", "npm:1.1.0"], + ["gauge", "npm:2.7.4"], + ["set-blocking", "npm:2.0.0"] + ], + "linkType": "HARD", + }] + ]], + ["number-is-nan", [ + ["npm:1.0.1", { + "packageLocation": "./.yarn/cache/number-is-nan-npm-1.0.1-845325a0fe-42251b2653.zip/node_modules/number-is-nan/", + "packageDependencies": [ + ["number-is-nan", "npm:1.0.1"] + ], + "linkType": "HARD", + }] + ]], + ["object-assign", [ + ["npm:4.1.1", { + "packageLocation": "./.yarn/cache/object-assign-npm-4.1.1-1004ad6dec-66cf021898.zip/node_modules/object-assign/", + "packageDependencies": [ + ["object-assign", "npm:4.1.1"] + ], + "linkType": "HARD", + }] + ]], ["on-finished", [ ["npm:2.3.0", { "packageLocation": "./.yarn/cache/on-finished-npm-2.3.0-4ce92f72c6-362e646082.zip/node_modules/on-finished/", @@ -1990,6 +2610,16 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["p-map", [ + ["npm:4.0.0", { + "packageLocation": "./.yarn/cache/p-map-npm-4.0.0-4677ae07c7-d51e630d72.zip/node_modules/p-map/", + "packageDependencies": [ + ["p-map", "npm:4.0.0"], + ["aggregate-error", "npm:3.1.0"] + ], + "linkType": "HARD", + }] + ]], ["packet-reader", [ ["npm:1.0.0", { "packageLocation": "./.yarn/cache/packet-reader-npm-1.0.0-e93c92246b-fdbf006717.zip/node_modules/packet-reader/", @@ -2246,6 +2876,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["process-nextick-args", [ + ["npm:2.0.1", { + "packageLocation": "./.yarn/cache/process-nextick-args-npm-2.0.1-b8d7971609-ddeb0f07d0.zip/node_modules/process-nextick-args/", + "packageDependencies": [ + ["process-nextick-args", "npm:2.0.1"] + ], + "linkType": "HARD", + }] + ]], ["progress", [ ["npm:2.0.3", { "packageLocation": "./.yarn/cache/progress-npm-2.0.3-d1f87e2ac6-c46ef5a1de.zip/node_modules/progress/", @@ -2255,6 +2894,37 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["promise-inflight", [ + ["npm:1.0.1", { + "packageLocation": "./.yarn/cache/promise-inflight-npm-1.0.1-5bb925afac-c06bce0fc6.zip/node_modules/promise-inflight/", + "packageDependencies": [ + ["promise-inflight", "npm:1.0.1"] + ], + "linkType": "SOFT", + }], + ["virtual:7b4a3a5b83dd58ae7ce7698db506d3491e7014f774e78d5d0d3f6df0db964e99401515781c14a487335f1366f0d1c448759b6d13f1ae2d0ef08e605c4b8d5cd4#npm:1.0.1", { + "packageLocation": "./.yarn/$$virtual/promise-inflight-virtual-1670fc78d1/0/cache/promise-inflight-npm-1.0.1-5bb925afac-c06bce0fc6.zip/node_modules/promise-inflight/", + "packageDependencies": [ + ["promise-inflight", "virtual:7b4a3a5b83dd58ae7ce7698db506d3491e7014f774e78d5d0d3f6df0db964e99401515781c14a487335f1366f0d1c448759b6d13f1ae2d0ef08e605c4b8d5cd4#npm:1.0.1"], + ["bluebird", null] + ], + "packagePeers": [ + "bluebird" + ], + "linkType": "HARD", + }] + ]], + ["promise-retry", [ + ["npm:2.0.1", { + "packageLocation": "./.yarn/cache/promise-retry-npm-2.0.1-871f0b01b7-325e99d059.zip/node_modules/promise-retry/", + "packageDependencies": [ + ["promise-retry", "npm:2.0.1"], + ["err-code", "npm:2.0.3"], + ["retry", "npm:0.12.0"] + ], + "linkType": "HARD", + }] + ]], ["pump", [ ["npm:3.0.0", { "packageLocation": "./.yarn/cache/pump-npm-3.0.0-0080bf6a7a-5464d5cf6c.zip/node_modules/pump/", @@ -2316,6 +2986,20 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["readable-stream", [ + ["npm:2.3.7", { + "packageLocation": "./.yarn/cache/readable-stream-npm-2.3.7-77b22a9818-6e38265606.zip/node_modules/readable-stream/", + "packageDependencies": [ + ["readable-stream", "npm:2.3.7"], + ["core-util-is", "npm:1.0.2"], + ["inherits", "npm:2.0.4"], + ["isarray", "npm:1.0.0"], + ["process-nextick-args", "npm:2.0.1"], + ["safe-buffer", "npm:5.1.2"], + ["string_decoder", "npm:1.1.1"], + ["util-deprecate", "npm:1.0.2"] + ], + "linkType": "HARD", + }], ["npm:3.6.0", { "packageLocation": "./.yarn/cache/readable-stream-npm-3.6.0-23a4a5eb56-f178b1daa8.zip/node_modules/readable-stream/", "packageDependencies": [ @@ -2373,6 +3057,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["retry", [ + ["npm:0.12.0", { + "packageLocation": "./.yarn/cache/retry-npm-0.12.0-72ac7fb4cc-51f2fddddb.zip/node_modules/retry/", + "packageDependencies": [ + ["retry", "npm:0.12.0"] + ], + "linkType": "HARD", + }] + ]], ["retry-as-promised", [ ["npm:3.2.0", { "packageLocation": "./.yarn/cache/retry-as-promised-npm-3.2.0-292b66348b-4aab2302ba.zip/node_modules/retry-as-promised/", @@ -2413,6 +3106,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["safe-buffer", [ + ["npm:5.1.2", { + "packageLocation": "./.yarn/cache/safe-buffer-npm-5.1.2-c27fedf6c4-2708587c1b.zip/node_modules/safe-buffer/", + "packageDependencies": [ + ["safe-buffer", "npm:5.1.2"] + ], + "linkType": "HARD", + }], ["npm:5.2.1", { "packageLocation": "./.yarn/cache/safe-buffer-npm-5.2.1-3481c8aa9b-0bb57f0d8f.zip/node_modules/safe-buffer/", "packageDependencies": [ @@ -2431,6 +3131,13 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["semver", [ + ["npm:6.3.0", { + "packageLocation": "./.yarn/cache/semver-npm-6.3.0-b3eace8bfd-f0d155c06a.zip/node_modules/semver/", + "packageDependencies": [ + ["semver", "npm:6.3.0"] + ], + "linkType": "HARD", + }], ["npm:7.3.5", { "packageLocation": "./.yarn/cache/semver-npm-7.3.5-618cf5db6a-c53624ddf4.zip/node_modules/semver/", "packageDependencies": [ @@ -2492,6 +3199,15 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["set-blocking", [ + ["npm:2.0.0", { + "packageLocation": "./.yarn/cache/set-blocking-npm-2.0.0-49e2cffa24-0ac2403b0c.zip/node_modules/set-blocking/", + "packageDependencies": [ + ["set-blocking", "npm:2.0.0"] + ], + "linkType": "HARD", + }] + ]], ["setprototypeof", [ ["npm:1.1.1", { "packageLocation": "./.yarn/cache/setprototypeof-npm-1.1.1-706b6318ec-0efed4da5a.zip/node_modules/setprototypeof/", @@ -2520,6 +3236,36 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["signal-exit", [ + ["npm:3.0.3", { + "packageLocation": "./.yarn/cache/signal-exit-npm-3.0.3-5a2d797648-f8f3fec95c.zip/node_modules/signal-exit/", + "packageDependencies": [ + ["signal-exit", "npm:3.0.3"] + ], + "linkType": "HARD", + }] + ]], + ["simple-concat", [ + ["npm:1.0.1", { + "packageLocation": "./.yarn/cache/simple-concat-npm-1.0.1-48df70de29-4623960448.zip/node_modules/simple-concat/", + "packageDependencies": [ + ["simple-concat", "npm:1.0.1"] + ], + "linkType": "HARD", + }] + ]], + ["simple-get", [ + ["npm:3.1.0", { + "packageLocation": "./.yarn/cache/simple-get-npm-3.1.0-8c6f03c4cd-f56f08765e.zip/node_modules/simple-get/", + "packageDependencies": [ + ["simple-get", "npm:3.1.0"], + ["decompress-response", "npm:4.2.1"], + ["once", "npm:1.4.0"], + ["simple-concat", "npm:1.0.1"] + ], + "linkType": "HARD", + }] + ]], ["slash", [ ["npm:3.0.0", { "packageLocation": "./.yarn/cache/slash-npm-3.0.0-b87de2279a-fc3e8597d8.zip/node_modules/slash/", @@ -2541,6 +3287,38 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["smart-buffer", [ + ["npm:4.1.0", { + "packageLocation": "./.yarn/cache/smart-buffer-npm-4.1.0-2a8829a5b4-00a23d82a2.zip/node_modules/smart-buffer/", + "packageDependencies": [ + ["smart-buffer", "npm:4.1.0"] + ], + "linkType": "HARD", + }] + ]], + ["socks", [ + ["npm:2.6.1", { + "packageLocation": "./.yarn/cache/socks-npm-2.6.1-09133d0d22-9a5735cf9b.zip/node_modules/socks/", + "packageDependencies": [ + ["socks", "npm:2.6.1"], + ["ip", "npm:1.1.5"], + ["smart-buffer", "npm:4.1.0"] + ], + "linkType": "HARD", + }] + ]], + ["socks-proxy-agent", [ + ["npm:5.0.0", { + "packageLocation": "./.yarn/cache/socks-proxy-agent-npm-5.0.0-0416dc71b7-3d6d5e4425.zip/node_modules/socks-proxy-agent/", + "packageDependencies": [ + ["socks-proxy-agent", "npm:5.0.0"], + ["agent-base", "npm:6.0.2"], + ["debug", "virtual:428f325a939c2653ad822eb3d75efb02ac311523dd0d4f9645afc39ea00bd86eceac35a9d59c9b6977d76b670a4ef0ae057ea572338a44729aa592711a8c05a3#npm:4.3.2"], + ["socks", "npm:2.6.1"] + ], + "linkType": "HARD", + }] + ]], ["source-map", [ ["npm:0.6.1", { "packageLocation": "./.yarn/cache/source-map-npm-0.6.1-1a3621db16-8647829a06.zip/node_modules/source-map/", @@ -2580,6 +3358,16 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["ssri", [ + ["npm:8.0.1", { + "packageLocation": "./.yarn/cache/ssri-npm-8.0.1-a369e72ce2-d45f9a1d56.zip/node_modules/ssri/", + "packageDependencies": [ + ["ssri", "npm:8.0.1"], + ["minipass", "npm:3.1.3"] + ], + "linkType": "HARD", + }] + ]], ["statuses", [ ["npm:1.5.0", { "packageLocation": "./.yarn/cache/statuses-npm-1.5.0-f88f91b2e9-57735269bf.zip/node_modules/statuses/", @@ -2590,6 +3378,25 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["string-width", [ + ["npm:1.0.2", { + "packageLocation": "./.yarn/cache/string-width-npm-1.0.2-01031f9add-b11745daa9.zip/node_modules/string-width/", + "packageDependencies": [ + ["string-width", "npm:1.0.2"], + ["code-point-at", "npm:1.1.0"], + ["is-fullwidth-code-point", "npm:1.0.0"], + ["strip-ansi", "npm:3.0.1"] + ], + "linkType": "HARD", + }], + ["npm:2.1.1", { + "packageLocation": "./.yarn/cache/string-width-npm-2.1.1-0c2c6ae53f-906b4887c3.zip/node_modules/string-width/", + "packageDependencies": [ + ["string-width", "npm:2.1.1"], + ["is-fullwidth-code-point", "npm:2.0.0"], + ["strip-ansi", "npm:4.0.0"] + ], + "linkType": "HARD", + }], ["npm:4.2.2", { "packageLocation": "./.yarn/cache/string-width-npm-4.2.2-aa12d6b759-d42484f5fd.zip/node_modules/string-width/", "packageDependencies": [ @@ -2602,6 +3409,14 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["string_decoder", [ + ["npm:1.1.1", { + "packageLocation": "./.yarn/cache/string_decoder-npm-1.1.1-e46a6c1353-bc2dc169d8.zip/node_modules/string_decoder/", + "packageDependencies": [ + ["string_decoder", "npm:1.1.1"], + ["safe-buffer", "npm:5.1.2"] + ], + "linkType": "HARD", + }], ["npm:1.3.0", { "packageLocation": "./.yarn/cache/string_decoder-npm-1.3.0-2422117fd0-0a09afb610.zip/node_modules/string_decoder/", "packageDependencies": [ @@ -2612,6 +3427,22 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { }] ]], ["strip-ansi", [ + ["npm:3.0.1", { + "packageLocation": "./.yarn/cache/strip-ansi-npm-3.0.1-6aec1365b9-98772dcf44.zip/node_modules/strip-ansi/", + "packageDependencies": [ + ["strip-ansi", "npm:3.0.1"], + ["ansi-regex", "npm:2.1.1"] + ], + "linkType": "HARD", + }], + ["npm:4.0.0", { + "packageLocation": "./.yarn/cache/strip-ansi-npm-4.0.0-d4de985014-9ac63872c2.zip/node_modules/strip-ansi/", + "packageDependencies": [ + ["strip-ansi", "npm:4.0.0"], + ["ansi-regex", "npm:3.0.0"] + ], + "linkType": "HARD", + }], ["npm:6.0.0", { "packageLocation": "./.yarn/cache/strip-ansi-npm-6.0.0-904613e9eb-10568c91ca.zip/node_modules/strip-ansi/", "packageDependencies": [ @@ -2663,6 +3494,21 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["tar", [ + ["npm:6.1.0", { + "packageLocation": "./.yarn/cache/tar-npm-6.1.0-21d6116ed9-d1d988eceb.zip/node_modules/tar/", + "packageDependencies": [ + ["tar", "npm:6.1.0"], + ["chownr", "npm:2.0.0"], + ["fs-minipass", "npm:2.1.0"], + ["minipass", "npm:3.1.3"], + ["minizlib", "npm:2.1.2"], + ["mkdirp", "npm:1.0.4"], + ["yallist", "npm:4.0.0"] + ], + "linkType": "HARD", + }] + ]], ["text-table", [ ["npm:0.2.0", { "packageLocation": "./.yarn/cache/text-table-npm-0.2.0-d92a778b59-373904ce70.zip/node_modules/text-table/", @@ -2810,6 +3656,26 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["unique-filename", [ + ["npm:1.1.1", { + "packageLocation": "./.yarn/cache/unique-filename-npm-1.1.1-c885c5095b-0e674206bd.zip/node_modules/unique-filename/", + "packageDependencies": [ + ["unique-filename", "npm:1.1.1"], + ["unique-slug", "npm:2.0.2"] + ], + "linkType": "HARD", + }] + ]], + ["unique-slug", [ + ["npm:2.0.2", { + "packageLocation": "./.yarn/cache/unique-slug-npm-2.0.2-f6ba1ddeb7-3b17dabc13.zip/node_modules/unique-slug/", + "packageDependencies": [ + ["unique-slug", "npm:2.0.2"], + ["imurmurhash", "npm:0.1.4"] + ], + "linkType": "HARD", + }] + ]], ["unpipe", [ ["npm:1.0.0", { "packageLocation": "./.yarn/cache/unpipe-npm-1.0.0-2ed2a3c2bf-ba244e8bf6.zip/node_modules/unpipe/", @@ -2875,6 +3741,16 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) { "linkType": "HARD", }] ]], + ["wide-align", [ + ["npm:1.1.3", { + "packageLocation": "./.yarn/cache/wide-align-npm-1.1.3-48c7d4953c-4f850f84da.zip/node_modules/wide-align/", + "packageDependencies": [ + ["wide-align", "npm:1.1.3"], + ["string-width", "npm:2.1.1"] + ], + "linkType": "HARD", + }] + ]], ["wkx", [ ["npm:0.5.0", { "packageLocation": "./.yarn/cache/wkx-npm-0.5.0-fca5152cd8-ea38c886b8.zip/node_modules/wkx/", diff --git a/package.json b/package.json index 75fd6c2..3d2ae60 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ }, "dependencies": { "body-parser": "^1.19.0", + "canvas": "^2.8.0", "chalk": "^4.1.1", "common-tags": "^1.8.0", "discord-akairo": "SkyblockDev/discord-akairo#f6068977cc493884be781020d37109f15c8f7848", diff --git a/src/commands/info/pronouns.ts b/src/commands/info/pronouns.ts index 07d210f..97cca34 100644 --- a/src/commands/info/pronouns.ts +++ b/src/commands/info/pronouns.ts @@ -59,9 +59,17 @@ export default class PronounsCommand extends BotCommand { slashEmphemeral: true // I'll add dynamic checking to this later }); } - async sendResponse(message: Message|CommandInteraction, user: User, author: boolean): Promise { + async sendResponse( + message: Message | CommandInteraction, + user: User, + author: boolean + ): Promise { try { - const apiRes: { pronouns: pronounsType } = await got.get(`https://pronoundb.org/api/v1/lookup?platform=discord&id=${user.id}`).json(); + const apiRes: { pronouns: pronounsType } = await got + .get( + `https://pronoundb.org/api/v1/lookup?platform=discord&id=${user.id}` + ) + .json(); if (message instanceof Message) { message.reply( new MessageEmbed({ @@ -71,7 +79,7 @@ export default class PronounsCommand extends BotCommand { text: 'Data provided by https://pronoundb.org/' } }) - ) + ); } else { message.reply({ embeds: [ @@ -83,24 +91,31 @@ export default class PronounsCommand extends BotCommand { } }) ] - }) + }); } } catch (e) { if (e instanceof HTTPError && e.response.statusCode === 404) { if (author) { - await message.reply('You do not appear to have any pronouns set. Please go to https://pronoundb.org/ and set your pronouns.'); + await message.reply( + 'You do not appear to have any pronouns set. Please go to https://pronoundb.org/ and set your pronouns.' + ); } else { - await message.reply(`${user.tag} does not appear to have any pronouns set. Please tell them to go to https://pronoundb.org/ and set their pronouns.`); + await message.reply( + `${user.tag} does not appear to have any pronouns set. Please tell them to go to https://pronoundb.org/ and set their pronouns.` + ); } } else throw e; } } async exec(message: Message, { user }: { user?: User }): Promise { const u = user || message.author; - await this.sendResponse(message, u, u.id === message.author.id) + await this.sendResponse(message, u, u.id === message.author.id); } - async execSlash(message: CommandInteraction, { user }: { user?: SlashCommandOption }): Promise { - const u = user?.user || message.user - await this.sendResponse(message, u, u.id === message.user.id) + async execSlash( + message: CommandInteraction, + { user }: { user?: SlashCommandOption } + ): Promise { + const u = user?.user || message.user; + await this.sendResponse(message, u, u.id === message.user.id); } -} \ No newline at end of file +} diff --git a/src/commands/moulberry-bush/level.ts b/src/commands/moulberry-bush/level.ts index ab08361..046940a 100644 --- a/src/commands/moulberry-bush/level.ts +++ b/src/commands/moulberry-bush/level.ts @@ -5,6 +5,11 @@ import { CommandInteraction } from 'discord.js'; import { User } from 'discord.js'; import { BotCommand } from '../../lib/extensions/BotCommand'; import { Level } from '../../lib/models'; +import canvas from 'canvas'; +import { MessageAttachment } from 'discord.js'; +import { join } from 'path'; +import got from 'got/dist/source'; +import { CanvasProgressBar } from '../../lib/extensions/Util'; export default class LevelCommand extends BotCommand { constructor() { @@ -38,24 +43,121 @@ export default class LevelCommand extends BotCommand { }); } + // private simplifyXP(xp: number): string { + + // } + + // private async getImage(user: User): Promise { + // // I added comments because this code is impossible to read + // const [userLevelRow] = await Level.findOrBuild({ + // where: { + // id: user.id + // }, + // defaults: { + // id: user.id + // } + // }); + // const userLevel = userLevelRow.level + // const currentLevelXP = Level.convertLevelToXp(userLevel); + // const currentLevelXPProgress = userLevelRow.xp - currentLevelXP; + // const xpForNextLevel = + // Level.convertLevelToXp(userLevelRow.level + 1) - currentLevelXP; + // // Load roboto font because yes + // canvas.registerFont( + // join(__dirname, '..', '..', '..', 'Roboto-Regular.ttf'), + // { + // family: 'Roboto' + // } + // ); + // // Create image canvas + // const image = canvas.createCanvas(800, 200), + // ctx = image.getContext('2d'); + // // Fill background + // ctx.fillStyle = '#00c7eb'; + // ctx.fillRect(0, 0, image.width, image.height); + // // Draw avatar + // const avatarBuffer = await got + // .get(user.displayAvatarURL({ format: 'png', size: 128 })) + // .buffer(); + // const avatarImage = new canvas.Image(); + // avatarImage.src = avatarBuffer; + // avatarImage.height = 128 + // avatarImage.width = 128 + // const imageTopCoord = (image.height / 2) - (avatarImage.height / 2) + // ctx.drawImage(avatarImage, imageTopCoord, imageTopCoord); + // // Write tag of user + // ctx.font = '30px Roboto'; + // ctx.fillStyle = 'black'; + // const measuredTag = ctx.measureText(user.tag); + // ctx.fillText(user.tag, avatarImage.width + 70, 60); + // // Draw line under tag + // ctx.fillStyle = 'yellow'; + // ctx.fillRect( + // avatarImage.width + 70, + // 65 + measuredTag.actualBoundingBoxDescent, + // measuredTag.width, + // 3 + // ); + // // Draw leveling bar + // const fullProgressBar = new CanvasProgressBar( + // ctx, + // { + // x: avatarImage.width + 70, + // y: avatarImage.height - 10, + // height: 30, + // width: 550 + // }, + // '#6e6e6e', + // 1 + // ); + // fullProgressBar.draw(); + // const progressBar = new CanvasProgressBar( + // ctx, + // { + // x: avatarImage.width + 70, + // y: avatarImage.height - 10, + // height: 30, + // width: 550 + // }, + // 'yellow', + // currentLevelXPProgress / xpForNextLevel + // ); + // progressBar.draw(); + // // Draw level data text + // ctx.fillStyle = 'black' + // ctx.fillText(`Level: ${userLevel} XP: $`, avatarImage.width + 70, avatarImage.height - 20) + // // Return image in buffer form + // return image.toBuffer(); + // } + private async getResponse(user: User): Promise { const userLevelRow = await Level.findByPk(user.id); if (userLevelRow) { - return `${user ? `${user.tag}'s` : 'Your'} level is ${ - userLevelRow.level - } (${userLevelRow.xp} XP)`; + return `${user ? `${user.tag}'s` : 'Your'} level is ${userLevelRow.level} (${userLevelRow.xp} XP)`; } else { return `${user ? `${user.tag} does` : 'You do'} not have a level yet!`; } } async exec(message: Message, { user }: { user?: User }): Promise { + // await message.reply( + // new MessageAttachment( + // await this.getImage(user || message.author), + // 'lel.png' + // ) + // ); await message.reply(await this.getResponse(user || message.author)); } async execSlash( message: CommandInteraction, { user }: { user?: CommandInteractionOption } ): Promise { + // await message.reply( + // new MessageAttachment( + // await this.getImage(user?.user || message.user), + // 'lel.png' + // ) + // ); await message.reply(await this.getResponse(user?.user || message.user)); } } diff --git a/src/commands/owner/reload.ts b/src/commands/owner/reload.ts index 0330b27..8ba6160 100644 --- a/src/commands/owner/reload.ts +++ b/src/commands/owner/reload.ts @@ -2,6 +2,8 @@ import { BotCommand } from '../../lib/extensions/BotCommand'; import { stripIndent } from 'common-tags'; import { Message } from 'discord.js'; import { CommandInteraction } from 'discord.js'; +import { SlashCommandOption } from '../../lib/extensions/Util'; +import { ApplicationCommandOptionType } from 'discord-api-types'; export default class ReloadCommand extends BotCommand { constructor() { @@ -12,19 +14,36 @@ export default class ReloadCommand extends BotCommand { usage: 'reload', examples: ['reload'] }, + args: [ + { + id: 'fast', + match: 'flag', + flag: '--fast' + } + ], ownerOnly: true, - typing: true + typing: true, + slashCommandOptions: [ + { + type: ApplicationCommandOptionType.BOOLEAN, + name: 'fast', + description: 'Wheather to use esbuild for fast compiling or not', + required: false + } + ] }); } - private async getResponse(): Promise { + private async getResponse(fast: boolean): Promise { try { - await this.client.util.shell('yarn rimraf dist/'); - await this.client.util.shell('yarn tsc'); + const s = new Date(); + await this.client.util.shell(`yarn build-${fast ? 'esbuild' : 'tsc'}`); this.client.commandHandler.reloadAll(); this.client.listenerHandler.reloadAll(); this.client.inhibitorHandler.reloadAll(); - return '🔁 Successfully reloaded!'; + return `🔁 Successfully reloaded! (${ + new Date().getTime() - s.getTime() + }ms)`; } catch (e) { return stripIndent` An error occured while reloading: @@ -33,11 +52,17 @@ export default class ReloadCommand extends BotCommand { } } - public async exec(message: Message): Promise { - await message.util.send(await this.getResponse()); + public async exec( + message: Message, + { fast }: { fast: boolean } + ): Promise { + await message.util.send(await this.getResponse(fast)); } - public async execSlash(message: CommandInteraction): Promise { - await message.reply(await this.getResponse()); + public async execSlash( + message: CommandInteraction, + { fast }: { fast: SlashCommandOption } + ): Promise { + await message.reply(await this.getResponse(fast?.value)); } } diff --git a/src/lib/extensions/BotClient.ts b/src/lib/extensions/BotClient.ts index c98f50d..13c8a76 100644 --- a/src/lib/extensions/BotClient.ts +++ b/src/lib/extensions/BotClient.ts @@ -143,11 +143,7 @@ export class BotClient extends AkairoClient { Models.Modlog.initModel(this.db); Models.Ban.initModel(this.db); Models.Level.initModel(this.db); - try { - await this.db.sync(); // Sync all tables to fix everything if updated - } catch { - // Ignore error - } + await this.db.sync(); // Sync all tables to fix everything if updated } public async start(): Promise { diff --git a/src/lib/extensions/Util.ts b/src/lib/extensions/Util.ts index bd6823f..5e9d5e7 100644 --- a/src/lib/extensions/Util.ts +++ b/src/lib/extensions/Util.ts @@ -246,10 +246,13 @@ export class Util extends ClientUtil { } public async syncSlashCommands(force = false, guild?: string): Promise { - let fetchedGuild: Guild + let fetchedGuild: Guild; if (guild) fetchedGuild = this.client.guilds.cache.get(guild); try { - const registered = guild === undefined ? await this.client.application.commands.fetch() : await fetchedGuild.commands.fetch(); + const registered = + guild === undefined + ? await this.client.application.commands.fetch() + : await fetchedGuild.commands.fetch(); for (const [, registeredCommand] of registered) { if ( !this.client.commandHandler.modules.find( @@ -257,9 +260,15 @@ export class Util extends ClientUtil { )?.execSlash || force ) { - guild === undefined ? await this.client.application.commands.delete(registeredCommand.id) : await fetchedGuild.commands.delete(registeredCommand.id); + guild === undefined + ? await this.client.application.commands.delete( + registeredCommand.id + ) + : await fetchedGuild.commands.delete(registeredCommand.id); this.client.logger.verbose( - chalk`{red Deleted slash command ${registeredCommand.name}${guild !== undefined ? ` in guild ${fetchedGuild.name}`:''}}` + chalk`{red Deleted slash command ${registeredCommand.name}${ + guild !== undefined ? ` in guild ${fetchedGuild.name}` : '' + }}` ); } } @@ -276,25 +285,44 @@ export class Util e