@midwayjs/prometheus 3.1.2 → 3.1.7-alpha.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.
- package/dist/config/config.default.d.ts +2 -2
- package/dist/config/types.d.ts +2 -0
- package/dist/config/types.js +3 -0
- package/dist/configuration.d.ts +2 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +15 -0
- package/index.d.ts +3 -3
- package/package.json +6 -6
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const prometheus:
|
|
1
|
+
import { PrometheusConfig } from './types';
|
|
2
|
+
export declare const prometheus: PrometheusConfig;
|
|
3
3
|
//# sourceMappingURL=config.default.d.ts.map
|
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
|
@@ -37,7 +37,7 @@ let PrometheusConfiguration = class PrometheusConfiguration {
|
|
|
37
37
|
}
|
|
38
38
|
this.http_server = http
|
|
39
39
|
.createServer((req, res) => {
|
|
40
|
-
const query = qs.parse(req.url.
|
|
40
|
+
const query = qs.parse(req.url.slice('/?'.length));
|
|
41
41
|
const params = JSON.parse(query.params);
|
|
42
42
|
handlers[`${query.path}`](...params).then(result => {
|
|
43
43
|
res.end(result);
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,8 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
17
|
exports.DataService = exports.Configuration = void 0;
|
|
4
18
|
var configuration_1 = require("./configuration");
|
|
5
19
|
Object.defineProperty(exports, "Configuration", { enumerable: true, get: function () { return configuration_1.PrometheusConfiguration; } });
|
|
6
20
|
var dataService_1 = require("./service/dataService");
|
|
7
21
|
Object.defineProperty(exports, "DataService", { enumerable: true, get: function () { return dataService_1.DataService; } });
|
|
22
|
+
__exportStar(require("./config/types"), exports);
|
|
8
23
|
//# sourceMappingURL=index.js.map
|
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PrometheusConfig } from './dist/index';
|
|
2
2
|
|
|
3
3
|
export * from './dist/index';
|
|
4
4
|
|
|
5
|
-
declare module '@midwayjs/core
|
|
5
|
+
declare module '@midwayjs/core' {
|
|
6
6
|
interface MidwayConfig {
|
|
7
|
-
prometheus?:
|
|
7
|
+
prometheus?: PrometheusConfig;
|
|
8
8
|
}
|
|
9
9
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/prometheus",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.7-alpha.0",
|
|
4
4
|
"description": "midway component for prometheus",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "index.d.ts",
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
],
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@midwayjs/core": "^3.1.
|
|
27
|
-
"@midwayjs/decorator": "^3.
|
|
28
|
-
"@midwayjs/koa": "^3.1.
|
|
29
|
-
"@midwayjs/mock": "^3.1.
|
|
26
|
+
"@midwayjs/core": "^3.1.7-alpha.0",
|
|
27
|
+
"@midwayjs/decorator": "^3.1.6",
|
|
28
|
+
"@midwayjs/koa": "^3.1.7-alpha.0",
|
|
29
|
+
"@midwayjs/mock": "^3.1.7-alpha.0",
|
|
30
30
|
"@types/request": "2.48.8"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"engines": {
|
|
37
37
|
"node": ">=12"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "8cb6db25f7eb794d9c61aaf69a43ac6506a289b5"
|
|
40
40
|
}
|