@epic-js/express-profiler 0.1.3 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +2 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -37,6 +37,8 @@ GET /users 200 1.4ms
37
37
 
38
38
  ## Usage
39
39
  ```bash
40
+ const { wrapAsync } = require('@epic-js/express-profiler/wrappers');
41
+
40
42
  app.get('/slow', async (req, res) => {
41
43
  const dbTask = wrapAsync(() => new Promise(r => setTimeout(r, 300)), 'DB', req);
42
44
  const apiTask = wrapAsync(() => new Promise(r => setTimeout(r, 200)), 'External API', req);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epic-js/express-profiler",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Lightweight Express API profiler with route/middleware/async timing",
5
5
  "main": "index.js",
6
6
  "bin": {