@loopback/example-metrics-prometheus 0.12.2 → 0.12.4
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.12.4](https://github.com/loopbackio/loopback-next/compare/@loopback/example-metrics-prometheus@0.12.3...@loopback/example-metrics-prometheus@0.12.4) (2023-12-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @loopback/example-metrics-prometheus
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.12.3](https://github.com/loopbackio/loopback-next/compare/@loopback/example-metrics-prometheus@0.12.2...@loopback/example-metrics-prometheus@0.12.3) (2023-09-12)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @loopback/example-metrics-prometheus
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.12.2](https://github.com/loopbackio/loopback-next/compare/@loopback/example-metrics-prometheus@0.12.1...@loopback/example-metrics-prometheus@0.12.2) (2023-08-15)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @loopback/example-metrics-prometheus
|
|
@@ -9,7 +9,7 @@ const tslib_1 = require("tslib");
|
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
10
|
const rest_1 = require("@loopback/rest");
|
|
11
11
|
const services_1 = require("../services");
|
|
12
|
-
let GreetingController =
|
|
12
|
+
let GreetingController = class GreetingController {
|
|
13
13
|
constructor(greetingService) {
|
|
14
14
|
this.greetingService = greetingService;
|
|
15
15
|
}
|
|
@@ -21,6 +21,7 @@ let GreetingController = exports.GreetingController = class GreetingController {
|
|
|
21
21
|
return Promise.all(tasks);
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
|
+
exports.GreetingController = GreetingController;
|
|
24
25
|
tslib_1.__decorate([
|
|
25
26
|
(0, rest_1.get)('/greet/{name}'),
|
|
26
27
|
tslib_1.__param(0, rest_1.param.path.string('name')),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greeting.controller.js","sourceRoot":"","sources":["../../src/controllers/greeting.controller.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,oDAAoD;AACpD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,yCAA0C;AAC1C,0CAA4C;AAE5C,IAAa,kBAAkB,
|
|
1
|
+
{"version":3,"file":"greeting.controller.js","sourceRoot":"","sources":["../../src/controllers/greeting.controller.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,oDAAoD;AACpD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAsC;AACtC,yCAA0C;AAC1C,0CAA4C;AAE5C,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;IAC7B,YAEU,eAAgC;QAAhC,oBAAe,GAAf,eAAe,CAAiB;IACvC,CAAC;IAGE,AAAN,KAAK,CAAC,KAAK,CACkB,IAAY,EACV,QAAQ,CAAC;QAEtC,MAAM,KAAK,GAAsB,EAAE,CAAC;QACpC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;YAC9B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;SAC9C;QACD,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;CACF,CAAA;AAjBY,gDAAkB;AAOvB;IADL,IAAA,UAAG,EAAC,eAAe,CAAC;IAElB,mBAAA,YAAK,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IACzB,mBAAA,YAAK,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;;;;+CAO7B;6BAhBU,kBAAkB;IAE1B,mBAAA,IAAA,aAAM,EAAC,0BAA0B,EAAE,EAAC,uBAAuB,EAAE,IAAI,EAAC,CAAC,CAAA;6CAC3C,0BAAe;GAH/B,kBAAkB,CAiB9B"}
|
|
@@ -9,7 +9,7 @@ const tslib_1 = require("tslib");
|
|
|
9
9
|
const core_1 = require("@loopback/core");
|
|
10
10
|
const util_1 = require("util");
|
|
11
11
|
const sleep = (0, util_1.promisify)(setTimeout);
|
|
12
|
-
let GreetingService =
|
|
12
|
+
let GreetingService = class GreetingService {
|
|
13
13
|
async greet(name) {
|
|
14
14
|
const ts = new Date().toISOString();
|
|
15
15
|
// Delay for a random duration between 0 and 100ms
|
|
@@ -18,6 +18,7 @@ let GreetingService = exports.GreetingService = class GreetingService {
|
|
|
18
18
|
return `[${ts}: ${delayInMs}] Hello, ${name}`;
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
+
exports.GreetingService = GreetingService;
|
|
21
22
|
exports.GreetingService = GreetingService = tslib_1.__decorate([
|
|
22
23
|
(0, core_1.injectable)({ tags: { [core_1.ContextTags.NAMESPACE]: 'services' } })
|
|
23
24
|
], GreetingService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"greeting.service.js","sourceRoot":"","sources":["../../src/services/greeting.service.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,oDAAoD;AACpD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAuD;AACvD,+BAA+B;AAC/B,MAAM,KAAK,GAAG,IAAA,gBAAS,EAAC,UAAU,CAAC,CAAC;AAG7B,IAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"greeting.service.js","sourceRoot":"","sources":["../../src/services/greeting.service.ts"],"names":[],"mappings":";AAAA,2EAA2E;AAC3E,oDAAoD;AACpD,+CAA+C;AAC/C,gEAAgE;;;;AAEhE,yCAAuD;AACvD,+BAA+B;AAC/B,MAAM,KAAK,GAAG,IAAA,gBAAS,EAAC,UAAU,CAAC,CAAC;AAG7B,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,KAAK,CAAC,KAAK,CAAC,IAAY;QACtB,MAAM,EAAE,GAAG,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;QACpC,kDAAkD;QAClD,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;QAClD,MAAM,KAAK,CAAC,SAAS,CAAC,CAAC;QACvB,OAAO,IAAI,EAAE,KAAK,SAAS,YAAY,IAAI,EAAE,CAAC;IAChD,CAAC;CACF,CAAA;AARY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,iBAAU,EAAC,EAAC,IAAI,EAAE,EAAC,CAAC,kBAAW,CAAC,SAAS,CAAC,EAAE,UAAU,EAAC,EAAC,CAAC;GAC7C,eAAe,CAQ3B"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loopback/example-metrics-prometheus",
|
|
3
3
|
"description": "An example to illustrate metrics provided by @loopback/metrics and Prometheus",
|
|
4
|
-
"version": "0.12.
|
|
4
|
+
"version": "0.12.4",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"loopback",
|
|
7
7
|
"LoopBack",
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@loopback/boot": "^6.1.
|
|
51
|
-
"@loopback/core": "^5.1.
|
|
52
|
-
"@loopback/metrics": "^0.13.
|
|
53
|
-
"@loopback/rest": "^13.1.
|
|
54
|
-
"tslib": "^2.6.
|
|
50
|
+
"@loopback/boot": "^6.1.4",
|
|
51
|
+
"@loopback/core": "^5.1.4",
|
|
52
|
+
"@loopback/metrics": "^0.13.4",
|
|
53
|
+
"@loopback/rest": "^13.1.4",
|
|
54
|
+
"tslib": "^2.6.2"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@loopback/build": "^10.1.
|
|
58
|
-
"@loopback/eslint-config": "^14.0.
|
|
59
|
-
"@loopback/testlab": "^6.1.
|
|
60
|
-
"@types/node": "^16.18.
|
|
61
|
-
"eslint": "^8.
|
|
62
|
-
"typescript": "~5.
|
|
57
|
+
"@loopback/build": "^10.1.4",
|
|
58
|
+
"@loopback/eslint-config": "^14.0.5",
|
|
59
|
+
"@loopback/testlab": "^6.1.4",
|
|
60
|
+
"@types/node": "^16.18.68",
|
|
61
|
+
"eslint": "^8.51.0",
|
|
62
|
+
"typescript": "~5.2.2"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "5326aa3ae03bd01b970917f96d0403dd5102aef1"
|
|
65
65
|
}
|