@orderly.network/net 1.0.98 → 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.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +12 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
- package/src/errors/apiError.ts +6 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @orderly.network/net@1.0.
|
|
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
|
|
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
|
|
18
|
+
ESM ⚡️ Build success in 23ms
|
|
19
19
|
DTS Build start
|
|
20
|
-
DTS ⚡️ Build success in
|
|
21
|
-
DTS dist/index.d.ts 3.
|
|
22
|
-
DTS dist/index.d.mts 3.
|
|
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
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
|
-
|
|
10
|
-
|
|
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
|
-
|
|
18
|
-
|
|
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
|
-
|
|
10
|
-
|
|
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
|
-
|
|
18
|
-
|
|
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