udpate deps

This commit is contained in:
Will Murphy 2022-02-11 09:43:29 -06:00
parent 6d9c17aaa0
commit 697f528d28
3 changed files with 2331 additions and 5021 deletions

View file

@ -12,7 +12,7 @@ const ActivitypubExpress = require('activitypub-express')
const { DOMAIN, KEY_PATH, CERT_PATH, CA_PATH, PORT_HTTPS, DB_URL, DB_NAME } = process.env const { DOMAIN, KEY_PATH, CERT_PATH, CA_PATH, PORT_HTTPS, DB_URL, DB_NAME } = process.env
const app = express() const app = express()
const client = new MongoClient(DB_URL, { useUnifiedTopology: true, useNewUrlParser: true }) const client = new MongoClient(DB_URL)
const sslOptions = { const sslOptions = {
key: KEY_PATH && fs.readFileSync(path.join(__dirname, KEY_PATH)), key: KEY_PATH && fs.readFileSync(path.join(__dirname, KEY_PATH)),
cert: CERT_PATH && fs.readFileSync(path.join(__dirname, CERT_PATH)), cert: CERT_PATH && fs.readFileSync(path.join(__dirname, CERT_PATH)),
@ -175,7 +175,7 @@ app.use(function (err, req, res, next) {
} }
}) })
client.connect({ useNewUrlParser: true }) client.connect()
.then(async () => { .then(async () => {
const { default: AutoEncrypt } = await import('@small-tech/auto-encrypt') const { default: AutoEncrypt } = await import('@small-tech/auto-encrypt')
apex.store.db = client.db(DB_NAME) apex.store.db = client.db(DB_NAME)

7323
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -5,14 +5,13 @@
"main": "index.js", "main": "index.js",
"dependencies": { "dependencies": {
"@small-tech/auto-encrypt": "^3.0.1", "@small-tech/auto-encrypt": "^3.0.1",
"activitypub-express": "^2.2.1", "activitypub-express": "^3.0.0",
"connect-history-api-fallback": "^1.6.0", "connect-history-api-fallback": "^1.6.0",
"cors": "^2.8.4", "cors": "^2.8.4",
"dotenv": "^10.0.0", "dotenv": "^16.0.0",
"express": "^4.16.3", "express": "^4.16.3",
"express-basic-auth": "^1.1.5",
"http-signature": "github:wmurphyrd/node-http-signature#9c02eeb", "http-signature": "github:wmurphyrd/node-http-signature#9c02eeb",
"mongodb": "^3.3.2", "mongodb": "^4.3.1",
"morgan": "^1.9.1", "morgan": "^1.9.1",
"node-graceful-shutdown": "1.1.0", "node-graceful-shutdown": "1.1.0",
"request": "^2.88.0", "request": "^2.88.0",
@ -22,10 +21,8 @@
"node": ">=16" "node": ">=16"
}, },
"devDependencies": { "devDependencies": {
"chokidar": "^3.1.1", "nodemon": "^2.0.15",
"nodemon": "^1.19.3", "standard": "^16.0.4"
"standard": "^16.0.4",
"standardjs": "^1.0.0-alpha"
}, },
"scripts": { "scripts": {
"start": "node index.js", "start": "node index.js",