@k03mad/simple-prom 5.13.0 → 5.13.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.
@@ -1,6 +1,5 @@
1
1
  import os from 'node:os';
2
2
 
3
- import {logError} from '@k03mad/simple-log';
4
3
  import client from 'prom-client';
5
4
 
6
5
  /**
@@ -34,7 +33,8 @@ export const registerMetrics = ({appName, port, metrics, metricsTurnOff = []}) =
34
33
  try {
35
34
  await collect(this);
36
35
  } catch (err) {
37
- logError([`>> ${name}`, err]);
36
+ console.error(`>> ${name}`);
37
+ console.error(err);
38
38
  }
39
39
  },
40
40
  });
package/app/lib/server.js CHANGED
@@ -1,5 +1,3 @@
1
- import {getDateYMDHMS} from '@k03mad/simple-date';
2
- import {log} from '@k03mad/simple-log';
3
1
  import compression from 'compression';
4
2
  import express from 'express';
5
3
  import helmet from 'helmet';
@@ -34,8 +32,8 @@ export const startMetricsServer = ({appName, port, metrics, metricsTurnOff, debu
34
32
  res.send(data);
35
33
  });
36
34
 
37
- app.listen(port, () => log([
38
- `[${getDateYMDHMS()}]`,
35
+ app.listen(port, () => console.log([
36
+ `[${String(new Date())}]`,
39
37
  nameText(appName),
40
38
  'started on port',
41
39
  numText(port),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k03mad/simple-prom",
3
- "version": "5.13.0",
3
+ "version": "5.13.2",
4
4
  "description": "Simple prom-client library",
5
5
  "maintainers": [
6
6
  "Kirill Molchanov <k03.mad@gmail.com"
@@ -16,8 +16,6 @@
16
16
  "node": ">=22"
17
17
  },
18
18
  "dependencies": {
19
- "@k03mad/simple-date": "4.16.0",
20
- "@k03mad/simple-log": "5.3.0",
21
19
  "chalk": "5.6.2",
22
20
  "compression": "1.8.1",
23
21
  "express": "5.1.0",