@tracewayapp/core 0.1.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/README.md +32 -0
- package/dist/index.d.mts +67 -0
- package/dist/index.d.ts +67 -0
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +48 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +25 -0
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @tracewayapp/core
|
|
2
|
+
|
|
3
|
+
Shared types and utilities for all Traceway JavaScript SDKs. Zero runtime dependencies.
|
|
4
|
+
|
|
5
|
+
## Types
|
|
6
|
+
|
|
7
|
+
| Type | Description |
|
|
8
|
+
|------|-------------|
|
|
9
|
+
| `ExceptionStackTrace` | Exception/message record matching the Traceway protocol |
|
|
10
|
+
| `MetricRecord` | Metric data point (`name`, `value`, `recordedAt`) |
|
|
11
|
+
| `Span` | Sub-operation span within a trace |
|
|
12
|
+
| `Trace` | Endpoint or task trace |
|
|
13
|
+
| `CollectionFrame` | Batch of stack traces, metrics, and traces |
|
|
14
|
+
| `ReportRequest` | Top-level request payload sent to `/api/report` |
|
|
15
|
+
| `TracewayOptions` | Configuration options for SDK initialization |
|
|
16
|
+
|
|
17
|
+
## Utilities
|
|
18
|
+
|
|
19
|
+
| Function | Description |
|
|
20
|
+
|----------|-------------|
|
|
21
|
+
| `generateUUID()` | Generate a UUID v4 string |
|
|
22
|
+
| `parseConnectionString(str)` | Split `{token}@{apiUrl}` into `{ token, apiUrl }` |
|
|
23
|
+
| `nowISO()` | Current time as ISO 8601 string |
|
|
24
|
+
| `msToNanoseconds(ms)` | Convert milliseconds to nanoseconds (integer) |
|
|
25
|
+
|
|
26
|
+
## Constants
|
|
27
|
+
|
|
28
|
+
| Constant | Value |
|
|
29
|
+
|----------|-------|
|
|
30
|
+
| `METRIC_MEM_USED` | `"mem.used"` |
|
|
31
|
+
| `METRIC_MEM_TOTAL` | `"mem.total"` |
|
|
32
|
+
| `METRIC_CPU_USED_PCNT` | `"cpu.used_pcnt"` |
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
interface ExceptionStackTrace {
|
|
2
|
+
traceId: string | null;
|
|
3
|
+
isTask?: boolean;
|
|
4
|
+
stackTrace: string;
|
|
5
|
+
recordedAt: string;
|
|
6
|
+
attributes?: Record<string, string>;
|
|
7
|
+
isMessage: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface MetricRecord {
|
|
10
|
+
name: string;
|
|
11
|
+
value: number;
|
|
12
|
+
recordedAt: string;
|
|
13
|
+
}
|
|
14
|
+
interface Span {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
startTime: string;
|
|
18
|
+
duration: number;
|
|
19
|
+
}
|
|
20
|
+
interface Trace {
|
|
21
|
+
id: string;
|
|
22
|
+
endpoint: string;
|
|
23
|
+
duration: number;
|
|
24
|
+
recordedAt: string;
|
|
25
|
+
statusCode: number;
|
|
26
|
+
bodySize: number;
|
|
27
|
+
clientIP: string;
|
|
28
|
+
attributes?: Record<string, string>;
|
|
29
|
+
spans?: Span[];
|
|
30
|
+
isTask?: boolean;
|
|
31
|
+
}
|
|
32
|
+
interface CollectionFrame {
|
|
33
|
+
stackTraces: ExceptionStackTrace[];
|
|
34
|
+
metrics: MetricRecord[];
|
|
35
|
+
traces: Trace[];
|
|
36
|
+
}
|
|
37
|
+
interface ReportRequest {
|
|
38
|
+
collectionFrames: CollectionFrame[];
|
|
39
|
+
appVersion: string;
|
|
40
|
+
serverName: string;
|
|
41
|
+
}
|
|
42
|
+
interface TracewayOptions {
|
|
43
|
+
debug?: boolean;
|
|
44
|
+
maxCollectionFrames?: number;
|
|
45
|
+
collectionInterval?: number;
|
|
46
|
+
uploadThrottle?: number;
|
|
47
|
+
metricsInterval?: number;
|
|
48
|
+
version?: string;
|
|
49
|
+
serverName?: string;
|
|
50
|
+
sampleRate?: number;
|
|
51
|
+
errorSampleRate?: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare function generateUUID(): string;
|
|
55
|
+
interface ParsedConnectionString {
|
|
56
|
+
token: string;
|
|
57
|
+
apiUrl: string;
|
|
58
|
+
}
|
|
59
|
+
declare function parseConnectionString(connectionString: string): ParsedConnectionString;
|
|
60
|
+
declare function nowISO(): string;
|
|
61
|
+
declare function msToNanoseconds(ms: number): number;
|
|
62
|
+
|
|
63
|
+
declare const METRIC_MEM_USED = "mem.used";
|
|
64
|
+
declare const METRIC_MEM_TOTAL = "mem.total";
|
|
65
|
+
declare const METRIC_CPU_USED_PCNT = "cpu.used_pcnt";
|
|
66
|
+
|
|
67
|
+
export { type CollectionFrame, type ExceptionStackTrace, METRIC_CPU_USED_PCNT, METRIC_MEM_TOTAL, METRIC_MEM_USED, type MetricRecord, type ParsedConnectionString, type ReportRequest, type Span, type Trace, type TracewayOptions, generateUUID, msToNanoseconds, nowISO, parseConnectionString };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
interface ExceptionStackTrace {
|
|
2
|
+
traceId: string | null;
|
|
3
|
+
isTask?: boolean;
|
|
4
|
+
stackTrace: string;
|
|
5
|
+
recordedAt: string;
|
|
6
|
+
attributes?: Record<string, string>;
|
|
7
|
+
isMessage: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface MetricRecord {
|
|
10
|
+
name: string;
|
|
11
|
+
value: number;
|
|
12
|
+
recordedAt: string;
|
|
13
|
+
}
|
|
14
|
+
interface Span {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
startTime: string;
|
|
18
|
+
duration: number;
|
|
19
|
+
}
|
|
20
|
+
interface Trace {
|
|
21
|
+
id: string;
|
|
22
|
+
endpoint: string;
|
|
23
|
+
duration: number;
|
|
24
|
+
recordedAt: string;
|
|
25
|
+
statusCode: number;
|
|
26
|
+
bodySize: number;
|
|
27
|
+
clientIP: string;
|
|
28
|
+
attributes?: Record<string, string>;
|
|
29
|
+
spans?: Span[];
|
|
30
|
+
isTask?: boolean;
|
|
31
|
+
}
|
|
32
|
+
interface CollectionFrame {
|
|
33
|
+
stackTraces: ExceptionStackTrace[];
|
|
34
|
+
metrics: MetricRecord[];
|
|
35
|
+
traces: Trace[];
|
|
36
|
+
}
|
|
37
|
+
interface ReportRequest {
|
|
38
|
+
collectionFrames: CollectionFrame[];
|
|
39
|
+
appVersion: string;
|
|
40
|
+
serverName: string;
|
|
41
|
+
}
|
|
42
|
+
interface TracewayOptions {
|
|
43
|
+
debug?: boolean;
|
|
44
|
+
maxCollectionFrames?: number;
|
|
45
|
+
collectionInterval?: number;
|
|
46
|
+
uploadThrottle?: number;
|
|
47
|
+
metricsInterval?: number;
|
|
48
|
+
version?: string;
|
|
49
|
+
serverName?: string;
|
|
50
|
+
sampleRate?: number;
|
|
51
|
+
errorSampleRate?: number;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare function generateUUID(): string;
|
|
55
|
+
interface ParsedConnectionString {
|
|
56
|
+
token: string;
|
|
57
|
+
apiUrl: string;
|
|
58
|
+
}
|
|
59
|
+
declare function parseConnectionString(connectionString: string): ParsedConnectionString;
|
|
60
|
+
declare function nowISO(): string;
|
|
61
|
+
declare function msToNanoseconds(ms: number): number;
|
|
62
|
+
|
|
63
|
+
declare const METRIC_MEM_USED = "mem.used";
|
|
64
|
+
declare const METRIC_MEM_TOTAL = "mem.total";
|
|
65
|
+
declare const METRIC_CPU_USED_PCNT = "cpu.used_pcnt";
|
|
66
|
+
|
|
67
|
+
export { type CollectionFrame, type ExceptionStackTrace, METRIC_CPU_USED_PCNT, METRIC_MEM_TOTAL, METRIC_MEM_USED, type MetricRecord, type ParsedConnectionString, type ReportRequest, type Span, type Trace, type TracewayOptions, generateUUID, msToNanoseconds, nowISO, parseConnectionString };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
METRIC_CPU_USED_PCNT: () => METRIC_CPU_USED_PCNT,
|
|
24
|
+
METRIC_MEM_TOTAL: () => METRIC_MEM_TOTAL,
|
|
25
|
+
METRIC_MEM_USED: () => METRIC_MEM_USED,
|
|
26
|
+
generateUUID: () => generateUUID,
|
|
27
|
+
msToNanoseconds: () => msToNanoseconds,
|
|
28
|
+
nowISO: () => nowISO,
|
|
29
|
+
parseConnectionString: () => parseConnectionString
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(index_exports);
|
|
32
|
+
|
|
33
|
+
// src/utils.ts
|
|
34
|
+
function generateUUID() {
|
|
35
|
+
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
36
|
+
return crypto.randomUUID();
|
|
37
|
+
}
|
|
38
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
39
|
+
const r = Math.random() * 16 | 0;
|
|
40
|
+
const v = c === "x" ? r : r & 3 | 8;
|
|
41
|
+
return v.toString(16);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function parseConnectionString(connectionString) {
|
|
45
|
+
const atIndex = connectionString.indexOf("@");
|
|
46
|
+
if (atIndex === -1) {
|
|
47
|
+
throw new Error(
|
|
48
|
+
"Invalid connection string: must be in format {token}@{apiUrl}"
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
const token = connectionString.slice(0, atIndex);
|
|
52
|
+
const apiUrl = connectionString.slice(atIndex + 1);
|
|
53
|
+
if (!token || !apiUrl) {
|
|
54
|
+
throw new Error(
|
|
55
|
+
"Invalid connection string: token and apiUrl must not be empty"
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
return { token, apiUrl };
|
|
59
|
+
}
|
|
60
|
+
function nowISO() {
|
|
61
|
+
return (/* @__PURE__ */ new Date()).toISOString();
|
|
62
|
+
}
|
|
63
|
+
function msToNanoseconds(ms) {
|
|
64
|
+
return Math.round(ms * 1e6);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// src/constants.ts
|
|
68
|
+
var METRIC_MEM_USED = "mem.used";
|
|
69
|
+
var METRIC_MEM_TOTAL = "mem.total";
|
|
70
|
+
var METRIC_CPU_USED_PCNT = "cpu.used_pcnt";
|
|
71
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
72
|
+
0 && (module.exports = {
|
|
73
|
+
METRIC_CPU_USED_PCNT,
|
|
74
|
+
METRIC_MEM_TOTAL,
|
|
75
|
+
METRIC_MEM_USED,
|
|
76
|
+
generateUUID,
|
|
77
|
+
msToNanoseconds,
|
|
78
|
+
nowISO,
|
|
79
|
+
parseConnectionString
|
|
80
|
+
});
|
|
81
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/utils.ts","../src/constants.ts"],"sourcesContent":["export type {\n ExceptionStackTrace,\n MetricRecord,\n Span,\n Trace,\n CollectionFrame,\n ReportRequest,\n TracewayOptions,\n} from \"./types.js\";\n\nexport {\n generateUUID,\n parseConnectionString,\n nowISO,\n msToNanoseconds,\n} from \"./utils.js\";\nexport type { ParsedConnectionString } from \"./utils.js\";\n\nexport {\n METRIC_MEM_USED,\n METRIC_MEM_TOTAL,\n METRIC_CPU_USED_PCNT,\n} from \"./constants.js\";\n","export function generateUUID(): string {\n if (\n typeof crypto !== \"undefined\" &&\n typeof crypto.randomUUID === \"function\"\n ) {\n return crypto.randomUUID();\n }\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16) | 0;\n const v = c === \"x\" ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n\nexport interface ParsedConnectionString {\n token: string;\n apiUrl: string;\n}\n\nexport function parseConnectionString(\n connectionString: string,\n): ParsedConnectionString {\n const atIndex = connectionString.indexOf(\"@\");\n if (atIndex === -1) {\n throw new Error(\n \"Invalid connection string: must be in format {token}@{apiUrl}\",\n );\n }\n const token = connectionString.slice(0, atIndex);\n const apiUrl = connectionString.slice(atIndex + 1);\n if (!token || !apiUrl) {\n throw new Error(\n \"Invalid connection string: token and apiUrl must not be empty\",\n );\n }\n return { token, apiUrl };\n}\n\nexport function nowISO(): string {\n return new Date().toISOString();\n}\n\nexport function msToNanoseconds(ms: number): number {\n return Math.round(ms * 1_000_000);\n}\n","export const METRIC_MEM_USED = \"mem.used\";\nexport const METRIC_MEM_TOTAL = \"mem.total\";\nexport const METRIC_CPU_USED_PCNT = \"cpu.used_pcnt\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,SAAS,eAAuB;AACrC,MACE,OAAO,WAAW,eAClB,OAAO,OAAO,eAAe,YAC7B;AACA,WAAO,OAAO,WAAW;AAAA,EAC3B;AACA,SAAO,uCAAuC,QAAQ,SAAS,CAAC,MAAM;AACpE,UAAM,IAAK,KAAK,OAAO,IAAI,KAAM;AACjC,UAAM,IAAI,MAAM,MAAM,IAAK,IAAI,IAAO;AACtC,WAAO,EAAE,SAAS,EAAE;AAAA,EACtB,CAAC;AACH;AAOO,SAAS,sBACd,kBACwB;AACxB,QAAM,UAAU,iBAAiB,QAAQ,GAAG;AAC5C,MAAI,YAAY,IAAI;AAClB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,QAAM,QAAQ,iBAAiB,MAAM,GAAG,OAAO;AAC/C,QAAM,SAAS,iBAAiB,MAAM,UAAU,CAAC;AACjD,MAAI,CAAC,SAAS,CAAC,QAAQ;AACrB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO,EAAE,OAAO,OAAO;AACzB;AAEO,SAAS,SAAiB;AAC/B,UAAO,oBAAI,KAAK,GAAE,YAAY;AAChC;AAEO,SAAS,gBAAgB,IAAoB;AAClD,SAAO,KAAK,MAAM,KAAK,GAAS;AAClC;;;AC5CO,IAAM,kBAAkB;AACxB,IAAM,mBAAmB;AACzB,IAAM,uBAAuB;","names":[]}
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// src/utils.ts
|
|
2
|
+
function generateUUID() {
|
|
3
|
+
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
4
|
+
return crypto.randomUUID();
|
|
5
|
+
}
|
|
6
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
7
|
+
const r = Math.random() * 16 | 0;
|
|
8
|
+
const v = c === "x" ? r : r & 3 | 8;
|
|
9
|
+
return v.toString(16);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function parseConnectionString(connectionString) {
|
|
13
|
+
const atIndex = connectionString.indexOf("@");
|
|
14
|
+
if (atIndex === -1) {
|
|
15
|
+
throw new Error(
|
|
16
|
+
"Invalid connection string: must be in format {token}@{apiUrl}"
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
const token = connectionString.slice(0, atIndex);
|
|
20
|
+
const apiUrl = connectionString.slice(atIndex + 1);
|
|
21
|
+
if (!token || !apiUrl) {
|
|
22
|
+
throw new Error(
|
|
23
|
+
"Invalid connection string: token and apiUrl must not be empty"
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
return { token, apiUrl };
|
|
27
|
+
}
|
|
28
|
+
function nowISO() {
|
|
29
|
+
return (/* @__PURE__ */ new Date()).toISOString();
|
|
30
|
+
}
|
|
31
|
+
function msToNanoseconds(ms) {
|
|
32
|
+
return Math.round(ms * 1e6);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// src/constants.ts
|
|
36
|
+
var METRIC_MEM_USED = "mem.used";
|
|
37
|
+
var METRIC_MEM_TOTAL = "mem.total";
|
|
38
|
+
var METRIC_CPU_USED_PCNT = "cpu.used_pcnt";
|
|
39
|
+
export {
|
|
40
|
+
METRIC_CPU_USED_PCNT,
|
|
41
|
+
METRIC_MEM_TOTAL,
|
|
42
|
+
METRIC_MEM_USED,
|
|
43
|
+
generateUUID,
|
|
44
|
+
msToNanoseconds,
|
|
45
|
+
nowISO,
|
|
46
|
+
parseConnectionString
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils.ts","../src/constants.ts"],"sourcesContent":["export function generateUUID(): string {\n if (\n typeof crypto !== \"undefined\" &&\n typeof crypto.randomUUID === \"function\"\n ) {\n return crypto.randomUUID();\n }\n return \"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g, (c) => {\n const r = (Math.random() * 16) | 0;\n const v = c === \"x\" ? r : (r & 0x3) | 0x8;\n return v.toString(16);\n });\n}\n\nexport interface ParsedConnectionString {\n token: string;\n apiUrl: string;\n}\n\nexport function parseConnectionString(\n connectionString: string,\n): ParsedConnectionString {\n const atIndex = connectionString.indexOf(\"@\");\n if (atIndex === -1) {\n throw new Error(\n \"Invalid connection string: must be in format {token}@{apiUrl}\",\n );\n }\n const token = connectionString.slice(0, atIndex);\n const apiUrl = connectionString.slice(atIndex + 1);\n if (!token || !apiUrl) {\n throw new Error(\n \"Invalid connection string: token and apiUrl must not be empty\",\n );\n }\n return { token, apiUrl };\n}\n\nexport function nowISO(): string {\n return new Date().toISOString();\n}\n\nexport function msToNanoseconds(ms: number): number {\n return Math.round(ms * 1_000_000);\n}\n","export const METRIC_MEM_USED = \"mem.used\";\nexport const METRIC_MEM_TOTAL = \"mem.total\";\nexport const METRIC_CPU_USED_PCNT = \"cpu.used_pcnt\";\n"],"mappings":";AAAO,SAAS,eAAuB;AACrC,MACE,OAAO,WAAW,eAClB,OAAO,OAAO,eAAe,YAC7B;AACA,WAAO,OAAO,WAAW;AAAA,EAC3B;AACA,SAAO,uCAAuC,QAAQ,SAAS,CAAC,MAAM;AACpE,UAAM,IAAK,KAAK,OAAO,IAAI,KAAM;AACjC,UAAM,IAAI,MAAM,MAAM,IAAK,IAAI,IAAO;AACtC,WAAO,EAAE,SAAS,EAAE;AAAA,EACtB,CAAC;AACH;AAOO,SAAS,sBACd,kBACwB;AACxB,QAAM,UAAU,iBAAiB,QAAQ,GAAG;AAC5C,MAAI,YAAY,IAAI;AAClB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,QAAM,QAAQ,iBAAiB,MAAM,GAAG,OAAO;AAC/C,QAAM,SAAS,iBAAiB,MAAM,UAAU,CAAC;AACjD,MAAI,CAAC,SAAS,CAAC,QAAQ;AACrB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACA,SAAO,EAAE,OAAO,OAAO;AACzB;AAEO,SAAS,SAAiB;AAC/B,UAAO,oBAAI,KAAK,GAAE,YAAY;AAChC;AAEO,SAAS,gBAAgB,IAAoB;AAClD,SAAO,KAAK,MAAM,KAAK,GAAS;AAClC;;;AC5CO,IAAM,kBAAkB;AACxB,IAAM,mBAAmB;AACzB,IAAM,uBAAuB;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tracewayapp/core",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared types and utilities for Traceway SDKs",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsup",
|
|
23
|
+
"dev": "tsup --watch"
|
|
24
|
+
}
|
|
25
|
+
}
|