@srfnstack/spliffy 1.0.2 → 1.1.0

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 CHANGED
@@ -36,7 +36,7 @@ routeDir is the only required property and should be an absolute path.
36
36
  start the server
37
37
  `node ~/app/serve.js`
38
38
 
39
- Go to `localhost:10420/spliffy`
39
+ Go to `127.0.0.1:10420/spliffy`
40
40
 
41
41
  # [Documentation](https://srfnstack.github.io/spliffy/)
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@srfnstack/spliffy",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "author": "snowbldr",
5
5
  "private": false,
6
6
  "homepage": "https://github.com/narcolepticsnowman/spliffy",
@@ -32,13 +32,13 @@
32
32
  "dependencies": {
33
33
  "cookie": "^0.4.1",
34
34
  "etag": "^1.8.1",
35
- "uWebSockets.js": "uNetworking/uWebSockets.js#v20.10.0",
36
- "uuid": "^8.3.2"
35
+ "uuid": "^8.3.2",
36
+ "uWebSockets.js": "github:uNetworking/uWebSockets.js#v20.24.0"
37
37
  },
38
38
  "devDependencies": {
39
- "standard": "^16.0.4",
40
39
  "helmet": "^4.6.0",
41
40
  "jest": "^27.3.1",
42
- "node-fetch": "^2.6.7"
41
+ "node-fetch": "^2.6.7",
42
+ "standard": "^16.0.4"
43
43
  }
44
44
  }
package/src/decorator.mjs CHANGED
@@ -47,7 +47,7 @@ export function decorateRequest (uwsReq, pathParameters, res, {
47
47
  req.url = `${req.path}${query ? '?' + query : ''}`
48
48
  req.spliffyUrl = {
49
49
  path: req.path,
50
- query: query && parseQuery(query, decodeQueryParameters),
50
+ query: (query && parseQuery(query, decodeQueryParameters)) || {},
51
51
  pathParameters: {}
52
52
  }
53
53
  if (pathParameters && pathParameters.length > 0) {