Skip to content
Snippets Groups Projects
Commit a7a43b22 authored by Jure's avatar Jure
Browse files

chore: remove runtime dependency on server

parent 2004986f
No related branches found
No related tags found
No related merge requests found
......@@ -11,12 +11,15 @@
"dependencies": {
"@pubsweet/db-manager": "^2.2.0",
"@pubsweet/logger": "^0.2.9",
"pubsweet-server": "^11.0.0",
"http-status-codes": "^1.3.0",
"knex": "^0.16.3",
"lodash": "^4.17.11",
"objection": "^1.2.3",
"uuid": "^3.3.2"
},
"devDependencies": {
"pubsweet-server": "^11.0.0"
},
"peerDependencies": {
"config": "^3.0.1"
},
......
const STATUS = require('http-status-codes')
class NotFoundError extends Error {
constructor(message, status) {
super(message)
Error.captureStackTrace(this, 'NotFoundError')
this.name = 'NotFoundError'
this.message = message || 'Not found'
this.status = status || STATUS.NOT_FOUND
}
}
module.exports = NotFoundError
const uuid = require('uuid')
const { Model, transaction } = require('objection')
const logger = require('@pubsweet/logger')
const { NotFoundError } = require('pubsweet-server/src/errors')
const NotFoundError = require('./NotFoundError')
const db = require('@pubsweet/db-manager/src/db')
const { merge } = require('lodash')
const config = require('config')
......
......@@ -7,10 +7,10 @@
"license": "MIT",
"dependencies": {
"joi-browser": "^13.4.0",
"prop-types": "^15.5.10",
"pubsweet-server": "^11.0.0"
"prop-types": "^15.5.10"
},
"peerDependencies": {
"pubsweet-server": ">=11.0.0",
"pubsweet-client": ">=1.0.0",
"react": ">=16"
},
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment