fastify-ws
Advanced tools
Comparing version 0.5.0 to 1.0.0
@@ -20,2 +20,5 @@ 'use strict' | ||
next() | ||
}, { | ||
fastify: '1.x', | ||
name: 'fastify-ws' | ||
}) |
{ | ||
"name": "fastify-ws", | ||
"version": "0.5.0", | ||
"version": "1.0.0", | ||
"description": "Basic WebSocket support for Fastify built on the blazing fast ws and uws libraries.", | ||
@@ -20,2 +20,5 @@ "main": "index.js", | ||
"author": "Gabe Jackson <gj@mail.co.de>", | ||
"contributors": [ | ||
"lependu <lependu@protonmail.com>" | ||
], | ||
"license": "MIT", | ||
@@ -27,4 +30,4 @@ "bugs": { | ||
"devDependencies": { | ||
"eslint": "^4.17.0", | ||
"fastify": "^1.4.0", | ||
"eslint": "^4.19.1", | ||
"fastify": "^1.7.0", | ||
"pre-commit": "^1.2.2", | ||
@@ -37,7 +40,7 @@ "snazzy": "^7.0.0", | ||
"bufferutil": "^3.0.5", | ||
"fastify-plugin": "^1.0.1", | ||
"fastify-plugin": "^1.2.0", | ||
"utf-8-validate": "^4.0.2", | ||
"uws": "^10.148.0", | ||
"ws": "^5.1.1" | ||
"uws": "10.148.0", | ||
"ws": "^5.2.1" | ||
} | ||
} |
16
test.js
@@ -38,4 +38,20 @@ 'use strict' | ||
client.onmessage = msg => t.equal(msg.data, 'hello client') | ||
client.close() | ||
}) | ||
}) | ||
}) | ||
test('Error | invalid library option', t => { | ||
t.plan(1) | ||
const fastify = require('fastify')() | ||
const fastifyWS = require('.') | ||
fastify.register(fastifyWS, { library: 'invalid' }) | ||
fastify.listen(0, err => { | ||
fastify.close() | ||
t.equal(err.message, `Invalid "library" option`) | ||
}) | ||
}) |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
117869
96
0
+ Addeduws@10.148.0(transitive)
- Removeduws@10.148.2(transitive)
Updatedfastify-plugin@^1.2.0
Updateduws@10.148.0
Updatedws@^5.2.1