diff --git a/services/bot/package.json b/services/bot/package.json index f945e37..e7d9031 100644 --- a/services/bot/package.json +++ b/services/bot/package.json @@ -55,7 +55,7 @@ "@typescript-eslint/parser": "^4.29.0", "babel-jest": "^26.0.22", "eslint": "^7.32.0", - "eslint-plugin-jsdoc": "^35.5.1", + "eslint-plugin-jsdoc": "^36.1.0", "jest": "^26.6.3", "mock-fs": "^5.0.0", "mockdate": "^3.0.5", @@ -73,7 +73,7 @@ "express": "^4.16.4", "migrate-mongo": "^8.2.2", "moment": "^2.29.1", - "mongoose": "^5.13.0", + "mongoose": "^6.0.5", "string-similarity": "^4.0.4", "webex": "1.133.1", "winston": "^3.3.3" diff --git a/services/bot/yarn.lock b/services/bot/yarn.lock index a57b164..7adba07 100644 --- a/services/bot/yarn.lock +++ b/services/bot/yarn.lock @@ -858,13 +858,13 @@ enabled "2.0.x" kuler "^2.0.0" -"@es-joy/jsdoccomment@0.9.0-alpha.1": - version "0.9.0-alpha.1" - resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.9.0-alpha.1.tgz#f48bd162e185ec7f9f222273a282d10e52fe52f7" +"@es-joy/jsdoccomment@0.10.8": + version "0.10.8" + resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.10.8.tgz#b3152887e25246410ed4ea569a55926ec13b2b05" dependencies: - comment-parser "1.1.6-beta.0" + comment-parser "1.2.4" esquery "^1.4.0" - jsdoc-type-pratt-parser "1.0.4" + jsdoc-type-pratt-parser "1.1.1" "@eslint/eslintrc@^0.4.3": version "0.4.3" @@ -1211,12 +1211,6 @@ "@types/connect" "*" "@types/node" "*" -"@types/bson@*": - version "4.0.3" - resolved "https://registry.npmjs.org/@types/bson/-/bson-4.0.3.tgz" - dependencies: - "@types/node" "*" - "@types/cacheable-request@^6.0.1": version "6.0.1" resolved "https://registry.npmjs.org/@types/cacheable-request/-/cacheable-request-6.0.1.tgz" @@ -1306,13 +1300,6 @@ dependencies: "@types/node" "*" -"@types/mongodb@^3.5.27": - version "3.6.17" - resolved "https://registry.npmjs.org/@types/mongodb/-/mongodb-3.6.17.tgz" - dependencies: - "@types/bson" "*" - "@types/node" "*" - "@types/mongoose@^5.11.97": version "5.11.97" resolved "https://registry.yarnpkg.com/@types/mongoose/-/mongoose-5.11.97.tgz#80b0357f3de6807eb597262f52e49c3e13ee14d8" @@ -1371,6 +1358,17 @@ version "8.3.0" resolved "https://registry.npmjs.org/@types/uuid/-/uuid-8.3.0.tgz" +"@types/webidl-conversions@*": + version "6.1.1" + resolved "https://registry.yarnpkg.com/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz#e33bc8ea812a01f63f90481c666334844b12a09e" + +"@types/whatwg-url@^8.2.1": + version "8.2.1" + resolved "https://registry.yarnpkg.com/@types/whatwg-url/-/whatwg-url-8.2.1.tgz#f1aac222dab7c59e011663a0cb0a3117b2ef05d4" + dependencies: + "@types/node" "*" + "@types/webidl-conversions" "*" + "@types/yargs-parser@*": version "20.2.0" resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-20.2.0.tgz" @@ -2289,10 +2287,6 @@ bl@^2.2.1: readable-stream "^2.3.5" safe-buffer "^5.1.1" -bluebird@3.5.1: - version "3.5.1" - resolved "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz" - body-parser@1.19.0: version "1.19.0" resolved "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz" @@ -2383,6 +2377,12 @@ bson@^1.1.4: version "1.1.6" resolved "https://registry.npmjs.org/bson/-/bson-1.1.6.tgz" +bson@^4.2.2, bson@^4.5.1: + version "4.5.1" + resolved "https://registry.yarnpkg.com/bson/-/bson-4.5.1.tgz#02e9d649ce017ab14ed258737756c11809963d6c" + dependencies: + buffer "^5.6.0" + btoa@^1.2.1: version "1.2.1" resolved "https://registry.npmjs.org/btoa/-/btoa-1.2.1.tgz" @@ -2395,7 +2395,7 @@ buffer-from@1.x, buffer-from@^1.0.0: version "1.1.1" resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz" -buffer@^5.5.0: +buffer@^5.5.0, buffer@^5.6.0: version "5.7.1" resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz" dependencies: @@ -2687,9 +2687,9 @@ comment-json@^2.2.0: has-own-prop "^2.0.0" repeat-string "^1.6.1" -comment-parser@1.1.6-beta.0: - version "1.1.6-beta.0" - resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-1.1.6-beta.0.tgz#57e503b18d0a5bd008632dcc54b1f95c2fffe8f6" +comment-parser@1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-1.2.4.tgz#489f3ee55dfd184a6e4bffb31baba284453cb760" compare-versions@^3.4.0: version "3.6.0" @@ -2836,13 +2836,7 @@ debug@2.6.9, debug@^2.2.0, debug@^2.3.3: dependencies: ms "2.0.0" -debug@3.1.0: - version "3.1.0" - resolved "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz" - dependencies: - ms "2.0.0" - -debug@4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2: +debug@4, debug@4.x, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2: version "4.3.2" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" dependencies: @@ -2943,6 +2937,10 @@ denque@^1.4.1: version "1.5.0" resolved "https://registry.npmjs.org/denque/-/denque-1.5.0.tgz" +denque@^1.5.0: + version "1.5.1" + resolved "https://registry.yarnpkg.com/denque/-/denque-1.5.1.tgz#07f670e29c9a78f8faecb2566a1e2c11929c5cbf" + depd@~1.1.2: version "1.1.2" resolved "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz" @@ -3117,15 +3115,15 @@ escodegen@^2.0.0: optionalDependencies: source-map "~0.6.1" -eslint-plugin-jsdoc@^35.5.1: - version "35.5.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-35.5.1.tgz#45932ee22669bbe06c97b82b936d56361efad370" +eslint-plugin-jsdoc@^36.1.0: + version "36.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-36.1.0.tgz#8dfe5f27edfb6aa3812e6d86ccaea849ddc86b03" dependencies: - "@es-joy/jsdoccomment" "0.9.0-alpha.1" - comment-parser "1.1.6-beta.0" + "@es-joy/jsdoccomment" "0.10.8" + comment-parser "1.2.4" debug "^4.3.2" esquery "^1.4.0" - jsdoc-type-pratt-parser "^1.0.4" + jsdoc-type-pratt-parser "^1.1.1" lodash "^4.17.21" regextras "^0.8.0" semver "^7.3.5" @@ -4563,9 +4561,9 @@ jsbn@~0.1.0: version "0.1.1" resolved "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz" -jsdoc-type-pratt-parser@1.0.4, jsdoc-type-pratt-parser@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-1.0.4.tgz#5750d2d32ffb001866537d3baaedea7cf84c7036" +jsdoc-type-pratt-parser@1.1.1, jsdoc-type-pratt-parser@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-1.1.1.tgz#10fe5e409ba38de22a48b555598955a26ff0160f" jsdom@^16.4.0: version "16.6.0" @@ -5111,15 +5109,20 @@ moment@^2.29.1: version "2.29.1" resolved "https://registry.npmjs.org/moment/-/moment-2.29.1.tgz" -mongodb@3.6.8: - version "3.6.8" - resolved "https://registry.npmjs.org/mongodb/-/mongodb-3.6.8.tgz" +mongodb-connection-string-url@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mongodb-connection-string-url/-/mongodb-connection-string-url-2.0.0.tgz#72cea65084ffa45655670070efb57bb0a5da46bc" dependencies: - bl "^2.2.1" - bson "^1.1.4" - denque "^1.4.1" - optional-require "^1.0.3" - safe-buffer "^5.1.2" + "@types/whatwg-url" "^8.2.1" + whatwg-url "^9.1.0" + +mongodb@4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-4.1.1.tgz#d328e832675e7351f58b642f833126dc89ac2e66" + dependencies: + bson "^4.5.1" + denque "^1.5.0" + mongodb-connection-string-url "^2.0.0" optionalDependencies: saslprep "^1.0.0" @@ -5135,39 +5138,30 @@ mongodb@^3.6.4: optionalDependencies: saslprep "^1.0.0" -mongoose-legacy-pluralize@1.0.2: - version "1.0.2" - resolved "https://registry.npmjs.org/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz" - -mongoose@*, mongoose@^5.13.0: - version "5.13.0" - resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-5.13.0.tgz#3d5241991261681a913696d5b7c88f76b31aedb0" +mongoose@*, mongoose@^6.0.5: + version "6.0.5" + resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-6.0.5.tgz#42648005d13b49261c757607d1f23761b59a610d" dependencies: - "@types/mongodb" "^3.5.27" - bson "^1.1.4" + bson "^4.2.2" kareem "2.3.2" - mongodb "3.6.8" - mongoose-legacy-pluralize "1.0.2" - mpath "0.8.3" - mquery "3.2.5" + mongodb "4.1.1" + mpath "0.8.4" + mquery "4.0.0" ms "2.1.2" regexp-clone "1.0.0" - safe-buffer "5.2.1" sift "13.5.2" sliced "1.0.1" -mpath@0.8.3: - version "0.8.3" - resolved "https://registry.npmjs.org/mpath/-/mpath-0.8.3.tgz" +mpath@0.8.4: + version "0.8.4" + resolved "https://registry.yarnpkg.com/mpath/-/mpath-0.8.4.tgz#6b566d9581621d9e931dd3b142ed3618e7599313" -mquery@3.2.5: - version "3.2.5" - resolved "https://registry.npmjs.org/mquery/-/mquery-3.2.5.tgz" +mquery@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/mquery/-/mquery-4.0.0.tgz#6c62160ad25289e99e0840907757cdfd62bde775" dependencies: - bluebird "3.5.1" - debug "3.1.0" + debug "4.x" regexp-clone "^1.0.0" - safe-buffer "5.1.2" sliced "1.0.1" mrm-core@^6.1.2: @@ -6041,7 +6035,7 @@ run-parallel@^1.1.9: dependencies: queue-microtask "^1.2.2" -safe-buffer@*, safe-buffer@5.2.1, safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: +safe-buffer@*, safe-buffer@^5.0.1, safe-buffer@^5.1.1, safe-buffer@^5.1.2, safe-buffer@^5.2.0, safe-buffer@~5.2.0: version "5.2.1" resolved "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz" @@ -6625,7 +6619,7 @@ tough-cookie@~2.5.0: psl "^1.1.28" punycode "^2.1.1" -tr46@^2.0.2: +tr46@^2.0.2, tr46@^2.1.0: version "2.1.0" resolved "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz" dependencies: @@ -7002,6 +6996,13 @@ whatwg-url@^8.0.0, whatwg-url@^8.5.0: tr46 "^2.0.2" webidl-conversions "^6.1.0" +whatwg-url@^9.1.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-9.1.0.tgz#1b112cf237d72cd64fa7882b9c3f6234a1c3050d" + dependencies: + tr46 "^2.1.0" + webidl-conversions "^6.1.0" + which-module@^2.0.0: version "2.0.0" resolved "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz"