summary refs log tree commit diff
path: root/bundle
diff options
context:
space:
mode:
Diffstat (limited to 'bundle')
-rw-r--r--bundle/package-lock.json14
-rw-r--r--bundle/package.json20
-rw-r--r--bundle/scripts/benchmark/connections.js1
-rw-r--r--bundle/scripts/benchmark/messages.js1
-rw-r--r--bundle/scripts/benchmark/users.js25
5 files changed, 43 insertions, 18 deletions
diff --git a/bundle/package-lock.json b/bundle/package-lock.json

index 506b2bf3..3461ec95 100644 --- a/bundle/package-lock.json +++ b/bundle/package-lock.json
@@ -37,7 +37,7 @@ "jsonwebtoken": "^8.5.1", "lambert-db": "^1.2.3", "lambert-server": "^1.2.11", - "missing-native-js-functions": "^1.2.17", + "missing-native-js-functions": "^1.2.18", "morgan": "^1.10.0", "multer": "^1.4.2", "nanocolors": "^0.2.12", @@ -7564,9 +7564,9 @@ } }, "node_modules/missing-native-js-functions": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/missing-native-js-functions/-/missing-native-js-functions-1.2.17.tgz", - "integrity": "sha512-Ev48VaLqp/7e7zmQ78oMCeMeZEUDeRRQGXITmiHtS62qJEThBLuKFExQjwu0Yzj9UO4MhN7TvljDsITCTu3fqg==" + "version": "1.2.18", + "resolved": "https://registry.npmjs.org/missing-native-js-functions/-/missing-native-js-functions-1.2.18.tgz", + "integrity": "sha512-TZr1muzDE4kfu0LHDzg63O7m2qW3Gpyc875ki8+YlSRj+4ibZRv0ySQ0cSB06GoBL9ejeehLmkQnybLpp9jYcg==" }, "node_modules/mkdirp": { "version": "0.5.5", @@ -16752,9 +16752,9 @@ } }, "missing-native-js-functions": { - "version": "1.2.17", - "resolved": "https://registry.npmjs.org/missing-native-js-functions/-/missing-native-js-functions-1.2.17.tgz", - "integrity": "sha512-Ev48VaLqp/7e7zmQ78oMCeMeZEUDeRRQGXITmiHtS62qJEThBLuKFExQjwu0Yzj9UO4MhN7TvljDsITCTu3fqg==" + "version": "1.2.18", + "resolved": "https://registry.npmjs.org/missing-native-js-functions/-/missing-native-js-functions-1.2.18.tgz", + "integrity": "sha512-TZr1muzDE4kfu0LHDzg63O7m2qW3Gpyc875ki8+YlSRj+4ibZRv0ySQ0cSB06GoBL9ejeehLmkQnybLpp9jYcg==" }, "mkdirp": { "version": "0.5.5", diff --git a/bundle/package.json b/bundle/package.json
index b3e5c39a..c24902fb 100644 --- a/bundle/package.json +++ b/bundle/package.json
@@ -37,6 +37,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.7", "@types/node": "^14.17.9", "@types/node-fetch": "^2.5.12", @@ -51,10 +52,13 @@ "ts-node-dev": "^1.1.6", "ts-patch": "^1.4.4", "typescript": "^4.2.3", - "typescript-json-schema": "0.50.1", - "@types/morgan": "^1.9.3" + "typescript-json-schema": "0.50.1" }, "dependencies": { + "@aws-sdk/client-s3": "^3.36.1", + "@aws-sdk/node-http-handler": "^3.36.0", + "@babel/preset-env": "^7.15.8", + "@babel/preset-typescript": "^7.15.0", "ajv": "8.6.2", "ajv-formats": "^2.1.1", "amqplib": "^0.8.0", @@ -63,6 +67,7 @@ "bcrypt": "^5.0.1", "body-parser": "^1.19.0", "btoa": "^1.2.1", + "cheerio": "^1.0.0-rc.10", "dotenv": "^8.2.0", "exif-be-gone": "^1.2.0", "express": "^4.17.1", @@ -78,7 +83,7 @@ "jsonwebtoken": "^8.5.1", "lambert-db": "^1.2.3", "lambert-server": "^1.2.11", - "missing-native-js-functions": "^1.2.17", + "missing-native-js-functions": "^1.2.18", "morgan": "^1.10.0", "multer": "^1.4.2", "nanocolors": "^0.2.12", @@ -92,11 +97,6 @@ "typeorm": "^0.2.37", "typescript": "^4.1.2", "typescript-json-schema": "^0.50.1", - "ws": "^7.4.2", - "cheerio": "^1.0.0-rc.10", - "@aws-sdk/client-s3": "^3.36.1", - "@aws-sdk/node-http-handler": "^3.36.0", - "@babel/preset-env": "^7.15.8", - "@babel/preset-typescript": "^7.15.0" + "ws": "^7.4.2" } -} \ No newline at end of file +} diff --git a/bundle/scripts/benchmark/connections.js b/bundle/scripts/benchmark/connections.js
index efc1bcb6..2a4125b4 100644 --- a/bundle/scripts/benchmark/connections.js +++ b/bundle/scripts/benchmark/connections.js
@@ -1,3 +1,4 @@ +require("dotenv").config(); const cluster = require("cluster"); const WebSocket = require("ws"); const endpoint = process.env.GATEWAY || "ws://localhost:3001"; diff --git a/bundle/scripts/benchmark/messages.js b/bundle/scripts/benchmark/messages.js deleted file mode 100644
index 70b786d1..00000000 --- a/bundle/scripts/benchmark/messages.js +++ /dev/null
@@ -1 +0,0 @@ -// TODO diff --git a/bundle/scripts/benchmark/users.js b/bundle/scripts/benchmark/users.js new file mode 100644
index 00000000..bce67bf4 --- /dev/null +++ b/bundle/scripts/benchmark/users.js
@@ -0,0 +1,25 @@ +require("dotenv").config(); +const fetch = require("node-fetch"); +const count = Number(process.env.COUNT) || 50; +const endpoint = process.env.API || "http://localhost:3001"; + +async function main() { + for (let i = 0; i < count; i++) { + fetch(`${endpoint}/api/auth/register`, { + method: "POST", + body: JSON.stringify({ + fingerprint: `${i}.wR8vi8lGlFBJerErO9LG5NViJFw`, + username: `test${i}`, + invite: null, + consent: true, + date_of_birth: "2000-01-01", + gift_code_sku_id: null, + captcha_key: null, + }), + headers: { "content-type": "application/json" }, + }); + console.log(i); + } +} + +main();