@donmahallem/turbo 2.3.1 → 2.3.5

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/dist/cjs/index.js CHANGED
@@ -82,6 +82,6 @@ class RequestError extends Error {
82
82
  exports.RequestError = RequestError;
83
83
  exports.promiseRequestHandler = promiseRequestHandler;
84
84
  exports.promiseToResponse = promiseToResponse;
85
- // BUILD: Fri Dec 10 2021 15:20:55 GMT+0100 (Central European Standard Time)
85
+ // BUILD: Fri Jan 07 2022 14:37:04 GMT+0100 (Central European Standard Time)
86
86
 
87
87
  //# sourceMappingURL=index.js.map
package/dist/esm/index.js CHANGED
@@ -76,6 +76,6 @@ class RequestError extends Error {
76
76
  }
77
77
 
78
78
  export { RequestError, promiseRequestHandler, promiseToResponse };
79
- // BUILD: Fri Dec 10 2021 15:20:55 GMT+0100 (Central European Standard Time)
79
+ // BUILD: Fri Jan 07 2022 14:37:04 GMT+0100 (Central European Standard Time)
80
80
 
81
81
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { Request, RequestHandler, Response } from 'express';
1
+ import type { Request, RequestHandler, Response } from 'express';
2
2
  declare type MethodInterface<T> = (req?: Request, res?: Response<T>) => Promise<T>;
3
3
  /**
4
4
  * Does create an request handler that transforms a provided promise
@@ -1 +1 @@
1
- {"version":3,"file":"promise-request-handler.d.ts","sourceRoot":"","sources":["../../src/promise-request-handler.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAI1E,aAAK,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,cAIhE,CAAC"}
1
+ {"version":3,"file":"promise-request-handler.d.ts","sourceRoot":"","sources":["../../src/promise-request-handler.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAgB,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE/E,aAAK,eAAe,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,cAIhE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { NextFunction, Response } from 'express';
1
+ import type { NextFunction, Response } from 'express';
2
2
  declare type MethodType = <T>(prom: Promise<T>, res: Response, next?: NextFunction) => void;
3
3
  /**
4
4
  * Awaits an promise and returns it
@@ -1 +1 @@
1
- {"version":3,"file":"promise-to-response.d.ts","sourceRoot":"","sources":["../../src/promise-to-response.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGjD,aAAK,UAAU,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;AAEpF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,UA2B/B,CAAC"}
1
+ {"version":3,"file":"promise-to-response.d.ts","sourceRoot":"","sources":["../../src/promise-to-response.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEtD,aAAK,UAAU,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,YAAY,KAAK,IAAI,CAAC;AAEpF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,UA2B/B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@donmahallem/turbo",
3
- "version": "2.3.1",
3
+ "version": "2.3.5",
4
4
  "description": "Turbo Helpers for express.js",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -54,12 +54,12 @@
54
54
  "@types/express": "4.17.13",
55
55
  "@types/supertest": "2.0.11",
56
56
  "axios": "0.24.0",
57
- "express": "4.17.1",
57
+ "express": "4.17.2",
58
58
  "supertest": "6.1.6"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "axios": "^0.24.0",
62
62
  "express": "^4.17.1"
63
63
  },
64
- "gitHead": "fa4c1e9bb2becb6793534cd6623437f6f63c8a60"
64
+ "gitHead": "e2af192e734e8d884a8cde9537b152721ca53cee"
65
65
  }
@@ -3,9 +3,9 @@
3
3
  * Source https://github.com/donmahallem/js-libs/tree/master/packages/turbo
4
4
  */
5
5
 
6
- import { NextFunction, Request, RequestHandler, Response } from 'express';
7
6
  import { IErrorResponse } from './error-response';
8
7
  import { promiseToResponse } from './promise-to-response';
8
+ import type { NextFunction, Request, RequestHandler, Response } from 'express';
9
9
 
10
10
  type MethodInterface<T> = (req?: Request, res?: Response<T>) => Promise<T>;
11
11
 
@@ -3,9 +3,9 @@
3
3
  * Source https://github.com/donmahallem/js-libs/tree/master/packages/turbo
4
4
  */
5
5
 
6
- import { AxiosError } from 'axios';
7
- import { NextFunction, Response } from 'express';
8
6
  import { IErrorResponse } from './error-response';
7
+ import type { AxiosError } from 'axios';
8
+ import type { NextFunction, Response } from 'express';
9
9
 
10
10
  type MethodType = <T>(prom: Promise<T>, res: Response, next?: NextFunction) => void;
11
11