@arrirpc/client 0.63.2 → 0.63.3

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.cjs CHANGED
@@ -40,11 +40,12 @@ class ArriErrorInstance extends Error {
40
40
  this.data = input.data;
41
41
  }
42
42
  toJSON() {
43
- const stack = this.serverStack ?? this.stack;
44
43
  return {
45
44
  code: this.code,
46
45
  message: this._internalMessage,
47
- stack: stack?.split("\n").map((l) => l.trim()),
46
+ // stack:
47
+ // typeof stack?.split === "function" &&
48
+ // stack?.split("\n").map((l) => l.trim()),
48
49
  data: this.data
49
50
  };
50
51
  }
package/dist/index.d.cts CHANGED
@@ -23,7 +23,6 @@ declare class ArriErrorInstance extends Error implements ArriError {
23
23
  toJSON(): {
24
24
  code: number;
25
25
  message: string;
26
- stack: string[] | undefined;
27
26
  data: any;
28
27
  };
29
28
  static fromJson(json: unknown): ArriErrorInstance;
package/dist/index.d.mts CHANGED
@@ -23,7 +23,6 @@ declare class ArriErrorInstance extends Error implements ArriError {
23
23
  toJSON(): {
24
24
  code: number;
25
25
  message: string;
26
- stack: string[] | undefined;
27
26
  data: any;
28
27
  };
29
28
  static fromJson(json: unknown): ArriErrorInstance;
package/dist/index.d.ts CHANGED
@@ -23,7 +23,6 @@ declare class ArriErrorInstance extends Error implements ArriError {
23
23
  toJSON(): {
24
24
  code: number;
25
25
  message: string;
26
- stack: string[] | undefined;
27
26
  data: any;
28
27
  };
29
28
  static fromJson(json: unknown): ArriErrorInstance;
package/dist/index.mjs CHANGED
@@ -35,11 +35,12 @@ class ArriErrorInstance extends Error {
35
35
  this.data = input.data;
36
36
  }
37
37
  toJSON() {
38
- const stack = this.serverStack ?? this.stack;
39
38
  return {
40
39
  code: this.code,
41
40
  message: this._internalMessage,
42
- stack: stack?.split("\n").map((l) => l.trim()),
41
+ // stack:
42
+ // typeof stack?.split === "function" &&
43
+ // stack?.split("\n").map((l) => l.trim()),
43
44
  data: this.data
44
45
  };
45
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/client",
3
- "version": "0.63.2",
3
+ "version": "0.63.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -25,7 +25,7 @@
25
25
  "event-source-plus": "^0.1.7",
26
26
  "ofetch": "^1.4.1",
27
27
  "ws": "^8.18.0",
28
- "@arrirpc/schema": "0.63.2"
28
+ "@arrirpc/schema": "0.63.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/ws": "^8.5.12"