mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-05 18:32:33 +01:00
🐛 fix unittests
This commit is contained in:
parent
84024cd5bb
commit
182de09ccc
2407
api/package-lock.json
generated
2407
api/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -38,6 +38,8 @@
|
||||
"homepage": "https://fosscord.com",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.15.5",
|
||||
"@babel/preset-env": "^7.15.8",
|
||||
"@babel/preset-typescript": "^7.15.0",
|
||||
"@types/amqplib": "^0.8.1",
|
||||
"@types/bcrypt": "^5.0.0",
|
||||
"@types/express": "^4.17.9",
|
||||
@ -45,6 +47,7 @@
|
||||
"@types/jest": "^27.0.1",
|
||||
"@types/jest-expect-message": "^1.0.3",
|
||||
"@types/jsonwebtoken": "^8.5.0",
|
||||
"@types/morgan": "^1.9.3",
|
||||
"@types/multer": "^1.4.5",
|
||||
"@types/node": "^14.17.9",
|
||||
"@types/node-fetch": "^2.5.7",
|
||||
@ -57,8 +60,7 @@
|
||||
"ts-node-dev": "^1.1.6",
|
||||
"ts-patch": "^1.4.4",
|
||||
"typescript": "^4.4.2",
|
||||
"typescript-json-schema": "0.50.1",
|
||||
"@types/morgan": "^1.9.3"
|
||||
"typescript-json-schema": "0.50.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fosscord/util": "file:../util",
|
||||
@ -77,7 +79,7 @@
|
||||
"i18next-node-fs-backend": "^2.1.3",
|
||||
"image-size": "^1.0.0",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"lambert-server": "^1.2.11",
|
||||
"lambert-server": "^1.2.12",
|
||||
"missing-native-js-functions": "^1.2.17",
|
||||
"morgan": "^1.10.0",
|
||||
"multer": "^1.4.2",
|
||||
|
@ -43,7 +43,7 @@ const request = async (path: string, opts: any = {}): Promise<any> => {
|
||||
|
||||
var data = await response.text();
|
||||
try {
|
||||
data = JSON.stringify(data);
|
||||
data = JSON.parse(data);
|
||||
if (response.status >= 400) throw data;
|
||||
return data;
|
||||
} catch (error) {
|
||||
|
11998
bundle/package-lock.json
generated
11998
bundle/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -97,4 +97,4 @@
|
||||
"@aws-sdk/client-s3": "^3.36.1",
|
||||
"@aws-sdk/node-http-handler": "^3.36.0"
|
||||
}
|
||||
}
|
||||
}
|
15102
cdn/package-lock.json
generated
15102
cdn/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
14
util/package-lock.json
generated
14
util/package-lock.json
generated
@ -12,7 +12,7 @@
|
||||
"dependencies": {
|
||||
"amqplib": "^0.8.0",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"lambert-server": "^1.2.11",
|
||||
"lambert-server": "^1.2.12",
|
||||
"missing-native-js-functions": "^1.2.17",
|
||||
"multer": "^1.4.3",
|
||||
"nanocolors": "^0.2.12",
|
||||
@ -4409,9 +4409,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/lambert-server": {
|
||||
"version": "1.2.11",
|
||||
"resolved": "https://registry.npmjs.org/lambert-server/-/lambert-server-1.2.11.tgz",
|
||||
"integrity": "sha512-6Uqritpx+ryNWrzLv9YXNqSfCZ10EQh97cHtz8nZMH2WiZm0wL+C3vSMhevdKAE8xdtmeIQXc3idH94nQEx9mA==",
|
||||
"version": "1.2.12",
|
||||
"resolved": "https://registry.npmjs.org/lambert-server/-/lambert-server-1.2.12.tgz",
|
||||
"integrity": "sha512-TY6k60KLVfBpPrl9lcrN54RJdTBg9f8JqJPoHg5d/FMLnnwwQtT4budpoQjyLDwBLhS+zpXo0aBCwnnGgTVGaw==",
|
||||
"dependencies": {
|
||||
"body-parser": "^1.19.0",
|
||||
"chalk": "^4.1.1",
|
||||
@ -10845,9 +10845,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"lambert-server": {
|
||||
"version": "1.2.11",
|
||||
"resolved": "https://registry.npmjs.org/lambert-server/-/lambert-server-1.2.11.tgz",
|
||||
"integrity": "sha512-6Uqritpx+ryNWrzLv9YXNqSfCZ10EQh97cHtz8nZMH2WiZm0wL+C3vSMhevdKAE8xdtmeIQXc3idH94nQEx9mA==",
|
||||
"version": "1.2.12",
|
||||
"resolved": "https://registry.npmjs.org/lambert-server/-/lambert-server-1.2.12.tgz",
|
||||
"integrity": "sha512-TY6k60KLVfBpPrl9lcrN54RJdTBg9f8JqJPoHg5d/FMLnnwwQtT4budpoQjyLDwBLhS+zpXo0aBCwnnGgTVGaw==",
|
||||
"requires": {
|
||||
"body-parser": "^1.19.0",
|
||||
"chalk": "^4.1.1",
|
||||
|
@ -40,7 +40,7 @@
|
||||
"dependencies": {
|
||||
"amqplib": "^0.8.0",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"lambert-server": "^1.2.11",
|
||||
"lambert-server": "^1.2.12",
|
||||
"missing-native-js-functions": "^1.2.17",
|
||||
"multer": "^1.4.3",
|
||||
"nanocolors": "^0.2.12",
|
||||
|
Loading…
Reference in New Issue
Block a user