@arrirpc/client 0.63.1 → 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
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const schema = require('@arrirpc/schema');
4
- const ofetch = require('@joshmossas/ofetch');
4
+ const ofetch = require('ofetch');
5
5
  const eventSourcePlus = require('event-source-plus');
6
6
  const NodeWebsocket = require('ws');
7
7
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  import { serializeSmallString } from '@arrirpc/schema';
2
- import { ofetch, FetchError } from '@joshmossas/ofetch';
2
+ import { ofetch, FetchError } from 'ofetch';
3
3
  import { EventSourcePlus } from 'event-source-plus';
4
4
  export * from 'event-source-plus';
5
5
  import NodeWebsocket from 'ws';
@@ -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.1",
3
+ "version": "0.63.3",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -22,10 +22,10 @@
22
22
  "directory": "languages/ts/ts-client"
23
23
  },
24
24
  "dependencies": {
25
- "@joshmossas/ofetch": "^1.3.5",
26
- "event-source-plus": "^0.1.4",
25
+ "event-source-plus": "^0.1.7",
26
+ "ofetch": "^1.4.1",
27
27
  "ws": "^8.18.0",
28
- "@arrirpc/schema": "0.63.1"
28
+ "@arrirpc/schema": "0.63.3"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/ws": "^8.5.12"