Update deps, remove cors

This commit is contained in:
Yarmo Mackenbach 2022-11-15 12:31:10 +01:00
parent e4af24faba
commit 31ea2c0002
No known key found for this signature in database
GPG key ID: 37367F4AF4087AD1
3 changed files with 5 additions and 9 deletions

View file

@ -8,9 +8,8 @@
"ajv": "^8.6.3", "ajv": "^8.6.3",
"bent": "^7.3.12", "bent": "^7.3.12",
"body-parser": "^1.19.0", "body-parser": "^1.19.0",
"cors": "^2.8.5",
"dialog-polyfill": "^0.5.6", "dialog-polyfill": "^0.5.6",
"doipjs": "^0.17.3", "doipjs": "^0.17.5",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",
"express": "^4.17.1", "express": "^4.17.1",
"express-validator": "^6.13.0", "express-validator": "^6.13.0",

View file

@ -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 <https://www.gnu.org/licenses/>. more information on this, and how to apply and follow the GNU AGPL, see <https://www.gnu.org/licenses/>.
*/ */
import express from 'express' import express from 'express'
import cors from 'cors'
import { readFileSync } from 'fs' import { readFileSync } from 'fs'
import { stringReplace } from 'string-replace-middleware' import { stringReplace } from 'string-replace-middleware'
import * as pug from 'pug' import * as pug from 'pug'
@ -43,8 +42,6 @@ import utilRoute from './routes/util.js'
const app = express() const app = express()
const packageData = JSON.parse(readFileSync('./package.json')) const packageData = JSON.parse(readFileSync('./package.json'))
app.use(cors())
app.set('env', process.env.NODE_ENV || 'production') app.set('env', process.env.NODE_ENV || 'production')
app.engine('pug', pug.__express).set('view engine', 'pug') app.engine('pug', pug.__express).set('view engine', 'pug')
app.set('port', process.env.PORT || 3000) app.set('port', process.env.PORT || 3000)

View file

@ -1920,10 +1920,10 @@ doctypes@^1.1.0:
resolved "https://registry.npmjs.org/doctypes/-/doctypes-1.1.0.tgz" resolved "https://registry.npmjs.org/doctypes/-/doctypes-1.1.0.tgz"
integrity sha1-6oCxBqh1OHdOijpKWv4pPeSJ4Kk= integrity sha1-6oCxBqh1OHdOijpKWv4pPeSJ4Kk=
doipjs@^0.17.3: doipjs@^0.17.5:
version "0.17.3" version "0.17.5"
resolved "https://registry.yarnpkg.com/doipjs/-/doipjs-0.17.3.tgz#5fd2fd1fba1dee3abdcdadf6172fb2cb03de27b4" resolved "https://registry.yarnpkg.com/doipjs/-/doipjs-0.17.5.tgz#8543c30233b65d0e46de57612c28a0764f3b0f8a"
integrity sha512-ChRV+JOtEeyZLohw73D9smrug683Mf53dFkm96bQMUUkzj7cdYmp63Z5Q4VjfrJ5G5eJ2TFLSV1BCXrF8HzYvw== integrity sha512-3+lXtMJapGWpOCvlkz4aXMIT9LBT0EiamzWa1T7hhpwK1oX6ZoBSH6SCQQcOeQUSM652dR5pEMa3oZe5IXMQSQ==
dependencies: dependencies:
"@openpgp/hkp-client" "^0.0.2" "@openpgp/hkp-client" "^0.0.2"
"@openpgp/wkd-client" "^0.0.3" "@openpgp/wkd-client" "^0.0.3"