@middy/ws-router 7.6.5 → 7.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/index.js +1 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<a href="https://biomejs.dev"><img alt="Checked with Biome" src="https://img.shields.io/badge/Checked_with-Biome-60a5fa?style=flat&logo=biome"></a>
|
|
23
23
|
<a href="https://conventionalcommits.org"><img alt="Conventional Commits" src="https://img.shields.io/badge/Conventional%20Commits-1.0.0-%23FE5196?logo=conventionalcommits&logoColor=white"></a>
|
|
24
24
|
<a href="https://github.com/middyjs/middy/blob/main/package.json#L32">
|
|
25
|
-
<img alt="code coverage" src="https://img.shields.io/badge/code%20coverage-
|
|
25
|
+
<img alt="code coverage" src="https://img.shields.io/badge/code%20coverage-100%25-brightgreen"></a>
|
|
26
26
|
<br/>
|
|
27
27
|
</p>
|
|
28
28
|
<p>You can read the documentation at: <a href="https://middy.js.org/docs/routers/ws-router">https://middy.js.org/docs/routers/ws-router</a></p>
|
package/index.js
CHANGED
|
@@ -6,6 +6,7 @@ const name = "ws-router";
|
|
|
6
6
|
const pkg = `@middy/${name}`;
|
|
7
7
|
|
|
8
8
|
const defaults = {
|
|
9
|
+
// Stryker disable next-line ArrayDeclaration: a non-empty default would only ever add a route whose destructured handler is `undefined` (string element has no `routeKey`/`handler`), so the `handler !== undefined` guard makes any such entry inert and unreachable; equivalent mutant.
|
|
9
10
|
routes: [],
|
|
10
11
|
notFoundResponse: ({ routeKey }) => {
|
|
11
12
|
const err = createError(404, "Route does not exist", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@middy/ws-router",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.6",
|
|
4
4
|
"description": "WebSocket event router for the middy framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"test": "npm run test:unit && npm run test:fuzz",
|
|
30
30
|
"test:unit": "node --test",
|
|
31
31
|
"test:fuzz": "node --test index.fuzz.js",
|
|
32
|
-
"test:perf": "node --test index.perf.js"
|
|
32
|
+
"test:perf": "node --test index.perf.js",
|
|
33
|
+
"test:mutation": "cd ../.. && MUTATE_PACKAGE=\"$(basename \"$OLDPWD\")\" stryker run"
|
|
33
34
|
},
|
|
34
35
|
"license": "MIT",
|
|
35
36
|
"keywords": [
|
|
@@ -62,10 +63,10 @@
|
|
|
62
63
|
"url": "https://github.com/sponsors/willfarrell"
|
|
63
64
|
},
|
|
64
65
|
"dependencies": {
|
|
65
|
-
"@middy/util": "7.6.
|
|
66
|
+
"@middy/util": "7.6.6"
|
|
66
67
|
},
|
|
67
68
|
"devDependencies": {
|
|
68
|
-
"@middy/core": "7.6.
|
|
69
|
+
"@middy/core": "7.6.6",
|
|
69
70
|
"@types/aws-lambda": "^8.0.0",
|
|
70
71
|
"@types/node": "^22.0.0"
|
|
71
72
|
}
|