chore: update mongoose

This commit is contained in:
Innei
2022-07-05 14:54:07 +08:00
parent 055e4abf9a
commit 14200f90cf
3 changed files with 176 additions and 151 deletions

View File

@@ -84,7 +84,7 @@
"@socket.io/redis-adapter": "7.2.0",
"@socket.io/redis-emitter": "4.1.1",
"@typegoose/auto-increment": "1.4.1",
"@typegoose/typegoose": "9.9.0",
"@typegoose/typegoose": "9.10.1",
"@types/jsonwebtoken": "8.5.8",
"algoliasearch": "4.13.1",
"axios": "*",
@@ -115,7 +115,7 @@
"marked": "4.0.17",
"mime-types": "*",
"mkdirp": "*",
"mongoose": "6.3.9",
"mongoose": "6.4.2",
"mongoose-aggregate-paginate-v2": "1.0.6",
"mongoose-lean-getters": "0.3.4",
"mongoose-lean-id": "0.3.0",

312
pnpm-lock.yaml generated
View File

@@ -34,7 +34,7 @@ specifiers:
'@socket.io/redis-adapter': 7.2.0
'@socket.io/redis-emitter': 4.1.1
'@typegoose/auto-increment': 1.4.1
'@typegoose/typegoose': 9.9.0
'@typegoose/typegoose': 9.10.1
'@types/babel__core': 7.1.19
'@types/bcrypt': 5.0.0
'@types/cache-manager': 4.0.1
@@ -93,7 +93,7 @@ specifiers:
mime-types: '*'
mkdirp: '*'
mongodb-memory-server: 8.7.2
mongoose: 6.3.9
mongoose: 6.4.2
mongoose-aggregate-paginate-v2: 1.0.6
mongoose-lean-getters: 0.3.4
mongoose-lean-id: 0.3.0
@@ -129,7 +129,7 @@ dependencies:
'@babel/core': 7.18.6
'@babel/plugin-transform-modules-commonjs': 7.18.6_@babel+core@7.18.6
'@babel/plugin-transform-typescript': 7.18.6_@babel+core@7.18.6
'@babel/types': 7.18.4
'@babel/types': 7.18.7
'@fastify/cookie': 6.0.0
'@fastify/multipart': 6.0.0
'@nestjs/common': 8.4.7_rfiwcbffiuhkhhtbrxxsyxpam4
@@ -144,8 +144,8 @@ dependencies:
'@nestjs/websockets': 8.4.7_aheyi6luzvgwkvcv7ramv2w3ee
'@socket.io/redis-adapter': 7.2.0
'@socket.io/redis-emitter': 4.1.1
'@typegoose/auto-increment': 1.4.1_mongoose@6.3.9
'@typegoose/typegoose': 9.9.0_mongoose@6.3.9
'@typegoose/auto-increment': 1.4.1_mongoose@6.4.2
'@typegoose/typegoose': 9.10.1_mongoose@6.4.2
'@types/jsonwebtoken': 8.5.8
algoliasearch: 4.13.1
axios: 0.27.2
@@ -176,11 +176,11 @@ dependencies:
marked: 4.0.17
mime-types: 2.1.35
mkdirp: 1.0.4
mongoose: 6.3.9
mongoose: 6.4.2
mongoose-aggregate-paginate-v2: 1.0.6
mongoose-lean-getters: 0.3.4_mongoose@6.3.9
mongoose-lean-id: 0.3.0_mongoose@6.3.9
mongoose-lean-virtuals: 0.9.1_mongoose@6.3.9
mongoose-lean-getters: 0.3.4_mongoose@6.4.2
mongoose-lean-id: 0.3.0_mongoose@6.4.2
mongoose-lean-virtuals: 0.9.1_mongoose@6.4.2
mongoose-paginate-v2: 1.7.0
nanoid: 3.3.4
node-machine-id: 1.1.12
@@ -229,8 +229,8 @@ devDependencies:
'@vercel/ncc': 0.34.0
cron: 2.0.0
cross-env: 7.0.3
eslint: 8.17.0
eslint-plugin-unused-imports: 2.0.0_eslint@8.17.0
eslint: 8.19.0
eslint-plugin-unused-imports: 2.0.0_eslint@8.19.0
husky: 8.0.1
ioredis: 5.1.0
jest: 28.1.2_qv5kk3vgcyi3feqo7l5zvvzluy
@@ -472,7 +472,7 @@ packages:
'@babel/parser': 7.18.6
'@babel/template': 7.18.6
'@babel/traverse': 7.18.6
'@babel/types': 7.18.6
'@babel/types': 7.18.7
convert-source-map: 1.8.0
debug: 4.3.4
gensync: 1.0.0-beta.2
@@ -485,15 +485,24 @@ packages:
resolution: {integrity: sha512-AIwwoOS8axIC5MZbhNHRLKi3D+DMpvDf9XUcu3pIVAfOHFT45f4AoDAltRbHIQomCipkCZxrNkfpOEHhJz/VKw==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.18.6
'@babel/types': 7.18.7
'@jridgewell/gen-mapping': 0.3.1
jsesc: 2.5.2
/@babel/generator/7.18.7:
resolution: {integrity: sha512-shck+7VLlY72a2w9c3zYWuE1pwOKEiQHV7GTUbSnhyl5eu3i04t30tBY82ZRWrDfo3gkakCFtevExnxbkf2a3A==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.18.7
'@jridgewell/gen-mapping': 0.3.2
jsesc: 2.5.2
dev: true
/@babel/helper-annotate-as-pure/7.18.6:
resolution: {integrity: sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.18.6
'@babel/types': 7.18.7
dev: false
/@babel/helper-compilation-targets/7.18.6_@babel+core@7.18.6:
@@ -535,26 +544,26 @@ packages:
engines: {node: '>=6.9.0'}
dependencies:
'@babel/template': 7.18.6
'@babel/types': 7.18.6
'@babel/types': 7.18.7
/@babel/helper-hoist-variables/7.18.6:
resolution: {integrity: sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.18.6
'@babel/types': 7.18.7
/@babel/helper-member-expression-to-functions/7.18.6:
resolution: {integrity: sha512-CeHxqwwipekotzPDUuJOfIMtcIHBuc7WAzLmTYWctVigqS5RktNMQ5bEwQSuGewzYnCtTWa3BARXeiLxDTv+Ng==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.18.6
'@babel/types': 7.18.7
dev: false
/@babel/helper-module-imports/7.18.6:
resolution: {integrity: sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.18.6
'@babel/types': 7.18.7
/@babel/helper-module-transforms/7.18.6:
resolution: {integrity: sha512-L//phhB4al5uucwzlimruukHB3jRd5JGClwRMD/ROrVjXfLqovYnvQrK/JK36WYyVwGGO7OD3kMyVTjx+WVPhw==}
@@ -567,7 +576,7 @@ packages:
'@babel/helper-validator-identifier': 7.18.6
'@babel/template': 7.18.6
'@babel/traverse': 7.18.6
'@babel/types': 7.18.6
'@babel/types': 7.18.7
transitivePeerDependencies:
- supports-color
@@ -575,7 +584,7 @@ packages:
resolution: {integrity: sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.18.6
'@babel/types': 7.18.7
dev: false
/@babel/helper-plugin-utils/7.18.6:
@@ -590,7 +599,7 @@ packages:
'@babel/helper-member-expression-to-functions': 7.18.6
'@babel/helper-optimise-call-expression': 7.18.6
'@babel/traverse': 7.18.6
'@babel/types': 7.18.6
'@babel/types': 7.18.7
transitivePeerDependencies:
- supports-color
dev: false
@@ -599,17 +608,13 @@ packages:
resolution: {integrity: sha512-iNpIgTgyAvDQpDj76POqg+YEt8fPxx3yaNBg3S30dxNKm2SWfYhD0TGrK/Eu9wHpUW63VQU894TsTg+GLbUa1g==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.18.6
'@babel/types': 7.18.7
/@babel/helper-split-export-declaration/7.18.6:
resolution: {integrity: sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/types': 7.18.6
/@babel/helper-validator-identifier/7.16.7:
resolution: {integrity: sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==}
engines: {node: '>=6.9.0'}
'@babel/types': 7.18.7
/@babel/helper-validator-identifier/7.18.6:
resolution: {integrity: sha512-MmetCkz9ej86nJQV+sFCxoGGrUbU3q02kgLciwkrt9QqEB7cP39oKEY0PakknEO0Gu20SskMRi+AYZ3b1TpN9g==}
@@ -625,7 +630,7 @@ packages:
dependencies:
'@babel/template': 7.18.6
'@babel/traverse': 7.18.6
'@babel/types': 7.18.6
'@babel/types': 7.18.7
transitivePeerDependencies:
- supports-color
@@ -642,7 +647,7 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
'@babel/types': 7.18.6
'@babel/types': 7.18.7
dev: true
/@babel/parser/7.17.8:
@@ -650,7 +655,7 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
'@babel/types': 7.18.4
'@babel/types': 7.18.7
dev: true
/@babel/parser/7.18.6:
@@ -658,7 +663,7 @@ packages:
engines: {node: '>=6.0.0'}
hasBin: true
dependencies:
'@babel/types': 7.18.6
'@babel/types': 7.18.7
/@babel/plugin-syntax-async-generators/7.8.4_@babel+core@7.18.6:
resolution: {integrity: sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==}
@@ -820,7 +825,7 @@ packages:
dependencies:
'@babel/code-frame': 7.18.6
'@babel/parser': 7.18.6
'@babel/types': 7.18.6
'@babel/types': 7.18.7
/@babel/traverse/7.18.6:
resolution: {integrity: sha512-zS/OKyqmD7lslOtFqbscH6gMLFYOfG1YPqCKfAW5KrTeolKqvB8UelR49Fpr6y93kYkW2Ik00mT1LOGiAGvizw==}
@@ -833,21 +838,14 @@ packages:
'@babel/helper-hoist-variables': 7.18.6
'@babel/helper-split-export-declaration': 7.18.6
'@babel/parser': 7.18.6
'@babel/types': 7.18.6
'@babel/types': 7.18.7
debug: 4.3.4
globals: 11.12.0
transitivePeerDependencies:
- supports-color
/@babel/types/7.18.4:
resolution: {integrity: sha512-ThN1mBcMq5pG/Vm2IcBmPPfyPXbd8S02rS+OBIDENdufvqC7Z/jHPCv9IcP01277aKtDI8g/2XysBN4hA8niiw==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-validator-identifier': 7.16.7
to-fast-properties: 2.0.0
/@babel/types/7.18.6:
resolution: {integrity: sha512-NdBNzPDwed30fZdDQtVR7ZgaO4UKjuaQFH9VArS+HMnurlOY0JWN+4ROlu/iapMFwjRQU4pOG4StZfDmulEwGA==}
/@babel/types/7.18.7:
resolution: {integrity: sha512-QG3yxTcTIBoAcQmkCs+wAPYZhu7Dk9rXKacINfNbdJDNERTbLQbHGyVG8q/YGMPeCJRIhSY0+fTc5+xuh6WPSQ==}
engines: {node: '>=6.9.0'}
dependencies:
'@babel/helper-validator-identifier': 7.18.6
@@ -878,7 +876,7 @@ packages:
ajv: 6.12.6
debug: 4.3.4
espree: 9.3.2
globals: 13.15.0
globals: 13.16.0
ignore: 5.2.0
import-fresh: 3.3.0
js-yaml: 4.1.0
@@ -986,10 +984,10 @@ packages:
prettier: 2.x
dependencies:
'@babel/core': 7.18.6
'@babel/generator': 7.18.6
'@babel/generator': 7.18.7
'@babel/parser': 7.18.6
'@babel/traverse': 7.18.6
'@babel/types': 7.18.6
'@babel/types': 7.18.7
javascript-natural-sort: 0.7.1
lodash: 4.17.21
prettier: 2.7.1
@@ -1017,12 +1015,12 @@ packages:
peerDependencies:
typescript: '>=4'
dependencies:
'@typescript-eslint/eslint-plugin': 5.25.0_bwdgjzdjqqu6lnspjrilve2nye
'@typescript-eslint/parser': 5.28.0_n4lrrl552kqf5nk4rgej5xdcha
eslint: 8.17.0
eslint-config-prettier: 8.5.0_eslint@8.17.0
eslint-plugin-import: 2.26.0_wyrfqmvemfacbroyi3ypviy7f4
eslint-plugin-unused-imports: 2.0.0_jgbfxkfn5ewzh3muaqzta2u2cm
'@typescript-eslint/eslint-plugin': 5.25.0_6zdoc3rn4mpiddqwhppni2mnnm
'@typescript-eslint/parser': 5.30.5_4x5o4skxv6sl53vpwefgt23khm
eslint: 8.19.0
eslint-config-prettier: 8.5.0_eslint@8.19.0
eslint-plugin-import: 2.26.0_iom7pm3yknyiblqpw2vvqvxs5i
eslint-plugin-unused-imports: 2.0.0_7i5u5rcwlpnuahgi5pedbxjlpm
typescript: 4.7.4
transitivePeerDependencies:
- eslint-import-resolver-typescript
@@ -1281,6 +1279,15 @@ packages:
'@jridgewell/sourcemap-codec': 1.4.13
'@jridgewell/trace-mapping': 0.3.14
/@jridgewell/gen-mapping/0.3.2:
resolution: {integrity: sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==}
engines: {node: '>=6.0.0'}
dependencies:
'@jridgewell/set-array': 1.1.2
'@jridgewell/sourcemap-codec': 1.4.14
'@jridgewell/trace-mapping': 0.3.14
dev: true
/@jridgewell/resolve-uri/3.0.7:
resolution: {integrity: sha512-8cXDaBBHOr2pQ7j77Y6Vp5VDT2sIqWyWQ56TjEq4ih/a4iST3dItRe8Q9fp0rrIl9DoKhWQtUQz/YpOxLkXbNA==}
engines: {node: '>=6.0.0'}
@@ -1289,9 +1296,18 @@ packages:
resolution: {integrity: sha512-SfJxIxNVYLTsKwzB3MoOQ1yxf4w/E6MdkvTgrgAt1bfxjSrLUoHMKrDOykwN14q65waezZIdqDneUIPh4/sKxg==}
engines: {node: '>=6.0.0'}
/@jridgewell/set-array/1.1.2:
resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==}
engines: {node: '>=6.0.0'}
dev: true
/@jridgewell/sourcemap-codec/1.4.13:
resolution: {integrity: sha512-GryiOJmNcWbovBxTfZSF71V/mXbgcV3MewDe3kIMCLyIh5e7SKAeUZs+rMnJ8jkMolZ/4/VsdBmMrw3l+VdZ3w==}
/@jridgewell/sourcemap-codec/1.4.14:
resolution: {integrity: sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==}
dev: true
/@jridgewell/trace-mapping/0.3.14:
resolution: {integrity: sha512-bJWEfQ9lPTvm3SneWwRFVLzrh6nhjwqw7TUFFBEMzwvg7t7PCDenf2lDwqo4NQXzdpgBXyFgDWnQA+2vkruksQ==}
dependencies:
@@ -1694,26 +1710,26 @@ packages:
resolution: {integrity: sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==}
dev: true
/@typegoose/auto-increment/1.4.1_mongoose@6.3.9:
/@typegoose/auto-increment/1.4.1_mongoose@6.4.2:
resolution: {integrity: sha512-Hh7Vcjlz3GWkbEKwH7UxsbPQD1vpm76vFMCPOm2z36E+dCu2hyHruWnaAIK8co6iNGxyam617e+6yuHr114fCQ==}
engines: {node: '>=12.22.0'}
peerDependencies:
mongoose: ~6.4.2
dependencies:
loglevel: 1.8.0
mongoose: 6.3.9
mongoose: 6.4.2
tslib: 2.4.0
dev: false
/@typegoose/typegoose/9.9.0_mongoose@6.3.9:
resolution: {integrity: sha512-n29N5Lp5gIV+mSx//LoJxIsOIMpwX5ptx/+KkzPblRf6CD2DZ9gGMqTd3iIbN+8Re/7Vmkj9dkw/URenxlb2yA==}
/@typegoose/typegoose/9.10.1_mongoose@6.4.2:
resolution: {integrity: sha512-wHThVHSKNrCAWcasiBrN0hDDN3JRVJmRCHueyungRf/KexFArK/asqffllXSaAXKb1APrJbGGxEWueZR0z9fpw==}
engines: {node: '>=12.22.0'}
peerDependencies:
mongoose: ~6.3.5
mongoose: ~6.4.2
dependencies:
lodash: 4.17.21
loglevel: 1.8.0
mongoose: 6.3.9
mongoose: 6.4.2
reflect-metadata: 0.1.13
semver: 7.3.7
tslib: 2.4.0
@@ -1723,7 +1739,7 @@ packages:
resolution: {integrity: sha512-WEOTgRsbYkvA/KCsDwVEGkd7WAr1e3g31VHQ8zy5gul/V1qKullU/BU5I68X5v7V3GnB9eotmom4v5a5gjxorw==}
dependencies:
'@babel/parser': 7.17.8
'@babel/types': 7.18.4
'@babel/types': 7.18.7
'@types/babel__generator': 7.6.4
'@types/babel__template': 7.4.1
'@types/babel__traverse': 7.14.2
@@ -1732,26 +1748,26 @@ packages:
/@types/babel__generator/7.6.4:
resolution: {integrity: sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==}
dependencies:
'@babel/types': 7.18.4
'@babel/types': 7.18.7
dev: true
/@types/babel__template/7.4.1:
resolution: {integrity: sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==}
dependencies:
'@babel/parser': 7.17.12
'@babel/types': 7.18.4
'@babel/types': 7.18.7
dev: true
/@types/babel__traverse/7.14.2:
resolution: {integrity: sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA==}
dependencies:
'@babel/types': 7.18.4
'@babel/types': 7.18.7
dev: true
/@types/babel__traverse/7.17.1:
resolution: {integrity: sha512-kVzjari1s2YVi77D3w1yuvohV2idweYXMCDzqBiVNN63TcDWrIlTVOYpqVrvbbyOE/IyzBoTKF0fdnLPEORFxA==}
dependencies:
'@babel/types': 7.18.6
'@babel/types': 7.18.7
dev: true
/@types/bcrypt/5.0.0:
@@ -1885,7 +1901,7 @@ packages:
/@types/mongoose-aggregate-paginate-v2/1.0.5:
resolution: {integrity: sha512-c3KXTwzW6+BZw2g2TgNgGUyMbotTcI2Ip+NSZWoJjG2UO+8BRjmy+kJUNu64rfdIqWJ1+8h5NLm9w+aVis93Hw==}
dependencies:
mongoose: 6.3.9
mongoose: 6.4.2
transitivePeerDependencies:
- supports-color
dev: true
@@ -1963,7 +1979,7 @@ packages:
dev: false
optional: true
/@typescript-eslint/eslint-plugin/5.25.0_bwdgjzdjqqu6lnspjrilve2nye:
/@typescript-eslint/eslint-plugin/5.25.0_6zdoc3rn4mpiddqwhppni2mnnm:
resolution: {integrity: sha512-icYrFnUzvm+LhW0QeJNKkezBu6tJs9p/53dpPLFH8zoM9w1tfaKzVurkPotEpAqQ8Vf8uaFyL5jHd0Vs6Z0ZQg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@@ -1974,12 +1990,12 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/parser': 5.28.0_n4lrrl552kqf5nk4rgej5xdcha
'@typescript-eslint/parser': 5.30.5_4x5o4skxv6sl53vpwefgt23khm
'@typescript-eslint/scope-manager': 5.25.0
'@typescript-eslint/type-utils': 5.25.0_n4lrrl552kqf5nk4rgej5xdcha
'@typescript-eslint/utils': 5.25.0_n4lrrl552kqf5nk4rgej5xdcha
'@typescript-eslint/type-utils': 5.25.0_4x5o4skxv6sl53vpwefgt23khm
'@typescript-eslint/utils': 5.25.0_4x5o4skxv6sl53vpwefgt23khm
debug: 4.3.4
eslint: 8.17.0
eslint: 8.19.0
functional-red-black-tree: 1.0.1
ignore: 5.2.0
regexpp: 3.2.0
@@ -1990,8 +2006,8 @@ packages:
- supports-color
dev: true
/@typescript-eslint/parser/5.28.0_n4lrrl552kqf5nk4rgej5xdcha:
resolution: {integrity: sha512-ekqoNRNK1lAcKhZESN/PdpVsWbP9jtiNqzFWkp/yAUdZvJalw2heCYuqRmM5eUJSIYEkgq5sGOjq+ZqsLMjtRA==}
/@typescript-eslint/parser/5.30.5_4x5o4skxv6sl53vpwefgt23khm:
resolution: {integrity: sha512-zj251pcPXI8GO9NDKWWmygP6+UjwWmrdf9qMW/L/uQJBM/0XbU2inxe5io/234y/RCvwpKEYjZ6c1YrXERkK4Q==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
@@ -2000,11 +2016,11 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/scope-manager': 5.28.0
'@typescript-eslint/types': 5.28.0
'@typescript-eslint/typescript-estree': 5.28.0_typescript@4.7.4
'@typescript-eslint/scope-manager': 5.30.5
'@typescript-eslint/types': 5.30.5
'@typescript-eslint/typescript-estree': 5.30.5_typescript@4.7.4
debug: 4.3.4
eslint: 8.17.0
eslint: 8.19.0
typescript: 4.7.4
transitivePeerDependencies:
- supports-color
@@ -2018,15 +2034,15 @@ packages:
'@typescript-eslint/visitor-keys': 5.25.0
dev: true
/@typescript-eslint/scope-manager/5.28.0:
resolution: {integrity: sha512-LeBLTqF/he1Z+boRhSqnso6YrzcKMTQ8bO/YKEe+6+O/JGof9M0g3IJlIsqfrK/6K03MlFIlycbf1uQR1IjE+w==}
/@typescript-eslint/scope-manager/5.30.5:
resolution: {integrity: sha512-NJ6F+YHHFT/30isRe2UTmIGGAiXKckCyMnIV58cE3JkHmaD6e5zyEYm5hBDv0Wbin+IC0T1FWJpD3YqHUG/Ydg==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
'@typescript-eslint/types': 5.28.0
'@typescript-eslint/visitor-keys': 5.28.0
'@typescript-eslint/types': 5.30.5
'@typescript-eslint/visitor-keys': 5.30.5
dev: true
/@typescript-eslint/type-utils/5.25.0_n4lrrl552kqf5nk4rgej5xdcha:
/@typescript-eslint/type-utils/5.25.0_4x5o4skxv6sl53vpwefgt23khm:
resolution: {integrity: sha512-B6nb3GK3Gv1Rsb2pqalebe/RyQoyG/WDy9yhj8EE0Ikds4Xa8RR28nHz+wlt4tMZk5bnAr0f3oC8TuDAd5CPrw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@@ -2036,9 +2052,9 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/utils': 5.25.0_n4lrrl552kqf5nk4rgej5xdcha
'@typescript-eslint/utils': 5.25.0_4x5o4skxv6sl53vpwefgt23khm
debug: 4.3.4
eslint: 8.17.0
eslint: 8.19.0
tsutils: 3.21.0_typescript@4.7.4
typescript: 4.7.4
transitivePeerDependencies:
@@ -2050,8 +2066,8 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
/@typescript-eslint/types/5.28.0:
resolution: {integrity: sha512-2OOm8ZTOQxqkPbf+DAo8oc16sDlVR5owgJfKheBkxBKg1vAfw2JsSofH9+16VPlN9PWtv8Wzhklkqw3k/zCVxA==}
/@typescript-eslint/types/5.30.5:
resolution: {integrity: sha512-kZ80w/M2AvsbRvOr3PjaNh6qEW1LFqs2pLdo2s5R38B2HYXG8Z0PP48/4+j1QHJFL3ssHIbJ4odPRS8PlHrFfw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
@@ -2076,8 +2092,8 @@ packages:
- supports-color
dev: true
/@typescript-eslint/typescript-estree/5.28.0_typescript@4.7.4:
resolution: {integrity: sha512-9GX+GfpV+F4hdTtYc6OV9ZkyYilGXPmQpm6AThInpBmKJEyRSIjORJd1G9+bknb7OTFYL+Vd4FBJAO6T78OVqA==}
/@typescript-eslint/typescript-estree/5.30.5_typescript@4.7.4:
resolution: {integrity: sha512-qGTc7QZC801kbYjAr4AgdOfnokpwStqyhSbiQvqGBLixniAKyH+ib2qXIVo4P9NgGzwyfD9I0nlJN7D91E1VpQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
typescript: '*'
@@ -2085,8 +2101,8 @@ packages:
typescript:
optional: true
dependencies:
'@typescript-eslint/types': 5.28.0
'@typescript-eslint/visitor-keys': 5.28.0
'@typescript-eslint/types': 5.30.5
'@typescript-eslint/visitor-keys': 5.30.5
debug: 4.3.4
globby: 11.1.0
is-glob: 4.0.3
@@ -2097,7 +2113,7 @@ packages:
- supports-color
dev: true
/@typescript-eslint/utils/5.25.0_n4lrrl552kqf5nk4rgej5xdcha:
/@typescript-eslint/utils/5.25.0_4x5o4skxv6sl53vpwefgt23khm:
resolution: {integrity: sha512-qNC9bhnz/n9Kba3yI6HQgQdBLuxDoMgdjzdhSInZh6NaDnFpTUlwNGxplUFWfY260Ya0TRPvkg9dd57qxrJI9g==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@@ -2107,9 +2123,9 @@ packages:
'@typescript-eslint/scope-manager': 5.25.0
'@typescript-eslint/types': 5.25.0
'@typescript-eslint/typescript-estree': 5.25.0_typescript@4.7.4
eslint: 8.17.0
eslint: 8.19.0
eslint-scope: 5.1.1
eslint-utils: 3.0.0_eslint@8.17.0
eslint-utils: 3.0.0_eslint@8.19.0
transitivePeerDependencies:
- supports-color
- typescript
@@ -2123,11 +2139,11 @@ packages:
eslint-visitor-keys: 3.3.0
dev: true
/@typescript-eslint/visitor-keys/5.28.0:
resolution: {integrity: sha512-BtfP1vCor8cWacovzzPFOoeW4kBQxzmhxGoOpt0v1SFvG+nJ0cWaVdJk7cky1ArTcFHHKNIxyo2LLr3oNkSuXA==}
/@typescript-eslint/visitor-keys/5.30.5:
resolution: {integrity: sha512-D+xtGo9HUMELzWIUqcQc0p2PO4NyvTrgIOK/VnSH083+8sq0tiLozNRKuLarwHYGRuA6TVBQSuuLwJUDWd3aaA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dependencies:
'@typescript-eslint/types': 5.28.0
'@typescript-eslint/types': 5.30.5
eslint-visitor-keys: 3.3.0
dev: true
@@ -2630,7 +2646,7 @@ packages:
engines: {node: ^12.13.0 || ^14.15.0 || ^16.10.0 || >=17.0.0}
dependencies:
'@babel/template': 7.18.6
'@babel/types': 7.18.6
'@babel/types': 7.18.7
'@types/babel__core': 7.1.19
'@types/babel__traverse': 7.17.1
dev: true
@@ -2753,6 +2769,12 @@ packages:
dependencies:
buffer: 5.7.1
/bson/4.6.4:
resolution: {integrity: sha512-TdQ3FzguAu5HKPPlr0kYQCyrYUYh8tFM+CMTpxjNzVzxeiJY00Rtuj3LXLHSgiGvmaWlZ8PE+4KyM2thqE38pQ==}
engines: {node: '>=6.9.0'}
dependencies:
buffer: 5.7.1
/buffer-crc32/0.2.13:
resolution: {integrity: sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ==}
dev: false
@@ -3609,25 +3631,25 @@ packages:
engines: {node: '>=10'}
dev: true
/eslint-config-prettier/8.5.0_eslint@8.17.0:
/eslint-config-prettier/8.5.0_eslint@8.19.0:
resolution: {integrity: sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==}
hasBin: true
peerDependencies:
eslint: '>=7.0.0'
dependencies:
eslint: 8.17.0
eslint: 8.19.0
dev: true
/eslint-import-resolver-node/0.3.6:
resolution: {integrity: sha512-0En0w03NRVMn9Uiyn8YRPDKvWjxCWkslUEhGNTdGx15RvPJYQ+lbOlqrlNI2vEAs4pDYK4f/HN2TbDmk5TP0iw==}
dependencies:
debug: 3.2.7
resolve: 1.22.0
resolve: 1.22.1
transitivePeerDependencies:
- supports-color
dev: true
/eslint-module-utils/2.7.3_cfsupm63rr3qvqifljk6nmy67u:
/eslint-module-utils/2.7.3_ea34krk32wbcqzxapvwr7rsjs4:
resolution: {integrity: sha512-088JEC7O3lDZM9xGe0RerkOMd0EjFl+Yvd1jPWIkMT5u3H9+HC34mWWPnqPrN13gieT9pBOO+Qt07Nb/6TresQ==}
engines: {node: '>=4'}
peerDependencies:
@@ -3645,7 +3667,7 @@ packages:
eslint-import-resolver-webpack:
optional: true
dependencies:
'@typescript-eslint/parser': 5.28.0_n4lrrl552kqf5nk4rgej5xdcha
'@typescript-eslint/parser': 5.30.5_4x5o4skxv6sl53vpwefgt23khm
debug: 3.2.7
eslint-import-resolver-node: 0.3.6
find-up: 2.1.0
@@ -3653,7 +3675,7 @@ packages:
- supports-color
dev: true
/eslint-plugin-import/2.26.0_wyrfqmvemfacbroyi3ypviy7f4:
/eslint-plugin-import/2.26.0_iom7pm3yknyiblqpw2vvqvxs5i:
resolution: {integrity: sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA==}
engines: {node: '>=4'}
peerDependencies:
@@ -3663,20 +3685,20 @@ packages:
'@typescript-eslint/parser':
optional: true
dependencies:
'@typescript-eslint/parser': 5.28.0_n4lrrl552kqf5nk4rgej5xdcha
'@typescript-eslint/parser': 5.30.5_4x5o4skxv6sl53vpwefgt23khm
array-includes: 3.1.5
array.prototype.flat: 1.3.0
debug: 2.6.9
doctrine: 2.1.0
eslint: 8.17.0
eslint: 8.19.0
eslint-import-resolver-node: 0.3.6
eslint-module-utils: 2.7.3_cfsupm63rr3qvqifljk6nmy67u
eslint-module-utils: 2.7.3_ea34krk32wbcqzxapvwr7rsjs4
has: 1.0.3
is-core-module: 2.9.0
is-glob: 4.0.3
minimatch: 3.1.2
object.values: 1.1.5
resolve: 1.22.0
resolve: 1.22.1
tsconfig-paths: 3.14.1
transitivePeerDependencies:
- eslint-import-resolver-typescript
@@ -3684,7 +3706,7 @@ packages:
- supports-color
dev: true
/eslint-plugin-unused-imports/2.0.0_eslint@8.17.0:
/eslint-plugin-unused-imports/2.0.0_7i5u5rcwlpnuahgi5pedbxjlpm:
resolution: {integrity: sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@@ -3694,11 +3716,12 @@ packages:
'@typescript-eslint/eslint-plugin':
optional: true
dependencies:
eslint: 8.17.0
'@typescript-eslint/eslint-plugin': 5.25.0_6zdoc3rn4mpiddqwhppni2mnnm
eslint: 8.19.0
eslint-rule-composer: 0.3.0
dev: true
/eslint-plugin-unused-imports/2.0.0_jgbfxkfn5ewzh3muaqzta2u2cm:
/eslint-plugin-unused-imports/2.0.0_eslint@8.19.0:
resolution: {integrity: sha512-3APeS/tQlTrFa167ThtP0Zm0vctjr4M44HMpeg1P4bK6wItarumq0Ma82xorMKdFsWpphQBlRPzw/pxiVELX1A==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
peerDependencies:
@@ -3708,8 +3731,7 @@ packages:
'@typescript-eslint/eslint-plugin':
optional: true
dependencies:
'@typescript-eslint/eslint-plugin': 5.25.0_bwdgjzdjqqu6lnspjrilve2nye
eslint: 8.17.0
eslint: 8.19.0
eslint-rule-composer: 0.3.0
dev: true
@@ -3734,13 +3756,13 @@ packages:
estraverse: 5.3.0
dev: true
/eslint-utils/3.0.0_eslint@8.17.0:
/eslint-utils/3.0.0_eslint@8.19.0:
resolution: {integrity: sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==}
engines: {node: ^10.0.0 || ^12.0.0 || >= 14.0.0}
peerDependencies:
eslint: '>=5'
dependencies:
eslint: 8.17.0
eslint: 8.19.0
eslint-visitor-keys: 2.1.0
dev: true
@@ -3754,8 +3776,8 @@ packages:
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
dev: true
/eslint/8.17.0:
resolution: {integrity: sha512-gq0m0BTJfci60Fz4nczYxNAlED+sMcihltndR8t9t1evnU/azx53x3t2UHXC/uRjcbvRw/XctpaNygSTcQD+Iw==}
/eslint/8.19.0:
resolution: {integrity: sha512-SXOPj3x9VKvPe81TjjUJCYlV4oJjQw68Uek+AM0X4p+33dj2HY5bpTZOgnQHcG2eAm1mtCU9uNMnJi7exU/kYw==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
hasBin: true
dependencies:
@@ -3768,7 +3790,7 @@ packages:
doctrine: 3.0.0
escape-string-regexp: 4.0.0
eslint-scope: 7.1.1
eslint-utils: 3.0.0_eslint@8.17.0
eslint-utils: 3.0.0_eslint@8.19.0
eslint-visitor-keys: 3.3.0
espree: 9.3.2
esquery: 1.4.0
@@ -3777,7 +3799,7 @@ packages:
file-entry-cache: 6.0.1
functional-red-black-tree: 1.0.1
glob-parent: 6.0.2
globals: 13.15.0
globals: 13.16.0
ignore: 5.2.0
import-fresh: 3.3.0
imurmurhash: 0.1.4
@@ -4119,7 +4141,7 @@ packages:
resolution: {integrity: sha512-dm9s5Pw7Jc0GvMYbshN6zchCA9RgQlzzEZX3vylR9IqFfS8XciblUXOKfW6SiuJ0e13eDYZoZV5wdrev7P3Nwg==}
engines: {node: ^10.12.0 || >=12.0.0}
dependencies:
flatted: 3.2.5
flatted: 3.2.6
rimraf: 3.0.2
dev: true
@@ -4127,8 +4149,8 @@ packages:
resolution: {integrity: sha512-4zPxDyhCyiN2wIAtSLI6gc82/EjqZc1onI4Mz/l0pWrAlsSfYH/2ZIcU+e3oA2wDwbzIWNKwa23F8rh6+DRWkw==}
dev: false
/flatted/3.2.5:
resolution: {integrity: sha512-WIWGi2L3DyTUvUrwRKgGi9TwxQMUEqPOPQBVi71R96jZXJdFskXEmf54BoZaS1kknGODoIGASGEzBUYdyMCBJg==}
/flatted/3.2.6:
resolution: {integrity: sha512-0sQoMh9s0BYsm+12Huy/rkKxVu4R1+r96YX5cG44rHV0pQ6iC3Q+mkoMFaGWObMFYQxCVT+ssG1ksneA2MI9KQ==}
dev: true
/follow-redirects/1.15.0:
@@ -4399,8 +4421,8 @@ packages:
resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
engines: {node: '>=4'}
/globals/13.15.0:
resolution: {integrity: sha512-bpzcOlgDhMG070Av0Vy5Owklpv1I6+j96GhUI7Rh7IzDCKLzboflLrrfqMu8NquDbiR4EOQk7XzJwqVJxicxog==}
/globals/13.16.0:
resolution: {integrity: sha512-A1lrQfpNF+McdPOnnFqY3kSN0AFTy485bTi1bkLk4mVPODIUEcSfhHgRqA+QdXPksrSTTztYXx37NFV+GpGk3Q==}
engines: {node: '>=8'}
dependencies:
type-fest: 0.20.2
@@ -5326,7 +5348,7 @@ packages:
'@babel/generator': 7.18.6
'@babel/plugin-syntax-typescript': 7.18.6_@babel+core@7.18.6
'@babel/traverse': 7.18.6
'@babel/types': 7.18.6
'@babel/types': 7.18.7
'@jest/expect-utils': 28.1.1
'@jest/transform': 28.1.2
'@jest/types': 28.1.1
@@ -5565,8 +5587,8 @@ packages:
safe-buffer: 5.2.1
dev: false
/kareem/2.3.5:
resolution: {integrity: sha512-qxCyQtp3ioawkiRNQr/v8xw9KIviMSSNmy+63Wubj7KmMn3g7noRXIZB4vPCAP+ETi2SR8eH6CvmlKZuGpoHOg==}
/kareem/2.4.1:
resolution: {integrity: sha512-aJ9opVoXroQUPfovYP5kaj2lM7Jn02Gw13bL0lg9v0V7SaUc0qavPs0Eue7d2DcC3NjqI6QAUElXNsuZSeM+EA==}
/kleur/3.0.3:
resolution: {integrity: sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==}
@@ -6046,17 +6068,6 @@ packages:
dev: false
optional: true
/mongodb/4.5.0:
resolution: {integrity: sha512-A2l8MjEpKojnhbCM0MK3+UOGUSGvTNNSv7AkP1fsT7tkambrkkqN/5F2y+PhzsV0Nbv58u04TETpkaSEdI2zKA==}
engines: {node: '>=12.9.0'}
dependencies:
bson: 4.6.3
denque: 2.0.1
mongodb-connection-string-url: 2.5.2
socks: 2.6.2
optionalDependencies:
saslprep: 1.0.3
/mongodb/4.7.0:
resolution: {integrity: sha512-HhVar6hsUeMAVlIbwQwWtV36iyjKd9qdhY+s4wcU8K6TOj4Q331iiMy+FoPuxEntDIijTYWivwFJkLv8q/ZgvA==}
engines: {node: '>=12.9.0'}
@@ -6067,39 +6078,37 @@ packages:
socks: 2.6.2
optionalDependencies:
saslprep: 1.0.3
dev: false
optional: true
/mongoose-aggregate-paginate-v2/1.0.6:
resolution: {integrity: sha512-UuALu+mjhQa1K9lMQvjLL3vm3iALvNw8PQNIh2gp1b+tO5hUa0NC0Wf6/8QrT9PSJVTihXaD8hQVy3J4e0jO0Q==}
engines: {node: '>=4.0.0'}
dev: false
/mongoose-lean-getters/0.3.4_mongoose@6.3.9:
/mongoose-lean-getters/0.3.4_mongoose@6.4.2:
resolution: {integrity: sha512-Tf6onZC4/CzgYf5FNbaKlAUw995G7XJBRpyZsdoqJqKCKy+MjV4DbESZ3Y8iSuRHVF4k4/fcpSoyrS3lcKH1aw==}
engines: {node: '>= 8'}
peerDependencies:
mongoose: '>= 5.11.0 | 6.x'
dependencies:
mongoose: 6.3.9
mongoose: 6.4.2
mpath: 0.8.4
dev: false
/mongoose-lean-id/0.3.0_mongoose@6.3.9:
/mongoose-lean-id/0.3.0_mongoose@6.4.2:
resolution: {integrity: sha512-/eONPzg+tA7/VR4uv0uKxKwH4OCseZShqwbMW572QvlSU0g48zDFTiDuCjZmNykfZgK3ZOwjfLVbXBAAAbXI4Q==}
peerDependencies:
mongoose: 4.x || 5.x || 6.x
dependencies:
mongoose: 6.3.9
mongoose: 6.4.2
dev: false
/mongoose-lean-virtuals/0.9.1_mongoose@6.3.9:
/mongoose-lean-virtuals/0.9.1_mongoose@6.4.2:
resolution: {integrity: sha512-jx4rhXuaQPam/lwef3z/FfYHlKdbFkDr9Qb7JEMeoa7y4pOuyJ83RkcNL25HRaoi4Bt71zKmV1cuJdv243t9aA==}
peerDependencies:
mongoose: '>=5.11.10'
dependencies:
array.prototype.flat: 1.2.3
mongoose: 6.3.9
mongoose: 6.4.2
mpath: 0.8.4
dev: false
@@ -6108,13 +6117,13 @@ packages:
engines: {node: '>=4.0.0'}
dev: false
/mongoose/6.3.9:
resolution: {integrity: sha512-pCvgKr/t9MHTz7w29uCX2g2gQ3iM/8jh8ZdIBawms/E4wv7SCjRnR3o08zZTNT/nORsZSK14P7F4KBVkdbecxA==}
/mongoose/6.4.2:
resolution: {integrity: sha512-VRotms+XC42vPlS3Tr2GTg0qkppHzWob62sUjdC22ir8aqWVrbCsHjEuMsL6zZlKSIj8zNBODm9hRV+RHRiLRQ==}
engines: {node: '>=12.0.0'}
dependencies:
bson: 4.6.3
kareem: 2.3.5
mongodb: 4.5.0
bson: 4.6.4
kareem: 2.4.1
mongodb: 4.7.0
mpath: 0.9.0
mquery: 4.0.3
ms: 2.1.3
@@ -6908,6 +6917,15 @@ packages:
supports-preserve-symlinks-flag: 1.0.0
dev: true
/resolve/1.22.1:
resolution: {integrity: sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==}
hasBin: true
dependencies:
is-core-module: 2.9.0
path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0
dev: true
/restore-cursor/3.1.0:
resolution: {integrity: sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==}
engines: {node: '>=8'}

View File

@@ -98,7 +98,11 @@ export class PostService {
scope: EventScope.TO_VISITOR,
},
),
this.imageService.recordImageDimensions(this.postModel, res._id),
this.imageService.recordImageDimensions(
this.postModel as MongooseModel<PostModel>,
res._id,
),
])
})
@@ -150,7 +154,10 @@ export class PostService {
scope: EventScope.TO_SYSTEM,
}),
data.text &&
this.imageService.recordImageDimensions(this.postModel, id),
this.imageService.recordImageDimensions(
this.postModel as MongooseModel<PostModel>,
id,
),
doc &&
this.eventManager.broadcast(
BusinessEvents.POST_UPDATE,