@donmahallem/turbo 2.3.2 → 2.3.6

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 24 2021 23:38:00 GMT+0100 (Central European Standard Time)
85
+ // BUILD: Sun Jan 09 2022 16:11:10 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 24 2021 23:38:00 GMT+0100 (Central European Standard Time)
79
+ // BUILD: Sun Jan 09 2022 16:11:10 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.2",
3
+ "version": "2.3.6",
4
4
  "description": "Turbo Helpers for express.js",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -61,5 +61,5 @@
61
61
  "axios": "^0.24.0",
62
62
  "express": "^4.17.1"
63
63
  },
64
- "gitHead": "b63ac10a47594d6aed8e9135767446aed967faad"
64
+ "gitHead": "ae310e8e8ddcb44648ee865511ebf6c0af3ae60f"
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