wallaby-cash 3.6.0 → 3.7.0
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/base.d.ts +16 -3
- package/dist/index.cjs.js +74 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +74 -30
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +74 -30
- package/dist/index.js.map +1 -1
- package/dist/package.json +7 -4
- package/dist/types/base.d.ts +8 -2
- package/dist/types/common.d.ts +9 -8
- package/package.json +7 -4
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wallaby-cash",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/WALLABY-WaaS/wallaby-sdk-js"
|
|
@@ -134,14 +134,17 @@
|
|
|
134
134
|
"lodash": "^4.18.0",
|
|
135
135
|
"@tootallnate/once": "^3.0.1",
|
|
136
136
|
"markdown-it": "^14.1.1",
|
|
137
|
+
"linkify-it": "^5.0.2",
|
|
137
138
|
"defu": "^6.1.5",
|
|
138
139
|
"diff": "^5.2.2",
|
|
139
|
-
"tar": "^7.5.
|
|
140
|
+
"tar": "^7.5.20",
|
|
141
|
+
"brace-expansion": "^2.1.2",
|
|
142
|
+
"npm": "^11.18.0",
|
|
140
143
|
"jsdom": {
|
|
141
144
|
"ws": "^8.20.1"
|
|
142
145
|
},
|
|
143
146
|
"undici": "^7.19.0",
|
|
144
|
-
"js-yaml": "^4.
|
|
147
|
+
"js-yaml": "^4.3.0",
|
|
145
148
|
"pbkdf2": "^3.1.3",
|
|
146
149
|
"esbuild": "^0.28.1",
|
|
147
150
|
"form-data": "^4.0.6",
|
|
@@ -152,7 +155,7 @@
|
|
|
152
155
|
"@octokit/plugin-paginate-rest": "^9.2.2",
|
|
153
156
|
"@octokit/plugin-throttling": "^8.1.0",
|
|
154
157
|
"serialize-javascript": "^7.0.3",
|
|
155
|
-
"shell-quote": "^1.
|
|
158
|
+
"shell-quote": "^1.9.0"
|
|
156
159
|
},
|
|
157
160
|
"size-limit": [
|
|
158
161
|
{
|
package/dist/types/base.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PlatformOSType } from '../lib/auth';
|
|
2
|
-
import { Encrypted } from './common';
|
|
2
|
+
import { Encrypted, WallabyError } from './common';
|
|
3
3
|
import { LocalStorage } from './storage';
|
|
4
4
|
/**
|
|
5
5
|
* AuthTokens contains two values `accessToken` and `clientAuthToken`.
|
|
@@ -82,7 +82,13 @@ export interface DeviceInformation {
|
|
|
82
82
|
* @property { storage } - The storage engine that is used to store data.
|
|
83
83
|
*/
|
|
84
84
|
export declare type WallabyConfigOptions = {
|
|
85
|
-
|
|
85
|
+
/**
|
|
86
|
+
* Fired once per failed transport request with the surfaced WallabyError
|
|
87
|
+
* (network/4xx/5xx). Pre-send SDK guard errors (e.g. expired client JWT,
|
|
88
|
+
* missing storage) are NOT routed here. Consumers filter to network-only via
|
|
89
|
+
* `errorCode === 'NETWORK_ERROR' || status === 0`.
|
|
90
|
+
*/
|
|
91
|
+
onError?: (error: WallabyError) => void;
|
|
86
92
|
headers?: {
|
|
87
93
|
[key: string]: string;
|
|
88
94
|
};
|
package/dist/types/common.d.ts
CHANGED
|
@@ -7,6 +7,14 @@ export declare type GetDecryptedSeedPhraseResponse = {
|
|
|
7
7
|
standardSeedPhrase: UtilsResponse;
|
|
8
8
|
algorandSeedPhrase: UtilsResponse;
|
|
9
9
|
};
|
|
10
|
+
export declare type WallabyErrorPayload = {
|
|
11
|
+
message: string;
|
|
12
|
+
statusCode: number;
|
|
13
|
+
errorCode?: ErrorResponseCodes | string;
|
|
14
|
+
data?: any;
|
|
15
|
+
cause?: unknown;
|
|
16
|
+
onError?: () => void;
|
|
17
|
+
};
|
|
10
18
|
/**
|
|
11
19
|
* @class WallabyError
|
|
12
20
|
* @extends Error
|
|
@@ -22,14 +30,7 @@ export declare class WallabyError extends Error {
|
|
|
22
30
|
status?: number;
|
|
23
31
|
cause?: unknown;
|
|
24
32
|
onError?: () => void;
|
|
25
|
-
constructor(errorPayload:
|
|
26
|
-
message: string;
|
|
27
|
-
statusCode: number;
|
|
28
|
-
errorCode?: ErrorResponseCodes | string;
|
|
29
|
-
data?: any;
|
|
30
|
-
cause?: unknown;
|
|
31
|
-
onError?: () => void;
|
|
32
|
-
});
|
|
33
|
+
constructor(errorPayload: WallabyErrorPayload);
|
|
33
34
|
static isWallabyError(error: any): error is WallabyError;
|
|
34
35
|
}
|
|
35
36
|
export declare type PasswordValidatorResponse = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wallaby-cash",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/WALLABY-WaaS/wallaby-sdk-js"
|
|
@@ -134,14 +134,17 @@
|
|
|
134
134
|
"lodash": "^4.18.0",
|
|
135
135
|
"@tootallnate/once": "^3.0.1",
|
|
136
136
|
"markdown-it": "^14.1.1",
|
|
137
|
+
"linkify-it": "^5.0.2",
|
|
137
138
|
"defu": "^6.1.5",
|
|
138
139
|
"diff": "^5.2.2",
|
|
139
|
-
"tar": "^7.5.
|
|
140
|
+
"tar": "^7.5.20",
|
|
141
|
+
"brace-expansion": "^2.1.2",
|
|
142
|
+
"npm": "^11.18.0",
|
|
140
143
|
"jsdom": {
|
|
141
144
|
"ws": "^8.20.1"
|
|
142
145
|
},
|
|
143
146
|
"undici": "^7.19.0",
|
|
144
|
-
"js-yaml": "^4.
|
|
147
|
+
"js-yaml": "^4.3.0",
|
|
145
148
|
"pbkdf2": "^3.1.3",
|
|
146
149
|
"esbuild": "^0.28.1",
|
|
147
150
|
"form-data": "^4.0.6",
|
|
@@ -152,7 +155,7 @@
|
|
|
152
155
|
"@octokit/plugin-paginate-rest": "^9.2.2",
|
|
153
156
|
"@octokit/plugin-throttling": "^8.1.0",
|
|
154
157
|
"serialize-javascript": "^7.0.3",
|
|
155
|
-
"shell-quote": "^1.
|
|
158
|
+
"shell-quote": "^1.9.0"
|
|
156
159
|
},
|
|
157
160
|
"size-limit": [
|
|
158
161
|
{
|