@promster/server 7.0.7 → 8.0.0

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,5 +1,5 @@
1
1
  import * as http from 'http';
2
- declare type TServerOptions = {
2
+ type TServerOptions = {
3
3
  port: number;
4
4
  hostname: string;
5
5
  detectKubernetes: boolean;
@@ -30,9 +30,9 @@ const defaultOptions = {
30
30
  hostname: '0.0.0.0',
31
31
  detectKubernetes: false
32
32
  };
33
-
34
33
  const createServer = async options => {
35
- const defaultedOptions = { ...defaultOptions,
34
+ const defaultedOptions = {
35
+ ...defaultOptions,
36
36
  ...options
37
37
  };
38
38
  return new Promise((resolve, reject) => {
@@ -30,9 +30,9 @@ const defaultOptions = {
30
30
  hostname: '0.0.0.0',
31
31
  detectKubernetes: false
32
32
  };
33
-
34
33
  const createServer = async options => {
35
- const defaultedOptions = { ...defaultOptions,
34
+ const defaultedOptions = {
35
+ ...defaultOptions,
36
36
  ...options
37
37
  };
38
38
  return new Promise((resolve, reject) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promster/server",
3
- "version": "7.0.7",
3
+ "version": "8.0.0",
4
4
  "description": "Server exposing metrics under GET /metrics",
5
5
  "main": "dist/promster-server.cjs.js",
6
6
  "typings": "dist/promster-server.cjs.d.ts",
@@ -16,8 +16,8 @@
16
16
  "access": "public"
17
17
  },
18
18
  "engines": {
19
- "node": ">=14",
20
- "npm": ">=6"
19
+ "node": ">=16",
20
+ "npm": ">=8"
21
21
  },
22
22
  "repository": {
23
23
  "type": "git",
@@ -36,10 +36,10 @@
36
36
  "prometheus"
37
37
  ],
38
38
  "dependencies": {
39
- "@promster/metrics": "^9.1.5",
40
- "tslib": "2.3.1"
39
+ "@promster/metrics": "^10.0.0",
40
+ "tslib": "2.4.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@types/node": "17.0.21"
43
+ "@types/node": "18.17.12"
44
44
  }
45
- }
45
+ }