Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fastify/websocket

Package Overview
Dependencies
Maintainers
19
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastify/websocket - npm Package Compare versions

Comparing version 7.1.1 to 7.1.2

test/base.test.js

11

index.js

@@ -185,13 +185,2 @@ 'use strict'

const oldDefaultRoute = fastify.getDefaultRoute()
fastify.setDefaultRoute(function (req, res) {
if (req[kWs]) {
handleUpgrade(req, (connection) => {
noHandle.call(fastify, connection, req)
})
} else {
return oldDefaultRoute(req, res)
}
})
next()

@@ -198,0 +187,0 @@ }

27

package.json
{
"name": "@fastify/websocket",
"version": "7.1.1",
"version": "7.1.2",
"description": "basic websocket support for fastify",
"main": "index.js",
"types": "index.d.ts",
"tsd": {
"directory": "./test/types"
},
"types": "types/index.d.ts",
"scripts": {
"lint": "standard | snazzy",
"unit": "tap --100 \"test/*.js\"",
"test:js": "npm run lint && npm run unit",
"test:ts": "tsd",
"test": "npm run lint && npm run test:js && npm run test:ts"
"lint": "standard",
"test": "npm run test:unit && npm run test:typescript",
"test:unit": "tap",
"test:typescript": "tsd"
},

@@ -34,10 +30,9 @@ "repository": {

"@fastify/type-provider-typebox": "^2.3.0",
"@sinclair/typebox": "^0.24.44",
"@sinclair/typebox": "^0.25.10",
"@types/ws": "^8.2.2",
"fastify": "^4.0.0-rc.2",
"snazzy": "^9.0.0",
"split2": "^4.1.0",
"standard": "^17.0.0",
"tap": "^16.0.0",
"tsd": "^0.24.1"
"tsd": "^0.25.0"
},

@@ -50,3 +45,7 @@ "dependencies": {

"access": "public"
}
},
"pre-commit": [
"lint",
"test"
]
}

Sorry, the diff of this file is not supported yet

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