@donmahallem/turbo 2.4.2 → 2.4.4
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Request, RequestHandler, Response } from 'express';
|
|
2
|
-
|
|
2
|
+
type MethodInterface<T> = (req?: Request, res?: Response<T>) => Promise<T>;
|
|
3
3
|
/**
|
|
4
4
|
* Does create an request handler that transforms a provided promise
|
|
5
5
|
* into an response
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NextFunction, Response } from 'express';
|
|
2
|
-
|
|
2
|
+
type MethodType = <T>(prom: Promise<T>, res: Response, next?: NextFunction) => void;
|
|
3
3
|
/**
|
|
4
4
|
* Awaits an promise and returns it
|
|
5
5
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donmahallem/turbo",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "Turbo Helpers for express.js",
|
|
5
5
|
"main": "./dist/cjs/index.cjs",
|
|
6
6
|
"types": "./dist/types/index.d.ts",
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/express": "4.17.
|
|
53
|
+
"@types/express": "4.17.14",
|
|
54
54
|
"@types/supertest": "2.0.12",
|
|
55
|
-
"axios": "
|
|
56
|
-
"express": "4.18.
|
|
57
|
-
"supertest": "6.
|
|
55
|
+
"axios": "1.1.3",
|
|
56
|
+
"express": "4.18.2",
|
|
57
|
+
"supertest": "6.3.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"axios": "^0.
|
|
60
|
+
"axios": "^1.0.0",
|
|
61
61
|
"express": "^4.17.1"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "400bcfdd8470dc9d32f33c818ea7f6f89db70abb"
|
|
64
64
|
}
|