New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fastify-ws

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-ws - npm Package Compare versions

Comparing version 0.5.0 to 1.0.0

3

index.js

@@ -20,2 +20,5 @@ 'use strict'

next()
}, {
fastify: '1.x',
name: 'fastify-ws'
})

15

package.json
{
"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"
}
}

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc