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