feat: update deps for new release

main
Ayush Mukherjee 1 year ago
parent 5c5312ff14
commit 6a1f2d0f61

3442
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
{ {
"name": "nuke", "name": "nuke",
"version": "1.4.7", "version": "1.5.0",
"description": "APL Esports' Nuke Server", "description": "APL Esports' Nuke Server",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
@ -11,17 +11,17 @@
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^0.21.1", "axios": "^1",
"cors": "^2.8.5", "cors": "^2.8.5",
"dotenv": "^8.2.0", "dotenv": "^8",
"express": "^4.17.1", "express": "^4",
"helmet": "^4.1.0", "helmet": "^7",
"mongoose": "^5.11.19", "mongoose": "^8",
"morgan": "^1.10.0", "morgan": "^1.10",
"uuid": "^8.3.2", "uuid": "^9",
"ws": "^7.4.4" "ws": "^8"
}, },
"devDependencies": { "devDependencies": {
"nodemon": "^2.0.4" "nodemon": "^3.0"
} }
} }

@ -6,11 +6,7 @@ const { get } = require('./uuids')
const handler = require('./ws/handler') const handler = require('./ws/handler')
const { subscribe } = require('./ws/streams') const { subscribe } = require('./ws/streams')
mongoose.connect(process.env.MONGO_URI, { mongoose.connect(process.env.MONGO_URI)
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
})
const db = mongoose.connection const db = mongoose.connection
db.once('open', () => console.log('Connected to mongodb instance!')) db.once('open', () => console.log('Connected to mongodb instance!'))
@ -63,4 +59,4 @@ server.on('upgrade', (req, socket, head) => {
}) })
} }
} }
}) })

Loading…
Cancel
Save