From 0c19f6864977849daac8bd0841b108f284bad353 Mon Sep 17 00:00:00 2001 From: Manuel Ruck Date: Sat, 21 Oct 2023 20:09:41 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=93=A6=EF=B8=8F=20add=20common?= =?UTF-8?q?=20packages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Manuel Ruck --- common/bundestagio/package.json | 21 +- common/bundestagio/src/utils/tools.ts | 24 +- common/bundestagio/yarn.lock | 658 ------ common/democracy/package.json | 19 +- common/democracy/src/models/cronjob/schema.ts | 16 +- common/democracy/src/utils/cronjobs.ts | 25 +- common/democracy/yarn.lock | 369 ---- pnpm-lock.yaml | 1962 ++++------------- pnpm-workspace.yaml | 1 + .../cron-jobs/cleanup-push-queue/package.json | 2 +- .../cleanup-push-queue/src/mongoose.ts | 31 +- services/cron-jobs/crawler/package.json | 2 +- .../package.json | 2 +- .../import-deputy-profiles/package.json | 2 +- .../import-named-poll-deputies/package.json | 2 +- .../cron-jobs/import-named-polls/package.json | 2 +- .../import-plenary-minutes/package.json | 2 +- .../index-sync-bundestagio/package.json | 2 +- .../index-sync-democracy/package.json | 2 +- .../index-sync-democracy/src/index.ts | 16 +- .../index-sync-democracy/src/mongoose.ts | 22 +- .../cron-jobs/push-send-queued/package.json | 2 +- .../cron-jobs/push-send-queued/src/index.ts | 10 +- .../push-send-queued/src/mongoose.ts | 19 +- .../queue-pushs-conference-week/package.json | 2 +- .../queue-pushs-conference-week/src/index.ts | 8 +- .../src/mongoose.ts | 19 +- .../package.json | 2 +- .../src/index.ts | 6 +- .../src/mongoose.ts | 21 +- .../queue-pushs-vote-top-100/package.json | 3 +- .../queue-pushs-vote-top-100/src/mongoose.ts | 21 +- .../cron-jobs/shedule-bio-resync/src/index.ts | 17 +- .../shedule-bio-resync/src/mongoose.ts | 19 +- .../sync-deputy-profiles/package.json | 2 +- .../sync-deputy-profiles/src/mongoose.ts | 30 +- .../cron-jobs/sync-named-polls/package.json | 2 +- .../sync-named-polls/src/mongoose.ts | 30 +- .../cron-jobs/sync-procedures/package.json | 2 +- .../cron-jobs/sync-procedures/src/index.ts | 232 +- .../cron-jobs/sync-procedures/src/mongoose.ts | 30 +- services/qr-code-handler/package.json | 2 +- services/qr-code-handler/src/mongoose.ts | 12 +- turbo.json | 4 +- 44 files changed, 711 insertions(+), 2966 deletions(-) delete mode 100644 common/bundestagio/yarn.lock delete mode 100644 common/democracy/yarn.lock diff --git a/common/bundestagio/package.json b/common/bundestagio/package.json index bc4817010..d426865ff 100644 --- a/common/bundestagio/package.json +++ b/common/bundestagio/package.json @@ -4,25 +4,26 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "license": "MIT", + "private": true, "scripts": { "build": "tsc", - "lint": "yarn lint:ts && yarn lint:exports", + "lint": "pnpm lint:ts", "lint:ts": "tsc --noEmit", - "lint:exports": "ts-unused-exports ./tsconfig.json --ignoreFiles=index", - "prepublishOnly": "yarn build" + "lint:exports": "ts-unused-exports ./tsconfig.json --ignoreFiles=*.*", + "prepublishOnly": "pnpm build" }, "devDependencies": { - "@types/jsonwebtoken": "^8.5.0", - "ts-unused-exports": "^7.0.3", - "typescript": "^4.4.4" + "@types/jsonwebtoken": "^9.0.4", + "ts-unused-exports": "^10.0.1", + "typescript": "^5.2.2" }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", - "@types/cron": "^1.7.2", - "cron": "^1.8.2", - "jsonwebtoken": "^8.5.1", + "@types/cron": "^2.4.0", + "cron": "^3.1.3", + "jsonwebtoken": "^9.0.2", "mongoosastic": "^4.6.0", - "mongoose": "^6.0.12", + "mongoose": "6.0.12", "mongoose-diff-history": "mimani/mongoose-diff-history#master", "omit-deep": "^0.3.0", "ts-mongoose": "^0.0.24" diff --git a/common/bundestagio/src/utils/tools.ts b/common/bundestagio/src/utils/tools.ts index fdeda11d0..d484dffeb 100644 --- a/common/bundestagio/src/utils/tools.ts +++ b/common/bundestagio/src/utils/tools.ts @@ -1,9 +1,10 @@ -import { CronJobModel, ICronJob } from "../models"; -import { CronTime } from "cron"; +import { CronJobModel, ICronJob } from '../models'; +import { CronTime } from 'cron'; export const testCronTime = (time: string) => { try { - const p = new CronTime(time); // eslint-disable-line no-unused-vars + const p = new CronTime(time); + console.log(`[Cronjob] Test CronTime:`, time, p); } catch (e) { return false; } @@ -39,7 +40,7 @@ export const setCronStart = async ({ await CronJobModel.findOneAndUpdate( { name }, { lastStartDate: startDate, running }, - { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true } + { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true }, ); }; @@ -54,11 +55,9 @@ export const setCronSuccess = async ({ successDate?: Date; successStartDate: Date; running?: boolean; - data?: ICronJob["data"]; + data?: ICronJob['data']; }) => { - console.info( - `[Cronjob][${name}] finished: ${successStartDate} - ${successDate}` - ); + console.info(`[Cronjob][${name}] finished: ${successStartDate} - ${successDate}`); await CronJobModel.findOneAndUpdate( { name }, { @@ -67,7 +66,7 @@ export const setCronSuccess = async ({ running, data, }, - { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true } + { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true }, ); }; @@ -80,15 +79,14 @@ export const setCronError = async ({ name: string; errorDate?: Date; running?: boolean; - error: any; + error: string; }) => { console.error(`[Cronjob][${name}] errored: ${error}`); await CronJobModel.findOneAndUpdate( { name }, { lastErrorDate: errorDate, running, lastError: error }, - { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true } + { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true }, ); }; -export const resetCronRunningState = async () => - CronJobModel.updateMany({}, { running: false }); +export const resetCronRunningState = async (): Promise => CronJobModel.updateMany({}, { running: false }); diff --git a/common/bundestagio/yarn.lock b/common/bundestagio/yarn.lock deleted file mode 100644 index 7c02b815b..000000000 --- a/common/bundestagio/yarn.lock +++ /dev/null @@ -1,658 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@democracy-deutschland/bundestag.io-definitions@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@democracy-deutschland/bundestag.io-definitions/-/bundestag.io-definitions-1.0.2.tgz#5703052449ec618d60b58f46e2f18a8330630739" - integrity sha512-wdUnAuvN39xv+RvZWu/uWJWHOt1iDjFqFjE+5EaOBeEex6bmXpNiRCFVK25V9FfSXptjusj3FXxj2N4s5sqVKw== - dependencies: - typescript "^3.7.2" - -"@types/cron@^1.7.2": - version "1.7.3" - resolved "https://registry.yarnpkg.com/@types/cron/-/cron-1.7.3.tgz#993db7d54646f61128c851607b64ba4495deae93" - integrity sha512-iPmUXyIJG1Js+ldPYhOQcYU3kCAQ2FWrSkm1FJPoii2eYSn6wEW6onPukNTT0bfiflexNSRPl6KWmAIqS+36YA== - dependencies: - "@types/node" "*" - moment ">=2.14.0" - -"@types/json5@^0.0.29": - version "0.0.29" - resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" - integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= - -"@types/jsonwebtoken@^8.5.0": - version "8.5.5" - resolved "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-8.5.5.tgz#da5f2f4baee88f052ef3e4db4c1a0afb46cff22c" - integrity sha512-OGqtHQ7N5/Ap/TUwO6IgHDuLiAoTmHhGpNvgkCm/F4N6pKzx/RBSfr2OXZSwC6vkfnsEdb6+7DNZVtiXiwdwFw== - dependencies: - "@types/node" "*" - -"@types/node@*": - version "16.11.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-16.11.7.tgz#36820945061326978c42a01e56b61cd223dfdc42" - integrity sha512-QB5D2sqfSjCmTuWcBWyJ+/44bcjO7VbjSbOE0ucoVbAsSNQc4Lt6QkgkVXkTDwkL4z/beecZNDvVX15D4P8Jbw== - -"@types/webidl-conversions@*": - version "6.1.1" - resolved "https://registry.yarnpkg.com/@types/webidl-conversions/-/webidl-conversions-6.1.1.tgz#e33bc8ea812a01f63f90481c666334844b12a09e" - integrity sha512-XAahCdThVuCFDQLT7R7Pk/vqeObFNL3YqRyFZg+AqAP/W1/w3xHaIxuW7WszQqTbIBOPRcItYJIou3i/mppu3Q== - -"@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" - integrity sha512-2YubE1sjj5ifxievI5Ge1sckb9k/Er66HyR2c+3+I6VDUUg1TLPdYYTEbQ+DjRkS4nTxMJhgWfSfMRD2sl2EYQ== - dependencies: - "@types/node" "*" - "@types/webidl-conversions" "*" - -agentkeepalive@^3.4.1: - version "3.5.2" - resolved "https://registry.yarnpkg.com/agentkeepalive/-/agentkeepalive-3.5.2.tgz#a113924dd3fa24a0bc3b78108c450c2abee00f67" - integrity sha512-e0L/HNe6qkQ7H19kTlRRqUibEAwDK5AFk6y3PtMsuut2VAH6+Q4xZml1tNDJD7kSAyqmbG/K08K5WEJYtUrSlQ== - dependencies: - humanize-ms "^1.2.1" - -ansi-regex@^0.2.0, ansi-regex@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-0.2.1.tgz#0d8e946967a3d8143f93e24e298525fc1b2235f9" - integrity sha1-DY6UaWej2BQ/k+JOKYUl/BsiNfk= - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - integrity sha1-w7M6te42DYbg5ijwRorn7yfWVN8= - -ansi-styles@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.1.0.tgz#eaecbf66cd706882760b2f4691582b8f55d7a7de" - integrity sha1-6uy/Zs1waIJ2Cy9GkVgrj1XXp94= - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - integrity sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4= - -ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -base64-js@^1.3.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" - integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== - -bson@^4.2.2, bson@^4.5.2: - version "4.5.4" - resolved "https://registry.yarnpkg.com/bson/-/bson-4.5.4.tgz#5f74f1e11f743ea8aec30b5e24bfddae82846873" - integrity sha512-wIt0bPACnx8Ju9r6IsS2wVtGDHBr9Dxb+U29A1YED2pu8XOhS8aKjOnLZ8sxyXkPwanoK7iWWVhS1+coxde6xA== - dependencies: - buffer "^5.6.0" - -buffer-equal-constant-time@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz#f8e71132f7ffe6e01a5c9697a4c6f3e48d5cc819" - integrity sha1-+OcRMvf/5uAaXJaXpMbz5I1cyBk= - -buffer@^5.6.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" - integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.1.13" - -chalk@^0.5.1: - version "0.5.1" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.5.1.tgz#663b3a648b68b55d04690d49167aa837858f2174" - integrity sha1-Zjs6ZItotV0EaQ1JFnqoN4WPIXQ= - dependencies: - ansi-styles "^1.1.0" - escape-string-regexp "^1.0.0" - has-ansi "^0.1.0" - strip-ansi "^0.3.0" - supports-color "^0.2.0" - -chalk@^1.0.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - integrity sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg= - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^4.0.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -cron@^1.8.2: - version "1.8.2" - resolved "https://registry.yarnpkg.com/cron/-/cron-1.8.2.tgz#4ac5e3c55ba8c163d84f3407bde94632da8370ce" - integrity sha512-Gk2c4y6xKEO8FSAUTklqtfSr7oTq0CiPQeLBG5Fl0qoXpZyMcj1SG59YL+hqq04bu6/IuEA7lMkYDAplQNKkyg== - dependencies: - moment-timezone "^0.5.x" - -debug@4.x: - version "4.3.2" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.2.tgz#f0a49c18ac8779e31d4a0c6029dfb76873c7428b" - integrity sha512-mOp8wKcvj7XxC78zLgw/ZA+6TSgkoE2C/ienthhRD298T7UNwAg9diBpLRxC0mOezLl4B0xV7M0cCO6P/O0Xhw== - dependencies: - ms "2.1.2" - -deep-empty-object@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/deep-empty-object/-/deep-empty-object-1.0.5.tgz#b38b3201bfed4517b3a3fcb4517cf7ea2d303892" - integrity sha1-s4syAb/tRRezo/y0UXz36i0wOJI= - -deepmerge@^2.0.0: - version "2.2.1" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-2.2.1.tgz#5d3ff22a01c00f645405a2fbc17d0778a1801170" - integrity sha512-R9hc1Xa/NOBi9WRVUWg19rl1UB7Tt4kuPd+thNJgFZoxXsTz7ncaPaeIm+40oSGuP33DfMb4sZt1QIGiJzC4EA== - -denque@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/denque/-/denque-2.0.1.tgz#bcef4c1b80dc32efe97515744f21a4229ab8934a" - integrity sha512-tfiWc6BQLXNLpNiR5iGd0Ocu3P3VpxfzFiqubLgMfhfOw9WyvgJBd46CClNn9k3qfbjvT//0cf7AlYRX/OslMQ== - -ecdsa-sig-formatter@1.0.11: - version "1.0.11" - resolved "https://registry.yarnpkg.com/ecdsa-sig-formatter/-/ecdsa-sig-formatter-1.0.11.tgz#ae0f0fa2d85045ef14a817daa3ce9acd0489e5bf" - integrity sha512-nagl3RYrbNv6kQkeJIpt6NJZy8twLB/2vtz6yN9Z4vRKHN4/QZJIEbqohALSgwKdnksuY3k5Addp5lg8sVoVcQ== - dependencies: - safe-buffer "^5.0.1" - -elasticsearch@16.7.1: - version "16.7.1" - resolved "https://registry.yarnpkg.com/elasticsearch/-/elasticsearch-16.7.1.tgz#925f263cd1c1e9ff76bd244cb769b93e15aca1db" - integrity sha512-PL/BxB03VGbbghJwISYvVcrR9KbSSkuQ7OM//jHJg/End/uC2fvXg4QI7RXLvCGbhBuNQ8dPue7DOOPra73PCw== - dependencies: - agentkeepalive "^3.4.1" - chalk "^1.0.0" - lodash "^4.17.10" - -escape-string-regexp@^1.0.0, escape-string-regexp@^1.0.2: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ= - -fast-deep-equal@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-1.1.0.tgz#c053477817c86b51daa853c81e059b733d023614" - integrity sha1-wFNHeBfIa1HaqFPIHgWbcz0CNhQ= - -get-value@^2.0.3: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha1-3BXKHGcjh8p2vTesCjlbogQqLCg= - -has-ansi@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-0.1.0.tgz#84f265aae8c0e6a88a12d7022894b7568894c62e" - integrity sha1-hPJlqujA5qiKEtcCKJS3VoiUxi4= - dependencies: - ansi-regex "^0.2.0" - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - integrity sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE= - dependencies: - ansi-regex "^2.0.0" - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8= - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha1-bWHeldkd/Km5oCCJrThL/49it3E= - -humanize-ms@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/humanize-ms/-/humanize-ms-1.2.1.tgz#c46e3159a293f6b896da29316d8b6fe8bb79bbed" - integrity sha1-xG4xWaKT9riW2ikxbYtv6Lt5u+0= - dependencies: - ms "^2.0.0" - -ieee754@^1.1.13: - version "1.2.1" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" - integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== - -is-plain-object@^2.0.1: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -isarray@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk= - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha1-TkMekrEalzFjaqH5yNHMvP2reN8= - -json5@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" - integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow== - dependencies: - minimist "^1.2.0" - -jsondiffpatch@^0.1.38: - version "0.1.43" - resolved "https://registry.yarnpkg.com/jsondiffpatch/-/jsondiffpatch-0.1.43.tgz#c052889a99ef7eba19d0095f90f725cfa70a5611" - integrity sha1-wFKImpnvfroZ0AlfkPclz6cKVhE= - dependencies: - chalk "^0.5.1" - -jsonwebtoken@^8.5.1: - version "8.5.1" - resolved "https://registry.yarnpkg.com/jsonwebtoken/-/jsonwebtoken-8.5.1.tgz#00e71e0b8df54c2121a1f26137df2280673bcc0d" - integrity sha512-XjwVfRS6jTMsqYs0EsuJ4LGxXV14zQybNd4L2r0UvbVnSF9Af8x7p5MzbJ90Ioz/9TI41/hTCvznF/loiSzn8w== - dependencies: - jws "^3.2.2" - lodash.includes "^4.3.0" - lodash.isboolean "^3.0.3" - lodash.isinteger "^4.0.4" - lodash.isnumber "^3.0.3" - lodash.isplainobject "^4.0.6" - lodash.isstring "^4.0.1" - lodash.once "^4.0.0" - ms "^2.1.1" - semver "^5.6.0" - -jwa@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/jwa/-/jwa-1.4.1.tgz#743c32985cb9e98655530d53641b66c8645b039a" - integrity sha512-qiLX/xhEEFKUAJ6FiBMbes3w9ATzyk5W7Hvzpa/SLYdxNtng+gcurvrI7TbACjIXlsJyr05/S1oUhZrc63evQA== - dependencies: - buffer-equal-constant-time "1.0.1" - ecdsa-sig-formatter "1.0.11" - safe-buffer "^5.0.1" - -jws@^3.2.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/jws/-/jws-3.2.2.tgz#001099f3639468c9414000e99995fa52fb478304" - integrity sha512-YHlZCB6lMTllWDtSPHz/ZXTsi8S00usEV6v1tjq8tOUZzw7DpSDWVXjXDre6ed1w/pd495ODpHZYSdkRTsa0HA== - dependencies: - jwa "^1.4.1" - safe-buffer "^5.0.1" - -kareem@2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/kareem/-/kareem-2.3.2.tgz#78c4508894985b8d38a0dc15e1a8e11078f2ca93" - integrity sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ== - -lodash.clonedeep@4.5.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef" - integrity sha1-4j8/nE+Pvd6HJSnBBxhXoIblzO8= - -lodash.includes@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/lodash.includes/-/lodash.includes-4.3.0.tgz#60bb98a87cb923c68ca1e51325483314849f553f" - integrity sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8= - -lodash.isboolean@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/lodash.isboolean/-/lodash.isboolean-3.0.3.tgz#6c2e171db2a257cd96802fd43b01b20d5f5870f6" - integrity sha1-bC4XHbKiV82WgC/UOwGyDV9YcPY= - -lodash.isinteger@^4.0.4: - version "4.0.4" - resolved "https://registry.yarnpkg.com/lodash.isinteger/-/lodash.isinteger-4.0.4.tgz#619c0af3d03f8b04c31f5882840b77b11cd68343" - integrity sha1-YZwK89A/iwTDH1iChAt3sRzWg0M= - -lodash.isnumber@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/lodash.isnumber/-/lodash.isnumber-3.0.3.tgz#3ce76810c5928d03352301ac287317f11c0b1ffc" - integrity sha1-POdoEMWSjQM1IwGsKHMX8RwLH/w= - -lodash.isplainobject@^4.0.6: - version "4.0.6" - resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb" - integrity sha1-fFJqUtibRcRcxpC4gWO+BJf1UMs= - -lodash.isstring@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/lodash.isstring/-/lodash.isstring-4.0.1.tgz#d527dfb5456eca7cc9bb95d5daeaf88ba54a5451" - integrity sha1-1SfftUVuynzJu5XV2ur4i6VKVFE= - -lodash.once@^4.0.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/lodash.once/-/lodash.once-4.1.1.tgz#0dd3971213c7c56df880977d504c88fb471a97ac" - integrity sha1-DdOXEhPHxW34gJd9UEyI+0cal6w= - -lodash.pick@^4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/lodash.pick/-/lodash.pick-4.4.0.tgz#52f05610fff9ded422611441ed1fc123a03001b3" - integrity sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM= - -lodash@^4.17.10: - version "4.17.15" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" - integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== - -memory-pager@^1.0.2: - version "1.5.0" - resolved "https://registry.yarnpkg.com/memory-pager/-/memory-pager-1.5.0.tgz#d8751655d22d384682741c972f2c3d6dfa3e66b5" - integrity sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg== - -minimist@^1.2.0: - version "1.2.5" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" - integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== - -moment-timezone@^0.5.x: - version "0.5.31" - resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.31.tgz#9c40d8c5026f0c7ab46eda3d63e49c155148de05" - integrity sha512-+GgHNg8xRhMXfEbv81iDtrVeTcWt0kWmTEY1XQK14dICTXnWJnT0dxdlPspwqF3keKMVPXwayEsk1DI0AA/jdA== - dependencies: - moment ">= 2.9.0" - -"moment@>= 2.9.0": - version "2.27.0" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.27.0.tgz#8bff4e3e26a236220dfe3e36de756b6ebaa0105d" - integrity sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ== - -moment@>=2.14.0: - version "2.29.1" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.1.tgz#b2be769fa31940be9eeea6469c075e35006fa3d3" - integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ== - -mongodb-connection-string-url@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mongodb-connection-string-url/-/mongodb-connection-string-url-2.1.0.tgz#9c522c11c37f571fecddcb267ac4a76ef432aeb7" - integrity sha512-Qf9Zw7KGiRljWvMrrUFDdVqo46KIEiDuCzvEN97rh/PcKzk2bd6n9KuzEwBwW9xo5glwx69y1mI6s+jFUD/aIQ== - dependencies: - "@types/whatwg-url" "^8.2.1" - whatwg-url "^9.1.0" - -mongodb@4.1.3: - version "4.1.3" - resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-4.1.3.tgz#8bf24d782ba3f3833201f4e60b0307d87980ba71" - integrity sha512-lHvTqODBiSpuqjpCj48DOyYWS6Iq6ElJNUiH9HWdQtONyOfjgsKzJULipWduMGsSzaNO4nFi/kmlMFCLvjox/Q== - dependencies: - bson "^4.5.2" - denque "^2.0.1" - mongodb-connection-string-url "^2.0.0" - optionalDependencies: - saslprep "^1.0.3" - -mongolike-operations@~0.1.5: - version "0.1.5" - resolved "https://registry.yarnpkg.com/mongolike-operations/-/mongolike-operations-0.1.5.tgz#b8879c0798c1c59d4f5a8d2539c270c79ea09c18" - integrity sha512-sYFNudINVxHuC68pJp4HWi4IXL3GPLeg4s/wSEWPyNKAd62cpXli9FYwex3d1eLo718o2znXlINfjRK+LZOoeA== - -mongoosastic@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/mongoosastic/-/mongoosastic-4.6.0.tgz#d74d0dee2c88df99919d7e0b703132326d7c6187" - integrity sha512-c1tHeuqdkOEM56dfr7WwahzWNIq6C0BK4/3HpibQMQHVA0rFZiWuqprbTXrguMOIMREZJfLLetdODN/TdLiFGQ== - dependencies: - elasticsearch "16.7.1" - lodash.clonedeep "4.5.0" - -mongoose-diff-history@mimani/mongoose-diff-history#master: - version "2.1.0" - resolved "https://codeload.github.com/mimani/mongoose-diff-history/tar.gz/1fb081a4308d3745ebb2646f2faeaa7ce867ca86" - dependencies: - deep-empty-object "^1.0.5" - jsondiffpatch "^0.1.38" - lodash.pick "^4.4.0" - omit-deep "https://github.com/izigibran/omit-deep.git#0.4.0" - power-assign "^0.2.10" - -mongoose@^6.0.12: - version "6.0.12" - resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-6.0.12.tgz#a22727d52ca9e9ce3996330b895afe5cde75af3c" - integrity sha512-BvsZk7zEEhb1AgQFLtxN9C+7qgy5edRuA3ZDDwHU+kHG/HM44vI6FdKV5m6HVdAUeCHHQTiVv+YQh8BRsToSHw== - dependencies: - bson "^4.2.2" - kareem "2.3.2" - mongodb "4.1.3" - mpath "0.8.4" - mquery "4.0.0" - ms "2.1.2" - regexp-clone "1.0.0" - sift "13.5.2" - sliced "1.0.1" - -mpath@0.8.4: - version "0.8.4" - resolved "https://registry.yarnpkg.com/mpath/-/mpath-0.8.4.tgz#6b566d9581621d9e931dd3b142ed3618e7599313" - integrity sha512-DTxNZomBcTWlrMW76jy1wvV37X/cNNxPW1y2Jzd4DZkAaC5ZGsm8bfGfNOthcDuRJujXLqiuS6o3Tpy0JEoh7g== - -mquery@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/mquery/-/mquery-4.0.0.tgz#6c62160ad25289e99e0840907757cdfd62bde775" - integrity sha512-nGjm89lHja+T/b8cybAby6H0YgA4qYC/lx6UlwvHGqvTq8bDaNeCwl1sY8uRELrNbVWJzIihxVd+vphGGn1vBw== - dependencies: - debug "4.x" - regexp-clone "^1.0.0" - sliced "1.0.1" - -ms@2.1.2, ms@^2.0.0, ms@^2.1.1: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -oad-utils@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/oad-utils/-/oad-utils-0.3.0.tgz#021a50d8c6d3fb4c059ab0c1ab1aa94c25b54f9a" - integrity sha512-qjVeIGscc9DBzdpMiVws7ymrcinOcpIaqRYfJHjXhsJeg7/ex+pZ6kfMu98EVBmR7+vulzVRO7L9CrJNyUDvLw== - dependencies: - deepmerge "^2.0.0" - mongolike-operations "~0.1.5" - -omit-deep@^0.3.0, "omit-deep@https://github.com/izigibran/omit-deep.git#0.4.0": - version "0.3.0" - resolved "https://github.com/izigibran/omit-deep.git#3727e48ecdbd58cb50a2a8aba1911f8d2c9fdde9" - dependencies: - is-plain-object "^2.0.1" - unset-value "^0.1.1" - -power-assign@^0.2.10: - version "0.2.10" - resolved "https://registry.yarnpkg.com/power-assign/-/power-assign-0.2.10.tgz#6b11b0746313f79edf67d4dc4c6bf3abacab1575" - integrity sha512-UNSXkOYJj8MVnpDdg7skBWRWbpPR7ukXTxo6ypcXQQwOaqa6v0kXbMM5SzvExozufvPfrDlsjyQvTd8Ub3pEGA== - dependencies: - fast-deep-equal "^1.0.0" - mongolike-operations "~0.1.5" - oad-utils "~0.3.0" - power-filter "~0.1.9" - -power-filter@~0.1.9: - version "0.1.9" - resolved "https://registry.yarnpkg.com/power-filter/-/power-filter-0.1.9.tgz#4aec4b476f4a04312a0abb1771c79d7f9a170547" - integrity sha512-sVZyGCwnopn9Wb9YlyfkZOXxoaXVC4z7hLXkSK48aF5iEH+ocGxUyKATR7Kf7s+vb2mDd8IFWiMY77+r/8ORmA== - dependencies: - fast-deep-equal "^1.0.0" - mongolike-operations "~0.1.5" - oad-utils "~0.3.0" - -punycode@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec" - integrity sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A== - -regexp-clone@1.0.0, regexp-clone@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/regexp-clone/-/regexp-clone-1.0.0.tgz#222db967623277056260b992626354a04ce9bf63" - integrity sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw== - -safe-buffer@^5.0.1: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -saslprep@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/saslprep/-/saslprep-1.0.3.tgz#4c02f946b56cf54297e347ba1093e7acac4cf226" - integrity sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag== - dependencies: - sparse-bitfield "^3.0.3" - -semver@^5.6.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - -sift@13.5.2: - version "13.5.2" - resolved "https://registry.yarnpkg.com/sift/-/sift-13.5.2.tgz#24a715e13c617b086166cd04917d204a591c9da6" - integrity sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA== - -sliced@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/sliced/-/sliced-1.0.1.tgz#0b3a662b5d04c3177b1926bea82b03f837a2ef41" - integrity sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E= - -sparse-bitfield@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz#ff4ae6e68656056ba4b3e792ab3334d38273ca11" - integrity sha1-/0rm5oZWBWuks+eSqzM004JzyhE= - dependencies: - memory-pager "^1.0.2" - -strip-ansi@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.3.0.tgz#25f48ea22ca79187f3174a4db8759347bb126220" - integrity sha1-JfSOoiynkYfzF0pNuHWTR7sSYiA= - dependencies: - ansi-regex "^0.2.1" - -strip-ansi@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - integrity sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8= - dependencies: - ansi-regex "^2.0.0" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= - -supports-color@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a" - integrity sha1-2S3iaU6z9nMjlz1649i1W0wiGQo= - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - integrity sha1-U10EXOa2Nj+kARcIRimZXp3zJMc= - -supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -tr46@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-2.1.0.tgz#fa87aa81ca5d5941da8cbf1f9b749dc969a4e240" - integrity sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw== - dependencies: - punycode "^2.1.1" - -ts-mongoose@^0.0.24: - version "0.0.24" - resolved "https://registry.yarnpkg.com/ts-mongoose/-/ts-mongoose-0.0.24.tgz#d6d1d4c5c62669560a3f3e26c0dd8a7365d1aee4" - integrity sha512-BaiyNFqieRqEBnvj2pgWB6/eQJRm7U18kAzDJ92/sfcFx1aQBZeZztzutxr49VVlUvPHxukleIoU/t3VMCBsSA== - -ts-unused-exports@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/ts-unused-exports/-/ts-unused-exports-7.0.3.tgz#37a06d103d9d5b8619807dbd50d89f698e8cebf1" - integrity sha512-D0VdTiTfrmZM7tViQEMuzG0+giU5z5crn4vjK+f1dnxTKcNx23Vc2lpMgd1vP3lYrwnvJofZmCnvEuJ7XUeV2Q== - dependencies: - chalk "^4.0.0" - tsconfig-paths "^3.9.0" - -tsconfig-paths@^3.9.0: - version "3.11.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.11.0.tgz#954c1fe973da6339c78e06b03ce2e48810b65f36" - integrity sha512-7ecdYDnIdmv639mmDwslG6KQg1Z9STTz1j7Gcz0xa+nshh/gKDAHcPxRbWOsA3SPp0tXP2leTcY9Kw+NAkfZzA== - dependencies: - "@types/json5" "^0.0.29" - json5 "^1.0.1" - minimist "^1.2.0" - strip-bom "^3.0.0" - -typescript@^3.7.2: - version "3.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.5.tgz#586f0dba300cde8be52dd1ac4f7e1009c1b13f36" - integrity sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ== - -typescript@^4.4.4: - version "4.4.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c" - integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA== - -unset-value@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-0.1.2.tgz#506810b867f27c2a5a6e9b04833631f6de58d310" - integrity sha1-UGgQuGfyfCpabpsEgzYx9t5Y0xA= - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -webidl-conversions@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-6.1.0.tgz#9111b4d7ea80acd40f5270d666621afa78b69514" - integrity sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w== - -whatwg-url@^9.1.0: - version "9.1.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-9.1.0.tgz#1b112cf237d72cd64fa7882b9c3f6234a1c3050d" - integrity sha512-CQ0UcrPHyomtlOCot1TL77WyMIm/bCwrJ2D6AOKGwEczU9EpyoqAokfqrf/MioU9kHcMsmJZcg1egXix2KYEsA== - dependencies: - tr46 "^2.1.0" - webidl-conversions "^6.1.0" diff --git a/common/democracy/package.json b/common/democracy/package.json index 6d436ff15..1240a64af 100644 --- a/common/democracy/package.json +++ b/common/democracy/package.json @@ -4,23 +4,24 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "license": "MIT", + "private": true, "scripts": { "build": "tsc", - "lint": "yarn lint:ts && yarn lint:exports", + "lint": "pnpm lint:ts", "lint:ts": "tsc --noEmit", "lint:exports": "ts-unused-exports ./tsconfig.json --ignoreFiles=index", - "prepublish": "yarn build" + "prepublish": "pnpm build" }, "devDependencies": { - "typescript": "^3.9.6" + "typescript": "^5.2.2" }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", - "@types/cron": "^1.7.2", - "@types/mongoose": "^5.7.30", - "cron": "^1.8.2", - "mongoose": "^5.9.22", - "ts-mongoose": "^0.0.21", - "ts-unused-exports": "^6.2.1" + "@types/cron": "^2.4.0", + "@types/mongoose": "^5.11.97", + "cron": "^3.1.3", + "mongoose": "6.0.12", + "ts-mongoose": "^0.0.24", + "ts-unused-exports": "^10.0.1" } } diff --git a/common/democracy/src/models/cronjob/schema.ts b/common/democracy/src/models/cronjob/schema.ts index 0176207a1..f58af0d99 100644 --- a/common/democracy/src/models/cronjob/schema.ts +++ b/common/democracy/src/models/cronjob/schema.ts @@ -1,13 +1,13 @@ -import { Schema, Document } from "mongoose"; -import { Timestamps } from "../timestamp"; +import { Schema, Document } from 'mongoose'; +import { Timestamps } from '../timestamp'; export interface ICronJob extends Document, Timestamps { name: string; - lastStartDate: Date; - lastErrorDate: Date; - lastError: string; - lastSuccessDate: Date; - lastSuccessStartDate: Date; + lastStartDate?: Date; + lastErrorDate?: Date; + lastError?: string; + lastSuccessDate?: Date; + lastSuccessStartDate?: Date; running: boolean; } @@ -21,7 +21,7 @@ const CronJobSchema = new Schema( lastSuccessStartDate: { type: Date, default: null }, running: { type: Boolean, default: false }, }, - { timestamps: true } + { timestamps: true }, ); export default CronJobSchema; diff --git a/common/democracy/src/utils/cronjobs.ts b/common/democracy/src/utils/cronjobs.ts index 39af7441c..5b1afa947 100644 --- a/common/democracy/src/utils/cronjobs.ts +++ b/common/democracy/src/utils/cronjobs.ts @@ -1,5 +1,5 @@ -import { CronTime } from "cron"; -import { ICronJob, CronJobModel } from "../models"; +import { CronTime } from 'cron'; +import { ICronJob, CronJobModel } from '../models'; export const testCronTime = (time?: string) => { if (!time) { @@ -14,11 +14,7 @@ export const testCronTime = (time?: string) => { return true; }; -export const getCron = async ({ - name, -}: { - name: string; -}): Promise> => { +export const getCron = async ({ name }: { name: string }): Promise> => { const cronjob = await CronJobModel.findOne({ name }); if (!cronjob) { return { @@ -47,7 +43,7 @@ export const setCronStart = async ({ await CronJobModel.findOneAndUpdate( { name }, { lastStartDate: startDate, running }, - { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true } + { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true }, ); }; @@ -62,9 +58,7 @@ export const setCronSuccess = async ({ successStartDate: Date; running?: boolean; }) => { - console.info( - `[Cronjob][${name}] finished: ${successStartDate} - ${successDate}` - ); + console.info(`[Cronjob][${name}] finished: ${successStartDate} - ${successDate}`); await CronJobModel.findOneAndUpdate( { name }, { @@ -72,7 +66,7 @@ export const setCronSuccess = async ({ lastSuccessStartDate: successStartDate, running, }, - { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true } + { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true }, ); }; @@ -91,12 +85,12 @@ export const setCronError = async ({ await CronJobModel.findOneAndUpdate( { name }, { lastErrorDate: errorDate, running, lastError: error }, - { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true } + { upsert: true, new: true, runValidators: true, setDefaultsOnInsert: true }, ); }; export const resetCronSuccessStartDate = async () => { - const CRON_NAME = "SheduleBioResync"; + const CRON_NAME = 'SheduleBioResync'; const startDate = new Date(); const cron = await getCron({ name: CRON_NAME }); if (cron.running) { @@ -108,5 +102,4 @@ export const resetCronSuccessStartDate = async () => { await setCronSuccess({ name: CRON_NAME, successStartDate: startDate }); }; -export const resetCronRunningState = async () => - CronJobModel.updateMany({}, { running: false }); +export const resetCronRunningState = async (): Promise => CronJobModel.updateMany({}, { running: false }); diff --git a/common/democracy/yarn.lock b/common/democracy/yarn.lock deleted file mode 100644 index 669044e64..000000000 --- a/common/democracy/yarn.lock +++ /dev/null @@ -1,369 +0,0 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@democracy-deutschland/bundestag.io-definitions@^1.0.2": - version "1.0.2" - resolved "https://registry.yarnpkg.com/@democracy-deutschland/bundestag.io-definitions/-/bundestag.io-definitions-1.0.2.tgz#5703052449ec618d60b58f46e2f18a8330630739" - integrity sha512-wdUnAuvN39xv+RvZWu/uWJWHOt1iDjFqFjE+5EaOBeEex6bmXpNiRCFVK25V9FfSXptjusj3FXxj2N4s5sqVKw== - dependencies: - typescript "^3.7.2" - -"@types/bson@*": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@types/bson/-/bson-4.0.2.tgz#7accb85942fc39bbdb7515d4de437c04f698115f" - integrity sha512-+uWmsejEHfmSjyyM/LkrP0orfE2m5Mx9Xel4tXNeqi1ldK5XMQcDsFkBmLDtuyKUbxj2jGDo0H240fbCRJZo7Q== - dependencies: - "@types/node" "*" - -"@types/color-name@^1.1.1": - version "1.1.1" - resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0" - integrity sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ== - -"@types/cron@^1.7.2": - version "1.7.2" - resolved "https://registry.yarnpkg.com/@types/cron/-/cron-1.7.2.tgz#e9fb420da616920dae82d13adfca53282ffaab6e" - integrity sha512-AEpNLRcsVSc5AdseJKNHpz0d4e8+ow+abTaC0fKDbAU86rF1evoFF0oC2fV9FdqtfVXkG2LKshpLTJCFOpyvTg== - dependencies: - "@types/node" "*" - moment ">=2.14.0" - -"@types/json5@^0.0.29": - version "0.0.29" - resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" - integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= - -"@types/mongodb@*": - version "3.5.25" - resolved "https://registry.yarnpkg.com/@types/mongodb/-/mongodb-3.5.25.tgz#ab187db04d79f8e3f15af236327dc9139d9d4736" - integrity sha512-2H/Owt+pHCl9YmBOYnXc3VdnxejJEjVdH+QCWL5ZAfPehEn3evygKBX3/vKRv7aTwfNbUd0E5vjJdQklH/9a6w== - dependencies: - "@types/bson" "*" - "@types/node" "*" - -"@types/mongoose@^5.7.30": - version "5.7.30" - resolved "https://registry.yarnpkg.com/@types/mongoose/-/mongoose-5.7.30.tgz#b44a1a6d4759232632f65ba74e9dd37914b14e2b" - integrity sha512-PIKnwVhshlDP8TyiOhs0BwNJvrYxpmuidf0xfUPV/2Q4rY+DAfC1NVQq9nkS+af7GrDQlPzjRU+WinxDQdAB/g== - dependencies: - "@types/mongodb" "*" - "@types/node" "*" - -"@types/node@*": - version "14.0.14" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.14.tgz#24a0b5959f16ac141aeb0c5b3cd7a15b7c64cbce" - integrity sha512-syUgf67ZQpaJj01/tRTknkMNoBBLWJOBODF0Zm4NrXmiSuxjymFrxnTu1QVYRubhVkRcZLYZG8STTwJRdVm/WQ== - -ansi-styles@^4.1.0: - version "4.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.2.1.tgz#90ae75c424d008d2624c5bf29ead3177ebfcf359" - integrity sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA== - dependencies: - "@types/color-name" "^1.1.1" - color-convert "^2.0.1" - -bl@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/bl/-/bl-2.2.0.tgz#e1a574cdf528e4053019bb800b041c0ac88da493" - integrity sha512-wbgvOpqopSr7uq6fJrLH8EsvYMJf9gzfo2jCsL2eTy75qXPukA4pCgHamOQkZtY5vmfVtjB+P3LNlMHW5CEZXA== - dependencies: - readable-stream "^2.3.5" - safe-buffer "^5.1.1" - -bluebird@3.5.1: - version "3.5.1" - resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" - integrity sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA== - -bson@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/bson/-/bson-1.1.4.tgz#f76870d799f15b854dffb7ee32f0a874797f7e89" - integrity sha512-S/yKGU1syOMzO86+dGpg2qGoDL0zvzcb262G+gqEy6TgP6rt6z6qxSFX/8X6vLC91P7G7C3nLs0+bvDzmvBA3Q== - -chalk@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-3.0.0.tgz#3f73c2bf526591f574cc492c51e2456349f844e4" - integrity sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -core-util-is@~1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha1-tf1UIgqivFq1eqtxQMlAdUUDwac= - -cron@^1.8.2: - version "1.8.2" - resolved "https://registry.yarnpkg.com/cron/-/cron-1.8.2.tgz#4ac5e3c55ba8c163d84f3407bde94632da8370ce" - integrity sha512-Gk2c4y6xKEO8FSAUTklqtfSr7oTq0CiPQeLBG5Fl0qoXpZyMcj1SG59YL+hqq04bu6/IuEA7lMkYDAplQNKkyg== - dependencies: - moment-timezone "^0.5.x" - -debug@3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz#5bb5a0672628b64149566ba16819e61518c67261" - integrity sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g== - dependencies: - ms "2.0.0" - -denque@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/denque/-/denque-1.4.1.tgz#6744ff7641c148c3f8a69c307e51235c1f4a37cf" - integrity sha512-OfzPuSZKGcgr96rf1oODnfjqBFmr1DVoc/TrItj3Ohe0Ah1C5WX5Baquw/9U9KovnQ88EqmJbD66rKYUQYN1tQ== - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -inherits@~2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE= - -json5@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.1.tgz#779fb0018604fa854eacbf6252180d83543e3dbe" - integrity sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow== - dependencies: - minimist "^1.2.0" - -kareem@2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/kareem/-/kareem-2.3.1.tgz#def12d9c941017fabfb00f873af95e9c99e1be87" - integrity sha512-l3hLhffs9zqoDe8zjmb/mAN4B8VT3L56EUvKNqLFVs9YlFA+zx7ke1DO8STAdDyYNkeSo1nKmjuvQeI12So8Xw== - -memory-pager@^1.0.2: - version "1.5.0" - resolved "https://registry.yarnpkg.com/memory-pager/-/memory-pager-1.5.0.tgz#d8751655d22d384682741c972f2c3d6dfa3e66b5" - integrity sha512-ZS4Bp4r/Zoeq6+NLJpP+0Zzm0pR8whtGPf1XExKLJBAczGMnSi3It14OiNCStjQjM6NU1okjQGSxgEZN8eBYKg== - -minimist@^1.2.0: - version "1.2.5" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.5.tgz#67d66014b66a6a8aaa0c083c5fd58df4e4e97602" - integrity sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw== - -moment-timezone@^0.5.x: - version "0.5.31" - resolved "https://registry.yarnpkg.com/moment-timezone/-/moment-timezone-0.5.31.tgz#9c40d8c5026f0c7ab46eda3d63e49c155148de05" - integrity sha512-+GgHNg8xRhMXfEbv81iDtrVeTcWt0kWmTEY1XQK14dICTXnWJnT0dxdlPspwqF3keKMVPXwayEsk1DI0AA/jdA== - dependencies: - moment ">= 2.9.0" - -"moment@>= 2.9.0", moment@>=2.14.0: - version "2.27.0" - resolved "https://registry.yarnpkg.com/moment/-/moment-2.27.0.tgz#8bff4e3e26a236220dfe3e36de756b6ebaa0105d" - integrity sha512-al0MUK7cpIcglMv3YF13qSgdAIqxHTO7brRtaz3DlSULbqfazqkc5kEjNrLDOM7fsjshoFIihnU8snrP7zUvhQ== - -mongodb@3.5.9: - version "3.5.9" - resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-3.5.9.tgz#799b72be8110b7e71a882bb7ce0d84d05429f772" - integrity sha512-vXHBY1CsGYcEPoVWhwgxIBeWqP3dSu9RuRDsoLRPTITrcrgm1f0Ubu1xqF9ozMwv53agmEiZm0YGo+7WL3Nbug== - dependencies: - bl "^2.2.0" - bson "^1.1.4" - denque "^1.4.1" - require_optional "^1.0.1" - safe-buffer "^5.1.2" - optionalDependencies: - saslprep "^1.0.0" - -mongoose-legacy-pluralize@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/mongoose-legacy-pluralize/-/mongoose-legacy-pluralize-1.0.2.tgz#3ba9f91fa507b5186d399fb40854bff18fb563e4" - integrity sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ== - -mongoose@^5.9.22: - version "5.9.22" - resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-5.9.22.tgz#4f1542f037a552b43f547ebfc72ddaf9f88c5ecf" - integrity sha512-nwH2LwrGN/jR0Qi8TqSog0MWZRtxdpQxVFcPNjs+CUyCMaxKqFJYrkPILTPKPMMzwrAv1cCQqrvoLl+ggklvbg== - dependencies: - bson "^1.1.4" - kareem "2.3.1" - mongodb "3.5.9" - mongoose-legacy-pluralize "1.0.2" - mpath "0.7.0" - mquery "3.2.2" - ms "2.1.2" - regexp-clone "1.0.0" - safe-buffer "5.2.1" - sift "7.0.1" - sliced "1.0.1" - -mpath@0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/mpath/-/mpath-0.7.0.tgz#20e8102e276b71709d6e07e9f8d4d0f641afbfb8" - integrity sha512-Aiq04hILxhz1L+f7sjGyn7IxYzWm1zLNNXcfhDtx04kZ2Gk7uvFdgZ8ts1cWa/6d0TQmag2yR8zSGZUmp0tFNg== - -mquery@3.2.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/mquery/-/mquery-3.2.2.tgz#e1383a3951852ce23e37f619a9b350f1fb3664e7" - integrity sha512-XB52992COp0KP230I3qloVUbkLUxJIu328HBP2t2EsxSFtf4W1HPSOBWOXf1bqxK4Xbb66lfMJ+Bpfd9/yZE1Q== - dependencies: - bluebird "3.5.1" - debug "3.1.0" - regexp-clone "^1.0.0" - safe-buffer "5.1.2" - sliced "1.0.1" - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g= - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - -readable-stream@^2.3.5: - version "2.3.7" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.7.tgz#1eca1cf711aef814c04f62252a36a62f6cb23b57" - integrity sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -regexp-clone@1.0.0, regexp-clone@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/regexp-clone/-/regexp-clone-1.0.0.tgz#222db967623277056260b992626354a04ce9bf63" - integrity sha512-TuAasHQNamyyJ2hb97IuBEif4qBHGjPHBS64sZwytpLEqtBQ1gPJTnOaQ6qmpET16cK14kkjbazl6+p0RRv0yw== - -require_optional@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/require_optional/-/require_optional-1.0.1.tgz#4cf35a4247f64ca3df8c2ef208cc494b1ca8fc2e" - integrity sha512-qhM/y57enGWHAe3v/NcwML6a3/vfESLe/sGM2dII+gEO0BpKRUkWZow/tyloNqJyN6kXSl3RyyM8Ll5D/sJP8g== - dependencies: - resolve-from "^2.0.0" - semver "^5.1.0" - -resolve-from@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-2.0.0.tgz#9480ab20e94ffa1d9e80a804c7ea147611966b57" - integrity sha1-lICrIOlP+h2egKgEx+oUdhGWa1c= - -safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-buffer@5.2.1, safe-buffer@^5.1.1, safe-buffer@^5.1.2: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -saslprep@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/saslprep/-/saslprep-1.0.3.tgz#4c02f946b56cf54297e347ba1093e7acac4cf226" - integrity sha512-/MY/PEMbk2SuY5sScONwhUDsV2p77Znkb/q3nSVstq/yQzYJOH/Azh29p9oJLsl3LnQwSvZDKagDGBsBwSooag== - dependencies: - sparse-bitfield "^3.0.3" - -semver@^5.1.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" - integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== - -sift@7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/sift/-/sift-7.0.1.tgz#47d62c50b159d316f1372f8b53f9c10cd21a4b08" - integrity sha512-oqD7PMJ+uO6jV9EQCl0LrRw1OwsiPsiFQR5AR30heR+4Dl7jBBbDLnNvWiak20tzZlSE1H7RB30SX/1j/YYT7g== - -sliced@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/sliced/-/sliced-1.0.1.tgz#0b3a662b5d04c3177b1926bea82b03f837a2ef41" - integrity sha1-CzpmK10Ewxd7GSa+qCsD+Dei70E= - -sparse-bitfield@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/sparse-bitfield/-/sparse-bitfield-3.0.3.tgz#ff4ae6e68656056ba4b3e792ab3334d38273ca11" - integrity sha1-/0rm5oZWBWuks+eSqzM004JzyhE= - dependencies: - memory-pager "^1.0.2" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= - -supports-color@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.1.0.tgz#68e32591df73e25ad1c4b49108a2ec507962bfd1" - integrity sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g== - dependencies: - has-flag "^4.0.0" - -ts-mongoose@^0.0.21: - version "0.0.21" - resolved "https://registry.yarnpkg.com/ts-mongoose/-/ts-mongoose-0.0.21.tgz#8be3769863e89919da8020351855726d09f7126a" - integrity sha512-pbRN2JJY9N7Z5ehyMo6PJ7hlftRdELzO5nh/XvS1y31TDbeefc/GjM7C7jWb6ESZz+KlOmYDUpAT/L8i4wFbmQ== - -ts-unused-exports@^6.2.1: - version "6.2.1" - resolved "https://registry.yarnpkg.com/ts-unused-exports/-/ts-unused-exports-6.2.1.tgz#6fed6f48b3253a906b6c9b90fbebab669430af2e" - integrity sha512-6F87xA/RouSyKFIISv1T/uNgL59usE4le0eBk+JQWfZBUax4vWG2yqSYdcw3viUK3emkCzJSII5dmYc1SNZjng== - dependencies: - chalk "^3.0.0" - tsconfig-paths "^3.9.0" - typescript "^3.8.3" - -tsconfig-paths@^3.9.0: - version "3.9.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.9.0.tgz#098547a6c4448807e8fcb8eae081064ee9a3c90b" - integrity sha512-dRcuzokWhajtZWkQsDVKbWyY+jgcLC5sqJhg2PSgf4ZkH2aHPvaOY8YWGhmjb68b5qqTfasSsDO9k7RUiEmZAw== - dependencies: - "@types/json5" "^0.0.29" - json5 "^1.0.1" - minimist "^1.2.0" - strip-bom "^3.0.0" - -typescript@^3.7.2, typescript@^3.8.3: - version "3.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.5.tgz#586f0dba300cde8be52dd1ac4f7e1009c1b13f36" - integrity sha512-hSAifV3k+i6lEoCJ2k6R2Z/rp/H3+8sdmcn5NrS3/3kE7+RyZXm9aqvxWqjEXHAd8b0pShatpcdMTvEdvAJltQ== - -typescript@^3.9.6: - version "3.9.6" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.6.tgz#8f3e0198a34c3ae17091b35571d3afd31999365a" - integrity sha512-Pspx3oKAPJtjNwE92YS05HQoY7z2SFyOpHo9MqJor3BXAGNaPUs83CuVp9VISFkSjyRfiTpmKuAYGJB7S7hOxw== - -util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c18ff3776..94cba2963 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,6 +33,74 @@ importers: specifier: ^1.10.14 version: 1.10.14 + common/bundestagio: + dependencies: + '@democracy-deutschland/bundestag.io-definitions': + specifier: ^1.0.2 + version: 1.0.2 + '@types/cron': + specifier: ^2.4.0 + version: 2.4.0 + cron: + specifier: ^3.1.3 + version: 3.1.3 + jsonwebtoken: + specifier: ^9.0.2 + version: 9.0.2 + mongoosastic: + specifier: ^4.6.0 + version: 4.6.0 + mongoose: + specifier: 6.0.12 + version: 6.0.12 + mongoose-diff-history: + specifier: mimani/mongoose-diff-history#master + version: github.com/mimani/mongoose-diff-history/1fb081a4308d3745ebb2646f2faeaa7ce867ca86 + omit-deep: + specifier: ^0.3.0 + version: 0.3.0 + ts-mongoose: + specifier: ^0.0.24 + version: 0.0.24(@types/mongoose@5.11.97)(mongoose@6.0.12) + devDependencies: + '@types/jsonwebtoken': + specifier: ^9.0.4 + version: 9.0.4 + ts-unused-exports: + specifier: ^10.0.1 + version: 10.0.1(typescript@5.2.2) + typescript: + specifier: ^5.2.2 + version: 5.2.2 + + common/democracy: + dependencies: + '@democracy-deutschland/bundestag.io-definitions': + specifier: ^1.0.2 + version: 1.0.2 + '@types/cron': + specifier: ^2.4.0 + version: 2.4.0 + '@types/mongoose': + specifier: ^5.11.97 + version: 5.11.97 + cron: + specifier: ^3.1.3 + version: 3.1.3 + mongoose: + specifier: 6.0.12 + version: 6.0.12 + ts-mongoose: + specifier: ^0.0.24 + version: 0.0.24(@types/mongoose@5.11.97)(mongoose@6.0.12) + ts-unused-exports: + specifier: ^10.0.1 + version: 10.0.1(typescript@5.2.2) + devDependencies: + typescript: + specifier: ^5.2.2 + version: 5.2.2 + packages/tsup-config: devDependencies: tsup: @@ -42,8 +110,8 @@ importers: services/cron-jobs/cleanup-push-queue: dependencies: '@democracy-deutschland/democracy-common': - specifier: ^0.2.7 - version: 0.2.12 + specifier: '*' + version: link:../../../common/democracy devDependencies: '@types/node': specifier: ^15.6.0 @@ -67,8 +135,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@democracy-deutschland/bundestagio-common': - specifier: 0.1.16 - version: 0.1.16(@types/mongoose@5.11.97) + specifier: '*' + version: 0.1.22-alpha.0(@types/mongoose@5.11.97) debug: specifier: ^4.3.1 version: 4.3.4(supports-color@8.1.1) @@ -128,8 +196,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@democracy-deutschland/bundestagio-common': - specifier: 0.1.16 - version: 0.1.16(@types/mongoose@5.11.97) + specifier: '*' + version: 0.1.22-alpha.0(@types/mongoose@5.11.97) '@democracy-deutschland/scapacra': specifier: ^1.0.6 version: 1.0.6 @@ -159,8 +227,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@democracy-deutschland/bundestagio-common': - specifier: 0.1.16 - version: 0.1.16(@types/mongoose@5.11.97) + specifier: '*' + version: 0.1.22-alpha.0(@types/mongoose@5.11.97) http2: specifier: ^3.3.7 version: 3.3.7 @@ -187,8 +255,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@democracy-deutschland/bundestagio-common': - specifier: 0.1.16 - version: 0.1.16(@types/mongoose@5.11.97) + specifier: '*' + version: 0.1.22-alpha.0(@types/mongoose@5.11.97) '@democracy-deutschland/scapacra': specifier: ^1.0.6 version: 1.0.6 @@ -204,7 +272,7 @@ importers: version: 16.3.1 ts-node-dev: specifier: ^2.0.0 - version: 2.0.0(@swc/core@1.3.93)(@types/node@20.8.6)(typescript@5.2.2) + version: 2.0.0(@swc/core@1.3.93)(@types/node@20.8.7)(typescript@5.2.2) ts-unused-exports: specifier: ^10.0.1 version: 10.0.1(typescript@5.2.2) @@ -218,8 +286,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@democracy-deutschland/bundestagio-common': - specifier: 0.1.20 - version: 0.1.20(@types/mongoose@5.11.97) + specifier: '*' + version: 0.1.22-alpha.0(@types/mongoose@5.11.97) cheerio: specifier: ^1.0.0-rc.12 version: 1.0.0-rc.12 @@ -252,8 +320,8 @@ importers: services/cron-jobs/import-plenary-minutes: dependencies: '@democracy-deutschland/bundestagio-common': - specifier: 0.1.16 - version: 0.1.16(@types/mongoose@5.11.97) + specifier: '*' + version: 0.1.22-alpha.0(@types/mongoose@5.11.97) axios: specifier: ^0.19.2 version: 0.19.2 @@ -286,8 +354,8 @@ importers: services/cron-jobs/index-sync-bundestagio: dependencies: '@democracy-deutschland/bundestagio-common': - specifier: 0.1.16 - version: 0.1.16(@types/mongoose@5.11.97) + specifier: '*' + version: 0.1.22-alpha.0(@types/mongoose@5.11.97) devDependencies: ts-node-dev: specifier: ^1.1.8 @@ -302,8 +370,8 @@ importers: services/cron-jobs/index-sync-democracy: dependencies: '@democracy-deutschland/democracy-common': - specifier: ^0.2.8 - version: 0.2.12 + specifier: '*' + version: link:../../../common/democracy devDependencies: ts-node-dev: specifier: ^1.0.0-pre.50 @@ -318,8 +386,8 @@ importers: services/cron-jobs/push-send-queued: dependencies: '@democracy-deutschland/democracy-common': - specifier: ^0.2.7 - version: 0.2.12 + specifier: '*' + version: link:../../../common/democracy apn: specifier: ^2.2.0 version: 2.2.0 @@ -350,7 +418,7 @@ importers: version: 16.3.1 ts-node-dev: specifier: ^2.0.0 - version: 2.0.0(@swc/core@1.3.93)(@types/node@20.8.6)(typescript@5.2.2) + version: 2.0.0(@swc/core@1.3.93)(@types/node@20.8.7)(typescript@5.2.2) ts-unused-exports: specifier: ^9.0.2 version: 9.0.5(typescript@5.2.2) @@ -361,8 +429,8 @@ importers: services/cron-jobs/queue-pushs-conference-week: dependencies: '@democracy-deutschland/democracy-common': - specifier: ^0.2.7 - version: 0.2.12 + specifier: ^0.2.12 + version: link:../../../common/democracy moment: specifier: ^2.27.0 version: 2.29.4 @@ -383,8 +451,8 @@ importers: services/cron-jobs/queue-pushs-vote-conference-week: dependencies: '@democracy-deutschland/democracy-common': - specifier: ^0.2.7 - version: 0.2.12 + specifier: '*' + version: link:../../../common/democracy moment: specifier: ^2.27.0 version: 2.29.4 @@ -408,8 +476,8 @@ importers: services/cron-jobs/queue-pushs-vote-top-100: dependencies: '@democracy-deutschland/democracy-common': - specifier: 0.2.12 - version: 0.2.12 + specifier: '*' + version: link:../../../common/democracy moment: specifier: ^2.27.0 version: 2.29.4 @@ -417,6 +485,9 @@ importers: specifier: ^1.1.8 version: 1.1.8 devDependencies: + '@types/node': + specifier: ^20.8.7 + version: 20.8.7 dotenv: specifier: ^10.0.0 version: 10.0.0 @@ -434,7 +505,7 @@ importers: dependencies: '@democracy-deutschland/democracy-common': specifier: ^0.2.7 - version: 0.2.12 + version: link:../../../common/democracy devDependencies: dotenv: specifier: ^10.0.0 @@ -455,8 +526,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@democracy-deutschland/democracy-common': - specifier: 0.2.12 - version: 0.2.12 + specifier: '*' + version: link:../../../common/democracy apollo-cache-inmemory: specifier: ^1.6.6 version: 1.6.6(graphql@15.8.0) @@ -510,8 +581,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@democracy-deutschland/democracy-common': - specifier: ^0.2.7 - version: 0.2.12 + specifier: '*' + version: link:../../../common/democracy apollo-cache-inmemory: specifier: ^1.6.6 version: 1.6.6(graphql@15.8.0) @@ -562,8 +633,8 @@ importers: specifier: ^1.0.2 version: 1.0.2 '@democracy-deutschland/democracy-common': - specifier: ^0.2.9 - version: 0.2.12 + specifier: '*' + version: link:../../../common/democracy apollo-cache-inmemory: specifier: ^1.6.6 version: 1.6.6(graphql@15.8.0) @@ -614,8 +685,8 @@ importers: specifier: ^4.17.1 version: 4.18.2 mongoose: - specifier: ^5.10.0 - version: 5.13.20 + specifier: 6.0.12 + version: 6.0.12 devDependencies: '@swc/core': specifier: ^1.3.93 @@ -628,7 +699,7 @@ importers: version: 5.11.97 ts-node-dev: specifier: ^2.0.0 - version: 2.0.0(@swc/core@1.3.93)(@types/node@20.8.6)(typescript@5.2.2) + version: 2.0.0(@swc/core@1.3.93)(@types/node@20.8.7)(typescript@5.2.2) tsup: specifier: ^7.2.0 version: 7.2.0(@swc/core@1.3.93)(typescript@5.2.2) @@ -764,694 +835,145 @@ packages: graphql: 15.8.0 dev: true - /@aws-crypto/crc32@3.0.0: - resolution: {integrity: sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==} - requiresBuild: true + /@babel/code-frame@7.12.11: + resolution: {integrity: sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==} dependencies: - '@aws-crypto/util': 3.0.0 - '@aws-sdk/types': 3.428.0 - tslib: 1.14.1 - dev: false - optional: true + '@babel/highlight': 7.22.20 + dev: true - /@aws-crypto/ie11-detection@3.0.0: - resolution: {integrity: sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==} - requiresBuild: true + /@babel/code-frame@7.22.13: + resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} + engines: {node: '>=6.9.0'} dependencies: - tslib: 1.14.1 - dev: false - optional: true + '@babel/highlight': 7.22.20 + chalk: 2.4.2 + dev: true - /@aws-crypto/sha256-browser@3.0.0: - resolution: {integrity: sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==} - requiresBuild: true - dependencies: - '@aws-crypto/ie11-detection': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-crypto/supports-web-crypto': 3.0.0 - '@aws-crypto/util': 3.0.0 - '@aws-sdk/types': 3.428.0 - '@aws-sdk/util-locate-window': 3.310.0 - '@aws-sdk/util-utf8-browser': 3.259.0 - tslib: 1.14.1 - dev: false - optional: true + /@babel/compat-data@7.22.20: + resolution: {integrity: sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==} + engines: {node: '>=6.9.0'} + dev: true - /@aws-crypto/sha256-js@3.0.0: - resolution: {integrity: sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==} - requiresBuild: true + /@babel/core@7.22.20: + resolution: {integrity: sha512-Y6jd1ahLubuYweD/zJH+vvOY141v4f9igNQAQ+MBgq9JlHS2iTsZKn1aMsb3vGccZsXI16VzTBw52Xx0DWmtnA==} + engines: {node: '>=6.9.0'} dependencies: - '@aws-crypto/util': 3.0.0 - '@aws-sdk/types': 3.428.0 - tslib: 1.14.1 - dev: false - optional: true + '@ampproject/remapping': 2.2.1 + '@babel/code-frame': 7.22.13 + '@babel/generator': 7.22.15 + '@babel/helper-compilation-targets': 7.22.15 + '@babel/helper-module-transforms': 7.22.20(@babel/core@7.22.20) + '@babel/helpers': 7.22.15 + '@babel/parser': 7.22.16 + '@babel/template': 7.22.15 + '@babel/traverse': 7.22.20 + '@babel/types': 7.22.19 + convert-source-map: 1.9.0 + debug: 4.3.4(supports-color@8.1.1) + gensync: 1.0.0-beta.2 + json5: 2.2.3 + semver: 6.3.1 + transitivePeerDependencies: + - supports-color + dev: true - /@aws-crypto/supports-web-crypto@3.0.0: - resolution: {integrity: sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==} - requiresBuild: true + /@babel/generator@7.17.10: + resolution: {integrity: sha512-46MJZZo9y3o4kmhBVc7zW7i8dtR1oIK/sdO5NcfcZRhTGYi+KKJRtHNgsU6c4VUcJmUNV/LQdebD/9Dlv4K+Tg==} + engines: {node: '>=6.9.0'} dependencies: - tslib: 1.14.1 - dev: false - optional: true + '@babel/types': 7.22.19 + '@jridgewell/gen-mapping': 0.1.1 + jsesc: 2.5.2 + dev: true - /@aws-crypto/util@3.0.0: - resolution: {integrity: sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==} - requiresBuild: true + /@babel/generator@7.22.15: + resolution: {integrity: sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA==} + engines: {node: '>=6.9.0'} dependencies: - '@aws-sdk/types': 3.428.0 - '@aws-sdk/util-utf8-browser': 3.259.0 - tslib: 1.14.1 - dev: false - optional: true + '@babel/types': 7.22.19 + '@jridgewell/gen-mapping': 0.3.3 + '@jridgewell/trace-mapping': 0.3.19 + jsesc: 2.5.2 + dev: true - /@aws-sdk/client-cognito-identity@3.428.0: - resolution: {integrity: sha512-uj296JRU0LlMVtv7oS9cBTutAya1Gl171BJOl9s/SotMgybUAxnmE+hQdXv2HQP8qwy95wAptbcpDDh4kuOiYQ==} - engines: {node: '>=14.0.0'} - requiresBuild: true + /@babel/helper-compilation-targets@7.22.15: + resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==} + engines: {node: '>=6.9.0'} dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/client-sts': 3.428.0 - '@aws-sdk/credential-provider-node': 3.428.0 - '@aws-sdk/middleware-host-header': 3.428.0 - '@aws-sdk/middleware-logger': 3.428.0 - '@aws-sdk/middleware-recursion-detection': 3.428.0 - '@aws-sdk/middleware-signing': 3.428.0 - '@aws-sdk/middleware-user-agent': 3.428.0 - '@aws-sdk/region-config-resolver': 3.428.0 - '@aws-sdk/types': 3.428.0 - '@aws-sdk/util-endpoints': 3.428.0 - '@aws-sdk/util-user-agent-browser': 3.428.0 - '@aws-sdk/util-user-agent-node': 3.428.0 - '@smithy/config-resolver': 2.0.14 - '@smithy/fetch-http-handler': 2.2.3 - '@smithy/hash-node': 2.0.11 - '@smithy/invalid-dependency': 2.0.11 - '@smithy/middleware-content-length': 2.0.13 - '@smithy/middleware-endpoint': 2.1.1 - '@smithy/middleware-retry': 2.0.16 - '@smithy/middleware-serde': 2.0.11 - '@smithy/middleware-stack': 2.0.5 - '@smithy/node-config-provider': 2.1.1 - '@smithy/node-http-handler': 2.1.7 - '@smithy/protocol-http': 3.0.7 - '@smithy/smithy-client': 2.1.11 - '@smithy/types': 2.3.5 - '@smithy/url-parser': 2.0.11 - '@smithy/util-base64': 2.0.0 - '@smithy/util-body-length-browser': 2.0.0 - '@smithy/util-body-length-node': 2.1.0 - '@smithy/util-defaults-mode-browser': 2.0.15 - '@smithy/util-defaults-mode-node': 2.0.19 - '@smithy/util-retry': 2.0.4 - '@smithy/util-utf8': 2.0.0 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - optional: true + '@babel/compat-data': 7.22.20 + '@babel/helper-validator-option': 7.22.15 + browserslist: 4.21.11 + lru-cache: 5.1.1 + semver: 6.3.1 + dev: true - /@aws-sdk/client-sso@3.428.0: - resolution: {integrity: sha512-6BuY7cd1licnCZTKuI/IK3ycKATIgsG53TuaK1hZcikwUB2Oiu2z6K+aWpmO9mJuJ6qAoE4dLlAy6lBBBkG6yQ==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/middleware-host-header': 3.428.0 - '@aws-sdk/middleware-logger': 3.428.0 - '@aws-sdk/middleware-recursion-detection': 3.428.0 - '@aws-sdk/middleware-user-agent': 3.428.0 - '@aws-sdk/region-config-resolver': 3.428.0 - '@aws-sdk/types': 3.428.0 - '@aws-sdk/util-endpoints': 3.428.0 - '@aws-sdk/util-user-agent-browser': 3.428.0 - '@aws-sdk/util-user-agent-node': 3.428.0 - '@smithy/config-resolver': 2.0.14 - '@smithy/fetch-http-handler': 2.2.3 - '@smithy/hash-node': 2.0.11 - '@smithy/invalid-dependency': 2.0.11 - '@smithy/middleware-content-length': 2.0.13 - '@smithy/middleware-endpoint': 2.1.1 - '@smithy/middleware-retry': 2.0.16 - '@smithy/middleware-serde': 2.0.11 - '@smithy/middleware-stack': 2.0.5 - '@smithy/node-config-provider': 2.1.1 - '@smithy/node-http-handler': 2.1.7 - '@smithy/protocol-http': 3.0.7 - '@smithy/smithy-client': 2.1.11 - '@smithy/types': 2.3.5 - '@smithy/url-parser': 2.0.11 - '@smithy/util-base64': 2.0.0 - '@smithy/util-body-length-browser': 2.0.0 - '@smithy/util-body-length-node': 2.1.0 - '@smithy/util-defaults-mode-browser': 2.0.15 - '@smithy/util-defaults-mode-node': 2.0.19 - '@smithy/util-retry': 2.0.4 - '@smithy/util-utf8': 2.0.0 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - optional: true + /@babel/helper-environment-visitor@7.22.20: + resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==} + engines: {node: '>=6.9.0'} + dev: true - /@aws-sdk/client-sts@3.428.0: - resolution: {integrity: sha512-ko9hgmIkS5FNPYtT3pntGGmp+yi+VXBEgePUBoplEKjCxsX/aTgFcq2Rs9duD9/CzkThd42Z0l0fWsVAErVxWQ==} - engines: {node: '>=14.0.0'} - requiresBuild: true + /@babel/helper-function-name@7.22.5: + resolution: {integrity: sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==} + engines: {node: '>=6.9.0'} dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/credential-provider-node': 3.428.0 - '@aws-sdk/middleware-host-header': 3.428.0 - '@aws-sdk/middleware-logger': 3.428.0 - '@aws-sdk/middleware-recursion-detection': 3.428.0 - '@aws-sdk/middleware-sdk-sts': 3.428.0 - '@aws-sdk/middleware-signing': 3.428.0 - '@aws-sdk/middleware-user-agent': 3.428.0 - '@aws-sdk/region-config-resolver': 3.428.0 - '@aws-sdk/types': 3.428.0 - '@aws-sdk/util-endpoints': 3.428.0 - '@aws-sdk/util-user-agent-browser': 3.428.0 - '@aws-sdk/util-user-agent-node': 3.428.0 - '@smithy/config-resolver': 2.0.14 - '@smithy/fetch-http-handler': 2.2.3 - '@smithy/hash-node': 2.0.11 - '@smithy/invalid-dependency': 2.0.11 - '@smithy/middleware-content-length': 2.0.13 - '@smithy/middleware-endpoint': 2.1.1 - '@smithy/middleware-retry': 2.0.16 - '@smithy/middleware-serde': 2.0.11 - '@smithy/middleware-stack': 2.0.5 - '@smithy/node-config-provider': 2.1.1 - '@smithy/node-http-handler': 2.1.7 - '@smithy/protocol-http': 3.0.7 - '@smithy/smithy-client': 2.1.11 - '@smithy/types': 2.3.5 - '@smithy/url-parser': 2.0.11 - '@smithy/util-base64': 2.0.0 - '@smithy/util-body-length-browser': 2.0.0 - '@smithy/util-body-length-node': 2.1.0 - '@smithy/util-defaults-mode-browser': 2.0.15 - '@smithy/util-defaults-mode-node': 2.0.19 - '@smithy/util-retry': 2.0.4 - '@smithy/util-utf8': 2.0.0 - fast-xml-parser: 4.2.5 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - optional: true + '@babel/template': 7.22.15 + '@babel/types': 7.22.19 + dev: true - /@aws-sdk/credential-provider-cognito-identity@3.428.0: - resolution: {integrity: sha512-amq+gnybLBOyX1D+GdcjEvios8VBL4TaTyuXPnAjkhinv2e6GHQ0/7QeaI5v4dd4YT76+Nz7a577VXfMf/Ijog==} - engines: {node: '>=14.0.0'} - requiresBuild: true + /@babel/helper-hoist-variables@7.22.5: + resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} + engines: {node: '>=6.9.0'} dependencies: - '@aws-sdk/client-cognito-identity': 3.428.0 - '@aws-sdk/types': 3.428.0 - '@smithy/property-provider': 2.0.10 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - optional: true + '@babel/types': 7.22.19 + dev: true - /@aws-sdk/credential-provider-env@3.428.0: - resolution: {integrity: sha512-e6fbY174Idzw0r5ZMT1qkDh+dpOp1DX3ickhr7J6ipo3cUGLI45Y5lnR9nYXWfB5o/wiNv4zXgN+Y3ORJJHzyA==} - engines: {node: '>=14.0.0'} - requiresBuild: true + /@babel/helper-module-imports@7.22.15: + resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==} + engines: {node: '>=6.9.0'} dependencies: - '@aws-sdk/types': 3.428.0 - '@smithy/property-provider': 2.0.10 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true + '@babel/types': 7.22.19 + dev: true - /@aws-sdk/credential-provider-http@3.428.0: - resolution: {integrity: sha512-aLrsmLVRTuO/Gx8AYxIUkZ12DdsFnVK9lbfNpeNOisVjM6ZvjCHqMgDsh12ydkUpmb7C0v+ALj8bHzwKcpyMdA==} - engines: {node: '>=14.0.0'} - requiresBuild: true + /@babel/helper-module-transforms@7.22.20(@babel/core@7.22.20): + resolution: {integrity: sha512-dLT7JVWIUUxKOs1UnJUBR3S70YK+pKX6AbJgB2vMIvEkZkrfJDbYDJesnPshtKV4LhDOR3Oc5YULeDizRek+5A==} + engines: {node: '>=6.9.0'} + peerDependencies: + '@babel/core': ^7.0.0 dependencies: - '@aws-sdk/types': 3.428.0 - '@smithy/fetch-http-handler': 2.2.3 - '@smithy/node-http-handler': 2.1.7 - '@smithy/property-provider': 2.0.10 - '@smithy/protocol-http': 3.0.7 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true + '@babel/core': 7.22.20 + '@babel/helper-environment-visitor': 7.22.20 + '@babel/helper-module-imports': 7.22.15 + '@babel/helper-simple-access': 7.22.5 + '@babel/helper-split-export-declaration': 7.22.6 + '@babel/helper-validator-identifier': 7.22.20 + dev: true - /@aws-sdk/credential-provider-ini@3.428.0: - resolution: {integrity: sha512-JPc0pVAsP8fOfMxhmPhp7PjddqHaPGBwgVI+wgbkFRUDOmeKCVhoxCB8Womx0R07qRqD5ZCUKBS2NHQ2b3MFRQ==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/credential-provider-env': 3.428.0 - '@aws-sdk/credential-provider-process': 3.428.0 - '@aws-sdk/credential-provider-sso': 3.428.0 - '@aws-sdk/credential-provider-web-identity': 3.428.0 - '@aws-sdk/types': 3.428.0 - '@smithy/credential-provider-imds': 2.0.12 - '@smithy/property-provider': 2.0.10 - '@smithy/shared-ini-file-loader': 2.2.0 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - optional: true + /@babel/helper-plugin-utils@7.22.5: + resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==} + engines: {node: '>=6.9.0'} + dev: true - /@aws-sdk/credential-provider-node@3.428.0: - resolution: {integrity: sha512-o8toLXf6/sklBpw2e1mzAUq6SvXQzT6iag7Xbg9E0Z2EgVeXLTnWeVto3ilU3cmhTHXBp6wprwUUq2jbjTxMcg==} - engines: {node: '>=14.0.0'} - requiresBuild: true + /@babel/helper-simple-access@7.22.5: + resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} + engines: {node: '>=6.9.0'} dependencies: - '@aws-sdk/credential-provider-env': 3.428.0 - '@aws-sdk/credential-provider-ini': 3.428.0 - '@aws-sdk/credential-provider-process': 3.428.0 - '@aws-sdk/credential-provider-sso': 3.428.0 - '@aws-sdk/credential-provider-web-identity': 3.428.0 - '@aws-sdk/types': 3.428.0 - '@smithy/credential-provider-imds': 2.0.12 - '@smithy/property-provider': 2.0.10 - '@smithy/shared-ini-file-loader': 2.2.0 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - optional: true + '@babel/types': 7.22.19 + dev: true - /@aws-sdk/credential-provider-process@3.428.0: - resolution: {integrity: sha512-UG2S2/4Wrskbkbgt9fBlnzwQ2hfTXvLJwUgGOluSOf6+mGCcoDku4zzc9EQdk1MwN5Us+ziyMrIMNY5sbdLg6g==} - engines: {node: '>=14.0.0'} - requiresBuild: true + /@babel/helper-split-export-declaration@7.22.6: + resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} + engines: {node: '>=6.9.0'} dependencies: - '@aws-sdk/types': 3.428.0 - '@smithy/property-provider': 2.0.10 - '@smithy/shared-ini-file-loader': 2.2.0 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true + '@babel/types': 7.22.19 + dev: true - /@aws-sdk/credential-provider-sso@3.428.0: - resolution: {integrity: sha512-sW2+kSlICSNntsNhLV5apqJkIOXH5hFISCjwVfyB9JXJQDAj8rzkiFfRsKwQ3aTlTYCysrGesIn46+GRP5AgZw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/client-sso': 3.428.0 - '@aws-sdk/token-providers': 3.428.0 - '@aws-sdk/types': 3.428.0 - '@smithy/property-provider': 2.0.10 - '@smithy/shared-ini-file-loader': 2.2.0 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - optional: true + /@babel/helper-string-parser@7.22.5: + resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} + engines: {node: '>=6.9.0'} - /@aws-sdk/credential-provider-web-identity@3.428.0: - resolution: {integrity: sha512-ueuUPPlrJFvtDUVTGnClUGt1wxCbEiKArknah/w9cfcc/c1HtFd/M7x/z2Sm0gSItR45sVcK54qjzmhm29DMzg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/types': 3.428.0 - '@smithy/property-provider': 2.0.10 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/credential-providers@3.428.0: - resolution: {integrity: sha512-BpCrxjiZ4H5PC4vYA7SdTbmvLLrkuaudzHuoPMZ55RGFGfl9xN8caCtXktohzX8+Dn0jutsXuclPwazHOVz9cg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/client-cognito-identity': 3.428.0 - '@aws-sdk/client-sso': 3.428.0 - '@aws-sdk/client-sts': 3.428.0 - '@aws-sdk/credential-provider-cognito-identity': 3.428.0 - '@aws-sdk/credential-provider-env': 3.428.0 - '@aws-sdk/credential-provider-http': 3.428.0 - '@aws-sdk/credential-provider-ini': 3.428.0 - '@aws-sdk/credential-provider-node': 3.428.0 - '@aws-sdk/credential-provider-process': 3.428.0 - '@aws-sdk/credential-provider-sso': 3.428.0 - '@aws-sdk/credential-provider-web-identity': 3.428.0 - '@aws-sdk/types': 3.428.0 - '@smithy/credential-provider-imds': 2.0.12 - '@smithy/property-provider': 2.0.10 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - optional: true - - /@aws-sdk/middleware-host-header@3.428.0: - resolution: {integrity: sha512-iIHbW5Ym60ol9Q6vsLnaiNdeUIa9DA0OuoOe9LiHC8SYUYVAAhE+xJXUhn1qk/J7z+4qGOkDnVyEvnSaqRPL/w==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/types': 3.428.0 - '@smithy/protocol-http': 3.0.7 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/middleware-logger@3.428.0: - resolution: {integrity: sha512-1P0V0quL9u2amdNOn6yYT7/ToQUmkLJqCKHPxsRyDB829vBThWndvvH5MkoItj/VgE1zWqMtrzN3xtzD7zx6Qg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/types': 3.428.0 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/middleware-recursion-detection@3.428.0: - resolution: {integrity: sha512-xC0OMduCByyRdiQz324RXy4kunnCG4LUJCfvdoegM33Elp9ex0D3fcfO1mUgV8qiLwSennIsSRVXHuhNxE2HZA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/types': 3.428.0 - '@smithy/protocol-http': 3.0.7 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/middleware-sdk-sts@3.428.0: - resolution: {integrity: sha512-Uutl2niYXTnNP8v84v6umWDHD5no7d5/OqkZE1DsmeKR/dje90J5unJWf7MOsqvYm0JGDEWF4lk9xGVyqsw+Aw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/middleware-signing': 3.428.0 - '@aws-sdk/types': 3.428.0 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/middleware-signing@3.428.0: - resolution: {integrity: sha512-oMSerTPwtsQAR7fIU/G0b0BA30wF+MC4gZSrJjbypF8MK8nPC2yMfKLR8+QavGOGEW7rUMQ0uklThMTTwQEXNQ==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/types': 3.428.0 - '@smithy/property-provider': 2.0.10 - '@smithy/protocol-http': 3.0.7 - '@smithy/signature-v4': 2.0.11 - '@smithy/types': 2.3.5 - '@smithy/util-middleware': 2.0.4 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/middleware-user-agent@3.428.0: - resolution: {integrity: sha512-+GAhObeHRick2D5jr3YkPckjcggt5v6uUVtEUQW2AdD65cE5PjIvmksv6FuM/mME/9nNA+wufQnHbLI8teLeaw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/types': 3.428.0 - '@aws-sdk/util-endpoints': 3.428.0 - '@smithy/protocol-http': 3.0.7 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/region-config-resolver@3.428.0: - resolution: {integrity: sha512-VqyHZ/Hoz3WrXXMx8cAhFBl8IpjodbRsTjBI117QPq1YRCegxNdGvqmGZnJj8N2Ef9MP1iU30ZWQB+sviDcogA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/node-config-provider': 2.1.1 - '@smithy/types': 2.3.5 - '@smithy/util-config-provider': 2.0.0 - '@smithy/util-middleware': 2.0.4 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/token-providers@3.428.0: - resolution: {integrity: sha512-Jciofr//rB1v1FLxADkXoHOCmYyiv2HVNlOq3z5Zkch9ipItOfD6X7f4G4n+IZzElIFzwe4OKoBtJfcnnfo3Pg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-crypto/sha256-browser': 3.0.0 - '@aws-crypto/sha256-js': 3.0.0 - '@aws-sdk/middleware-host-header': 3.428.0 - '@aws-sdk/middleware-logger': 3.428.0 - '@aws-sdk/middleware-recursion-detection': 3.428.0 - '@aws-sdk/middleware-user-agent': 3.428.0 - '@aws-sdk/types': 3.428.0 - '@aws-sdk/util-endpoints': 3.428.0 - '@aws-sdk/util-user-agent-browser': 3.428.0 - '@aws-sdk/util-user-agent-node': 3.428.0 - '@smithy/config-resolver': 2.0.14 - '@smithy/fetch-http-handler': 2.2.3 - '@smithy/hash-node': 2.0.11 - '@smithy/invalid-dependency': 2.0.11 - '@smithy/middleware-content-length': 2.0.13 - '@smithy/middleware-endpoint': 2.1.1 - '@smithy/middleware-retry': 2.0.16 - '@smithy/middleware-serde': 2.0.11 - '@smithy/middleware-stack': 2.0.5 - '@smithy/node-config-provider': 2.1.1 - '@smithy/node-http-handler': 2.1.7 - '@smithy/property-provider': 2.0.10 - '@smithy/protocol-http': 3.0.7 - '@smithy/shared-ini-file-loader': 2.2.0 - '@smithy/smithy-client': 2.1.11 - '@smithy/types': 2.3.5 - '@smithy/url-parser': 2.0.11 - '@smithy/util-base64': 2.0.0 - '@smithy/util-body-length-browser': 2.0.0 - '@smithy/util-body-length-node': 2.1.0 - '@smithy/util-defaults-mode-browser': 2.0.15 - '@smithy/util-defaults-mode-node': 2.0.19 - '@smithy/util-retry': 2.0.4 - '@smithy/util-utf8': 2.0.0 - tslib: 2.6.2 - transitivePeerDependencies: - - aws-crt - dev: false - optional: true - - /@aws-sdk/types@3.428.0: - resolution: {integrity: sha512-4T0Ps2spjg3qbWE6ZK13Vd3FnzpfliaiotqjxUK5YhjDrKXeT36HJp46JhDupElQuHtTkpdiJOSYk2lvY2H4IA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/util-endpoints@3.428.0: - resolution: {integrity: sha512-ToKMhYlUWJ0YrbggpJLZeyZZNDXtQ4NITxqo/oeGltTT9KG4o/LqVY59EveV0f8P32ObDyj9Vh1mnjxeo3DxGw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@aws-sdk/types': 3.428.0 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/util-locate-window@3.310.0: - resolution: {integrity: sha512-qo2t/vBTnoXpjKxlsC2e1gBrRm80M3bId27r0BRB2VniSSe7bL1mmzM+/HFtujm0iAxtPM+aLEflLJlJeDPg0w==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/util-user-agent-browser@3.428.0: - resolution: {integrity: sha512-qlc2UoGsmCpuh1ErY3VayZuAGl74TWWcLmhhQMkeByFSb6KooBlwOmDpDzJRtgwJoe0KXnyHBO6lzl9iczcozg==} - requiresBuild: true - dependencies: - '@aws-sdk/types': 3.428.0 - '@smithy/types': 2.3.5 - bowser: 2.11.0 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/util-user-agent-node@3.428.0: - resolution: {integrity: sha512-s721C3H8TkNd0usWLPEAy7yW2lEglR8QAYojdQGzE0e0wymc671nZAFePSZFRtmqZiFOSfk0R602L5fDbP3a8Q==} - engines: {node: '>=14.0.0'} - requiresBuild: true - peerDependencies: - aws-crt: '>=1.0.0' - peerDependenciesMeta: - aws-crt: - optional: true - dependencies: - '@aws-sdk/types': 3.428.0 - '@smithy/node-config-provider': 2.1.1 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@aws-sdk/util-utf8-browser@3.259.0: - resolution: {integrity: sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==} - requiresBuild: true - dependencies: - tslib: 2.6.2 - dev: false - optional: true - - /@babel/code-frame@7.12.11: - resolution: {integrity: sha512-Zt1yodBx1UcyiePMSkWnU4hPqhwq7hGi2nFL1LeA3EUl+q2LQx16MISgJ0+z7dnmgvP9QtIleuETGOiOH1RcIw==} - dependencies: - '@babel/highlight': 7.22.20 - dev: true - - /@babel/code-frame@7.22.13: - resolution: {integrity: sha512-XktuhWlJ5g+3TJXc5upd9Ks1HutSArik6jf2eAjYFyIOf4ej3RN+184cZbzDvbPnuTJIUhPKKJE3cIsYTiAT3w==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/highlight': 7.22.20 - chalk: 2.4.2 - dev: true - - /@babel/compat-data@7.22.20: - resolution: {integrity: sha512-BQYjKbpXjoXwFW5jGqiizJQQT/aC7pFm9Ok1OWssonuguICi264lbgMzRp2ZMmRSlfkX6DsWDDcsrctK8Rwfiw==} - engines: {node: '>=6.9.0'} - dev: true - - /@babel/core@7.22.20: - resolution: {integrity: sha512-Y6jd1ahLubuYweD/zJH+vvOY141v4f9igNQAQ+MBgq9JlHS2iTsZKn1aMsb3vGccZsXI16VzTBw52Xx0DWmtnA==} - engines: {node: '>=6.9.0'} - dependencies: - '@ampproject/remapping': 2.2.1 - '@babel/code-frame': 7.22.13 - '@babel/generator': 7.22.15 - '@babel/helper-compilation-targets': 7.22.15 - '@babel/helper-module-transforms': 7.22.20(@babel/core@7.22.20) - '@babel/helpers': 7.22.15 - '@babel/parser': 7.22.16 - '@babel/template': 7.22.15 - '@babel/traverse': 7.22.20 - '@babel/types': 7.22.19 - convert-source-map: 1.9.0 - debug: 4.3.4(supports-color@8.1.1) - gensync: 1.0.0-beta.2 - json5: 2.2.3 - semver: 6.3.1 - transitivePeerDependencies: - - supports-color - dev: true - - /@babel/generator@7.17.10: - resolution: {integrity: sha512-46MJZZo9y3o4kmhBVc7zW7i8dtR1oIK/sdO5NcfcZRhTGYi+KKJRtHNgsU6c4VUcJmUNV/LQdebD/9Dlv4K+Tg==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.19 - '@jridgewell/gen-mapping': 0.1.1 - jsesc: 2.5.2 - dev: true - - /@babel/generator@7.22.15: - resolution: {integrity: sha512-Zu9oWARBqeVOW0dZOjXc3JObrzuqothQ3y/n1kUtrjCoCPLkXUwMvOo/F/TCfoHMbWIFlWwpZtkZVb9ga4U2pA==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.19 - '@jridgewell/gen-mapping': 0.3.3 - '@jridgewell/trace-mapping': 0.3.19 - jsesc: 2.5.2 - dev: true - - /@babel/helper-compilation-targets@7.22.15: - resolution: {integrity: sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/compat-data': 7.22.20 - '@babel/helper-validator-option': 7.22.15 - browserslist: 4.21.11 - lru-cache: 5.1.1 - semver: 6.3.1 - dev: true - - /@babel/helper-environment-visitor@7.22.20: - resolution: {integrity: sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==} - engines: {node: '>=6.9.0'} - dev: true - - /@babel/helper-function-name@7.22.5: - resolution: {integrity: sha512-wtHSq6jMRE3uF2otvfuD3DIvVhOsSNshQl0Qrd7qC9oQJzHvOL4qQXlQn2916+CXGywIjpGuIkoyZRRxHPiNQQ==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/template': 7.22.15 - '@babel/types': 7.22.19 - dev: true - - /@babel/helper-hoist-variables@7.22.5: - resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.19 - dev: true - - /@babel/helper-module-imports@7.22.15: - resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.19 - dev: true - - /@babel/helper-module-transforms@7.22.20(@babel/core@7.22.20): - resolution: {integrity: sha512-dLT7JVWIUUxKOs1UnJUBR3S70YK+pKX6AbJgB2vMIvEkZkrfJDbYDJesnPshtKV4LhDOR3Oc5YULeDizRek+5A==} - engines: {node: '>=6.9.0'} - peerDependencies: - '@babel/core': ^7.0.0 - dependencies: - '@babel/core': 7.22.20 - '@babel/helper-environment-visitor': 7.22.20 - '@babel/helper-module-imports': 7.22.15 - '@babel/helper-simple-access': 7.22.5 - '@babel/helper-split-export-declaration': 7.22.6 - '@babel/helper-validator-identifier': 7.22.20 - dev: true - - /@babel/helper-plugin-utils@7.22.5: - resolution: {integrity: sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==} - engines: {node: '>=6.9.0'} - dev: true - - /@babel/helper-simple-access@7.22.5: - resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.19 - dev: true - - /@babel/helper-split-export-declaration@7.22.6: - resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} - engines: {node: '>=6.9.0'} - dependencies: - '@babel/types': 7.22.19 - dev: true - - /@babel/helper-string-parser@7.22.5: - resolution: {integrity: sha512-mM4COjgZox8U+JcXQwPijIZLElkgEpO5rsERVDJTc2qfCDfERyob6k5WegS14SX18IIjv+XD+GrqNumY5JRCDw==} - engines: {node: '>=6.9.0'} - - /@babel/helper-validator-identifier@7.22.20: - resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} - engines: {node: '>=6.9.0'} + /@babel/helper-validator-identifier@7.22.20: + resolution: {integrity: sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==} + engines: {node: '>=6.9.0'} /@babel/helper-validator-option@7.22.15: resolution: {integrity: sha512-bMn7RmyFjY/mdECUbgn9eoSY4vqvacUnS9i9vGAGttgFWesO6B4CYWA7XlpbWgBt71iv/hfbPlynohStqnu5hA==} @@ -1930,63 +1452,25 @@ packages: typescript: 3.9.10 dev: false - /@democracy-deutschland/bundestagio-common@0.1.16(@types/mongoose@5.11.97): - resolution: {integrity: sha512-nLVqzShop/rE0leGdqSWqeXllIcrL3Epeh18BfnNqTMBd1hXj/axsmmo/jjn7mnPTvrZFuWZireelnapa4ejFA==} + /@democracy-deutschland/bundestagio-common@0.1.22-alpha.0(@types/mongoose@5.11.97): + resolution: {integrity: sha512-zN8VgMjxpZ5ddjlGeZ3fChVpGA4COvlbtp2JmQI6qAAHYdcq5XjOrzpAg+nvPUtsHLzHvwcdDmPZodLNRC/i4g==} dependencies: '@democracy-deutschland/bundestag.io-definitions': 1.0.2 '@types/cron': 1.7.3 - cron: 1.8.3 + cron: 1.8.2 jsonwebtoken: 8.5.1 mongoosastic: 4.6.0 - mongoose: 6.12.0 + mongoose: 6.0.12 mongoose-diff-history: github.com/mimani/mongoose-diff-history/1fb081a4308d3745ebb2646f2faeaa7ce867ca86 omit-deep: 0.3.0 - ts-mongoose: 0.0.24(@types/mongoose@5.11.97)(mongoose@6.12.0) + ts-mongoose: 0.0.24(@types/mongoose@5.11.97)(mongoose@6.0.12) transitivePeerDependencies: - '@types/mongoose' - - aws-crt - supports-color dev: false - /@democracy-deutschland/bundestagio-common@0.1.20(@types/mongoose@5.11.97): - resolution: {integrity: sha512-PZEXAXtp2sWyki1mm2RRoF4hpl1u6ob8IoAljTaY4bAnBS8mP565bj+ZbFjlJzEI94LZBAqU0t1F69TTOjkPLQ==} - dependencies: - '@democracy-deutschland/bundestag.io-definitions': 1.0.2 - '@types/cron': 1.7.3 - cron: 1.8.3 - jsonwebtoken: 8.5.1 - mongoosastic: 4.6.0 - mongoose: 6.12.0 - omit-deep: 0.3.0 - ts-mongoose: 0.0.24(@types/mongoose@5.11.97)(mongoose@6.12.0) - transitivePeerDependencies: - - '@types/mongoose' - - aws-crt - - supports-color - dev: false - - /@democracy-deutschland/democracy-common@0.2.12: - resolution: {integrity: sha512-oeNiDFCRaaEnRk92R/COEz4kr0ShgPixOK6P496orJFOHVgNWKPkHwS6f4yPZBytGz1kj/UiQbf0qrgle1RxVA==} - dependencies: - '@democracy-deutschland/bundestag.io-definitions': 1.0.2 - '@types/cron': 1.7.3 - '@types/mongoose': 5.11.97 - cron: 1.8.3 - mongoose: 5.13.20 - ts-mongoose: 0.0.21(@types/mongoose@5.11.97)(mongoose@5.13.20) - ts-unused-exports: 6.3.0 - transitivePeerDependencies: - - aws4 - - bson-ext - - kerberos - - mongodb-client-encryption - - mongodb-extjson - - snappy - - supports-color - dev: false - - /@democracy-deutschland/scapacra-bt@1.0.32: - resolution: {integrity: sha512-B0wAw7ffkSHaI+qF5XYyJWKoxiDwwDQGFBjZ1RCtwoJmiXECrXjUxrFdLTd9c0sbhE43siPFWes3ehHv7nBJag==} + /@democracy-deutschland/scapacra-bt@1.0.32: + resolution: {integrity: sha512-B0wAw7ffkSHaI+qF5XYyJWKoxiDwwDQGFBjZ1RCtwoJmiXECrXjUxrFdLTd9c0sbhE43siPFWes3ehHv7nBJag==} dependencies: '@democracy-deutschland/scapacra': 1.0.6 '@types/axios': 0.14.0 @@ -2450,7 +1934,7 @@ packages: requiresBuild: true dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.6.4 + '@types/node': 20.8.7 dev: false optional: true @@ -2519,7 +2003,7 @@ packages: engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 chalk: 4.1.2 jest-message-util: 27.5.1 jest-util: 27.5.1 @@ -2540,7 +2024,7 @@ packages: '@jest/test-result': 27.5.1 '@jest/transform': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 ansi-escapes: 4.3.2 chalk: 4.1.2 emittery: 0.8.1 @@ -2577,7 +2061,7 @@ packages: dependencies: '@jest/fake-timers': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 jest-mock: 27.5.1 dev: true @@ -2587,7 +2071,7 @@ packages: dependencies: '@jest/types': 27.5.1 '@sinonjs/fake-timers': 8.1.0 - '@types/node': 20.6.4 + '@types/node': 20.8.6 jest-message-util: 27.5.1 jest-mock: 27.5.1 jest-util: 27.5.1 @@ -2616,7 +2100,7 @@ packages: '@jest/test-result': 27.5.1 '@jest/transform': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 chalk: 4.1.2 collect-v8-coverage: 1.0.2 exit: 0.1.2 @@ -2700,7 +2184,7 @@ packages: dependencies: '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.6.4 + '@types/node': 20.8.7 '@types/yargs': 15.0.15 chalk: 4.1.2 dev: true @@ -2711,7 +2195,7 @@ packages: dependencies: '@types/istanbul-lib-coverage': 2.0.4 '@types/istanbul-reports': 3.0.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 '@types/yargs': 16.0.5 chalk: 4.1.2 dev: true @@ -2775,14 +2259,6 @@ packages: engines: {node: '>= 0.4'} dev: false - /@mongodb-js/saslprep@1.1.0: - resolution: {integrity: sha512-Xfijy7HvfzzqiOAhAepF4SGN5e9leLkMvg/OPOF97XemjfVCYN/oWa75wnkc6mltMSTwY+XlbhWgUOJmkFspSw==} - requiresBuild: true - dependencies: - sparse-bitfield: 3.0.3 - dev: false - optional: true - /@nodelib/fs.scandir@2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -3079,564 +2555,77 @@ packages: dev: false optional: true - /@protobufjs/inquire@1.1.0: - resolution: {integrity: sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==} - requiresBuild: true - dev: false - optional: true - - /@protobufjs/path@1.1.2: - resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==} - requiresBuild: true - dev: false - optional: true - - /@protobufjs/pool@1.1.0: - resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==} - requiresBuild: true - dev: false - optional: true - - /@protobufjs/utf8@1.1.0: - resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} - requiresBuild: true - dev: false - optional: true - - /@samverschueren/stream-to-observable@0.3.1(rxjs@6.6.7): - resolution: {integrity: sha512-c/qwwcHyafOQuVQJj0IlBjf5yYgBI7YPJ77k4fOJYesb41jio65eaJODRUmfYKhTOFBrIZ66kgvGPlNbjuoRdQ==} - engines: {node: '>=6'} - peerDependencies: - rxjs: '*' - zen-observable: '*' - peerDependenciesMeta: - rxjs: - optional: true - zen-observable: - optional: true - dependencies: - any-observable: 0.3.0(rxjs@6.6.7) - rxjs: 6.6.7 - transitivePeerDependencies: - - zenObservable - dev: true - - /@sapphire/async-queue@1.5.0: - resolution: {integrity: sha512-JkLdIsP8fPAdh9ZZjrbHWR/+mZj0wvKS5ICibcLrRI1j84UmLMshx5n9QmL8b95d4onJ2xxiyugTgSAX7AalmA==} - engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - dev: false - - /@sapphire/shapeshift@3.9.2: - resolution: {integrity: sha512-YRbCXWy969oGIdqR/wha62eX8GNHsvyYi0Rfd4rNW6tSVVa8p0ELiMEuOH/k8rgtvRoM+EMV7Csqz77YdwiDpA==} - engines: {node: '>=v14.0.0', npm: '>=7.0.0'} - dependencies: - fast-deep-equal: 3.1.3 - lodash: 4.17.21 - dev: false - - /@sindresorhus/is@4.6.0: - resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} - engines: {node: '>=10'} - dev: false - - /@sinonjs/commons@1.8.6: - resolution: {integrity: sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==} - dependencies: - type-detect: 4.0.8 - dev: true - - /@sinonjs/fake-timers@8.1.0: - resolution: {integrity: sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==} - dependencies: - '@sinonjs/commons': 1.8.6 - dev: true - - /@smithy/abort-controller@2.0.11: - resolution: {integrity: sha512-MSzE1qR2JNyb7ot3blIOT3O3H0Jn06iNDEgHRaqZUwBgx5EG+VIx24Y21tlKofzYryIOcWpIohLrIIyocD6LMA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/config-resolver@2.0.14: - resolution: {integrity: sha512-K1K+FuWQoy8j/G7lAmK85o03O89s2Vvh6kMFmzEmiHUoQCRH1rzbDtMnGNiaMHeSeYJ6y79IyTusdRG+LuWwtg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/node-config-provider': 2.1.1 - '@smithy/types': 2.3.5 - '@smithy/util-config-provider': 2.0.0 - '@smithy/util-middleware': 2.0.4 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/credential-provider-imds@2.0.12: - resolution: {integrity: sha512-S3lUNe+2fEFwKcmiQniXGPXt69vaHvQCw8kYQOBL4OvJsgwfpkIYDZdroHbTshYi0M6WaKL26Mw+hvgma6dZqA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/node-config-provider': 2.0.12 - '@smithy/property-provider': 2.0.10 - '@smithy/types': 2.3.5 - '@smithy/url-parser': 2.0.9 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/credential-provider-imds@2.0.16: - resolution: {integrity: sha512-tKa2xF+69TvGxJT+lnJpGrKxUuAZDLYXFhqnPEgnHz+psTpkpcB4QRjHj63+uj83KaeFJdTfW201eLZeRn6FfA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/node-config-provider': 2.1.1 - '@smithy/property-provider': 2.0.12 - '@smithy/types': 2.3.5 - '@smithy/url-parser': 2.0.11 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/eventstream-codec@2.0.11: - resolution: {integrity: sha512-BQCTjxhCYRZIfXapa2LmZSaH8QUBGwMZw7XRN83hrdixbLjIcj+o549zjkedFS07Ve2TlvWUI6BTzP+nv7snBA==} - requiresBuild: true - dependencies: - '@aws-crypto/crc32': 3.0.0 - '@smithy/types': 2.3.5 - '@smithy/util-hex-encoding': 2.0.0 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/fetch-http-handler@2.2.3: - resolution: {integrity: sha512-0G9sePU+0R+8d7cie+OXzNbbkjnD4RfBlVCs46ZEuQAMcxK8OniemYXSSkOc80CCk8Il4DnlYZcUSvsIs2OB2w==} - requiresBuild: true - dependencies: - '@smithy/protocol-http': 3.0.7 - '@smithy/querystring-builder': 2.0.11 - '@smithy/types': 2.3.5 - '@smithy/util-base64': 2.0.0 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/hash-node@2.0.11: - resolution: {integrity: sha512-PbleVugN2tbhl1ZoNWVrZ1oTFFas/Hq+s6zGO8B9bv4w/StTriTKA9W+xZJACOj9X7zwfoTLbscM+avCB1KqOQ==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - '@smithy/util-buffer-from': 2.0.0 - '@smithy/util-utf8': 2.0.0 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/invalid-dependency@2.0.11: - resolution: {integrity: sha512-zazq99ujxYv/NOf9zh7xXbNgzoVLsqE0wle8P/1zU/XdhPi/0zohTPKWUzIxjGdqb5hkkwfBkNkl5H+LE0mvgw==} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/is-array-buffer@2.0.0: - resolution: {integrity: sha512-z3PjFjMyZNI98JFRJi/U0nGoLWMSJlDjAW4QUX2WNZLas5C0CmVV6LJ01JI0k90l7FvpmixjWxPFmENSClQ7ug==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/middleware-content-length@2.0.13: - resolution: {integrity: sha512-Md2kxWpaec3bXp1oERFPQPBhOXCkGSAF7uc1E+4rkwjgw3/tqAXRtbjbggu67HJdwaif76As8AV6XxbD1HzqTQ==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/protocol-http': 3.0.7 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/middleware-endpoint@2.1.1: - resolution: {integrity: sha512-YAqGagBvHqDEew4EGz9BrQ7M+f+u7ck9EL4zzYirOhIcXeBS/+q4A5+ObHDDwEp38lD6t88YUtFy3OptqEaDQg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/middleware-serde': 2.0.11 - '@smithy/node-config-provider': 2.1.1 - '@smithy/shared-ini-file-loader': 2.2.0 - '@smithy/types': 2.3.5 - '@smithy/url-parser': 2.0.11 - '@smithy/util-middleware': 2.0.4 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/middleware-retry@2.0.16: - resolution: {integrity: sha512-Br5+0yoiMS0ugiOAfJxregzMMGIRCbX4PYo1kDHtLgvkA/d++aHbnHB819m5zOIAMPvPE7AThZgcsoK+WOsUTA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/node-config-provider': 2.1.1 - '@smithy/protocol-http': 3.0.7 - '@smithy/service-error-classification': 2.0.4 - '@smithy/types': 2.3.5 - '@smithy/util-middleware': 2.0.4 - '@smithy/util-retry': 2.0.4 - tslib: 2.6.2 - uuid: 8.3.2 - dev: false - optional: true - - /@smithy/middleware-serde@2.0.11: - resolution: {integrity: sha512-NuxnjMyf4zQqhwwdh0OTj5RqpnuT6HcH5Xg5GrPijPcKzc2REXVEVK4Yyk8ckj8ez1XSj/bCmJ+oNjmqB02GWA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/middleware-stack@2.0.5: - resolution: {integrity: sha512-bVQU/rZzBY7CbSxIrDTGZYnBWKtIw+PL/cRc9B7etZk1IKSOe0NvKMJyWllfhfhrTeMF6eleCzOihIQympAvPw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/node-config-provider@2.0.12: - resolution: {integrity: sha512-df9y9ywv+JmS40Y60ZqJ4jfZiTCmyHQffwzIqjBjLJLJl0imf9F6DWBd+jiEWHvlohR+sFhyY+KL/qzKgnAq1A==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/property-provider': 2.0.10 - '@smithy/shared-ini-file-loader': 2.0.11 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/node-config-provider@2.1.1: - resolution: {integrity: sha512-1lF6s1YWBi1LBu2O30tD3jyTgMtuvk/Z1twzXM4GPYe4dmZix4nNREPJIPOcfFikNU2o0eTYP80+izx5F2jIJA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/property-provider': 2.0.12 - '@smithy/shared-ini-file-loader': 2.2.0 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/node-http-handler@2.1.7: - resolution: {integrity: sha512-PQIKZXlp3awCDn/xNlCSTFE7aYG/5Tx33M05NfQmWYeB5yV1GZZOSz4dXpwiNJYTXb9jPqjl+ueXXkwtEluFFA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/abort-controller': 2.0.11 - '@smithy/protocol-http': 3.0.7 - '@smithy/querystring-builder': 2.0.11 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/property-provider@2.0.10: - resolution: {integrity: sha512-YMBVfh0ZMmJtbsUn+WfSwR32iRljZPdRN0Tn2GAcdJ+ejX8WrBXD7Z0jIkQDrQZr8fEuuv5x8WxMIj+qVbsPQw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/property-provider@2.0.12: - resolution: {integrity: sha512-Un/OvvuQ1Kg8WYtoMCicfsFFuHb/TKL3pCA6ZIo/WvNTJTR94RtoRnL7mY4XkkUAoFMyf6KjcQJ76y1FX7S5rw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/protocol-http@3.0.7: - resolution: {integrity: sha512-HnZW8y+r66ntYueCDbLqKwWcMNWW8o3eVpSrHNluwtBJ/EUWfQHRKSiu6vZZtc6PGfPQWgVfucoCE/C3QufMAA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/querystring-builder@2.0.11: - resolution: {integrity: sha512-b4kEbVMxpmfv2VWUITn2otckTi7GlMteZQxi+jlwedoATOGEyrCJPfRcYQJjbCi3fZ2QTfh3PcORvB27+j38Yg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - '@smithy/util-uri-escape': 2.0.0 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/querystring-parser@2.0.11: - resolution: {integrity: sha512-YXe7jhi7s3dQ0Fu9dLoY/gLu6NCyy8tBWJL/v2c9i7/RLpHgKT+uT96/OqZkHizCJ4kr0ZD46tzMjql/o60KLg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/querystring-parser@2.0.9: - resolution: {integrity: sha512-U6z4N743s4vrcxPW8p8+reLV0PjMCYEyb1/wtMVvv3VnbJ74gshdI8SR1sBnEh95cF8TxonmX5IxY25tS9qGfg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/service-error-classification@2.0.4: - resolution: {integrity: sha512-77506l12I5gxTZqBkx3Wb0RqMG81bMYLaVQ+EqIWFwQDJRs5UFeXogKxSKojCmz1wLUziHZQXm03MBzPQiumQw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - dev: false - optional: true - - /@smithy/shared-ini-file-loader@2.0.11: - resolution: {integrity: sha512-Sf0u5C5px6eykXi6jImDTp+edvG3REtPjXnFWU/J+b7S2wkXwUqFXqBL5DdM4zC1F+M8u57ZT7NRqDwMOw7/Tw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/shared-ini-file-loader@2.2.0: - resolution: {integrity: sha512-xFXqs4vAb5BdkzHSRrTapFoaqS4/3m/CGZzdw46fBjYZ0paYuLAoMY60ICCn1FfGirG+PiJ3eWcqJNe4/SkfyA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/signature-v4@2.0.11: - resolution: {integrity: sha512-EFVU1dT+2s8xi227l1A9O27edT/GNKvyAK6lZnIZ0zhIHq/jSLznvkk15aonGAM1kmhmZBVGpI7Tt0odueZK9A==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/eventstream-codec': 2.0.11 - '@smithy/is-array-buffer': 2.0.0 - '@smithy/types': 2.3.5 - '@smithy/util-hex-encoding': 2.0.0 - '@smithy/util-middleware': 2.0.4 - '@smithy/util-uri-escape': 2.0.0 - '@smithy/util-utf8': 2.0.0 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/smithy-client@2.1.11: - resolution: {integrity: sha512-okjMbuBBCTiieK665OFN/ap6u9+Z9z55PMphS5FYCsS6Zfp137Q3qlnt0OgBAnUVnH/mNGyoJV0LBX9gkTWptg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/middleware-stack': 2.0.5 - '@smithy/types': 2.3.5 - '@smithy/util-stream': 2.0.16 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/types@2.3.5: - resolution: {integrity: sha512-ehyDt8M9hehyxrLQGoA1BGPou8Js1Ocoh5M0ngDhJMqbFmNK5N6Xhr9/ZExWkyIW8XcGkiMPq3ZUEE0ScrhbuQ==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/url-parser@2.0.11: - resolution: {integrity: sha512-h89yXMCCF+S5k9XIoKltMIWTYj+FcEkU/IIFZ6RtE222fskOTL4Iak6ZRG+ehSvZDt8yKEcxqheTDq7JvvtK3g==} - requiresBuild: true - dependencies: - '@smithy/querystring-parser': 2.0.11 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/url-parser@2.0.9: - resolution: {integrity: sha512-NBnJ0NiY8z6E82Xd5VYUFQfKwK/wA/+QkKmpYUYP+cpH3aCzE6g2gvixd9vQKYjsIdRfNPCf+SFAozt8ljozOw==} - requiresBuild: true - dependencies: - '@smithy/querystring-parser': 2.0.9 - '@smithy/types': 2.3.5 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/util-base64@2.0.0: - resolution: {integrity: sha512-Zb1E4xx+m5Lud8bbeYi5FkcMJMnn+1WUnJF3qD7rAdXpaL7UjkFQLdmW5fHadoKbdHpwH9vSR8EyTJFHJs++tA==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/util-buffer-from': 2.0.0 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/util-body-length-browser@2.0.0: - resolution: {integrity: sha512-JdDuS4ircJt+FDnaQj88TzZY3+njZ6O+D3uakS32f2VNnDo3vyEuNdBOh/oFd8Df1zSZOuH1HEChk2AOYDezZg==} - requiresBuild: true - dependencies: - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/util-body-length-node@2.1.0: - resolution: {integrity: sha512-/li0/kj/y3fQ3vyzn36NTLGmUwAICb7Jbe/CsWCktW363gh1MOcpEcSO3mJ344Gv2dqz8YJCLQpb6hju/0qOWw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/util-buffer-from@2.0.0: - resolution: {integrity: sha512-/YNnLoHsR+4W4Vf2wL5lGv0ksg8Bmk3GEGxn2vEQt52AQaPSCuaO5PM5VM7lP1K9qHRKHwrPGktqVoAHKWHxzw==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/is-array-buffer': 2.0.0 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/util-config-provider@2.0.0: - resolution: {integrity: sha512-xCQ6UapcIWKxXHEU4Mcs2s7LcFQRiU3XEluM2WcCjjBtQkUN71Tb+ydGmJFPxMUrW/GWMgQEEGipLym4XG0jZg==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/util-defaults-mode-browser@2.0.15: - resolution: {integrity: sha512-2raMZOYKSuke7QlDg/HDcxQdrp0zteJ8z+S0B9Rn23J55ZFNK1+IjG4HkN6vo/0u3Xy/JOdJ93ibiBSB8F7kOw==} - engines: {node: '>= 10.0.0'} - requiresBuild: true - dependencies: - '@smithy/property-provider': 2.0.12 - '@smithy/smithy-client': 2.1.11 - '@smithy/types': 2.3.5 - bowser: 2.11.0 - tslib: 2.6.2 - dev: false - optional: true - - /@smithy/util-defaults-mode-node@2.0.19: - resolution: {integrity: sha512-7pScU4jBFADB2MBYKM3zb5onMh6Nn0X3IfaFVLYPyCarTIZDLUtUl1GtruzEUJPmDzP+uGeqOtU589HDY0Ni6g==} - engines: {node: '>= 10.0.0'} + /@protobufjs/inquire@1.1.0: + resolution: {integrity: sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==} requiresBuild: true - dependencies: - '@smithy/config-resolver': 2.0.14 - '@smithy/credential-provider-imds': 2.0.16 - '@smithy/node-config-provider': 2.1.1 - '@smithy/property-provider': 2.0.12 - '@smithy/smithy-client': 2.1.11 - '@smithy/types': 2.3.5 - tslib: 2.6.2 dev: false optional: true - /@smithy/util-hex-encoding@2.0.0: - resolution: {integrity: sha512-c5xY+NUnFqG6d7HFh1IFfrm3mGl29lC+vF+geHv4ToiuJCBmIfzx6IeHLg+OgRdPFKDXIw6pvi+p3CsscaMcMA==} - engines: {node: '>=14.0.0'} + /@protobufjs/path@1.1.2: + resolution: {integrity: sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==} requiresBuild: true - dependencies: - tslib: 2.6.2 dev: false optional: true - /@smithy/util-middleware@2.0.4: - resolution: {integrity: sha512-Pbu6P4MBwRcjrLgdTR1O4Y3c0sTZn2JdOiJNcgL7EcIStcQodj+6ZTXtbyU/WTEU3MV2NMA10LxFc3AWHZ3+4A==} - engines: {node: '>=14.0.0'} + /@protobufjs/pool@1.1.0: + resolution: {integrity: sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==} requiresBuild: true - dependencies: - '@smithy/types': 2.3.5 - tslib: 2.6.2 dev: false optional: true - /@smithy/util-retry@2.0.4: - resolution: {integrity: sha512-b+n1jBBKc77C1E/zfBe1Zo7S9OXGBiGn55N0apfhZHxPUP/fMH5AhFUUcWaJh7NAnah284M5lGkBKuhnr3yK5w==} - engines: {node: '>= 14.0.0'} + /@protobufjs/utf8@1.1.0: + resolution: {integrity: sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==} requiresBuild: true - dependencies: - '@smithy/service-error-classification': 2.0.4 - '@smithy/types': 2.3.5 - tslib: 2.6.2 dev: false optional: true - /@smithy/util-stream@2.0.16: - resolution: {integrity: sha512-b5ZSRh1KzUzC7LoJcpfk7+iXGoRr3WylEfmPd4FnBLm90OwxSB9VgK1fDZwicfYxSEvWHdYXgvvjPtenEYBBhw==} - engines: {node: '>=14.0.0'} - requiresBuild: true + /@samverschueren/stream-to-observable@0.3.1(rxjs@6.6.7): + resolution: {integrity: sha512-c/qwwcHyafOQuVQJj0IlBjf5yYgBI7YPJ77k4fOJYesb41jio65eaJODRUmfYKhTOFBrIZ66kgvGPlNbjuoRdQ==} + engines: {node: '>=6'} + peerDependencies: + rxjs: '*' + zen-observable: '*' + peerDependenciesMeta: + rxjs: + optional: true + zen-observable: + optional: true dependencies: - '@smithy/fetch-http-handler': 2.2.3 - '@smithy/node-http-handler': 2.1.7 - '@smithy/types': 2.3.5 - '@smithy/util-base64': 2.0.0 - '@smithy/util-buffer-from': 2.0.0 - '@smithy/util-hex-encoding': 2.0.0 - '@smithy/util-utf8': 2.0.0 - tslib: 2.6.2 + any-observable: 0.3.0(rxjs@6.6.7) + rxjs: 6.6.7 + transitivePeerDependencies: + - zenObservable + dev: true + + /@sapphire/async-queue@1.5.0: + resolution: {integrity: sha512-JkLdIsP8fPAdh9ZZjrbHWR/+mZj0wvKS5ICibcLrRI1j84UmLMshx5n9QmL8b95d4onJ2xxiyugTgSAX7AalmA==} + engines: {node: '>=v14.0.0', npm: '>=7.0.0'} dev: false - optional: true - /@smithy/util-uri-escape@2.0.0: - resolution: {integrity: sha512-ebkxsqinSdEooQduuk9CbKcI+wheijxEb3utGXkCoYQkJnwTnLbH1JXGimJtUkQwNQbsbuYwG2+aFVyZf5TLaw==} - engines: {node: '>=14.0.0'} - requiresBuild: true + /@sapphire/shapeshift@3.9.2: + resolution: {integrity: sha512-YRbCXWy969oGIdqR/wha62eX8GNHsvyYi0Rfd4rNW6tSVVa8p0ELiMEuOH/k8rgtvRoM+EMV7Csqz77YdwiDpA==} + engines: {node: '>=v14.0.0', npm: '>=7.0.0'} dependencies: - tslib: 2.6.2 + fast-deep-equal: 3.1.3 + lodash: 4.17.21 dev: false - optional: true - /@smithy/util-utf8@2.0.0: - resolution: {integrity: sha512-rctU1VkziY84n5OXe3bPNpKR001ZCME2JCaBBFgtiM2hfKbHFudc/BkMuPab8hRbLd0j3vbnBTTZ1igBf0wgiQ==} - engines: {node: '>=14.0.0'} - requiresBuild: true - dependencies: - '@smithy/util-buffer-from': 2.0.0 - tslib: 2.6.2 + /@sindresorhus/is@4.6.0: + resolution: {integrity: sha512-t09vSN3MdfsyCHoFcTRCH/iUtG7OJ0CsjzB8cjAmKc/va/kIgeDI/TxsigdncE/4be734m0cvIYwNaV4i2XqAw==} + engines: {node: '>=10'} dev: false - optional: true + + /@sinonjs/commons@1.8.6: + resolution: {integrity: sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==} + dependencies: + type-detect: 4.0.8 + dev: true + + /@sinonjs/fake-timers@8.1.0: + resolution: {integrity: sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==} + dependencies: + '@sinonjs/commons': 1.8.6 + dev: true /@swc/core-darwin-arm64@1.3.93: resolution: {integrity: sha512-gEKgk7FVIgltnIfDO6GntyuQBBlAYg5imHpRgLxB1zSI27ijVVkksc6QwISzFZAhKYaBWIsFSVeL9AYSziAF7A==} @@ -3835,28 +2824,17 @@ packages: resolution: {integrity: sha512-oyl4jvAfTGX9Bt6Or4H9ni1Z447/tQuxnZsytsCaExKlmJiU8sFgnIBRzJUpKwB5eWn9HuBYlUlVA74q/yN0eQ==} dependencies: '@types/connect': 3.4.36 - '@types/node': 20.6.4 - - /@types/bson@4.0.5: - resolution: {integrity: sha512-vVLwMUqhYJSQ/WKcE60eFqcyuWse5fGH+NMAXHuKrUAPoryq3ATxk5o4bgYNtg5aOM4APVg7Hnb3ASqUYG0PKg==} - dependencies: - '@types/node': 20.6.4 - - /@types/bson@4.2.0: - resolution: {integrity: sha512-ELCPqAdroMdcuxqwMgUpifQyRoTpyYCNr1V9xKyF40VsBobsj+BbWNRvwGchMgBPGqkw655ypkjj2MEF5ywVwg==} - deprecated: This is a stub types definition. bson provides its own type definitions, so you do not need this installed. - dependencies: - bson: 6.1.0 + '@types/node': 20.8.7 /@types/cheerio@0.22.32: resolution: {integrity: sha512-4RrpCp5ufWTLb6/1RCOjazRhUM6DTD79l763det29n8kLmPB7XeN46cxlUf2GsSF+0g6CbWT5nYl8C/Gs15bdg==} dependencies: - '@types/node': 20.6.4 + '@types/node': 20.8.6 /@types/connect@3.4.36: resolution: {integrity: sha512-P63Zd/JUGq+PdrM1lv0Wv5SBYeA2+CORvbrXbngriYY0jzLUWfQMQQxOhjONEz/wlHOAxOdY7CY65rgQdTjq2w==} dependencies: - '@types/node': 20.6.4 + '@types/node': 20.8.7 /@types/content-type@1.1.6: resolution: {integrity: sha512-WFHg/KFLCdUQl3m27WSQu0NEaLzoHGmgZHlsSYr0Y0iIvItMcBq7opZc6AGXPXqf+btIM6vTBJyLvuDAihB+zQ==} @@ -3865,10 +2843,17 @@ packages: /@types/cron@1.7.3: resolution: {integrity: sha512-iPmUXyIJG1Js+ldPYhOQcYU3kCAQ2FWrSkm1FJPoii2eYSn6wEW6onPukNTT0bfiflexNSRPl6KWmAIqS+36YA==} dependencies: - '@types/node': 20.6.4 + '@types/node': 20.8.7 moment: 2.29.4 dev: false + /@types/cron@2.4.0: + resolution: {integrity: sha512-5bBaAkqvSFBX8JMi/xCofNzG5E594TNsApMz68dLd/sQYz/HGQqgcxGHTRjOvD4G3Y+YF1Oo3S7QdCvKt1KAJQ==} + deprecated: This is a stub types definition. cron provides its own type definitions, so you do not need this installed. + dependencies: + cron: 3.1.3 + dev: false + /@types/debug@4.1.9: resolution: {integrity: sha512-8Hz50m2eoS56ldRlepxSBa6PWEVCtzUo/92HgLc2qTMnotJNIm7xP+UZhyWoYsyOdd5dxZ+NZLb24rsKyFs2ow==} dependencies: @@ -3885,7 +2870,7 @@ packages: /@types/express-serve-static-core@4.17.37: resolution: {integrity: sha512-ZohaCYTgGFcOP7u6aJOhY9uIZQgZ2vxC2yWoArY+FeDXlqeH66ZVBjgvg+RLVAS/DWNq4Ap9ZXu1+SUQiiWYMg==} dependencies: - '@types/node': 20.6.4 + '@types/node': 20.8.7 '@types/qs': 6.9.8 '@types/range-parser': 1.2.4 '@types/send': 0.17.1 @@ -3903,14 +2888,14 @@ packages: requiresBuild: true dependencies: '@types/minimatch': 5.1.2 - '@types/node': 20.6.4 + '@types/node': 20.8.7 dev: false optional: true /@types/graceful-fs@4.1.7: resolution: {integrity: sha512-MhzcwU8aUygZroVwL2jeYk6JisJrPl/oov/gsgGCue9mkgl9wjGbzReYQClxiUgFDnib9FuHqTndccKeZKxTRw==} dependencies: - '@types/node': 20.6.4 + '@types/node': 20.8.7 dev: true /@types/http-errors@2.0.2: @@ -3954,11 +2939,10 @@ packages: /@types/json5@0.0.29: resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==} - /@types/jsonwebtoken@9.0.3: - resolution: {integrity: sha512-b0jGiOgHtZ2jqdPgPnP6WLCXZk1T8p06A/vPGzUvxpFGgKMbjXJDjC5m52ErqBnIuWZFgGoIJyRdeG5AyreJjA==} + /@types/jsonwebtoken@9.0.4: + resolution: {integrity: sha512-8UYapdmR0QlxgvJmyE8lP7guxD0UGVMfknsdtCFZh4ovShdBl3iOI4zdvqBHrB/IS+xUj3PSx73Qkey1fhWz+g==} dependencies: - '@types/node': 20.6.4 - dev: false + '@types/node': 20.8.7 /@types/linkify-it@3.0.3: resolution: {integrity: sha512-pTjcqY9E4nOI55Wgpz7eiI8+LzdYnw3qxXCfHyBDdPbYvbyLgWLJGh8EdPvqawwMK1Uo1794AUkkR38Fr0g+2g==} @@ -3976,6 +2960,10 @@ packages: dev: false optional: true + /@types/luxon@3.3.3: + resolution: {integrity: sha512-/BJF3NT0pRMuxrenr42emRUF67sXwcZCd+S1ksG/Fcf9O7C3kKCY4uJSbKBE4KDUIYr3WMsvfmWD8hRjXExBJQ==} + dev: false + /@types/markdown-it@12.2.3: resolution: {integrity: sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==} requiresBuild: true @@ -4003,24 +2991,12 @@ packages: dev: false optional: true - /@types/mongodb@3.6.20: - resolution: {integrity: sha512-WcdpPJCakFzcWWD9juKoZbRtQxKIMYF/JIAM4JrNHrMcnJL6/a2NWjXxW7fo9hxboxxkg+icff8d7+WIEvKgYQ==} - dependencies: - '@types/bson': 4.2.0 - '@types/node': 20.6.4 - /@types/mongoose@5.11.97: resolution: {integrity: sha512-cqwOVYT3qXyLiGw7ueU2kX9noE8DPGRY6z8eUxudhXY8NZ7DMKYAxyZkLSevGfhCX3dO/AoX5/SO9lAzfjon0Q==} deprecated: Mongoose publishes its own types, so you do not need to install this package. dependencies: - mongoose: 5.13.20 + mongoose: 6.0.12 transitivePeerDependencies: - - aws4 - - bson-ext - - kerberos - - mongodb-client-encryption - - mongodb-extjson - - snappy - supports-color /@types/ms@0.7.31: @@ -4030,7 +3006,7 @@ packages: /@types/node-fetch@2.6.6: resolution: {integrity: sha512-95X8guJYhfqiuVVhRFxVQcf4hW/2bCuoPwDasMf/531STFoNoWTT7YDnWdXHEZKqAGUigmpG31r2FE70LwnzJw==} dependencies: - '@types/node': 20.6.4 + '@types/node': 20.8.7 form-data: 4.0.0 dev: true @@ -4049,7 +3025,11 @@ packages: resolution: {integrity: sha512-eWO4K2Ji70QzKUqRy6oyJWUeB7+g2cRagT3T/nxYibYcT4y2BDL8lqolRXjTHmkZCdJfIPaY73KbJAZmcryxTQ==} dependencies: undici-types: 5.25.3 - dev: true + + /@types/node@20.8.7: + resolution: {integrity: sha512-21TKHHh3eUHIi2MloeptJWALuCu5H7HQTdTrWIFReA8ad+aggoX+lRes3ex7/FtpC+sVUpFMQ+QTfYr74mruiQ==} + dependencies: + undici-types: 5.25.3 /@types/parse-json@4.0.0: resolution: {integrity: sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==} @@ -4076,7 +3056,7 @@ packages: requiresBuild: true dependencies: '@types/glob': 8.1.0 - '@types/node': 20.6.4 + '@types/node': 20.8.7 dev: false optional: true @@ -4088,14 +3068,14 @@ packages: resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==} dependencies: '@types/mime': 1.3.2 - '@types/node': 20.6.4 + '@types/node': 20.8.7 /@types/serve-static@1.15.2: resolution: {integrity: sha512-J2LqtvFYCzaj8pVYKw8klQXrLLk7TBZmQ4ShlcdkELFKGwGMfevMLneMMRkMgZxotOD9wg497LpC7O8PcvAmfw==} dependencies: '@types/http-errors': 2.0.2 '@types/mime': 3.0.1 - '@types/node': 20.6.4 + '@types/node': 20.8.7 /@types/stack-utils@2.0.1: resolution: {integrity: sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==} @@ -4115,19 +3095,17 @@ packages: /@types/webidl-conversions@7.0.0: resolution: {integrity: sha512-xTE1E+YF4aWPJJeUzaZI5DRntlkY3+BCVJi0axFptnjGmAoWxkyREIh/XMrfxVLejwQxMCfDXdICo0VLxThrog==} - dev: false /@types/whatwg-url@8.2.2: resolution: {integrity: sha512-FtQu10RWgn3D9U4aazdwIE2yzphmTJREDqNdODHrbrZmmMqI0vMheC/6NE/J1Yveaj8H+ela+YwWTjq5PGmuhA==} dependencies: - '@types/node': 20.6.4 + '@types/node': 20.8.7 '@types/webidl-conversions': 7.0.0 - dev: false /@types/xml2js@0.4.12: resolution: {integrity: sha512-CZPpQKBZ8db66EP5hCjwvYrLThgZvnyZrPXK2W+UI1oOaWezGt34iOaUCX4Jah2X8+rQqjvl9VKEIT8TR1I0rA==} dependencies: - '@types/node': 20.6.4 + '@types/node': 20.8.7 dev: false /@types/xmldom@0.1.32: @@ -5296,7 +4274,6 @@ packages: /base64-js@1.5.1: resolution: {integrity: sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==} - dev: false /bcrypt-pbkdf@1.0.2: resolution: {integrity: sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==} @@ -5322,12 +4299,6 @@ packages: engines: {node: '>=8'} dev: true - /bl@2.2.1: - resolution: {integrity: sha512-6Pesp1w0DEX1N550i/uGV/TqucVL4AM/pgThFSN/Qq9si1/DF9aIHs1BxD8V/QU0HoeHO6cQRTAuYnLPKq1e4g==} - dependencies: - readable-stream: 2.3.8 - safe-buffer: 5.2.1 - /bl@4.1.0: resolution: {integrity: sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==} dependencies: @@ -5336,9 +4307,6 @@ packages: readable-stream: 3.6.2 dev: false - /bluebird@3.5.1: - resolution: {integrity: sha512-MKiLiV+I1AA596t9w1sQJ8jkiSr5+ZKi0WKrYGUn6d1Fx+Ij4tIj+m2WMQSGczs5jZVxV339chE8iwk6F64wjA==} - /bluebird@3.7.2: resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} requiresBuild: true @@ -5373,12 +4341,6 @@ packages: resolution: {integrity: sha512-d0II/GO9uf9lfUHH2BQsjxzRJZBdsjgsBiW4BvhWk/3qoKwQFjIDVN19PfX8F2D/r9PCMTtLWjYVCFrpeYUzsw==} dev: true - /bowser@2.11.0: - resolution: {integrity: sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==} - requiresBuild: true - dev: false - optional: true - /bplist-parser@0.2.0: resolution: {integrity: sha512-z0M+byMThzQmD9NILRniCUXYsYpjwnlO8N5uCFaCqIOpqRsJCrQL9NK3JsD67CN5a08nF5oIL2bD6loTdHOuKw==} engines: {node: '>= 5.10.0'} @@ -5431,20 +4393,11 @@ packages: node-int64: 0.4.0 dev: true - /bson@1.1.6: - resolution: {integrity: sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg==} - engines: {node: '>=0.6.19'} - /bson@4.7.2: resolution: {integrity: sha512-Ry9wCtIZ5kGqkJoi6aD8KjxFZEx78guTQDnpXWiNthsxzrxAK/i8E6pCHAIZTbaEFWcOCvbecMukfK7XUvyLpQ==} engines: {node: '>=6.9.0'} dependencies: buffer: 5.7.1 - dev: false - - /bson@6.1.0: - resolution: {integrity: sha512-yiQ3KxvpVoRpx1oD1uPz4Jit9tAVTJgjdmjDKtUErkOoL9VNoF8Dd58qtAOL5E40exx2jvAT9sqdRSK/r+SHlA==} - engines: {node: '>=16.20.1'} /buffer-equal-constant-time@1.0.1: resolution: {integrity: sha512-zRpUiDwd/xk6ADqPMATG8vc9VPrkck7T07OIx0gnjmJAnHnTVXNQG3vfvWNuiZIkwu9KrKdA1iJKfsfTVxE6NA==} @@ -5459,7 +4412,6 @@ packages: dependencies: base64-js: 1.5.1 ieee754: 1.2.1 - dev: false /bundle-name@3.0.0: resolution: {integrity: sha512-PKA4BeSvBpQKQ8iPOGCSiell+N8P+Tf1DlwqmYhpe2gAhKPHn8EYOxVT+ShuGmhg8lN8XiSlS80yiExKXrURlw==} @@ -5608,6 +4560,7 @@ packages: dependencies: ansi-styles: 4.3.0 supports-color: 7.2.0 + dev: true /chalk@4.1.2: resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==} @@ -5937,6 +4890,7 @@ packages: /core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} + dev: false /cosmiconfig@7.1.0: resolution: {integrity: sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA==} @@ -5988,11 +4942,17 @@ packages: resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==} dev: true - /cron@1.8.3: - resolution: {integrity: sha512-JYR/QZFklJCIPndBLfd/2nU1nSlCMrUdtQ2mGLXSVM/qqqEK7DOrFR0gsEiyeqs0PdWrs0ve1ggH4V7XksDwXg==} - deprecated: Breaking dependency change (moved from moment to luxon). Please move to 2.0.0. + /cron@1.8.2: + resolution: {integrity: sha512-Gk2c4y6xKEO8FSAUTklqtfSr7oTq0CiPQeLBG5Fl0qoXpZyMcj1SG59YL+hqq04bu6/IuEA7lMkYDAplQNKkyg==} + dependencies: + moment-timezone: 0.5.43 + dev: false + + /cron@3.1.3: + resolution: {integrity: sha512-KVxeKTKYj2eNzN4ElnT6nRSbjbfhyxR92O/Jdp6SH3pc05CDJws59jBrZWEMQlxevCiE6QUTrXy+Im3vC3oD3A==} dependencies: - luxon: 1.28.1 + '@types/luxon': 3.3.3 + luxon: 3.4.3 dev: false /cross-fetch@3.1.8: @@ -6132,6 +5092,7 @@ packages: optional: true dependencies: ms: 2.0.0 + dev: false /debug@3.2.7: resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} @@ -6253,8 +5214,8 @@ packages: resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==} engines: {node: '>=0.4.0'} - /denque@1.5.1: - resolution: {integrity: sha512-XwE+iZ4D6ZUB7mfYRMb5wByE8L74HCn30FBN7sWnXksWc1LO1bPDl67pBR9o/kC4z/xSNAwkMYcGgqDV3BE3Hw==} + /denque@2.1.0: + resolution: {integrity: sha512-HVQE3AAb/pxF8fQAoiqpvg9i3evqug3hoiwakOyZAwJm+6vZehbkYXZ0l4JxS+I3QxM97v5aaRNhj8v5oBhekw==} engines: {node: '>=0.10'} /depd@2.0.0: @@ -7173,15 +6134,6 @@ packages: dev: false optional: true - /fast-xml-parser@4.2.5: - resolution: {integrity: sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==} - hasBin: true - requiresBuild: true - dependencies: - strnum: 1.0.5 - dev: false - optional: true - /fast-xml-parser@4.3.1: resolution: {integrity: sha512-viVv3xb8D+SiS1W4cv4tva3bni08kAkx0gQnWrykMM8nXPc1FxqZPU00dCEVjkiCg4HoXd2jC4x29Nzg/l2DAA==} hasBin: true @@ -7339,7 +6291,7 @@ packages: '@fastify/busboy': 1.2.1 '@firebase/database-compat': 0.3.4 '@firebase/database-types': 0.10.4 - '@types/node': 20.6.4 + '@types/node': 20.8.6 jsonwebtoken: 9.0.2 jwks-rsa: 3.0.1 node-forge: 1.3.1 @@ -8191,7 +7143,6 @@ packages: /ieee754@1.2.1: resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==} - dev: false /ignore@4.0.6: resolution: {integrity: sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg==} @@ -8303,10 +7254,6 @@ packages: engines: {node: '>= 0.10'} dev: true - /ip@2.0.0: - resolution: {integrity: sha512-WKa+XuLG1A1R0UWhl2+1XQSi+fZWMsYKffMZTTYsiZaUD8k2yDAj5atimTUD2TZkyCkNEeYE5NhFZmupOGtjYQ==} - dev: false - /ipaddr.js@1.9.1: resolution: {integrity: sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==} engines: {node: '>= 0.10'} @@ -8571,6 +7518,7 @@ packages: /isarray@1.0.0: resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} + dev: false /isarray@2.0.5: resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} @@ -8680,7 +7628,7 @@ packages: '@jest/environment': 27.5.1 '@jest/test-result': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 chalk: 4.1.2 co: 4.6.0 dedent: 0.7.0 @@ -8815,7 +7763,7 @@ packages: '@jest/environment': 27.5.1 '@jest/fake-timers': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 jest-mock: 27.5.1 jest-util: 27.5.1 jsdom: 16.7.0 @@ -8833,7 +7781,7 @@ packages: '@jest/environment': 27.5.1 '@jest/fake-timers': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 jest-mock: 27.5.1 jest-util: 27.5.1 dev: true @@ -8854,7 +7802,7 @@ packages: dependencies: '@jest/types': 27.5.1 '@types/graceful-fs': 4.1.7 - '@types/node': 20.6.4 + '@types/node': 20.8.6 anymatch: 3.1.3 fb-watchman: 2.0.2 graceful-fs: 4.2.11 @@ -8876,7 +7824,7 @@ packages: '@jest/source-map': 27.5.1 '@jest/test-result': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 chalk: 4.1.2 co: 4.6.0 expect: 27.5.1 @@ -8931,7 +7879,7 @@ packages: engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 dev: true /jest-pnp-resolver@1.2.3(jest-resolve@27.5.1): @@ -8987,7 +7935,7 @@ packages: '@jest/test-result': 27.5.1 '@jest/transform': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 chalk: 4.1.2 emittery: 0.8.1 graceful-fs: 4.2.11 @@ -9044,7 +7992,7 @@ packages: resolution: {integrity: sha512-jZCyo6iIxO1aqUxpuBlwTDMkzOAJS4a3eYz3YzgxxVQFwLeSA7Jfq5cbqCY+JLvTDrWirgusI/0KwxKMgrdf7w==} engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: - '@types/node': 20.6.4 + '@types/node': 20.8.7 graceful-fs: 4.2.11 dev: true @@ -9083,7 +8031,7 @@ packages: engines: {node: ^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0} dependencies: '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 chalk: 4.1.2 ci-info: 3.8.0 graceful-fs: 4.2.11 @@ -9108,7 +8056,7 @@ packages: dependencies: '@jest/test-result': 27.5.1 '@jest/types': 27.5.1 - '@types/node': 20.6.4 + '@types/node': 20.8.6 ansi-escapes: 4.3.2 chalk: 4.1.2 jest-util: 27.5.1 @@ -9119,7 +8067,7 @@ packages: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} dependencies: - '@types/node': 20.6.4 + '@types/node': 20.8.6 merge-stream: 2.0.0 supports-color: 8.1.1 dev: true @@ -9379,6 +8327,7 @@ packages: dependencies: chalk: 0.5.1 dev: false + bundledDependencies: [] /jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} @@ -9464,7 +8413,7 @@ packages: engines: {node: '>=14'} dependencies: '@types/express': 4.17.19 - '@types/jsonwebtoken': 9.0.3 + '@types/jsonwebtoken': 9.0.4 debug: 4.3.4(supports-color@8.1.1) jose: 4.14.6 limiter: 1.1.5 @@ -9492,11 +8441,6 @@ packages: /kareem@2.3.2: resolution: {integrity: sha512-STHz9P7X2L4Kwn72fA4rGyqyXdmrMSdxqHx9IXon/FXluXieaFA6KJ2upcHAHxQPQ0LeM/OjLrhFxifHewOALQ==} - /kareem@2.5.1: - resolution: {integrity: sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==} - engines: {node: '>=12.0.0'} - dev: false - /keyv@4.5.3: resolution: {integrity: sha512-QCiSav9WaX1PgETJ+SpNnx2PRRapJ/oRSXM4VO5OGYGSjrxbKPVFVhB3l2OCbLCk329N8qyAtsJjSjvVBWzEug==} dependencies: @@ -9804,8 +8748,9 @@ packages: lru-cache: 4.0.2 dev: false - /luxon@1.28.1: - resolution: {integrity: sha512-gYHAa180mKrNIUJCbwpmD0aTu9kV0dREDrwNnuyFAsO1Wt0EVYSZelPnJlbj9HplzXX/YWXHFTL45kvZ53M0pw==} + /luxon@3.4.3: + resolution: {integrity: sha512-tFWBiv3h7z+T/tDaoxA8rqTxy1CHV6gHS//QdaH4pulbq/JuBSGgQspQQqcgnwdAx6pNI7cmvz5Sv/addzHmUg==} + engines: {node: '>=12'} dev: false /make-dir@4.0.0: @@ -9991,6 +8936,12 @@ packages: engines: {node: '>=10'} hasBin: true + /moment-timezone@0.5.43: + resolution: {integrity: sha512-72j3aNyuIsDxdF1i7CEgV2FfxM1r6aaqJyLB2vwb33mXYyoyLly+F1zbWqhA3/bVIoJ4szlUoMbUnVdid32NUQ==} + dependencies: + moment: 2.29.4 + dev: false + /moment@2.29.3: resolution: {integrity: sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==} dev: true @@ -10004,53 +8955,16 @@ packages: dependencies: '@types/whatwg-url': 8.2.2 whatwg-url: 11.0.0 - dev: false - - /mongodb@3.7.4: - resolution: {integrity: sha512-K5q8aBqEXMwWdVNh94UQTwZ6BejVbFhh1uB6c5FKtPE9eUMZPUO3sRZdgIEcHSrAWmxzpG/FeODDKL388sqRmw==} - engines: {node: '>=4'} - peerDependencies: - aws4: '*' - bson-ext: '*' - kerberos: '*' - mongodb-client-encryption: '*' - mongodb-extjson: '*' - snappy: '*' - peerDependenciesMeta: - aws4: - optional: true - bson-ext: - optional: true - kerberos: - optional: true - mongodb-client-encryption: - optional: true - mongodb-extjson: - optional: true - snappy: - optional: true - dependencies: - bl: 2.2.1 - bson: 1.1.6 - denque: 1.5.1 - optional-require: 1.1.8 - safe-buffer: 5.2.1 - optionalDependencies: - saslprep: 1.0.3 - /mongodb@4.17.1: - resolution: {integrity: sha512-MBuyYiPUPRTqfH2dV0ya4dcr2E5N52ocBuZ8Sgg/M030nGF78v855B3Z27mZJnp8PxjnUquEnAtjOsphgMZOlQ==} + /mongodb@4.1.3: + resolution: {integrity: sha512-lHvTqODBiSpuqjpCj48DOyYWS6Iq6ElJNUiH9HWdQtONyOfjgsKzJULipWduMGsSzaNO4nFi/kmlMFCLvjox/Q==} engines: {node: '>=12.9.0'} dependencies: bson: 4.7.2 + denque: 2.1.0 mongodb-connection-string-url: 2.6.0 - socks: 2.7.1 optionalDependencies: - '@aws-sdk/credential-providers': 3.428.0 - '@mongodb-js/saslprep': 1.1.0 - transitivePeerDependencies: - - aws-crt - dev: false + saslprep: 1.0.3 /mongolike-operations@0.1.5: resolution: {integrity: sha512-sYFNudINVxHuC68pJp4HWi4IXL3GPLeg4s/wSEWPyNKAd62cpXli9FYwex3d1eLo718o2znXlINfjRK+LZOoeA==} @@ -10064,88 +8978,39 @@ packages: lodash.clonedeep: 4.5.0 dev: false - /mongoose-legacy-pluralize@1.0.2(mongoose@5.13.20): - resolution: {integrity: sha512-Yo/7qQU4/EyIS8YDFSeenIvXxZN+ld7YdV9LqFVQJzTLye8unujAWPZ4NWKfFA+RNjh+wvTWKY9Z3E5XM6ZZiQ==} - peerDependencies: - mongoose: '*' - dependencies: - mongoose: 5.13.20 - - /mongoose@5.13.20: - resolution: {integrity: sha512-TjGFa/XnJYt+wLmn8y9ssjyO2OhBMeEBtOHb9iJM16EWu2Du6L1Q6zSiEK2ziyYQM8agb4tumNIQFzqbxId7MA==} - engines: {node: '>=4.0.0'} + /mongoose@6.0.12: + resolution: {integrity: sha512-BvsZk7zEEhb1AgQFLtxN9C+7qgy5edRuA3ZDDwHU+kHG/HM44vI6FdKV5m6HVdAUeCHHQTiVv+YQh8BRsToSHw==} + engines: {node: '>=12.0.0'} dependencies: - '@types/bson': 4.0.5 - '@types/mongodb': 3.6.20 - bson: 1.1.6 + bson: 4.7.2 kareem: 2.3.2 - mongodb: 3.7.4 - mongoose-legacy-pluralize: 1.0.2(mongoose@5.13.20) + mongodb: 4.1.3 mpath: 0.8.4 - mquery: 3.2.5 + mquery: 4.0.0 ms: 2.1.2 - optional-require: 1.0.3 regexp-clone: 1.0.0 - safe-buffer: 5.2.1 sift: 13.5.2 sliced: 1.0.1 transitivePeerDependencies: - - aws4 - - bson-ext - - kerberos - - mongodb-client-encryption - - mongodb-extjson - - snappy - - supports-color - - /mongoose@6.12.0: - resolution: {integrity: sha512-sd/q83C6TBRPBrrD2A/POSbA/exbCFM2WOuY7Lf2JuIJFlHFG39zYSDTTAEiYlzIfahNOLmXPxBGFxdAch41Mw==} - engines: {node: '>=12.0.0'} - dependencies: - bson: 4.7.2 - kareem: 2.5.1 - mongodb: 4.17.1 - mpath: 0.9.0 - mquery: 4.0.3 - ms: 2.1.3 - sift: 16.0.1 - transitivePeerDependencies: - - aws-crt - supports-color - dev: false /mpath@0.8.4: resolution: {integrity: sha512-DTxNZomBcTWlrMW76jy1wvV37X/cNNxPW1y2Jzd4DZkAaC5ZGsm8bfGfNOthcDuRJujXLqiuS6o3Tpy0JEoh7g==} engines: {node: '>=4.0.0'} - /mpath@0.9.0: - resolution: {integrity: sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==} - engines: {node: '>=4.0.0'} - dev: false - - /mquery@3.2.5: - resolution: {integrity: sha512-VjOKHHgU84wij7IUoZzFRU07IAxd5kWJaDmyUzQlbjHjyoeK5TNeeo8ZsFDtTYnSgpW6n/nMNIHvE3u8Lbrf4A==} - engines: {node: '>=4.0.0'} - dependencies: - bluebird: 3.5.1 - debug: 3.1.0 - regexp-clone: 1.0.0 - safe-buffer: 5.1.2 - sliced: 1.0.1 - transitivePeerDependencies: - - supports-color - - /mquery@4.0.3: - resolution: {integrity: sha512-J5heI+P08I6VJ2Ky3+33IpCdAvlYGTSUjwTPxkAr8i8EoduPMBX2OY/wa3IKZIQl7MU4SbFk8ndgSKyB/cl1zA==} + /mquery@4.0.0: + resolution: {integrity: sha512-nGjm89lHja+T/b8cybAby6H0YgA4qYC/lx6UlwvHGqvTq8bDaNeCwl1sY8uRELrNbVWJzIihxVd+vphGGn1vBw==} engines: {node: '>=12.0.0'} dependencies: debug: 4.3.4(supports-color@8.1.1) + regexp-clone: 1.0.0 + sliced: 1.0.1 transitivePeerDependencies: - supports-color - dev: false /ms@2.0.0: resolution: {integrity: sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==} + dev: false /ms@2.1.2: resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==} @@ -10408,16 +9273,6 @@ packages: '@wry/context': 0.4.4 dev: false - /optional-require@1.0.3: - resolution: {integrity: sha512-RV2Zp2MY2aeYK5G+B/Sps8lW5NHAzE5QClbFP15j+PWmP+T9PxlJXBOOLoSAdgwFvS4t0aMR4vpedMkbHfh0nA==} - engines: {node: '>=4'} - - /optional-require@1.1.8: - resolution: {integrity: sha512-jq83qaUb0wNg9Krv1c5OQ+58EK+vHde6aBPzLvPPqJm89UQWsvSuFy9X/OSNJnFeSOKo7btE0n8Nl2+nE+z5nA==} - engines: {node: '>=4'} - dependencies: - require-at: 1.0.6 - /optionator@0.8.3: resolution: {integrity: sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==} engines: {node: '>= 0.8.0'} @@ -10789,9 +9644,6 @@ packages: react-is: 17.0.2 dev: true - /process-nextick-args@2.0.1: - resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} - /progress@2.0.3: resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} engines: {node: '>=0.4.0'} @@ -10859,7 +9711,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.6.4 + '@types/node': 20.8.7 long: 5.2.3 dev: false optional: true @@ -10879,7 +9731,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.6.4 + '@types/node': 20.8.7 long: 5.2.3 dev: false optional: true @@ -11002,17 +9854,6 @@ packages: string_decoder: 0.10.31 dev: false - /readable-stream@2.3.8: - resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} - dependencies: - core-util-is: 1.0.3 - inherits: 2.0.4 - isarray: 1.0.0 - process-nextick-args: 2.0.1 - safe-buffer: 5.1.2 - string_decoder: 1.1.1 - util-deprecate: 1.0.2 - /readable-stream@3.6.2: resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} engines: {node: '>= 6'} @@ -11102,10 +9943,6 @@ packages: dev: false optional: true - /require-at@1.0.6: - resolution: {integrity: sha512-7i1auJbMUrXEAZCOQ0VNJgmcT2VOKPRl2YGJwgpHpC9CE91Mv4/4UYIUm4chGJaI381ZDq1JUicFii64Hapd8g==} - engines: {node: '>=4'} - /require-directory@2.1.1: resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==} engines: {node: '>=0.10.0'} @@ -11302,9 +10139,6 @@ packages: isarray: 2.0.5 dev: true - /safe-buffer@5.1.2: - resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} - /safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} @@ -11490,10 +10324,6 @@ packages: /sift@13.5.2: resolution: {integrity: sha512-+gxdEOMA2J+AI+fVsCqeNn7Tgx3M9ZN9jdi95939l1IJ8cZsqS8sqpJyOkic2SJk+1+98Uwryt/gL6XDaV+UZA==} - /sift@16.0.1: - resolution: {integrity: sha512-Wv6BjQ5zbhW7VFefWusVP33T/EM0vYikCaQ2qR8yULbsilAT8/wQaXvuQ3ptGLpoKx+lihJE3y2UTgKDyyNHZQ==} - dev: false - /signal-exit@3.0.7: resolution: {integrity: sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==} @@ -11523,11 +10353,6 @@ packages: /sliced@1.0.1: resolution: {integrity: sha512-VZBmZP8WU3sMOZm1bdgTadsQbcscK0UM8oKxKVBs4XAhUo2Xxzm/OFMGBkPusxw9xL3Uy8LrzEqGqJhclsr0yA==} - /smart-buffer@4.2.0: - resolution: {integrity: sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==} - engines: {node: '>= 6.0.0', npm: '>= 3.0.0'} - dev: false - /snake-case@3.0.4: resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==} dependencies: @@ -11535,14 +10360,6 @@ packages: tslib: 2.6.2 dev: true - /socks@2.7.1: - resolution: {integrity: sha512-7maUZy1N7uo6+WVEX6psASxtNlKaNVMlGQKkG/63nEDdLOWNbiUMoLK7X4uYoLhQstau72mLgfEWcXcwsaHbYQ==} - engines: {node: '>= 10.13.0', npm: '>= 3.0.0'} - dependencies: - ip: 2.0.0 - smart-buffer: 4.2.0 - dev: false - /source-map-support@0.5.21: resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==} dependencies: @@ -11719,11 +10536,6 @@ packages: resolution: {integrity: sha512-ev2QzSzWPYmy9GuqfIVildA4OdcGLeFZQrq5ys6RtiuF+RQQiZWr8TZNyAcuVXyQRYfEO+MsoB/1BuQVhOJuoQ==} dev: false - /string_decoder@1.1.1: - resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} - dependencies: - safe-buffer: 5.1.2 - /string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} requiresBuild: true @@ -12060,7 +10872,6 @@ packages: engines: {node: '>=12'} dependencies: punycode: 2.3.0 - dev: false /tr46@4.1.1: resolution: {integrity: sha512-2lv/66T7e5yNyhAAC4NaKe5nVavzuGJQVVtRYLyQ2OI8tsJ61PMLlelehb0wi2Hx6+hT/OJUWZcw8MjlSRnxvw==} @@ -12127,24 +10938,14 @@ packages: yargs-parser: 20.2.9 dev: true - /ts-mongoose@0.0.21(@types/mongoose@5.11.97)(mongoose@5.13.20): - resolution: {integrity: sha512-pbRN2JJY9N7Z5ehyMo6PJ7hlftRdELzO5nh/XvS1y31TDbeefc/GjM7C7jWb6ESZz+KlOmYDUpAT/L8i4wFbmQ==} - peerDependencies: - '@types/mongoose': ^5.5.21 - mongoose: ^5.7.5 - dependencies: - '@types/mongoose': 5.11.97 - mongoose: 5.13.20 - dev: false - - /ts-mongoose@0.0.24(@types/mongoose@5.11.97)(mongoose@6.12.0): + /ts-mongoose@0.0.24(@types/mongoose@5.11.97)(mongoose@6.0.12): resolution: {integrity: sha512-BaiyNFqieRqEBnvj2pgWB6/eQJRm7U18kAzDJ92/sfcFx1aQBZeZztzutxr49VVlUvPHxukleIoU/t3VMCBsSA==} peerDependencies: '@types/mongoose': ^5.10.1 mongoose: ^5.10.1 dependencies: '@types/mongoose': 5.11.97 - mongoose: 6.12.0 + mongoose: 6.0.12 dev: false /ts-node-dev@1.1.8(typescript@5.2.2): @@ -12171,7 +10972,7 @@ packages: typescript: 5.2.2 dev: true - /ts-node-dev@2.0.0(@swc/core@1.3.93)(@types/node@20.8.6)(typescript@5.2.2): + /ts-node-dev@2.0.0(@swc/core@1.3.93)(@types/node@20.8.7)(typescript@5.2.2): resolution: {integrity: sha512-ywMrhCfH6M75yftYvrvNarLEY+SUXtUvU8/0Z6llrHQVBx12GiFk5sStF8UdfE/yfzk9IAq7O5EEbTQsxlBI8w==} engines: {node: '>=0.8.0'} hasBin: true @@ -12190,7 +10991,7 @@ packages: rimraf: 2.7.1 source-map-support: 0.5.21 tree-kill: 1.2.2 - ts-node: 10.9.1(@swc/core@1.3.93)(@types/node@20.8.6)(typescript@5.2.2) + ts-node: 10.9.1(@swc/core@1.3.93)(@types/node@20.8.7)(typescript@5.2.2) tsconfig: 7.0.0 typescript: 5.2.2 transitivePeerDependencies: @@ -12255,7 +11056,7 @@ packages: - '@types/node' dev: true - /ts-node@10.9.1(@swc/core@1.3.93)(@types/node@20.8.6)(typescript@5.2.2): + /ts-node@10.9.1(@swc/core@1.3.93)(@types/node@20.8.7)(typescript@5.2.2): resolution: {integrity: sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==} hasBin: true peerDependencies: @@ -12275,7 +11076,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 20.8.6 + '@types/node': 20.8.7 acorn: 8.10.0 acorn-walk: 8.2.0 arg: 4.1.3 @@ -12374,7 +11175,6 @@ packages: chalk: 4.1.2 tsconfig-paths: 3.14.2 typescript: 5.2.2 - dev: true /ts-unused-exports@6.3.0: resolution: {integrity: sha512-lVFBPY9S9u63qmDMc0BBM51UlmSgMC38xYOLwsjzXAqsKpQlhfJiLdZeyVHDJe/L1dMjqq27xPmsYLhT8aykhA==} @@ -12383,6 +11183,7 @@ packages: chalk: 3.0.0 tsconfig-paths: 3.14.2 typescript: 3.9.10 + dev: true /ts-unused-exports@7.0.3(typescript@5.2.2): resolution: {integrity: sha512-D0VdTiTfrmZM7tViQEMuzG0+giU5z5crn4vjK+f1dnxTKcNx23Vc2lpMgd1vP3lYrwnvJofZmCnvEuJ7XUeV2Q==} @@ -12668,7 +11469,6 @@ packages: resolution: {integrity: sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==} engines: {node: '>=14.17'} hasBin: true - dev: true /typpy@2.3.13: resolution: {integrity: sha512-vOxIcQz9sxHi+rT09SJ5aDgVgrPppQjwnnayTrMye1ODaU8gIZTDM19t9TxmEElbMihx2Nq/0/b/MtyKfayRqA==} @@ -12718,7 +11518,6 @@ packages: /undici-types@5.25.3: resolution: {integrity: sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA==} - dev: true /universalify@0.1.2: resolution: {integrity: sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==} @@ -12793,6 +11592,7 @@ packages: /util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + dev: false /util.promisify@1.1.1: resolution: {integrity: sha512-/s3UsZUrIfa6xDhr7zZhnE9SLQ5RIXyYfiVnMMyMDzOc8WhWN4Nbh36H842OyurKbCDAesZOJaVyvmSl6fhGQw==} @@ -12966,7 +11766,6 @@ packages: /webidl-conversions@7.0.0: resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==} engines: {node: '>=12'} - dev: false /websocket-driver@0.7.4: resolution: {integrity: sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==} @@ -13018,7 +11817,6 @@ packages: dependencies: tr46: 3.0.0 webidl-conversions: 7.0.0 - dev: false /whatwg-url@12.0.1: resolution: {integrity: sha512-Ed/LrqB8EPlGxjS+TrsXcpUond1mhccS3pchLhzSgPCnTimUCKj3IZE75pAs5m6heB2U2TMerKFUXheyHY+VDQ==} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 4b613ed93..cd53ee1a9 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,4 @@ packages: - 'services/**/*' - 'packages/**/*' + - 'common/**/*' diff --git a/services/cron-jobs/cleanup-push-queue/package.json b/services/cron-jobs/cleanup-push-queue/package.json index 83a3d5dbe..94b85d726 100644 --- a/services/cron-jobs/cleanup-push-queue/package.json +++ b/services/cron-jobs/cleanup-push-queue/package.json @@ -12,7 +12,7 @@ "start": "node ./build/index.js" }, "dependencies": { - "@democracy-deutschland/democracy-common": "^0.2.7" + "@democracy-deutschland/democracy-common": "*" }, "devDependencies": { "@types/node": "^15.6.0", diff --git a/services/cron-jobs/cleanup-push-queue/src/mongoose.ts b/services/cron-jobs/cleanup-push-queue/src/mongoose.ts index d47fc03fa..85050713a 100644 --- a/services/cron-jobs/cleanup-push-queue/src/mongoose.ts +++ b/services/cron-jobs/cleanup-push-queue/src/mongoose.ts @@ -1,25 +1,24 @@ -import { mongoose } from "@democracy-deutschland/democracy-common"; -import { DB_URL } from "./config"; +import { mongoose } from '@democracy-deutschland/democracy-common'; let connection: typeof mongoose; -export const mongoConnect = async () => { - mongoose.set("useFindAndModify", false); - mongoose.set("debug", false); +export const mongoConnect = async () => + new Promise(async (resolve) => { + // Mongo Debug + mongoose.set('debug', false); - connection = await mongoose.connect(DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(process.env.DB_URL!); - mongoose.connection.once("connected", () => { - console.info("MongoDB is running"); - }); - mongoose.connection.on("error", (e: Error) => { - console.error(e.stack); - throw e; + mongoose.connection.once('connected', () => { + console.info('MongoDB is running'); + resolve(true); + }); + mongoose.connection.on('error', (e: Error) => { + // Unknown if this ends up in main - therefore we log here + console.error(e.stack); + throw e; + }); }); -}; export const mongoDisconnect = () => { if (connection) { diff --git a/services/cron-jobs/crawler/package.json b/services/cron-jobs/crawler/package.json index 06d4f0c5b..3fc2e5178 100644 --- a/services/cron-jobs/crawler/package.json +++ b/services/cron-jobs/crawler/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", - "@democracy-deutschland/bundestagio-common": "0.1.16", + "@democracy-deutschland/bundestagio-common": "*", "debug": "^4.3.1", "dotenv": "^10.0.0", "graphql": "^15.5.0", diff --git a/services/cron-jobs/import-conference-week-details/package.json b/services/cron-jobs/import-conference-week-details/package.json index 6955e213f..76127e39c 100644 --- a/services/cron-jobs/import-conference-week-details/package.json +++ b/services/cron-jobs/import-conference-week-details/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", - "@democracy-deutschland/bundestagio-common": "0.1.16", + "@democracy-deutschland/bundestagio-common": "*", "@democracy-deutschland/scapacra": "^1.0.6", "@democracy-deutschland/scapacra-bt": "^1.0.31", "http2": "^3.3.7" diff --git a/services/cron-jobs/import-deputy-profiles/package.json b/services/cron-jobs/import-deputy-profiles/package.json index daa9a3870..3ae73b21e 100644 --- a/services/cron-jobs/import-deputy-profiles/package.json +++ b/services/cron-jobs/import-deputy-profiles/package.json @@ -14,7 +14,7 @@ }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", - "@democracy-deutschland/bundestagio-common": "0.1.16", + "@democracy-deutschland/bundestagio-common": "*", "http2": "^3.3.7", "scrape-it": "^5.3.2" }, diff --git a/services/cron-jobs/import-named-poll-deputies/package.json b/services/cron-jobs/import-named-poll-deputies/package.json index 5a7087530..a68542e62 100644 --- a/services/cron-jobs/import-named-poll-deputies/package.json +++ b/services/cron-jobs/import-named-poll-deputies/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", - "@democracy-deutschland/bundestagio-common": "0.1.16", + "@democracy-deutschland/bundestagio-common": "*", "@democracy-deutschland/scapacra": "^1.0.6", "@democracy-deutschland/scapacra-bt": "1.0.32", "http2": "^3.3.7" diff --git a/services/cron-jobs/import-named-polls/package.json b/services/cron-jobs/import-named-polls/package.json index bf328a7f7..8942fdc4d 100644 --- a/services/cron-jobs/import-named-polls/package.json +++ b/services/cron-jobs/import-named-polls/package.json @@ -13,7 +13,7 @@ }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", - "@democracy-deutschland/bundestagio-common": "0.1.20", + "@democracy-deutschland/bundestagio-common": "*", "cheerio": "^1.0.0-rc.12", "crawlee": "^3.3.2", "dayjs": "^1.11.7", diff --git a/services/cron-jobs/import-plenary-minutes/package.json b/services/cron-jobs/import-plenary-minutes/package.json index 94fc724ea..0009647d0 100644 --- a/services/cron-jobs/import-plenary-minutes/package.json +++ b/services/cron-jobs/import-plenary-minutes/package.json @@ -12,7 +12,7 @@ "start": "node ./build/index.js" }, "dependencies": { - "@democracy-deutschland/bundestagio-common": "0.1.16", + "@democracy-deutschland/bundestagio-common": "*", "axios": "^0.19.2", "cheerio": "^1.0.0-rc.3", "moment": "^2.27.0" diff --git a/services/cron-jobs/index-sync-bundestagio/package.json b/services/cron-jobs/index-sync-bundestagio/package.json index a995d1338..184bc3402 100644 --- a/services/cron-jobs/index-sync-bundestagio/package.json +++ b/services/cron-jobs/index-sync-bundestagio/package.json @@ -12,7 +12,7 @@ "start": "node ./build/index.js" }, "dependencies": { - "@democracy-deutschland/bundestagio-common": "0.1.16" + "@democracy-deutschland/bundestagio-common": "*" }, "devDependencies": { "ts-node-dev": "^1.1.8", diff --git a/services/cron-jobs/index-sync-democracy/package.json b/services/cron-jobs/index-sync-democracy/package.json index 035377628..b3753f539 100644 --- a/services/cron-jobs/index-sync-democracy/package.json +++ b/services/cron-jobs/index-sync-democracy/package.json @@ -12,7 +12,7 @@ "start": "node ./build/index.js" }, "dependencies": { - "@democracy-deutschland/democracy-common": "^0.2.8" + "@democracy-deutschland/democracy-common": "*" }, "devDependencies": { "ts-node-dev": "^1.0.0-pre.50", diff --git a/services/cron-jobs/index-sync-democracy/src/index.ts b/services/cron-jobs/index-sync-democracy/src/index.ts index e22449545..b7aaeae12 100644 --- a/services/cron-jobs/index-sync-democracy/src/index.ts +++ b/services/cron-jobs/index-sync-democracy/src/index.ts @@ -1,4 +1,4 @@ -import mongoConnect from "./mongoose"; +import { mongoConnect, mongoDisconnect } from './mongoose'; import { ActivityModel, @@ -12,7 +12,7 @@ import { UserModel, VerificationModel, VoteModel, -} from "@democracy-deutschland/democracy-common"; +} from '@democracy-deutschland/democracy-common'; const start = async () => { await Promise.all([ @@ -31,16 +31,18 @@ const start = async () => { }; (async () => { - console.info("START"); - console.info("process.env", process.env.DB_URL); + console.info('START'); + console.info('process.env', process.env.DB_URL); if (!process.env.DB_URL) { - throw new Error("you have to set environment variable: DB_URL"); + throw new Error('you have to set environment variable: DB_URL'); } await mongoConnect(); - console.log("cronjobs", await CronJobModel.countDocuments({})); + console.log('cronjobs', await CronJobModel.countDocuments({})); await start().catch((e) => { console.log(e); process.exit(1); }); process.exit(0); -})(); +})().finally(() => { + mongoDisconnect(); +}); diff --git a/services/cron-jobs/index-sync-democracy/src/mongoose.ts b/services/cron-jobs/index-sync-democracy/src/mongoose.ts index 932047902..85050713a 100644 --- a/services/cron-jobs/index-sync-democracy/src/mongoose.ts +++ b/services/cron-jobs/index-sync-democracy/src/mongoose.ts @@ -1,23 +1,27 @@ import { mongoose } from '@democracy-deutschland/democracy-common'; -export default () => - new Promise(async (resolve, reject) => { - mongoose.set('useFindAndModify', false); +let connection: typeof mongoose; + +export const mongoConnect = async () => + new Promise(async (resolve) => { // Mongo Debug mongoose.set('debug', false); - mongoose.connect(process.env.DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(process.env.DB_URL!); mongoose.connection.once('connected', () => { console.info('MongoDB is running'); - resolve('MongoDB is running'); + resolve(true); }); mongoose.connection.on('error', (e: Error) => { // Unknown if this ends up in main - therefore we log here console.error(e.stack); - reject(e); + throw e; }); }); + +export const mongoDisconnect = () => { + if (connection) { + return connection.disconnect(); + } +}; diff --git a/services/cron-jobs/push-send-queued/package.json b/services/cron-jobs/push-send-queued/package.json index aa3f77325..f3876c31b 100644 --- a/services/cron-jobs/push-send-queued/package.json +++ b/services/cron-jobs/push-send-queued/package.json @@ -13,7 +13,7 @@ "apollo:codegen": "apollo client:codegen --target typescript --globalTypesFile=./src/__generated__/globalTypes.ts" }, "dependencies": { - "@democracy-deutschland/democracy-common": "^0.2.7", + "@democracy-deutschland/democracy-common": "*", "apn": "^2.2.0", "axios": "^1.2.3", "firebase-admin": "^11.5.0", diff --git a/services/cron-jobs/push-send-queued/src/index.ts b/services/cron-jobs/push-send-queued/src/index.ts index 58eb8f8b5..f2b076f9d 100644 --- a/services/cron-jobs/push-send-queued/src/index.ts +++ b/services/cron-jobs/push-send-queued/src/index.ts @@ -1,4 +1,4 @@ -import mongoConnect from './mongoose'; +import { mongoConnect, mongoDisconnect } from './mongoose'; import { CRON_SEND_QUED_PUSHS_LIMIT } from './config'; import { setCronStart, @@ -68,14 +68,14 @@ const start = async () => { await setCronStart({ name: CRON_NAME, startDate }); // Query Database - let pushs = await getUnsendPushs(CRON_SEND_QUED_PUSHS_LIMIT); + const pushs = await getUnsendPushs(CRON_SEND_QUED_PUSHS_LIMIT); let sentPushsCount = 0; let sentPushsErrorCount = 0; console.log(CRON_SEND_QUED_PUSHS_LIMIT, pushs); // send all pushs - for (let push of pushs) { + for (const push of pushs) { await sendPush(push).catch((error) => { handleSendError(push, error); sentPushsErrorCount++; @@ -98,4 +98,6 @@ const start = async () => { throw e; }); process.exit(0); -})(); +})().finally(() => { + mongoDisconnect(); +}); diff --git a/services/cron-jobs/push-send-queued/src/mongoose.ts b/services/cron-jobs/push-send-queued/src/mongoose.ts index 40e194def..8a03dd0fa 100644 --- a/services/cron-jobs/push-send-queued/src/mongoose.ts +++ b/services/cron-jobs/push-send-queued/src/mongoose.ts @@ -1,16 +1,14 @@ import { mongoose } from '@democracy-deutschland/democracy-common'; import { DB_URL } from './config'; -export default () => +let connection: typeof mongoose; + +export const mongoConnect = async () => new Promise(async (resolve) => { - mongoose.set('useFindAndModify', false); // Mongo Debug mongoose.set('debug', false); - mongoose.connect(DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(DB_URL!); mongoose.connection.once('connected', () => { console.info('MongoDB is running'); @@ -21,6 +19,11 @@ export default () => console.error(e.stack); throw e; }); - }).catch(() => { - process.exit(1); }); + +export const mongoDisconnect = () => { + if (connection) { + return connection.disconnect(); + } + return; +}; diff --git a/services/cron-jobs/queue-pushs-conference-week/package.json b/services/cron-jobs/queue-pushs-conference-week/package.json index 78552d4c3..f951ad186 100644 --- a/services/cron-jobs/queue-pushs-conference-week/package.json +++ b/services/cron-jobs/queue-pushs-conference-week/package.json @@ -12,7 +12,7 @@ "start": "node ./build/index.js" }, "dependencies": { - "@democracy-deutschland/democracy-common": "^0.2.7", + "@democracy-deutschland/democracy-common": "^0.2.12", "moment": "^2.27.0" }, "devDependencies": { diff --git a/services/cron-jobs/queue-pushs-conference-week/src/index.ts b/services/cron-jobs/queue-pushs-conference-week/src/index.ts index 051fcf0e1..41266e707 100644 --- a/services/cron-jobs/queue-pushs-conference-week/src/index.ts +++ b/services/cron-jobs/queue-pushs-conference-week/src/index.ts @@ -1,4 +1,4 @@ -import mongoConnect from './mongoose'; +import { mongoConnect, mongoDisconnect } from './mongoose'; import moment from 'moment'; import { @@ -41,7 +41,7 @@ const start = async () => { let hasMore = true; let skip = 0; - let limit = 1000; + const limit = 1000; while (hasMore) { console.log('Find Devices', skip); const devices = await DeviceModel.find( @@ -99,4 +99,6 @@ const start = async () => { console.log('procedures', await ProcedureModel.countDocuments({})); await start().catch(() => process.exit(1)); process.exit(0); -})(); +})().finally(() => { + mongoDisconnect(); +}); diff --git a/services/cron-jobs/queue-pushs-conference-week/src/mongoose.ts b/services/cron-jobs/queue-pushs-conference-week/src/mongoose.ts index 569a06a40..85050713a 100644 --- a/services/cron-jobs/queue-pushs-conference-week/src/mongoose.ts +++ b/services/cron-jobs/queue-pushs-conference-week/src/mongoose.ts @@ -1,14 +1,13 @@ import { mongoose } from '@democracy-deutschland/democracy-common'; -export default () => - new Promise(async (resolve, reject) => { - mongoose.set('useFindAndModify', false); + +let connection: typeof mongoose; + +export const mongoConnect = async () => + new Promise(async (resolve) => { // Mongo Debug mongoose.set('debug', false); - mongoose.connect(process.env.DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(process.env.DB_URL!); mongoose.connection.once('connected', () => { console.info('MongoDB is running'); @@ -20,3 +19,9 @@ export default () => throw e; }); }); + +export const mongoDisconnect = () => { + if (connection) { + return connection.disconnect(); + } +}; diff --git a/services/cron-jobs/queue-pushs-vote-conference-week/package.json b/services/cron-jobs/queue-pushs-vote-conference-week/package.json index 709c1ad0e..c64e4edb0 100644 --- a/services/cron-jobs/queue-pushs-vote-conference-week/package.json +++ b/services/cron-jobs/queue-pushs-vote-conference-week/package.json @@ -12,7 +12,7 @@ "start": "node ./build/index.js" }, "dependencies": { - "@democracy-deutschland/democracy-common": "^0.2.7", + "@democracy-deutschland/democracy-common": "*", "moment": "^2.27.0", "p-iteration": "^1.1.8" }, diff --git a/services/cron-jobs/queue-pushs-vote-conference-week/src/index.ts b/services/cron-jobs/queue-pushs-vote-conference-week/src/index.ts index 68d63268f..7455cc89a 100644 --- a/services/cron-jobs/queue-pushs-vote-conference-week/src/index.ts +++ b/services/cron-jobs/queue-pushs-vote-conference-week/src/index.ts @@ -1,4 +1,4 @@ -import mongoConnect from './mongoose'; +import { mongoConnect, mongoDisconnect } from './mongoose'; import moment from 'moment'; import { @@ -152,4 +152,6 @@ const start = async () => { console.log('procedures', await ProcedureModel.countDocuments({})); await start().catch(() => process.exit(1)); process.exit(0); -})(); +})().finally(() => { + mongoDisconnect(); +}); diff --git a/services/cron-jobs/queue-pushs-vote-conference-week/src/mongoose.ts b/services/cron-jobs/queue-pushs-vote-conference-week/src/mongoose.ts index 202b5e229..85050713a 100644 --- a/services/cron-jobs/queue-pushs-vote-conference-week/src/mongoose.ts +++ b/services/cron-jobs/queue-pushs-vote-conference-week/src/mongoose.ts @@ -1,18 +1,17 @@ import { mongoose } from '@democracy-deutschland/democracy-common'; -export default () => - new Promise(async (resolve, reject) => { - mongoose.set('useFindAndModify', false); + +let connection: typeof mongoose; + +export const mongoConnect = async () => + new Promise(async (resolve) => { // Mongo Debug mongoose.set('debug', false); - mongoose.connect(process.env.DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(process.env.DB_URL!); mongoose.connection.once('connected', () => { console.info('MongoDB is running'); - resolve('MongoDB is running'); + resolve(true); }); mongoose.connection.on('error', (e: Error) => { // Unknown if this ends up in main - therefore we log here @@ -20,3 +19,9 @@ export default () => throw e; }); }); + +export const mongoDisconnect = () => { + if (connection) { + return connection.disconnect(); + } +}; diff --git a/services/cron-jobs/queue-pushs-vote-top-100/package.json b/services/cron-jobs/queue-pushs-vote-top-100/package.json index 88dc715c5..5959220eb 100644 --- a/services/cron-jobs/queue-pushs-vote-top-100/package.json +++ b/services/cron-jobs/queue-pushs-vote-top-100/package.json @@ -12,11 +12,12 @@ "start": "node ./build/index.js" }, "dependencies": { - "@democracy-deutschland/democracy-common": "0.2.12", + "@democracy-deutschland/democracy-common": "*", "moment": "^2.27.0", "p-iteration": "^1.1.8" }, "devDependencies": { + "@types/node": "^20.8.7", "dotenv": "^10.0.0", "ts-node-dev": "^1.0.0-pre.49", "ts-unused-exports": "^6.2.1", diff --git a/services/cron-jobs/queue-pushs-vote-top-100/src/mongoose.ts b/services/cron-jobs/queue-pushs-vote-top-100/src/mongoose.ts index 1ec8b090a..314d43933 100644 --- a/services/cron-jobs/queue-pushs-vote-top-100/src/mongoose.ts +++ b/services/cron-jobs/queue-pushs-vote-top-100/src/mongoose.ts @@ -1,20 +1,17 @@ -import { mongoose } from "@democracy-deutschland/democracy-common"; +import { mongoose } from '@democracy-deutschland/democracy-common'; + export default () => - new Promise(async (resolve) => { - mongoose.set("useFindAndModify", false); + new Promise(async (resolve) => { // Mongo Debug - mongoose.set("debug", false); + mongoose.set('debug', false); - mongoose.connect(process.env.DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(process.env.DB_URL!); - mongoose.connection.once("connected", () => { - console.info("MongoDB is running"); - resolve(); + mongoose.connection.once('connected', () => { + console.info('MongoDB is running'); + resolve(true); }); - mongoose.connection.on("error", (e: Error) => { + mongoose.connection.on('error', (e: Error) => { // Unknown if this ends up in main - therefore we log here console.error(e.stack); throw e; diff --git a/services/cron-jobs/shedule-bio-resync/src/index.ts b/services/cron-jobs/shedule-bio-resync/src/index.ts index 38675d774..d60d749b6 100644 --- a/services/cron-jobs/shedule-bio-resync/src/index.ts +++ b/services/cron-jobs/shedule-bio-resync/src/index.ts @@ -1,22 +1,19 @@ -import mongoConnect from "./mongoose"; +import { mongoConnect, mongoDisconnect } from './mongoose'; -import { - ProcedureModel, - resetCronSuccessStartDate, -} from "@democracy-deutschland/democracy-common"; +import { ProcedureModel, resetCronSuccessStartDate } from '@democracy-deutschland/democracy-common'; const start = async () => { await resetCronSuccessStartDate(); }; (async () => { - console.info("START"); - console.info("process.env", process.env.DB_URL); + console.info('START'); + console.info('process.env', process.env.DB_URL); if (!process.env.DB_URL) { - throw new Error("you have to set environment variable: DB_URL"); + throw new Error('you have to set environment variable: DB_URL'); } await mongoConnect(); - console.log("procedures", await ProcedureModel.countDocuments({})); + console.log('procedures', await ProcedureModel.countDocuments({})); await start().catch(() => process.exit(1)); process.exit(0); -})(); +})().finally(() => mongoDisconnect()); diff --git a/services/cron-jobs/shedule-bio-resync/src/mongoose.ts b/services/cron-jobs/shedule-bio-resync/src/mongoose.ts index 253df7e47..85050713a 100644 --- a/services/cron-jobs/shedule-bio-resync/src/mongoose.ts +++ b/services/cron-jobs/shedule-bio-resync/src/mongoose.ts @@ -1,18 +1,17 @@ import { mongoose } from '@democracy-deutschland/democracy-common'; -export default () => + +let connection: typeof mongoose; + +export const mongoConnect = async () => new Promise(async (resolve) => { - mongoose.set('useFindAndModify', false); // Mongo Debug mongoose.set('debug', false); - mongoose.connect(process.env.DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(process.env.DB_URL!); mongoose.connection.once('connected', () => { console.info('MongoDB is running'); - resolve('MongoDB is running'); + resolve(true); }); mongoose.connection.on('error', (e: Error) => { // Unknown if this ends up in main - therefore we log here @@ -20,3 +19,9 @@ export default () => throw e; }); }); + +export const mongoDisconnect = () => { + if (connection) { + return connection.disconnect(); + } +}; diff --git a/services/cron-jobs/sync-deputy-profiles/package.json b/services/cron-jobs/sync-deputy-profiles/package.json index 3ff9702d2..10dda5402 100644 --- a/services/cron-jobs/sync-deputy-profiles/package.json +++ b/services/cron-jobs/sync-deputy-profiles/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", - "@democracy-deutschland/democracy-common": "0.2.12", + "@democracy-deutschland/democracy-common": "*", "apollo-cache-inmemory": "^1.6.6", "apollo-client": "^2.6.10", "apollo-link-http": "^1.5.17", diff --git a/services/cron-jobs/sync-deputy-profiles/src/mongoose.ts b/services/cron-jobs/sync-deputy-profiles/src/mongoose.ts index c5253f8c5..85050713a 100644 --- a/services/cron-jobs/sync-deputy-profiles/src/mongoose.ts +++ b/services/cron-jobs/sync-deputy-profiles/src/mongoose.ts @@ -1,24 +1,24 @@ -import { mongoose } from "@democracy-deutschland/democracy-common"; +import { mongoose } from '@democracy-deutschland/democracy-common'; let connection: typeof mongoose; -export const mongoConnect = async () => { - mongoose.set("useFindAndModify", false); - mongoose.set("debug", false); +export const mongoConnect = async () => + new Promise(async (resolve) => { + // Mongo Debug + mongoose.set('debug', false); - connection = await mongoose.connect(process.env.DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(process.env.DB_URL!); - mongoose.connection.once("connected", () => { - console.info("MongoDB is running"); - }); - mongoose.connection.on("error", (e: Error) => { - console.error(e.stack); - throw e; + mongoose.connection.once('connected', () => { + console.info('MongoDB is running'); + resolve(true); + }); + mongoose.connection.on('error', (e: Error) => { + // Unknown if this ends up in main - therefore we log here + console.error(e.stack); + throw e; + }); }); -}; export const mongoDisconnect = () => { if (connection) { diff --git a/services/cron-jobs/sync-named-polls/package.json b/services/cron-jobs/sync-named-polls/package.json index 37f71f9ab..23f0ce9e7 100644 --- a/services/cron-jobs/sync-named-polls/package.json +++ b/services/cron-jobs/sync-named-polls/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", - "@democracy-deutschland/democracy-common": "^0.2.7", + "@democracy-deutschland/democracy-common": "*", "apollo-cache-inmemory": "^1.6.6", "apollo-client": "^2.6.10", "apollo-link-http": "^1.5.17", diff --git a/services/cron-jobs/sync-named-polls/src/mongoose.ts b/services/cron-jobs/sync-named-polls/src/mongoose.ts index c5253f8c5..85050713a 100644 --- a/services/cron-jobs/sync-named-polls/src/mongoose.ts +++ b/services/cron-jobs/sync-named-polls/src/mongoose.ts @@ -1,24 +1,24 @@ -import { mongoose } from "@democracy-deutschland/democracy-common"; +import { mongoose } from '@democracy-deutschland/democracy-common'; let connection: typeof mongoose; -export const mongoConnect = async () => { - mongoose.set("useFindAndModify", false); - mongoose.set("debug", false); +export const mongoConnect = async () => + new Promise(async (resolve) => { + // Mongo Debug + mongoose.set('debug', false); - connection = await mongoose.connect(process.env.DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(process.env.DB_URL!); - mongoose.connection.once("connected", () => { - console.info("MongoDB is running"); - }); - mongoose.connection.on("error", (e: Error) => { - console.error(e.stack); - throw e; + mongoose.connection.once('connected', () => { + console.info('MongoDB is running'); + resolve(true); + }); + mongoose.connection.on('error', (e: Error) => { + // Unknown if this ends up in main - therefore we log here + console.error(e.stack); + throw e; + }); }); -}; export const mongoDisconnect = () => { if (connection) { diff --git a/services/cron-jobs/sync-procedures/package.json b/services/cron-jobs/sync-procedures/package.json index 039441053..2c93598f4 100644 --- a/services/cron-jobs/sync-procedures/package.json +++ b/services/cron-jobs/sync-procedures/package.json @@ -12,7 +12,7 @@ }, "dependencies": { "@democracy-deutschland/bundestag.io-definitions": "^1.0.2", - "@democracy-deutschland/democracy-common": "^0.2.9", + "@democracy-deutschland/democracy-common": "*", "apollo-cache-inmemory": "^1.6.6", "apollo-client": "^2.6.10", "apollo-link-http": "^1.5.17", diff --git a/services/cron-jobs/sync-procedures/src/index.ts b/services/cron-jobs/sync-procedures/src/index.ts index b53a3ce03..ff496a367 100644 --- a/services/cron-jobs/sync-procedures/src/index.ts +++ b/services/cron-jobs/sync-procedures/src/index.ts @@ -1,14 +1,14 @@ -import { mongoConnect, mongoDisconnect } from "./mongoose"; -import _ from "lodash"; -import moment from "moment"; -import { forEachSeries } from "p-iteration"; +import { mongoConnect, mongoDisconnect } from './mongoose'; +import _ from 'lodash'; +import moment from 'moment'; +import { forEachSeries } from 'p-iteration'; // Definitions -import { PROCEDURE as PROCEDURE_DEFINITIONS } from "@democracy-deutschland/bundestag.io-definitions"; +import { PROCEDURE as PROCEDURE_DEFINITIONS } from '@democracy-deutschland/bundestag.io-definitions'; // GraphQL -import createClient from "./graphql/client"; -import getProcedureUpdates from "./graphql/queries/getProcedureUpdates"; +import createClient from './graphql/client'; +import getProcedureUpdates from './graphql/queries/getProcedureUpdates'; import { ProcedureModel, VoteSelection, @@ -21,21 +21,19 @@ import { IProcedure, PartyVotes, ProcedureDocument, -} from "@democracy-deutschland/democracy-common"; +} from '@democracy-deutschland/democracy-common'; // Queries import { ProcedureUpdates, ProcedureUpdatesVariables, ProcedureUpdates_procedureUpdates_procedures, -} from "./graphql/queries/__generated__/ProcedureUpdates"; -import { VoteDecision } from "./__generated__/globalTypes"; +} from './graphql/queries/__generated__/ProcedureUpdates'; +import { VoteDecision } from './__generated__/globalTypes'; -export const CRON_NAME = "Procedures"; +export const CRON_NAME = 'Procedures'; -const notEmpty = ( - value: TValue | null | undefined -): value is TValue => { +const notEmpty = (value: TValue | null | undefined): value is TValue => { return value !== null && value !== undefined; }; @@ -43,10 +41,7 @@ export const nullToUndefined = (value: TValue | null | undefined) => { return value === null ? undefined : value; }; -const importProcedures = async ( - bIoProcedure: ProcedureUpdates_procedureUpdates_procedures, - { push = false } -) => { +const importProcedures = async (bIoProcedure: ProcedureUpdates_procedureUpdates_procedures, { push = false }) => { const importProcedure: Partial = { ...bIoProcedure, procedureId: nullToUndefined(bIoProcedure.procedureId), @@ -58,12 +53,8 @@ const importProcedures = async ( ? bIoProcedure.currentStatusHistory.filter(notEmpty) : undefined, tags: bIoProcedure.tags ? bIoProcedure.tags.filter(notEmpty) : undefined, - subjectGroups: bIoProcedure.subjectGroups - ? bIoProcedure.subjectGroups.filter(notEmpty) - : undefined, - importantDocuments: bIoProcedure.importantDocuments?.reduce< - ProcedureDocument[] - >((prev, doc) => { + subjectGroups: bIoProcedure.subjectGroups ? bIoProcedure.subjectGroups.filter(notEmpty) : undefined, + importantDocuments: bIoProcedure.importantDocuments?.reduce((prev, doc) => { if (doc) { return [...prev, doc] as ProcedureDocument[]; } @@ -81,7 +72,7 @@ const importProcedures = async ( } // check vote results - let voteResults: IProcedure["voteResults"] | undefined; + let voteResults: IProcedure['voteResults'] | undefined; if ( bIoProcedure.customData && bIoProcedure.customData.voteResults && @@ -90,100 +81,88 @@ const importProcedures = async ( bIoProcedure.customData.voteResults.no) ) { voteResults = { - yes: bIoProcedure.customData.voteResults.yes || 0, - abstination: bIoProcedure.customData.voteResults.abstination || 0, + yes: bIoProcedure.customData.voteResults.yes || 0, + abstination: bIoProcedure.customData.voteResults.abstination || 0, no: bIoProcedure.customData.voteResults.no || 0, notVoted: nullToUndefined(bIoProcedure.customData.voteResults.notVoted), - decisionText: nullToUndefined( - bIoProcedure.customData.voteResults.decisionText - ), + decisionText: nullToUndefined(bIoProcedure.customData.voteResults.decisionText), namedVote: nullToUndefined(bIoProcedure.namedVote), partyVotes: [], }; if (bIoProcedure.customData.voteResults.partyVotes) { - voteResults.partyVotes = - bIoProcedure.customData.voteResults.partyVotes.reduce( - (pre, partyVote) => { - if (partyVote) { - let mainDecision: VoteSelection; - const { main, party, ...rest } = partyVote; - switch (main) { - case VoteDecision.YES: - mainDecision = VoteSelection.Yes; - break; - case VoteDecision.ABSTINATION: - mainDecision = VoteSelection.Abstination; - break; - case VoteDecision.NO: - mainDecision = VoteSelection.No; - break; - default: - mainDecision = VoteSelection.Notvoted; - } - let deviants: PartyVotes["deviants"] | undefined; - if ( - rest.deviants && - rest.deviants.yes !== null && - rest.deviants.abstination !== null && - rest.deviants.no !== null - ) { - deviants = { - yes: rest.deviants.yes, - abstination: rest.deviants.abstination, - no: rest.deviants.no, - notVoted: rest.deviants.notVoted, - }; - } - - if (!deviants) { - return pre; - } + voteResults.partyVotes = bIoProcedure.customData.voteResults.partyVotes.reduce((pre, partyVote) => { + if (partyVote) { + let mainDecision: VoteSelection; + const { main, party, ...rest } = partyVote; + switch (main) { + case VoteDecision.YES: + mainDecision = VoteSelection.Yes; + break; + case VoteDecision.ABSTINATION: + mainDecision = VoteSelection.Abstination; + break; + case VoteDecision.NO: + mainDecision = VoteSelection.No; + break; + default: + mainDecision = VoteSelection.Notvoted; + } + let deviants: PartyVotes['deviants'] | undefined; + if ( + rest.deviants && + rest.deviants.yes !== null && + rest.deviants.abstination !== null && + rest.deviants.no !== null + ) { + deviants = { + yes: rest.deviants.yes, + abstination: rest.deviants.abstination, + no: rest.deviants.no, + notVoted: rest.deviants.notVoted, + }; + } - const result: PartyVotes = { - ...rest, - _id: false, - party: convertPartyName(party), - main: mainDecision, - deviants, - }; - return [...pre, result]; - } + if (!deviants) { return pre; - }, - [] - ); + } + + const result: PartyVotes = { + ...rest, + _id: false, + party: convertPartyName(party), + main: mainDecision, + deviants, + }; + return [...pre, result]; + } + return pre; + }, []); // toggle votingData (Yes & No) if needed if ( - bIoProcedure.customData.voteResults.votingDocument === - "recommendedDecision" && + bIoProcedure.customData.voteResults.votingDocument === 'recommendedDecision' && bIoProcedure.customData.voteResults.votingRecommendation === false ) { voteResults = { ...voteResults, yes: voteResults.no, no: voteResults.yes, - partyVotes: voteResults.partyVotes.map( - ({ main, deviants, ...rest }) => { - let mainDecision = main; - if (main !== "ABSTINATION") { - mainDecision = - main === VoteSelection.Yes - ? VoteSelection.No - : VoteSelection.Yes; - } - return { - ...rest, - main: mainDecision, - deviants: { - ...deviants, - yes: deviants.no, - no: deviants.yes, - }, - }; + partyVotes: voteResults.partyVotes.map(({ main, deviants, ...rest }) => { + let mainDecision = main; + if (main !== 'ABSTINATION') { + mainDecision = main === VoteSelection.Yes ? VoteSelection.No : VoteSelection.Yes; } - ), + return { + ...rest, + main: mainDecision, + deviants: { + ...deviants, + yes: deviants.no, + no: deviants.yes, + }, + }; + }), }; } } @@ -197,19 +176,13 @@ const importProcedures = async ( if (lastSession && lastSession.session?.top?.topic?.isVote) { importProcedure.voteWeek = lastSession.thisWeek; // eslint-disable-line no-param-reassign importProcedure.voteYear = lastSession.thisYear; // eslint-disable-line no-param-reassign - importProcedure.sessionTOPHeading = nullToUndefined( - lastSession.session.top.heading - ); // eslint-disable-line no-param-reassign + importProcedure.sessionTOPHeading = nullToUndefined(lastSession.session.top.heading); // eslint-disable-line no-param-reassign } } // Set CalendarWeek & Year even if no sessions where found // Always override Week & Year by voteDate since we sort by this and the session match is not too accurate - if ( - bIoProcedure.voteDate /* && (!bIoProcedure.voteWeek || !bIoProcedure.voteYear) */ - ) { - importProcedure.voteWeek = parseInt( - moment(bIoProcedure.voteDate).format("W") - ); // eslint-disable-line no-param-reassign + if (bIoProcedure.voteDate /* && (!bIoProcedure.voteWeek || !bIoProcedure.voteYear) */) { + importProcedure.voteWeek = parseInt(moment(bIoProcedure.voteDate).format('W')); // eslint-disable-line no-param-reassign importProcedure.voteYear = moment(bIoProcedure.voteDate).year(); // eslint-disable-line no-param-reassign } @@ -225,7 +198,7 @@ const importProcedures = async ( { upsert: true, new: true, - } + }, ).then(async () => { if (push) { // We have a vote result in new Procedure @@ -237,10 +210,7 @@ const importProcedures = async ( importProcedure.voteResults.notVoted !== null) ) { // We have no old Procedure or no VoteResult on old Procedure - if ( - importProcedure.procedureId && - (!oldProcedure || !oldProcedure.voteResults) - ) { + if (importProcedure.procedureId && (!oldProcedure || !oldProcedure.voteResults)) { await queuePushsOutcome(importProcedure.procedureId); // We have different values for VoteResult } else if ( @@ -249,11 +219,9 @@ const importProcedures = async ( oldProcedure && (importProcedure.voteResults.yes !== oldProcedure.voteResults.yes || importProcedure.voteResults.no !== oldProcedure.voteResults.no || - importProcedure.voteResults.abstination !== - oldProcedure.voteResults.abstination || + importProcedure.voteResults.abstination !== oldProcedure.voteResults.abstination || (importProcedure.voteResults.notVoted && - importProcedure.voteResults.notVoted !== - oldProcedure.voteResults.notVoted)) + importProcedure.voteResults.notVoted !== oldProcedure.voteResults.notVoted)) ) { await queuePushsOutcome(importProcedure.procedureId); } @@ -268,7 +236,7 @@ const start = async () => { const cron = await getCron({ name: CRON_NAME }); await setCronStart({ name: CRON_NAME, startDate }); // Last SuccessStartDate - let since: Date = new Date("1900"); + let since: Date = new Date('1900'); if (cron.lastSuccessStartDate) { since = new Date(cron.lastSuccessStartDate); } @@ -287,11 +255,8 @@ const start = async () => { limit, offset, periods: [18, 19, 20], - types: [ - PROCEDURE_DEFINITIONS.TYPE.GESETZGEBUNG, - PROCEDURE_DEFINITIONS.TYPE.ANTRAG, - ], - } + types: [PROCEDURE_DEFINITIONS.TYPE.GESETZGEBUNG, PROCEDURE_DEFINITIONS.TYPE.ANTRAG], + }; const { errors, data: { procedureUpdates }, @@ -299,7 +264,7 @@ const start = async () => { query: getProcedureUpdates, variables, }); - console.log("use variables:", { + console.log('use variables:', { ...variables, progress: { ...(procedureUpdates @@ -322,8 +287,7 @@ const start = async () => { await forEachSeries(procedures, async (data) => { if ( data && - (data.type === PROCEDURE_DEFINITIONS.TYPE.GESETZGEBUNG || - data.type === PROCEDURE_DEFINITIONS.TYPE.ANTRAG) + (data.type === PROCEDURE_DEFINITIONS.TYPE.GESETZGEBUNG || data.type === PROCEDURE_DEFINITIONS.TYPE.ANTRAG) ) { await importProcedures(data, { push: true }); } @@ -352,19 +316,13 @@ const start = async () => { }; (async () => { - console.info("START"); - console.info( - "process.env", - process.env.BUNDESTAGIO_SERVER_URL, - process.env.DB_URL - ); + console.info('START'); + console.info('process.env', process.env.BUNDESTAGIO_SERVER_URL, process.env.DB_URL); if (!process.env.BUNDESTAGIO_SERVER_URL) { - throw new Error( - "you have to set environment variable: BUNDESTAGIO_SERVER_URL & DB_URL" - ); + throw new Error('you have to set environment variable: BUNDESTAGIO_SERVER_URL & DB_URL'); } await mongoConnect(); - console.log("procedures", await ProcedureModel.countDocuments({})); + console.log('procedures', await ProcedureModel.countDocuments({})); await start(); await mongoDisconnect(); })().catch(async (e) => { diff --git a/services/cron-jobs/sync-procedures/src/mongoose.ts b/services/cron-jobs/sync-procedures/src/mongoose.ts index c5253f8c5..85050713a 100644 --- a/services/cron-jobs/sync-procedures/src/mongoose.ts +++ b/services/cron-jobs/sync-procedures/src/mongoose.ts @@ -1,24 +1,24 @@ -import { mongoose } from "@democracy-deutschland/democracy-common"; +import { mongoose } from '@democracy-deutschland/democracy-common'; let connection: typeof mongoose; -export const mongoConnect = async () => { - mongoose.set("useFindAndModify", false); - mongoose.set("debug", false); +export const mongoConnect = async () => + new Promise(async (resolve) => { + // Mongo Debug + mongoose.set('debug', false); - connection = await mongoose.connect(process.env.DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(process.env.DB_URL!); - mongoose.connection.once("connected", () => { - console.info("MongoDB is running"); - }); - mongoose.connection.on("error", (e: Error) => { - console.error(e.stack); - throw e; + mongoose.connection.once('connected', () => { + console.info('MongoDB is running'); + resolve(true); + }); + mongoose.connection.on('error', (e: Error) => { + // Unknown if this ends up in main - therefore we log here + console.error(e.stack); + throw e; + }); }); -}; export const mongoDisconnect = () => { if (connection) { diff --git a/services/qr-code-handler/package.json b/services/qr-code-handler/package.json index c3597bfe2..1bc511640 100644 --- a/services/qr-code-handler/package.json +++ b/services/qr-code-handler/package.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "express": "^4.17.1", - "mongoose": "^5.10.0" + "mongoose": "6.0.12" }, "devDependencies": { "@swc/core": "^1.3.93", diff --git a/services/qr-code-handler/src/mongoose.ts b/services/qr-code-handler/src/mongoose.ts index f53d00d02..3350013fa 100644 --- a/services/qr-code-handler/src/mongoose.ts +++ b/services/qr-code-handler/src/mongoose.ts @@ -1,23 +1,19 @@ import mongoose from 'mongoose'; export default () => - new Promise(async (resolve, reject) => { - mongoose.set('useFindAndModify', false); + new Promise(async (resolve) => { // Mongo Debug mongoose.set('debug', false); - mongoose.connect(process.env.DB_URL!, { - useNewUrlParser: true, - useUnifiedTopology: true, - }); + mongoose.connect(process.env.DB_URL!); mongoose.connection.once('connected', () => { console.info('MongoDB is running'); - resolve('MongoDB is running'); + resolve(true); }); mongoose.connection.on('error', (e: Error) => { // Unknown if this ends up in main - therefore we log here console.error(e.stack); - reject(e); + throw e; }); }); diff --git a/turbo.json b/turbo.json index 9be6389ac..91f940f76 100644 --- a/turbo.json +++ b/turbo.json @@ -8,7 +8,9 @@ "dev": { "dependsOn": ["^build"] }, - "lint": {}, + "lint": { + "dependsOn": ["^build"] + }, "release:version": {} } }