@opra/http 1.12.6 → 1.14.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/cjs/express-adapter.js +1 -1
- package/esm/express-adapter.js +1 -1
- package/package.json +5 -4
package/cjs/express-adapter.js
CHANGED
|
@@ -106,7 +106,7 @@ class ExpressAdapter extends http_adapter_js_1.HttpAdapter {
|
|
|
106
106
|
processResource(c, '/');
|
|
107
107
|
}
|
|
108
108
|
/** Add an endpoint that returns 404 error at last */
|
|
109
|
-
router.use('*', (_req, _res, next) => {
|
|
109
|
+
router.use('/{*splat}', (_req, _res, next) => {
|
|
110
110
|
createContext(_req, _res)
|
|
111
111
|
.then(ctx => {
|
|
112
112
|
ctx.errors.push(new common_1.NotFoundError({
|
package/esm/express-adapter.js
CHANGED
|
@@ -102,7 +102,7 @@ export class ExpressAdapter extends HttpAdapter {
|
|
|
102
102
|
processResource(c, '/');
|
|
103
103
|
}
|
|
104
104
|
/** Add an endpoint that returns 404 error at last */
|
|
105
|
-
router.use('*', (_req, _res, next) => {
|
|
105
|
+
router.use('/{*splat}', (_req, _res, next) => {
|
|
106
106
|
createContext(_req, _res)
|
|
107
107
|
.then(ctx => {
|
|
108
108
|
ctx.errors.push(new NotFoundError({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/http",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "Opra Http Server Adapter",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"cookie-signature": "^1.2.2",
|
|
20
20
|
"cppzst": "^2.0.12",
|
|
21
21
|
"encodeurl": "^2.0.0",
|
|
22
|
+
"expect": "^29.7.0",
|
|
22
23
|
"fast-tokenizer": "^1.7.0",
|
|
23
24
|
"fresh": "^0.5.2",
|
|
24
25
|
"iconv-lite": "^0.6.3",
|
|
@@ -31,12 +32,12 @@
|
|
|
31
32
|
"reflect-metadata": "^0.2.2",
|
|
32
33
|
"super-fast-md5": "^1.0.3",
|
|
33
34
|
"tslib": "^2.8.1",
|
|
34
|
-
"valgen": "^5.
|
|
35
|
+
"valgen": "^5.14.0",
|
|
35
36
|
"vary": "^1.1.2"
|
|
36
37
|
},
|
|
37
38
|
"peerDependencies": {
|
|
38
|
-
"@opra/common": "^1.
|
|
39
|
-
"@opra/core": "^1.
|
|
39
|
+
"@opra/common": "^1.14.0",
|
|
40
|
+
"@opra/core": "^1.14.0"
|
|
40
41
|
},
|
|
41
42
|
"optionalDependencies": {
|
|
42
43
|
"express": "^4.0.0 || ^5.0.0",
|