@fastify/websocket
Advanced tools
Comparing version 7.1.1 to 7.1.2
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 @@ } |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9
81053
13
1825
6