statelog-client 0.0.33 → 0.0.34

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/index.d.ts CHANGED
@@ -18,6 +18,12 @@ export declare class StatelogClient {
18
18
  traceId?: string;
19
19
  debugMode?: boolean;
20
20
  });
21
+ toJSON(): {
22
+ traceId: string;
23
+ projectId: string;
24
+ host: string;
25
+ debugMode: boolean;
26
+ };
21
27
  debug(message: string, data: any): Promise<void>;
22
28
  graph({ nodes, edges, startNode, }: {
23
29
  nodes: string[];
package/dist/index.js CHANGED
@@ -23,6 +23,14 @@ export class StatelogClient {
23
23
  throw new Error("API key is required for StatelogClient");
24
24
  }
25
25
  }
26
+ toJSON() {
27
+ return {
28
+ traceId: this.traceId,
29
+ projectId: this.projectId,
30
+ host: this.host,
31
+ debugMode: this.debugMode,
32
+ };
33
+ }
26
34
  debug(message, data) {
27
35
  return __awaiter(this, void 0, void 0, function* () {
28
36
  yield this.post({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "statelog-client",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "description": "A client for statelog, a logging app",
5
5
  "homepage": "https://github.com/egonSchiele/statelog-client",
6
6
  "scripts": {