From 31ea2c0002efce8443eea63f0d92fb74879c2cf5 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Tue, 15 Nov 2022 12:31:10 +0100 Subject: [PATCH] Update deps, remove cors --- package.json | 3 +-- src/index.js | 3 --- yarn.lock | 8 ++++---- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index d65ebc3..818df0d 100644 --- a/package.json +++ b/package.json @@ -8,9 +8,8 @@ "ajv": "^8.6.3", "bent": "^7.3.12", "body-parser": "^1.19.0", - "cors": "^2.8.5", "dialog-polyfill": "^0.5.6", - "doipjs": "^0.17.3", + "doipjs": "^0.17.5", "dotenv": "^8.2.0", "express": "^4.17.1", "express-validator": "^6.13.0", diff --git a/src/index.js b/src/index.js index 99d45cb..db0e8c7 100644 --- a/src/index.js +++ b/src/index.js @@ -28,7 +28,6 @@ if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU AGPL, see . */ import express from 'express' -import cors from 'cors' import { readFileSync } from 'fs' import { stringReplace } from 'string-replace-middleware' import * as pug from 'pug' @@ -43,8 +42,6 @@ import utilRoute from './routes/util.js' const app = express() const packageData = JSON.parse(readFileSync('./package.json')) -app.use(cors()) - app.set('env', process.env.NODE_ENV || 'production') app.engine('pug', pug.__express).set('view engine', 'pug') app.set('port', process.env.PORT || 3000) diff --git a/yarn.lock b/yarn.lock index 0f1d85f..1a52246 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1920,10 +1920,10 @@ doctypes@^1.1.0: resolved "https://registry.npmjs.org/doctypes/-/doctypes-1.1.0.tgz" integrity sha1-6oCxBqh1OHdOijpKWv4pPeSJ4Kk= -doipjs@^0.17.3: - version "0.17.3" - resolved "https://registry.yarnpkg.com/doipjs/-/doipjs-0.17.3.tgz#5fd2fd1fba1dee3abdcdadf6172fb2cb03de27b4" - integrity sha512-ChRV+JOtEeyZLohw73D9smrug683Mf53dFkm96bQMUUkzj7cdYmp63Z5Q4VjfrJ5G5eJ2TFLSV1BCXrF8HzYvw== +doipjs@^0.17.5: + version "0.17.5" + resolved "https://registry.yarnpkg.com/doipjs/-/doipjs-0.17.5.tgz#8543c30233b65d0e46de57612c28a0764f3b0f8a" + integrity sha512-3+lXtMJapGWpOCvlkz4aXMIT9LBT0EiamzWa1T7hhpwK1oX6ZoBSH6SCQQcOeQUSM652dR5pEMa3oZe5IXMQSQ== dependencies: "@openpgp/hkp-client" "^0.0.2" "@openpgp/wkd-client" "^0.0.3"