diff --git a/package.json b/package.json index 0a5fb91..faa2981 100755 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "author": "LBRY Team", "dependencies": { "@babel/polyfill": "^7.0.0", + "@inc/fastify-ws": "^1.1.0", "@octokit/rest": "^16.1.0", "@slack/client": "^4.8.0", "app-root-path": "^2.1.0", @@ -19,11 +20,10 @@ "decamelize": "^2.0.0", "dedent": "^0.7.0", "dotenv": "^6.1.0", - "fastify": "^1.13.1", + "fastify": "^2.0.0-rc.1", "fastify-compress": "^0.7.1", "fastify-helmet": "^3.0.0", - "fastify-plugin": "^1.3.0", - "fastify-static": "^1.0.0", + "fastify-static": "^2.0.0", "fastify-ws": "^1.0.0", "front-matter": "^3.0.1", "fs-exists-sync": "^0.1.0", @@ -59,11 +59,12 @@ "@inc/eslint-config": "^1.1.2", "@inc/sasslint-config": "^1.1.2", "@lbry/color": "^1.0.5", - "@lbry/components": "^1.4.4", + "@lbry/components": "^1.5.1", "eslint": "^5.9.0", "husky": "^1.2.0", "nodemon": "^1.18.7", "npm-run-all": "^4.1.5", + "pino-pretty": "^2.4.0", "sass": "^1.15.1", "sass-lint": "^1.12.1", "snazzy": "^8.0.0", @@ -86,7 +87,7 @@ "format": "eslint '**/*.js' --fix --ignore-pattern '/app/dist/'", "start": "npm run css && NODE_ENV=production node server", "test": "run-s test:*", - "test:dependencies": "updates --update ./ --exclude prismjs", + "test:dependencies": "updates --update ./ --exclude fastify,prismjs", "test:lint": "standardx --verbose | snazzy", "test:sass": "sass-lint --config ./node_modules/@inc/sasslint-config/config.json --verbose --no-exit", "watch": "run-p watch:*", diff --git a/server.js b/server.js index 32e5e21..eaa2e29 100755 --- a/server.js +++ b/server.js @@ -27,7 +27,7 @@ const messageSlack = local("app/helpers/slack").default; fastify .use(cors()) .register(require("fastify-compress")) - .register(require("fastify-ws")) + .register(require("@inc/fastify-ws")) .register(require("fastify-helmet"), { hidePoweredBy: { setTo: "LBRY" } })