Commit 39a13350 by hometown

feat: axios time out

parent 9b76c374
{ {
// Visuals // Visuals
"workbench.colorTheme": "Vitesse Light", "workbench.colorTheme": "Vitesse Dark",
"workbench.editor.tabCloseButton": "left", "workbench.editor.tabCloseButton": "left",
"workbench.fontAliasing": "antialiased", "workbench.fontAliasing": "antialiased",
"workbench.iconTheme": "file-icons", "workbench.iconTheme": "file-icons",
......
FROM node:latest
# 设置时区
ENV TZ=Asia/Shanghai \
DEBIAN_FRONTEND=noninteractive
RUN ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime && echo ${TZ} > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /app
WORKDIR /app
COPY package.json pnpm-lock.yaml /app/
RUN npm install -g pnpm
RUN pnpm install
COPY . /app/
EXPOSE 3000
CMD ["pnpm", "start:prod"]
version: "3.0"
services:
app:
build: # 根据Dockerfile构建镜像
context: .
dockerfile: Dockerfile
ports:
- 3333:3333
...@@ -65,6 +65,8 @@ ...@@ -65,6 +65,8 @@
"@types/supertest": "^2.0.10", "@types/supertest": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^4.9.1", "@typescript-eslint/eslint-plugin": "^4.9.1",
"@typescript-eslint/parser": "^4.9.1", "@typescript-eslint/parser": "^4.9.1",
"axios-retry": "^4.0.0",
"body-parser": "^1.20.2",
"eslint": "^7.15.0", "eslint": "^7.15.0",
"eslint-config-prettier": "^7.0.0", "eslint-config-prettier": "^7.0.0",
"eslint-plugin-import": "^2.22.1", "eslint-plugin-import": "^2.22.1",
...@@ -75,7 +77,7 @@ ...@@ -75,7 +77,7 @@
"ts-loader": "^8.0.11", "ts-loader": "^8.0.11",
"ts-node": "^9.1.1", "ts-node": "^9.1.1",
"tsconfig-paths": "^3.9.0", "tsconfig-paths": "^3.9.0",
"typescript": "^4.1.2" "typescript": "^5.3.3"
}, },
"jest": { "jest": {
"moduleFileExtensions": [ "moduleFileExtensions": [
......
...@@ -105,7 +105,7 @@ devDependencies: ...@@ -105,7 +105,7 @@ devDependencies:
version: 7.6.0(eslint@7.32.0) version: 7.6.0(eslint@7.32.0)
'@nestjs/schematics': '@nestjs/schematics':
specifier: ^7.2.5 specifier: ^7.2.5
version: 7.3.1(typescript@4.9.5) version: 7.3.1(typescript@5.3.3)
'@nestjs/testing': '@nestjs/testing':
specifier: ^7.5.5 specifier: ^7.5.5
version: 7.6.18(@nestjs/common@7.6.18)(@nestjs/core@7.6.18)(@nestjs/platform-express@7.6.18) version: 7.6.18(@nestjs/common@7.6.18)(@nestjs/core@7.6.18)(@nestjs/platform-express@7.6.18)
...@@ -129,10 +129,16 @@ devDependencies: ...@@ -129,10 +129,16 @@ devDependencies:
version: 2.0.16 version: 2.0.16
'@typescript-eslint/eslint-plugin': '@typescript-eslint/eslint-plugin':
specifier: ^4.9.1 specifier: ^4.9.1
version: 4.33.0(@typescript-eslint/parser@4.33.0)(eslint@7.32.0)(typescript@4.9.5) version: 4.33.0(@typescript-eslint/parser@4.33.0)(eslint@7.32.0)(typescript@5.3.3)
'@typescript-eslint/parser': '@typescript-eslint/parser':
specifier: ^4.9.1 specifier: ^4.9.1
version: 4.33.0(eslint@7.32.0)(typescript@4.9.5) version: 4.33.0(eslint@7.32.0)(typescript@5.3.3)
axios-retry:
specifier: ^4.0.0
version: 4.0.0(axios@1.6.2)
body-parser:
specifier: ^1.20.2
version: 1.20.2
eslint: eslint:
specifier: ^7.15.0 specifier: ^7.15.0
version: 7.32.0 version: 7.32.0
...@@ -153,19 +159,19 @@ devDependencies: ...@@ -153,19 +159,19 @@ devDependencies:
version: 6.3.3 version: 6.3.3
ts-jest: ts-jest:
specifier: 26.4.4 specifier: 26.4.4
version: 26.4.4(jest@26.6.3)(typescript@4.9.5) version: 26.4.4(jest@26.6.3)(typescript@5.3.3)
ts-loader: ts-loader:
specifier: ^8.0.11 specifier: ^8.0.11
version: 8.4.0(typescript@4.9.5)(webpack@5.89.0) version: 8.4.0(typescript@5.3.3)(webpack@5.89.0)
ts-node: ts-node:
specifier: ^9.1.1 specifier: ^9.1.1
version: 9.1.1(typescript@4.9.5) version: 9.1.1(typescript@5.3.3)
tsconfig-paths: tsconfig-paths:
specifier: ^3.9.0 specifier: ^3.9.0
version: 3.15.0 version: 3.15.0
typescript: typescript:
specifier: ^4.1.2 specifier: ^5.3.3
version: 4.9.5 version: 5.3.3
packages: packages:
...@@ -756,7 +762,7 @@ packages: ...@@ -756,7 +762,7 @@ packages:
engines: {node: '>=6.0.0'} engines: {node: '>=6.0.0'}
hasBin: true hasBin: true
dependencies: dependencies:
'@babel/types': 7.23.6 '@babel/types': 7.12.13
dev: false dev: false
/@babel/parser@7.23.6: /@babel/parser@7.23.6:
...@@ -1163,8 +1169,8 @@ packages: ...@@ -1163,8 +1169,8 @@ packages:
'@babel/generator': 7.23.6 '@babel/generator': 7.23.6
'@babel/helper-function-name': 7.23.0 '@babel/helper-function-name': 7.23.0
'@babel/helper-split-export-declaration': 7.22.6 '@babel/helper-split-export-declaration': 7.22.6
'@babel/parser': 7.23.6 '@babel/parser': 7.12.16
'@babel/types': 7.23.6 '@babel/types': 7.12.13
debug: 4.3.4 debug: 4.3.4
globals: 11.12.0 globals: 11.12.0
lodash: 4.17.21 lodash: 4.17.21
...@@ -2157,7 +2163,7 @@ packages: ...@@ -2157,7 +2163,7 @@ packages:
typescript: 4.2.3 typescript: 4.2.3
dev: true dev: true
/@nestjs/schematics@7.3.1(typescript@4.9.5): /@nestjs/schematics@7.3.1(typescript@5.3.3):
resolution: {integrity: sha512-eyBjJstAjecpdzRuBLiqnwomwXIAEV3+kPkpaphOieRUM6nBhjnXCCl3Qf8Dul2QUQK4NOVPd8FFxWtGP5XNlg==} resolution: {integrity: sha512-eyBjJstAjecpdzRuBLiqnwomwXIAEV3+kPkpaphOieRUM6nBhjnXCCl3Qf8Dul2QUQK4NOVPd8FFxWtGP5XNlg==}
peerDependencies: peerDependencies:
typescript: ^3.4.5 || ^4.0.0 typescript: ^3.4.5 || ^4.0.0
...@@ -2167,7 +2173,7 @@ packages: ...@@ -2167,7 +2173,7 @@ packages:
fs-extra: 9.1.0 fs-extra: 9.1.0
jsonc-parser: 3.0.0 jsonc-parser: 3.0.0
pluralize: 8.0.0 pluralize: 8.0.0
typescript: 4.9.5 typescript: 5.3.3
dev: true dev: true
/@nestjs/swagger@4.8.2(@nestjs/common@7.6.18)(@nestjs/core@7.6.18)(class-transformer@0.5.1)(class-validator@0.14.0)(reflect-metadata@0.1.14)(swagger-ui-express@4.6.3): /@nestjs/swagger@4.8.2(@nestjs/common@7.6.18)(@nestjs/core@7.6.18)(class-transformer@0.5.1)(class-validator@0.14.0)(reflect-metadata@0.1.14)(swagger-ui-express@4.6.3):
...@@ -2249,7 +2255,7 @@ packages: ...@@ -2249,7 +2255,7 @@ packages:
engines: {node: '>= 8'} engines: {node: '>= 8'}
dependencies: dependencies:
'@nodelib/fs.scandir': 2.1.5 '@nodelib/fs.scandir': 2.1.5
fastq: 1.15.0 fastq: 1.16.0
/@npmcli/fs@1.1.1: /@npmcli/fs@1.1.1:
resolution: {integrity: sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==} resolution: {integrity: sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==}
...@@ -2358,7 +2364,7 @@ packages: ...@@ -2358,7 +2364,7 @@ packages:
resolution: {integrity: sha512-rKN/VtZUUlW4M+6vjLFSaFc1Z9sK+1hh0832ucPtPkXqOw/mSWE80Lau4z2zTPNTqtxAjfZbvKpQcEwJy0KIEg==} resolution: {integrity: sha512-rKN/VtZUUlW4M+6vjLFSaFc1Z9sK+1hh0832ucPtPkXqOw/mSWE80Lau4z2zTPNTqtxAjfZbvKpQcEwJy0KIEg==}
requiresBuild: true requiresBuild: true
dependencies: dependencies:
fast-glob: 3.3.2 fast-glob: 3.2.5
minimatch: 3.1.2 minimatch: 3.1.2
mkdirp: 1.0.4 mkdirp: 1.0.4
path-browserify: 1.0.1 path-browserify: 1.0.1
...@@ -2443,13 +2449,13 @@ packages: ...@@ -2443,13 +2449,13 @@ packages:
resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==} resolution: {integrity: sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg==}
dependencies: dependencies:
'@types/eslint': 8.44.9 '@types/eslint': 8.44.9
'@types/estree': 1.0.5 '@types/estree': 0.0.46
dev: true dev: true
/@types/eslint@8.44.9: /@types/eslint@8.44.9:
resolution: {integrity: sha512-6yBxcvwnnYoYT1Uk2d+jvIfsuP4mb2EdIxFnrPABj5a/838qe5bGkNLFOiipX4ULQ7XVQvTxOh7jO+BTAiqsEw==} resolution: {integrity: sha512-6yBxcvwnnYoYT1Uk2d+jvIfsuP4mb2EdIxFnrPABj5a/838qe5bGkNLFOiipX4ULQ7XVQvTxOh7jO+BTAiqsEw==}
dependencies: dependencies:
'@types/estree': 1.0.5 '@types/estree': 0.0.46
'@types/json-schema': 7.0.15 '@types/json-schema': 7.0.15
dev: true dev: true
...@@ -2698,7 +2704,7 @@ packages: ...@@ -2698,7 +2704,7 @@ packages:
requiresBuild: true requiresBuild: true
dev: false dev: false
/@typescript-eslint/eslint-plugin@4.33.0(@typescript-eslint/parser@4.33.0)(eslint@7.32.0)(typescript@4.9.5): /@typescript-eslint/eslint-plugin@4.33.0(@typescript-eslint/parser@4.33.0)(eslint@7.32.0)(typescript@5.3.3):
resolution: {integrity: sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg==} resolution: {integrity: sha512-aINiAxGVdOl1eJyVjaWn/YcVAq4Gi/Yo35qHGCnqbWVz61g39D0h23veY/MA0rFFGfxK7TySg2uwDeNv+JgVpg==}
engines: {node: ^10.12.0 || >=12.0.0} engines: {node: ^10.12.0 || >=12.0.0}
peerDependencies: peerDependencies:
...@@ -2709,8 +2715,8 @@ packages: ...@@ -2709,8 +2715,8 @@ packages:
typescript: typescript:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/experimental-utils': 4.33.0(eslint@7.32.0)(typescript@4.9.5) '@typescript-eslint/experimental-utils': 4.33.0(eslint@7.32.0)(typescript@5.3.3)
'@typescript-eslint/parser': 4.33.0(eslint@7.32.0)(typescript@4.9.5) '@typescript-eslint/parser': 4.33.0(eslint@7.32.0)(typescript@5.3.3)
'@typescript-eslint/scope-manager': 4.33.0 '@typescript-eslint/scope-manager': 4.33.0
debug: 4.3.4 debug: 4.3.4
eslint: 7.32.0 eslint: 7.32.0
...@@ -2718,13 +2724,13 @@ packages: ...@@ -2718,13 +2724,13 @@ packages:
ignore: 5.3.0 ignore: 5.3.0
regexpp: 3.2.0 regexpp: 3.2.0
semver: 7.5.4 semver: 7.5.4
tsutils: 3.21.0(typescript@4.9.5) tsutils: 3.21.0(typescript@5.3.3)
typescript: 4.9.5 typescript: 5.3.3
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
/@typescript-eslint/experimental-utils@4.33.0(eslint@7.32.0)(typescript@4.9.5): /@typescript-eslint/experimental-utils@4.33.0(eslint@7.32.0)(typescript@5.3.3):
resolution: {integrity: sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q==} resolution: {integrity: sha512-zeQjOoES5JFjTnAhI5QY7ZviczMzDptls15GFsI6jyUOq0kOf9+WonkhtlIhh0RgHRnqj5gdNxW5j1EvAyYg6Q==}
engines: {node: ^10.12.0 || >=12.0.0} engines: {node: ^10.12.0 || >=12.0.0}
peerDependencies: peerDependencies:
...@@ -2733,7 +2739,7 @@ packages: ...@@ -2733,7 +2739,7 @@ packages:
'@types/json-schema': 7.0.15 '@types/json-schema': 7.0.15
'@typescript-eslint/scope-manager': 4.33.0 '@typescript-eslint/scope-manager': 4.33.0
'@typescript-eslint/types': 4.33.0 '@typescript-eslint/types': 4.33.0
'@typescript-eslint/typescript-estree': 4.33.0(typescript@4.9.5) '@typescript-eslint/typescript-estree': 4.33.0(typescript@5.3.3)
eslint: 7.32.0 eslint: 7.32.0
eslint-scope: 5.1.1 eslint-scope: 5.1.1
eslint-utils: 3.0.0(eslint@7.32.0) eslint-utils: 3.0.0(eslint@7.32.0)
...@@ -2742,7 +2748,7 @@ packages: ...@@ -2742,7 +2748,7 @@ packages:
- typescript - typescript
dev: true dev: true
/@typescript-eslint/parser@4.33.0(eslint@7.32.0)(typescript@4.9.5): /@typescript-eslint/parser@4.33.0(eslint@7.32.0)(typescript@5.3.3):
resolution: {integrity: sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA==} resolution: {integrity: sha512-ZohdsbXadjGBSK0/r+d87X0SBmKzOq4/S5nzK6SBgJspFo9/CUDJ7hjayuze+JK7CZQLDMroqytp7pOcFKTxZA==}
engines: {node: ^10.12.0 || >=12.0.0} engines: {node: ^10.12.0 || >=12.0.0}
peerDependencies: peerDependencies:
...@@ -2754,10 +2760,10 @@ packages: ...@@ -2754,10 +2760,10 @@ packages:
dependencies: dependencies:
'@typescript-eslint/scope-manager': 4.33.0 '@typescript-eslint/scope-manager': 4.33.0
'@typescript-eslint/types': 4.33.0 '@typescript-eslint/types': 4.33.0
'@typescript-eslint/typescript-estree': 4.33.0(typescript@4.9.5) '@typescript-eslint/typescript-estree': 4.33.0(typescript@5.3.3)
debug: 4.3.4 debug: 4.3.4
eslint: 7.32.0 eslint: 7.32.0
typescript: 4.9.5 typescript: 5.3.3
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
...@@ -2775,7 +2781,7 @@ packages: ...@@ -2775,7 +2781,7 @@ packages:
engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1} engines: {node: ^8.10.0 || ^10.13.0 || >=11.10.1}
dev: true dev: true
/@typescript-eslint/typescript-estree@4.33.0(typescript@4.9.5): /@typescript-eslint/typescript-estree@4.33.0(typescript@5.3.3):
resolution: {integrity: sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA==} resolution: {integrity: sha512-rkWRY1MPFzjwnEVHsxGemDzqqddw2QbTJlICPD9p9I9LfsO8fdmfQPOX3uKfUaGRDFJbfrtm/sXhVXN4E+bzCA==}
engines: {node: ^10.12.0 || >=12.0.0} engines: {node: ^10.12.0 || >=12.0.0}
peerDependencies: peerDependencies:
...@@ -2790,8 +2796,8 @@ packages: ...@@ -2790,8 +2796,8 @@ packages:
globby: 11.1.0 globby: 11.1.0
is-glob: 4.0.3 is-glob: 4.0.3
semver: 7.5.4 semver: 7.5.4
tsutils: 3.21.0(typescript@4.9.5) tsutils: 3.21.0(typescript@5.3.3)
typescript: 4.9.5 typescript: 5.3.3
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: true dev: true
...@@ -3772,6 +3778,15 @@ packages: ...@@ -3772,6 +3778,15 @@ packages:
resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==} resolution: {integrity: sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
/axios-retry@4.0.0(axios@1.6.2):
resolution: {integrity: sha512-F6P4HVGITD/v4z9Lw2mIA24IabTajvpDZmKa6zq/gGwn57wN5j1P3uWrAV0+diqnW6kTM2fTqmWNfgYWGmMuiA==}
peerDependencies:
axios: 0.x || 1.x
dependencies:
axios: 1.6.2
is-retry-allowed: 2.2.0
dev: true
/axios@0.21.1: /axios@0.21.1:
resolution: {integrity: sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==} resolution: {integrity: sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==}
dependencies: dependencies:
...@@ -3787,7 +3802,6 @@ packages: ...@@ -3787,7 +3802,6 @@ packages:
proxy-from-env: 1.1.0 proxy-from-env: 1.1.0
transitivePeerDependencies: transitivePeerDependencies:
- debug - debug
dev: false
/babel-jest@26.6.3(@babel/core@7.23.6): /babel-jest@26.6.3(@babel/core@7.23.6):
resolution: {integrity: sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==} resolution: {integrity: sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==}
...@@ -4018,7 +4032,6 @@ packages: ...@@ -4018,7 +4032,6 @@ packages:
unpipe: 1.0.0 unpipe: 1.0.0
transitivePeerDependencies: transitivePeerDependencies:
- supports-color - supports-color
dev: false
/brace-expansion@1.1.11: /brace-expansion@1.1.11:
resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==} resolution: {integrity: sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==}
...@@ -4060,7 +4073,7 @@ packages: ...@@ -4060,7 +4073,7 @@ packages:
hasBin: true hasBin: true
dependencies: dependencies:
caniuse-lite: 1.0.30001570 caniuse-lite: 1.0.30001570
electron-to-chromium: 1.4.614 electron-to-chromium: 1.4.615
node-releases: 2.0.14 node-releases: 2.0.14
update-browserslist-db: 1.0.13(browserslist@4.22.2) update-browserslist-db: 1.0.13(browserslist@4.22.2)
...@@ -4117,7 +4130,6 @@ packages: ...@@ -4117,7 +4130,6 @@ packages:
/bytes@3.1.2: /bytes@3.1.2:
resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==} resolution: {integrity: sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==}
engines: {node: '>= 0.8'} engines: {node: '>= 0.8'}
dev: false
/cacache@15.3.0: /cacache@15.3.0:
resolution: {integrity: sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==} resolution: {integrity: sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==}
...@@ -4178,7 +4190,7 @@ packages: ...@@ -4178,7 +4190,7 @@ packages:
resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==} resolution: {integrity: sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==}
dependencies: dependencies:
pascal-case: 3.1.2 pascal-case: 3.1.2
tslib: 2.6.2 tslib: 2.3.0
dev: false dev: false
/camelcase@5.3.1: /camelcase@5.3.1:
...@@ -4262,21 +4274,6 @@ packages: ...@@ -4262,21 +4274,6 @@ packages:
fsevents: 2.3.3 fsevents: 2.3.3
dev: false dev: false
/chokidar@3.5.3:
resolution: {integrity: sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==}
engines: {node: '>= 8.10.0'}
dependencies:
anymatch: 3.1.3
braces: 3.0.2
glob-parent: 5.1.2
is-binary-path: 2.1.0
is-glob: 4.0.3
normalize-path: 3.0.0
readdirp: 3.6.0
optionalDependencies:
fsevents: 2.3.3
dev: true
/chownr@2.0.0: /chownr@2.0.0:
resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==} resolution: {integrity: sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==}
engines: {node: '>=10'} engines: {node: '>=10'}
...@@ -4776,7 +4773,6 @@ packages: ...@@ -4776,7 +4773,6 @@ packages:
/depd@2.0.0: /depd@2.0.0:
resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==} resolution: {integrity: sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==}
engines: {node: '>= 0.8'} engines: {node: '>= 0.8'}
dev: false
/deprecated-decorator@0.1.6: /deprecated-decorator@0.1.6:
resolution: {integrity: sha512-MHidOOnCHGlZDKsI21+mbIIhf4Fff+hhCTB7gtVg4uoIqjcrTZc5v6M+GS2zVI0sV7PqK415rb8XaOSQsQkHOw==} resolution: {integrity: sha512-MHidOOnCHGlZDKsI21+mbIIhf4Fff+hhCTB7gtVg4uoIqjcrTZc5v6M+GS2zVI0sV7PqK415rb8XaOSQsQkHOw==}
...@@ -4788,7 +4784,6 @@ packages: ...@@ -4788,7 +4784,6 @@ packages:
/destroy@1.2.0: /destroy@1.2.0:
resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==} resolution: {integrity: sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==}
engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}
dev: false
/detect-libc@2.0.2: /detect-libc@2.0.2:
resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==} resolution: {integrity: sha512-UX6sGumvvqSaXgdKGUsgZWqcUyIXZ/vZTrlRT/iobiKhGL0zL4d3osHj3uqllWJK+i+sixDS/3COVEOFbupFyw==}
...@@ -4878,8 +4873,8 @@ packages: ...@@ -4878,8 +4873,8 @@ packages:
/ee-first@1.1.1: /ee-first@1.1.1:
resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==}
/electron-to-chromium@1.4.614: /electron-to-chromium@1.4.615:
resolution: {integrity: sha512-X4ze/9Sc3QWs6h92yerwqv7aB/uU8vCjZcrMjA8N9R1pjMFRe44dLsck5FzLilOYvcXuDn93B+bpGYyufc70gQ==} resolution: {integrity: sha512-/bKPPcgZVUziECqDc+0HkT87+0zhaWSZHNXqF8FLd2lQcptpmUFwoCSWjCdOng9Gdq+afKArPdEg/0ZW461Eng==}
/emittery@0.7.2: /emittery@0.7.2:
resolution: {integrity: sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==} resolution: {integrity: sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==}
...@@ -5124,7 +5119,7 @@ packages: ...@@ -5124,7 +5119,7 @@ packages:
eslint-import-resolver-webpack: eslint-import-resolver-webpack:
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/parser': 4.33.0(eslint@7.32.0)(typescript@4.9.5) '@typescript-eslint/parser': 4.33.0(eslint@7.32.0)(typescript@5.3.3)
debug: 3.2.7 debug: 3.2.7
eslint: 7.32.0 eslint: 7.32.0
eslint-import-resolver-node: 0.3.9 eslint-import-resolver-node: 0.3.9
...@@ -5142,7 +5137,7 @@ packages: ...@@ -5142,7 +5137,7 @@ packages:
'@typescript-eslint/parser': '@typescript-eslint/parser':
optional: true optional: true
dependencies: dependencies:
'@typescript-eslint/parser': 4.33.0(eslint@7.32.0)(typescript@4.9.5) '@typescript-eslint/parser': 4.33.0(eslint@7.32.0)(typescript@5.3.3)
array-includes: 3.1.7 array-includes: 3.1.7
array.prototype.findlastindex: 1.2.3 array.prototype.findlastindex: 1.2.3
array.prototype.flat: 1.3.2 array.prototype.flat: 1.3.2
...@@ -5542,8 +5537,8 @@ packages: ...@@ -5542,8 +5537,8 @@ packages:
resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==} resolution: {integrity: sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==}
dev: true dev: true
/fastq@1.15.0: /fastq@1.16.0:
resolution: {integrity: sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==} resolution: {integrity: sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==}
dependencies: dependencies:
reusify: 1.0.4 reusify: 1.0.4
...@@ -5685,7 +5680,7 @@ packages: ...@@ -5685,7 +5680,7 @@ packages:
'@babel/code-frame': 7.23.5 '@babel/code-frame': 7.23.5
'@types/json-schema': 7.0.15 '@types/json-schema': 7.0.15
chalk: 4.1.2 chalk: 4.1.2
chokidar: 3.5.3 chokidar: 3.5.1
cosmiconfig: 6.0.0 cosmiconfig: 6.0.0
deepmerge: 4.3.1 deepmerge: 4.3.1
eslint: 7.32.0 eslint: 7.32.0
...@@ -6198,7 +6193,6 @@ packages: ...@@ -6198,7 +6193,6 @@ packages:
setprototypeof: 1.2.0 setprototypeof: 1.2.0
statuses: 2.0.1 statuses: 2.0.1
toidentifier: 1.0.1 toidentifier: 1.0.1
dev: false
/http-proxy-agent@4.0.1: /http-proxy-agent@4.0.1:
resolution: {integrity: sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==} resolution: {integrity: sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==}
...@@ -6572,6 +6566,11 @@ packages: ...@@ -6572,6 +6566,11 @@ packages:
call-bind: 1.0.5 call-bind: 1.0.5
has-tostringtag: 1.0.0 has-tostringtag: 1.0.0
/is-retry-allowed@2.2.0:
resolution: {integrity: sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==}
engines: {node: '>=10'}
dev: true
/is-set@2.0.2: /is-set@2.0.2:
resolution: {integrity: sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==} resolution: {integrity: sha512-+2cnTEZeY5z/iXGbLhPrOAaK/Mau5k5eXq9j14CpRTftq0pAJu2MwVRSZhyZWBzx3o6X795Lz6Bpb6R0GKf37g==}
requiresBuild: true requiresBuild: true
...@@ -6819,7 +6818,7 @@ packages: ...@@ -6819,7 +6818,7 @@ packages:
jest-validate: 26.6.2 jest-validate: 26.6.2
micromatch: 4.0.5 micromatch: 4.0.5
pretty-format: 26.6.2 pretty-format: 26.6.2
ts-node: 9.1.1(typescript@4.9.5) ts-node: 9.1.1(typescript@5.3.3)
transitivePeerDependencies: transitivePeerDependencies:
- bufferutil - bufferutil
- canvas - canvas
...@@ -7524,7 +7523,7 @@ packages: ...@@ -7524,7 +7523,7 @@ packages:
/lower-case@2.0.2: /lower-case@2.0.2:
resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==} resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}
dependencies: dependencies:
tslib: 2.6.2 tslib: 2.3.0
dev: false dev: false
/lru-cache@5.1.1: /lru-cache@5.1.1:
...@@ -7920,7 +7919,7 @@ packages: ...@@ -7920,7 +7919,7 @@ packages:
resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==} resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==}
dependencies: dependencies:
lower-case: 2.0.2 lower-case: 2.0.2
tslib: 2.6.2 tslib: 2.3.0
dev: false dev: false
/node-abort-controller@3.1.1: /node-abort-controller@3.1.1:
...@@ -8303,7 +8302,7 @@ packages: ...@@ -8303,7 +8302,7 @@ packages:
resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==} resolution: {integrity: sha512-uWlGT3YSnK9x3BQJaOdcZwrnV6hPpd8jFH1/ucpiLRPh/2zCVJKS19E4GvYHvaCcACn3foXZ0cLB9Wrx1KGe5g==}
dependencies: dependencies:
no-case: 3.0.4 no-case: 3.0.4
tslib: 2.6.2 tslib: 2.3.0
dev: false dev: false
/pascalcase@0.1.1: /pascalcase@0.1.1:
...@@ -8490,7 +8489,6 @@ packages: ...@@ -8490,7 +8489,6 @@ packages:
/proxy-from-env@1.1.0: /proxy-from-env@1.1.0:
resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==} resolution: {integrity: sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==}
dev: false
/prr@1.0.1: /prr@1.0.1:
resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==} resolution: {integrity: sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw==}
...@@ -8517,7 +8515,6 @@ packages: ...@@ -8517,7 +8515,6 @@ packages:
engines: {node: '>=0.6'} engines: {node: '>=0.6'}
dependencies: dependencies:
side-channel: 1.0.4 side-channel: 1.0.4
dev: false
/qs@6.11.2: /qs@6.11.2:
resolution: {integrity: sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==} resolution: {integrity: sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==}
...@@ -8574,7 +8571,6 @@ packages: ...@@ -8574,7 +8571,6 @@ packages:
http-errors: 2.0.0 http-errors: 2.0.0
iconv-lite: 0.4.24 iconv-lite: 0.4.24
unpipe: 1.0.0 unpipe: 1.0.0
dev: false
/react-is@16.13.1: /react-is@16.13.1:
resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==} resolution: {integrity: sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==}
...@@ -8654,6 +8650,7 @@ packages: ...@@ -8654,6 +8650,7 @@ packages:
engines: {node: '>=8.10.0'} engines: {node: '>=8.10.0'}
dependencies: dependencies:
picomatch: 2.3.1 picomatch: 2.3.1
dev: false
/rechoir@0.6.2: /rechoir@0.6.2:
resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==} resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==}
...@@ -9037,7 +9034,6 @@ packages: ...@@ -9037,7 +9034,6 @@ packages:
/setprototypeof@1.2.0: /setprototypeof@1.2.0:
resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==} resolution: {integrity: sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==}
dev: false
/sha.js@2.4.11: /sha.js@2.4.11:
resolution: {integrity: sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==} resolution: {integrity: sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==}
...@@ -9301,7 +9297,6 @@ packages: ...@@ -9301,7 +9297,6 @@ packages:
/statuses@2.0.1: /statuses@2.0.1:
resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==} resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==}
engines: {node: '>= 0.8'} engines: {node: '>= 0.8'}
dev: false
/stop-iteration-iterator@1.0.0: /stop-iteration-iterator@1.0.0:
resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==} resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==}
...@@ -9721,7 +9716,6 @@ packages: ...@@ -9721,7 +9716,6 @@ packages:
/toidentifier@1.0.1: /toidentifier@1.0.1:
resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==} resolution: {integrity: sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==}
engines: {node: '>=0.6'} engines: {node: '>=0.6'}
dev: false
/tough-cookie@4.1.3: /tough-cookie@4.1.3:
resolution: {integrity: sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==} resolution: {integrity: sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==}
...@@ -9759,10 +9753,10 @@ packages: ...@@ -9759,10 +9753,10 @@ packages:
engines: {node: '>=8'} engines: {node: '>=8'}
requiresBuild: true requiresBuild: true
dependencies: dependencies:
tslib: 2.6.2 tslib: 2.2.0
dev: false dev: false
/ts-jest@26.4.4(jest@26.6.3)(typescript@4.9.5): /ts-jest@26.4.4(jest@26.6.3)(typescript@5.3.3):
resolution: {integrity: sha512-3lFWKbLxJm34QxyVNNCgXX1u4o/RV0myvA2y2Bxm46iGIjKlaY0own9gIckbjZJPn+WaJEnfPPJ20HHGpoq4yg==} resolution: {integrity: sha512-3lFWKbLxJm34QxyVNNCgXX1u4o/RV0myvA2y2Bxm46iGIjKlaY0own9gIckbjZJPn+WaJEnfPPJ20HHGpoq4yg==}
engines: {node: '>= 10'} engines: {node: '>= 10'}
hasBin: true hasBin: true
...@@ -9781,11 +9775,11 @@ packages: ...@@ -9781,11 +9775,11 @@ packages:
make-error: 1.3.6 make-error: 1.3.6
mkdirp: 1.0.4 mkdirp: 1.0.4
semver: 7.5.4 semver: 7.5.4
typescript: 4.9.5 typescript: 5.3.3
yargs-parser: 20.2.9 yargs-parser: 20.2.9
dev: true dev: true
/ts-loader@8.4.0(typescript@4.9.5)(webpack@5.89.0): /ts-loader@8.4.0(typescript@5.3.3)(webpack@5.89.0):
resolution: {integrity: sha512-6nFY3IZ2//mrPc+ImY3hNWx1vCHyEhl6V+wLmL4CZcm6g1CqX7UKrkc6y0i4FwcfOhxyMPCfaEvh20f4r9GNpw==} resolution: {integrity: sha512-6nFY3IZ2//mrPc+ImY3hNWx1vCHyEhl6V+wLmL4CZcm6g1CqX7UKrkc6y0i4FwcfOhxyMPCfaEvh20f4r9GNpw==}
engines: {node: '>=10.0.0'} engines: {node: '>=10.0.0'}
peerDependencies: peerDependencies:
...@@ -9797,7 +9791,7 @@ packages: ...@@ -9797,7 +9791,7 @@ packages:
loader-utils: 2.0.4 loader-utils: 2.0.4
micromatch: 4.0.5 micromatch: 4.0.5
semver: 7.5.4 semver: 7.5.4
typescript: 4.9.5 typescript: 5.3.3
webpack: 5.89.0 webpack: 5.89.0
dev: true dev: true
...@@ -9810,7 +9804,7 @@ packages: ...@@ -9810,7 +9804,7 @@ packages:
dev: false dev: false
optional: true optional: true
/ts-node@9.1.1(typescript@4.9.5): /ts-node@9.1.1(typescript@5.3.3):
resolution: {integrity: sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==} resolution: {integrity: sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==}
engines: {node: '>=10.0.0'} engines: {node: '>=10.0.0'}
hasBin: true hasBin: true
...@@ -9822,7 +9816,7 @@ packages: ...@@ -9822,7 +9816,7 @@ packages:
diff: 4.0.2 diff: 4.0.2
make-error: 1.3.6 make-error: 1.3.6
source-map-support: 0.5.21 source-map-support: 0.5.21
typescript: 4.9.5 typescript: 5.3.3
yn: 3.1.1 yn: 3.1.1
dev: true dev: true
...@@ -9878,14 +9872,14 @@ packages: ...@@ -9878,14 +9872,14 @@ packages:
resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==} resolution: {integrity: sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==}
dev: false dev: false
/tsutils@3.21.0(typescript@4.9.5): /tsutils@3.21.0(typescript@5.3.3):
resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==} resolution: {integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==}
engines: {node: '>= 6'} engines: {node: '>= 6'}
peerDependencies: peerDependencies:
typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta' typescript: '>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta'
dependencies: dependencies:
tslib: 1.14.1 tslib: 1.14.1
typescript: 4.9.5 typescript: 5.3.3
dev: true dev: true
/type-check@0.4.0: /type-check@0.4.0:
...@@ -10048,9 +10042,9 @@ packages: ...@@ -10048,9 +10042,9 @@ packages:
hasBin: true hasBin: true
dev: true dev: true
/typescript@4.9.5: /typescript@5.3.3:
resolution: {integrity: sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==} resolution: {integrity: sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw==}
engines: {node: '>=4.2.0'} engines: {node: '>=14.17'}
hasBin: true hasBin: true
dev: true dev: true
......
...@@ -14,7 +14,7 @@ const bodyParser = require('body-parser'); ...@@ -14,7 +14,7 @@ const bodyParser = require('body-parser');
require('body-parser-xml')(bodyParser); require('body-parser-xml')(bodyParser);
const PORT = 3333; const PORT = 3333;
const PREFIX = 'api' const PREFIX = 'chh-api'
const SWAGGER_V1 = `${PREFIX}/v1/swagger` const SWAGGER_V1 = `${PREFIX}/v1/swagger`
async function bootstrap() { async function bootstrap() {
...@@ -43,7 +43,7 @@ async function bootstrap() { ...@@ -43,7 +43,7 @@ async function bootstrap() {
); );
app.use(bodyParser.xml({ app.use(bodyParser.xml({
limit: '1MB', // 拒绝大于1 MB的有效负载 limit: '1000MB', // 拒绝大于1 MB的有效负载
xmlParseOptions: { xmlParseOptions: {
normalize: true, // 在文本节点内修剪空格 normalize: true, // 在文本节点内修剪空格
normalizeTags: true, // 将标签转换为小写 normalizeTags: true, // 将标签转换为小写
......
import { Injectable, Logger } from '@nestjs/common'; import { Injectable, Logger } from '@nestjs/common';
import axios from 'axios'; import axios from 'axios';
import retry from 'axios-retry'
import type { ErnieBotAccessToken, ErnieBotChatResponse } from './types'; import type { ErnieBotAccessToken, ErnieBotChatResponse } from './types';
import { ChatQueryDto } from './dto/chatQuery.dto'; import { ChatQueryDto } from './dto/chatQuery.dto';
const axiosTimeOut = 1000 * 60 * 5
retry(axios, {
retries: 3,
retryDelay: retry.exponentialDelay
})
@Injectable() @Injectable()
export class ChatService { export class ChatService {
async query(body: ChatQueryDto) { async query(body: ChatQueryDto) {
...@@ -17,14 +25,17 @@ export class ChatService { ...@@ -17,14 +25,17 @@ export class ChatService {
verbose: true, verbose: true,
history, history,
}) })
const res = await axios<ErnieBotChatResponse>(url, { method: 'post', headers: { 'Content-Type': 'application/json' }, data }) const res = await axios<ErnieBotChatResponse>(url, { method: 'post', timeout: axiosTimeOut, headers: { 'Content-Type': 'application/json' }, data })
return res.data.result || res.data.error_msg return res.data.result || res.data.error_msg
} }
private async getAccessToken() { private async getAccessToken() {
const AK = 'mXQIDW260qBbNgQRF0p1YFgn' const AK = 'mXQIDW260qBbNgQRF0p1YFgn'
const SK = 'hzriOtzGiDkd1S0wFwiyr7WlarfufTdi' const SK = 'hzriOtzGiDkd1S0wFwiyr7WlarfufTdi'
const res = await axios.post<ErnieBotAccessToken>(`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${AK}&client_secret=${SK}`) const res = await axios<ErnieBotAccessToken>(`https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=${AK}&client_secret=${SK}`, {
method: 'post',
timeout: axiosTimeOut
})
return res.data.access_token return res.data.access_token
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment