azify-logger 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/index.d.ts +6 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -75,12 +75,17 @@ export const streams: {
75
75
  createPinoStream: any;
76
76
  };
77
77
 
78
+ /**
79
+ * Express middleware function type
80
+ */
81
+ export type ExpressMiddleware = (req: any, res: any, next: () => void) => void;
82
+
78
83
  /**
79
84
  * Middleware for different frameworks
80
85
  */
81
86
  export const middleware: {
82
87
  restify: any;
83
- express: () => any;
88
+ express: () => ExpressMiddleware;
84
89
  };
85
90
 
86
91
  export default AzifyLogger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "azify-logger",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Azify Logger Client - Centralized logging for OpenSearch",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",