@promster/server 14.0.0 → 15.0.1

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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 suǝʞǝǝpʇ
3
+ Copyright (c) 2025 suǝʞǝǝpʇ
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,5 +1,4 @@
1
- /// <reference types="node" />
2
- import { type Server } from 'http';
1
+ import { type Server } from 'node:http';
3
2
  type TServerOptions = {
4
3
  port: number;
5
4
  hostname: string;
@@ -1,2 +1,2 @@
1
- export * from "./declarations/src/index";
1
+ export * from "./declarations/src/index.js";
2
2
  //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvbXN0ZXItc2VydmVyLmNqcy5kLnRzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi9kZWNsYXJhdGlvbnMvc3JjL2luZGV4LmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEifQ==
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var http = require('http');
5
+ var node_http = require('node:http');
6
6
  var metrics = require('@promster/metrics');
7
7
  var types = require('@promster/types');
8
8
 
@@ -16,7 +16,7 @@ const createServer = async options => {
16
16
  ...defaultOptions,
17
17
  ...options
18
18
  };
19
- const server = http.createServer(async (_req, res) => {
19
+ const server = node_http.createServer(async (_req, res) => {
20
20
  res.writeHead(200, 'OK', {
21
21
  'content-type': metrics.getContentType()
22
22
  });
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var http = require('http');
5
+ var node_http = require('node:http');
6
6
  var metrics = require('@promster/metrics');
7
7
  var types = require('@promster/types');
8
8
 
@@ -16,7 +16,7 @@ const createServer = async options => {
16
16
  ...defaultOptions,
17
17
  ...options
18
18
  };
19
- const server = http.createServer(async (_req, res) => {
19
+ const server = node_http.createServer(async (_req, res) => {
20
20
  res.writeHead(200, 'OK', {
21
21
  'content-type': metrics.getContentType()
22
22
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promster/server",
3
- "version": "14.0.0",
3
+ "version": "15.0.1",
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",
@@ -36,11 +36,12 @@
36
36
  "prometheus"
37
37
  ],
38
38
  "dependencies": {
39
- "@promster/metrics": "^14.0.0",
40
- "@promster/types": "^14.0.0",
41
- "tslib": "2.6.2"
39
+ "tslib": "2.8.1",
40
+ "@promster/metrics": "15.0.1",
41
+ "@promster/types": "15.0.1"
42
42
  },
43
43
  "devDependencies": {
44
- "@types/node": "20.11.30"
44
+ "@types/node": "22.14.0",
45
+ "parse-prometheus-text-format": "1.1.1"
45
46
  }
46
47
  }