-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fix: Remove unused parameter passed to
getWss
in broadcast.js
e…
…xample (also renaming variable to reflect lack of specificity to route of web socket server) - Fix: Allow middleware error handler (arity 4) to be triggered - Refactoring: Remove `upgradeReq` check (dropped back in ws 3) - Testing: Add mocha/chai/nyc Re: middleware error handler, `Layer.prototype.handle_error` of `router` (used by `express.Router`) only handles arity 4
- Loading branch information
Showing
7 changed files
with
582 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
src/ | ||
test/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,8 @@ | |
"main": "index", | ||
"module": "src/index", | ||
"scripts": { | ||
"mocha": "mocha --require esm --require chai/register-expect --timeout 20000 test", | ||
"test": "echo 'Blanking out cache for ESM/nyc that can get corrupted by terminated processes...' && rm -Rf ./node_modules/.cache && nyc npm run mocha", | ||
"lint": "eslint ." | ||
}, | ||
"author": "Henning Morud <[email protected]>", | ||
|
@@ -18,13 +20,6 @@ | |
"Alexis Tyler <[email protected]>" | ||
], | ||
"license": "BSD-2-Clause", | ||
"dependencies": { | ||
"esm": "^3.0.84", | ||
"ws": "^6.0.0" | ||
}, | ||
"peerDependencies": { | ||
"express": "^4.0.0 || ^5.0.0-alpha.1" | ||
}, | ||
"engines": { | ||
"node": ">=4.5.0" | ||
}, | ||
|
@@ -44,10 +39,21 @@ | |
"url": "https://github.com/HenningM/express-ws/issues" | ||
}, | ||
"homepage": "https://github.com/HenningM/express-ws", | ||
"dependencies": { | ||
"esm": "^3.0.84", | ||
"ws": "^6.0.0" | ||
}, | ||
"peerDependencies": { | ||
"express": "^4.0.0 || ^5.0.0-alpha.1" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.2.0", | ||
"eslint": "^4.19.0", | ||
"eslint-config-airbnb": "^15.1.0", | ||
"eslint-plugin-import": "^2.12.0", | ||
"express": "^5.0.0-alpha.6" | ||
"express": "^5.0.0-alpha.6", | ||
"got": "^11.4.0", | ||
"mocha": "^8.0.1", | ||
"nyc": "^15.1.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.