@codefresh-io/cf-telemetry 2.0.0-alpha.6 → 2.0.0-alpha.8

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 +1,2 @@
1
- export { client, metrics, register, } from './index';
1
+ export { client, register } from './client';
2
+ export * as metrics from './metrics';
@@ -1,8 +1,41 @@
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
2
35
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.register = exports.metrics = exports.client = void 0;
4
- var index_1 = require("./index");
5
- Object.defineProperty(exports, "client", { enumerable: true, get: function () { return index_1.client; } });
6
- Object.defineProperty(exports, "metrics", { enumerable: true, get: function () { return index_1.metrics; } });
7
- Object.defineProperty(exports, "register", { enumerable: true, get: function () { return index_1.register; } });
36
+ exports.metrics = exports.register = exports.client = void 0;
37
+ var client_1 = require("./client");
38
+ Object.defineProperty(exports, "client", { enumerable: true, get: function () { return client_1.client; } });
39
+ Object.defineProperty(exports, "register", { enumerable: true, get: function () { return client_1.register; } });
40
+ exports.metrics = __importStar(require("./metrics"));
8
41
  //# sourceMappingURL=public.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/metrics/prometheus/public.ts"],"names":[],"mappings":";;;AAAA,iCAIiB;AAHf,+FAAA,MAAM,OAAA;AACN,gGAAA,OAAO,OAAA;AACP,iGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../src/metrics/prometheus/public.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA4C;AAAnC,gGAAA,MAAM,OAAA;AAAE,kGAAA,QAAQ,OAAA;AACzB,qDAAqC"}
package/package.json CHANGED
@@ -1,29 +1,34 @@
1
1
  {
2
2
  "name": "@codefresh-io/cf-telemetry",
3
- "version": "2.0.0-alpha.6",
3
+ "version": "2.0.0-alpha.8",
4
4
  "exports": {
5
5
  "./init": "./dist/init.mjs",
6
6
  ".": {
7
+ "types": "./dist/index.d.ts",
7
8
  "node": "./dist/index.js",
8
9
  "import": "./dist/index.js",
9
10
  "require": "./dist/index.js"
10
11
  },
11
12
  "./logs": {
13
+ "types": "./dist/logs/public.d.ts",
12
14
  "node": "./dist/logs/public.js",
13
15
  "import": "./dist/logs/public.js",
14
16
  "require": "./dist/logs/public.js"
15
17
  },
16
18
  "./metrics/mongodb": {
19
+ "types": "./dist/metrics/mongodb/public.d.ts",
17
20
  "node": "./dist/metrics/mongodb/public.js",
18
21
  "import": "./dist/metrics/mongodb/public.js",
19
22
  "require": "./dist/metrics/mongodb/public.js"
20
23
  },
21
24
  "./metrics/prometheus": {
25
+ "types": "./dist/metrics/prometheus/public.d.ts",
22
26
  "node": "./dist/metrics/prometheus/public.js",
23
27
  "import": "./dist/metrics/prometheus/public.js",
24
28
  "require": "./dist/metrics/prometheus/public.js"
25
29
  },
26
30
  "./otel": {
31
+ "types": "./dist/otel/public.d.ts",
27
32
  "node": "./dist/otel/public.js",
28
33
  "import": "./dist/otel/public.js",
29
34
  "require": "./dist/otel/public.js"