@promster/metrics 9.1.1 → 9.1.2
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.
|
@@ -485,8 +485,11 @@ class Timing {
|
|
|
485
485
|
|
|
486
486
|
const endTime = _classPrivateFieldGet(this, _endTime);
|
|
487
487
|
|
|
488
|
+
if (!endTime || !startTime) return {
|
|
489
|
+
seconds: undefined
|
|
490
|
+
};
|
|
488
491
|
return {
|
|
489
|
-
seconds:
|
|
492
|
+
seconds: Number((endTime - startTime) / Timing.NS_PER_SEC)
|
|
490
493
|
};
|
|
491
494
|
}
|
|
492
495
|
|
|
@@ -485,8 +485,11 @@ class Timing {
|
|
|
485
485
|
|
|
486
486
|
const endTime = _classPrivateFieldGet(this, _endTime);
|
|
487
487
|
|
|
488
|
+
if (!endTime || !startTime) return {
|
|
489
|
+
seconds: undefined
|
|
490
|
+
};
|
|
488
491
|
return {
|
|
489
|
-
seconds:
|
|
492
|
+
seconds: Number((endTime - startTime) / Timing.NS_PER_SEC)
|
|
490
493
|
};
|
|
491
494
|
}
|
|
492
495
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promster/metrics",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
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",
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"ts-essentials": "9.0.0",
|
|
44
44
|
"tslib": "2.3.1",
|
|
45
45
|
"url": "0.11.0",
|
|
46
|
-
"url-value-parser": "2.0
|
|
46
|
+
"url-value-parser": "2.1.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@promster/types": "^3.2.2",
|
|
50
|
-
"@types/lodash": "4.14.
|
|
50
|
+
"@types/lodash": "4.14.178",
|
|
51
51
|
"prom-client": "14.0.1",
|
|
52
|
-
"typescript": "4.
|
|
52
|
+
"typescript": "4.5.4"
|
|
53
53
|
},
|
|
54
54
|
"optionalDependencies": {
|
|
55
55
|
"@sematext/gc-stats": "1.5.5"
|