@promster/metrics 9.1.3 → 9.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.
@@ -386,7 +386,7 @@ const normalizeStatusCode = statusCode => statusCode;
386
386
 
387
387
  const urlValueParser = new UrlValueParser__default["default"]();
388
388
 
389
- const normalizePath = path => urlValueParser.replacePathValues(url__default["default"].parse(path).pathname);
389
+ const normalizePath = path => urlValueParser.replacePathValues(url__default["default"].parse(path).pathname, '#val');
390
390
 
391
391
  const normalizeMethod = method => method.toLowerCase();
392
392
 
@@ -412,7 +412,7 @@ class Timing {
412
412
  seconds: undefined
413
413
  };
414
414
  return {
415
- seconds: Number((endTime - startTime) / Timing.NS_PER_SEC)
415
+ seconds: Number(endTime - startTime) / Number(Timing.NS_PER_SEC)
416
416
  };
417
417
  }
418
418
 
@@ -386,7 +386,7 @@ const normalizeStatusCode = statusCode => statusCode;
386
386
 
387
387
  const urlValueParser = new UrlValueParser__default["default"]();
388
388
 
389
- const normalizePath = path => urlValueParser.replacePathValues(url__default["default"].parse(path).pathname);
389
+ const normalizePath = path => urlValueParser.replacePathValues(url__default["default"].parse(path).pathname, '#val');
390
390
 
391
391
  const normalizeMethod = method => method.toLowerCase();
392
392
 
@@ -412,7 +412,7 @@ class Timing {
412
412
  seconds: undefined
413
413
  };
414
414
  return {
415
- seconds: Number((endTime - startTime) / Timing.NS_PER_SEC)
415
+ seconds: Number(endTime - startTime) / Number(Timing.NS_PER_SEC)
416
416
  };
417
417
  }
418
418
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promster/metrics",
3
- "version": "9.1.3",
3
+ "version": "9.1.4",
4
4
  "description": "Metrics utilities used by all other server integrations",
5
5
  "main": "dist/promster-metrics.cjs.js",
6
6
  "typings": "dist/promster-metrics.cjs.d.ts",
@@ -51,7 +51,7 @@
51
51
  "typescript": "4.5.5"
52
52
  },
53
53
  "optionalDependencies": {
54
- "@sematext/gc-stats": "1.5.6"
54
+ "@sematext/gc-stats": "1.5.7"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "prom-client": "13.x.x || 14.x"