@orderly.network/net 1.0.99 → 1.0.100

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,5 +1,5 @@
1
1
 
2
- > @orderly.network/net@1.0.98 build /Users/leo/orderly/orderly-web/packages/net
2
+ > @orderly.network/net@1.0.99 build /Users/leo/orderly/orderly-web/packages/net
3
3
  > tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -12,11 +12,11 @@ CJS Build start
12
12
  ESM Build start
13
13
  CJS dist/index.js 19.38 KB
14
14
  CJS dist/index.js.map 33.42 KB
15
- CJS ⚡️ Build success in 44ms
15
+ CJS ⚡️ Build success in 23ms
16
16
  ESM dist/index.mjs 18.34 KB
17
17
  ESM dist/index.mjs.map 33.18 KB
18
- ESM ⚡️ Build success in 45ms
18
+ ESM ⚡️ Build success in 23ms
19
19
  DTS Build start
20
- DTS ⚡️ Build success in 1181ms
21
- DTS dist/index.d.ts 3.17 KB
22
- DTS dist/index.d.mts 3.17 KB
20
+ DTS ⚡️ Build success in 1604ms
21
+ DTS dist/index.d.ts 3.14 KB
22
+ DTS dist/index.d.mts 3.14 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @orderly.network/net
2
2
 
3
+ ## 1.0.100
4
+
5
+ ### Patch Changes
6
+
7
+ - fix bug
8
+
3
9
  ## 1.0.99
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -6,16 +6,16 @@ declare function mutate(url: string, init: RequestInit): Promise<any>;
6
6
 
7
7
  declare const __ORDERLY_API_URL_KEY__: string;
8
8
 
9
- declare type NetworkId = "testnet" | "mainnet";
10
- declare type WSOptions = {
9
+ type NetworkId = "testnet" | "mainnet";
10
+ type WSOptions = {
11
11
  privateUrl: string;
12
12
  publicUrl: string;
13
13
  networkId?: NetworkId;
14
14
  accountId?: string;
15
15
  onSigntureRequest?: (accountId: string) => Promise<any>;
16
16
  };
17
- declare type unsubscribe = () => void;
18
- declare type WSMessageHandler = {
17
+ type unsubscribe = () => void;
18
+ type WSMessageHandler = {
19
19
  onMessage: (message: any) => void;
20
20
  onError?: (error: any) => void;
21
21
  onClose?: (event: any) => void;
package/dist/index.d.ts CHANGED
@@ -6,16 +6,16 @@ declare function mutate(url: string, init: RequestInit): Promise<any>;
6
6
 
7
7
  declare const __ORDERLY_API_URL_KEY__: string;
8
8
 
9
- declare type NetworkId = "testnet" | "mainnet";
10
- declare type WSOptions = {
9
+ type NetworkId = "testnet" | "mainnet";
10
+ type WSOptions = {
11
11
  privateUrl: string;
12
12
  publicUrl: string;
13
13
  networkId?: NetworkId;
14
14
  accountId?: string;
15
15
  onSigntureRequest?: (accountId: string) => Promise<any>;
16
16
  };
17
- declare type unsubscribe = () => void;
18
- declare type WSMessageHandler = {
17
+ type unsubscribe = () => void;
18
+ type WSMessageHandler = {
19
19
  onMessage: (message: any) => void;
20
20
  onError?: (error: any) => void;
21
21
  onClose?: (event: any) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderly.network/net",
3
- "version": "1.0.99",
3
+ "version": "1.0.100",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -0,0 +1,6 @@
1
+ export class ApiError extends Error {
2
+ constructor(message: string, private readonly code: number) {
3
+ super(message);
4
+ this.name = "ApiError";
5
+ }
6
+ }