@nitro/app 9.0.3 → 9.2.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.
@@ -123,10 +123,10 @@ function getView(req, res, next) {
123
123
  next();
124
124
  }
125
125
  }
126
- router.get('/', getView);
127
- router.get('/:view', getView);
126
+ router.all('/', getView);
127
+ router.all('/:view', getView);
128
128
  // subpathes will be routed to the main view if it exists
129
- router.get('/:view/*', getView);
129
+ router.all('/:view/*', getView);
130
130
 
131
131
  /**
132
132
  * everything else gets a 404
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nitro/app",
3
- "version": "9.0.3",
3
+ "version": "9.2.0",
4
4
  "description": "Nitro server",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -34,32 +34,32 @@
34
34
  "dependencies": {
35
35
  "ajv": "8.12.0",
36
36
  "body-parser": "1.20.2",
37
- "cli-color": "2.0.3",
37
+ "cli-color": "2.0.4",
38
38
  "compression": "1.7.4",
39
- "cookie-session": "2.0.0",
40
- "config": "3.3.10",
39
+ "cookie-session": "2.1.0",
40
+ "config": "3.3.11",
41
41
  "dot-object": "2.1.4",
42
- "express": "4.18.2",
42
+ "express": "4.19.1",
43
43
  "extend": "3.0.2",
44
44
  "globby": "11.1.0",
45
45
  "hbs": "4.2.0",
46
46
  "hbs-utils": "0.0.4",
47
47
  "html-validate": "7.18.1",
48
- "i18next": "23.7.16",
48
+ "i18next": "23.10.1",
49
49
  "i18next-http-middleware": "3.5.0",
50
50
  "i18next-fs-backend": "2.3.1",
51
51
  "i18next-sprintf-postprocessor": "0.2.2",
52
52
  "jasmine": "5.1.0",
53
- "jasmine-core": "5.1.1",
53
+ "jasmine-core": "5.1.2",
54
54
  "lodash": "4.17.21",
55
55
  "twig": "1.13.3",
56
56
  "webpack": "4.47.0",
57
57
  "webpack-dev-middleware": "5.3.3",
58
- "webpack-hot-middleware": "2.26.0"
58
+ "webpack-hot-middleware": "2.26.1"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@merkle-open/eslint-config": "3.0.0",
62
- "eslint": "8.56.0",
62
+ "eslint": "8.57.0",
63
63
  "eslint-plugin-import": "2.29.1"
64
64
  },
65
65
  "publishConfig": {