@zerohash-sdk/crypto-buy-react 1.21.18 → 1.21.20
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.d.ts +6 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -225,6 +225,12 @@ declare enum ErrorCode {
|
|
|
225
225
|
NETWORK_ERROR = 'network_error',
|
|
226
226
|
/** Authentication or session expired error */
|
|
227
227
|
AUTH_ERROR = 'auth_error',
|
|
228
|
+
/**
|
|
229
|
+
* JWT is valid but lacks the permissions this SDK requires. `reason`
|
|
230
|
+
* lists the missing permissions so the integrator can see what the token
|
|
231
|
+
* needs when they next mint it.
|
|
232
|
+
*/
|
|
233
|
+
INVALID_PERMISSIONS = 'invalid_permissions',
|
|
228
234
|
/** Resource not found error */
|
|
229
235
|
NOT_FOUND_ERROR = 'not_found_error',
|
|
230
236
|
/** Validation error from user input */
|
package/dist/index.js
CHANGED
|
@@ -127,7 +127,7 @@ var c = {
|
|
|
127
127
|
return E ? (T(E, !1), () => {
|
|
128
128
|
b = !0, C();
|
|
129
129
|
}) : h;
|
|
130
|
-
}, b = () => "1.21.
|
|
130
|
+
}, b = () => "1.21.20", x = {
|
|
131
131
|
local: {
|
|
132
132
|
BASE_URL: "/",
|
|
133
133
|
DEV: !1,
|
|
@@ -173,7 +173,7 @@ var c = {
|
|
|
173
173
|
//#region ../../../common/callbacks/dist/shared/models.js
|
|
174
174
|
var w;
|
|
175
175
|
(function(e) {
|
|
176
|
-
e.NETWORK_ERROR = "network_error", e.AUTH_ERROR = "auth_error", e.NOT_FOUND_ERROR = "not_found_error", e.VALIDATION_ERROR = "validation_error", e.SERVER_ERROR = "server_error", e.CLIENT_ERROR = "client_error", e.UNKNOWN_ERROR = "unknown_error";
|
|
176
|
+
e.NETWORK_ERROR = "network_error", e.AUTH_ERROR = "auth_error", e.INVALID_PERMISSIONS = "invalid_permissions", e.NOT_FOUND_ERROR = "not_found_error", e.VALIDATION_ERROR = "validation_error", e.SERVER_ERROR = "server_error", e.CLIENT_ERROR = "client_error", e.UNKNOWN_ERROR = "unknown_error";
|
|
177
177
|
})(w ||= {});
|
|
178
178
|
//#endregion
|
|
179
179
|
//#region ../../../common/react-sdk-base/dist/script-load-fallback.js
|