@dynamic-labs/utils 4.9.11 → 4.9.12
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/CHANGELOG.md +10 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +4 -4
- package/src/errors/ErrorCode.cjs +1 -0
- package/src/errors/ErrorCode.d.ts +2 -1
- package/src/errors/ErrorCode.js +1 -0
- package/src/errors/SeiNotEnabledInKeplrWalletError.cjs +15 -0
- package/src/errors/SeiNotEnabledInKeplrWalletError.d.ts +4 -0
- package/src/errors/SeiNotEnabledInKeplrWalletError.js +11 -0
- package/src/errors/index.d.ts +1 -0
- package/src/index.cjs +2 -0
- package/src/index.js +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.9.12](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.11...v4.9.12) (2025-03-28)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* prevent event subscription from throwing a page error ([#8393](https://github.com/dynamic-labs/dynamic-auth/issues/8393)) ([eda85cd](https://github.com/dynamic-labs/dynamic-auth/commit/eda85cdeed4cc208e20618882cf3e5a54b176356))
|
|
8
|
+
* global wallet popup in rainbowkit reopening ([#8395](https://github.com/dynamic-labs/dynamic-auth/issues/8395)) ([5473e87](https://github.com/dynamic-labs/dynamic-auth/commit/5473e87834c5a2102f7d87fc649590726bc390c7))
|
|
9
|
+
* notify user when sei is not enable in keplr ([#8396](https://github.com/dynamic-labs/dynamic-auth/issues/8396)) ([79aea59](https://github.com/dynamic-labs/dynamic-auth/commit/79aea59bde82dabbe070a1f0fc5ac484a696e7ac))
|
|
10
|
+
* respect tokenBalance order from backend for SendBalance view ([#8398](https://github.com/dynamic-labs/dynamic-auth/issues/8398)) ([fdb0e1c](https://github.com/dynamic-labs/dynamic-auth/commit/fdb0e1cc2f1614326f506dfdb1726f4c5baf9c0c))
|
|
11
|
+
|
|
2
12
|
### [4.9.11](https://github.com/dynamic-labs/dynamic-auth/compare/v4.9.10...v4.9.11) (2025-03-26)
|
|
3
13
|
|
|
4
14
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/utils",
|
|
3
|
-
"version": "4.9.
|
|
3
|
+
"version": "4.9.12",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.644",
|
|
22
22
|
"tldts": "6.0.16",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.9.
|
|
24
|
-
"@dynamic-labs/logger": "4.9.
|
|
25
|
-
"@dynamic-labs/types": "4.9.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.9.12",
|
|
24
|
+
"@dynamic-labs/logger": "4.9.12",
|
|
25
|
+
"@dynamic-labs/types": "4.9.12",
|
|
26
26
|
"buffer": "6.0.3",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
package/src/errors/ErrorCode.cjs
CHANGED
|
@@ -22,4 +22,5 @@ exports.ErrorCode = void 0;
|
|
|
22
22
|
ErrorCode[ErrorCode["CONNECTION_REJECTED"] = 8] = "CONNECTION_REJECTED";
|
|
23
23
|
ErrorCode[ErrorCode["MISSING_PUBLIC_ADDRESS"] = 9] = "MISSING_PUBLIC_ADDRESS";
|
|
24
24
|
ErrorCode[ErrorCode["CONNECTION_PROPOSAL_EXPIRED"] = 10] = "CONNECTION_PROPOSAL_EXPIRED";
|
|
25
|
+
ErrorCode[ErrorCode["SEI_NOT_ENABLED_IN_KEPLR_WALLET"] = 11] = "SEI_NOT_ENABLED_IN_KEPLR_WALLET";
|
|
25
26
|
})(exports.ErrorCode || (exports.ErrorCode = {}));
|
package/src/errors/ErrorCode.js
CHANGED
|
@@ -18,6 +18,7 @@ var ErrorCode;
|
|
|
18
18
|
ErrorCode[ErrorCode["CONNECTION_REJECTED"] = 8] = "CONNECTION_REJECTED";
|
|
19
19
|
ErrorCode[ErrorCode["MISSING_PUBLIC_ADDRESS"] = 9] = "MISSING_PUBLIC_ADDRESS";
|
|
20
20
|
ErrorCode[ErrorCode["CONNECTION_PROPOSAL_EXPIRED"] = 10] = "CONNECTION_PROPOSAL_EXPIRED";
|
|
21
|
+
ErrorCode[ErrorCode["SEI_NOT_ENABLED_IN_KEPLR_WALLET"] = 11] = "SEI_NOT_ENABLED_IN_KEPLR_WALLET";
|
|
21
22
|
})(ErrorCode || (ErrorCode = {}));
|
|
22
23
|
|
|
23
24
|
export { ErrorCode };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var CustomError = require('./CustomError.cjs');
|
|
7
|
+
var ErrorCode = require('./ErrorCode.cjs');
|
|
8
|
+
|
|
9
|
+
class SeiNotEnabledInKeplrWalletError extends CustomError.CustomError {
|
|
10
|
+
constructor() {
|
|
11
|
+
super('Sei network is not enabled in Keplr', ErrorCode.ErrorCode.SEI_NOT_ENABLED_IN_KEPLR_WALLET);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
exports.SeiNotEnabledInKeplrWalletError = SeiNotEnabledInKeplrWalletError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { CustomError } from './CustomError.js';
|
|
3
|
+
import { ErrorCode } from './ErrorCode.js';
|
|
4
|
+
|
|
5
|
+
class SeiNotEnabledInKeplrWalletError extends CustomError {
|
|
6
|
+
constructor() {
|
|
7
|
+
super('Sei network is not enabled in Keplr', ErrorCode.SEI_NOT_ENABLED_IN_KEPLR_WALLET);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { SeiNotEnabledInKeplrWalletError };
|
package/src/errors/index.d.ts
CHANGED
package/src/index.cjs
CHANGED
|
@@ -51,6 +51,7 @@ var UserRejectedRequestError = require('./errors/UserRejectedRequestError.cjs');
|
|
|
51
51
|
var InvalidEmbeddedWalletSessionKeyError = require('./errors/InvalidEmbeddedWalletSessionKeyError.cjs');
|
|
52
52
|
var EmbeddedWalletExistsError = require('./errors/EmbeddedWalletExistsError.cjs');
|
|
53
53
|
var GetAddressCancelledError = require('./errors/GetAddressCancelledError.cjs');
|
|
54
|
+
var SeiNotEnabledInKeplrWalletError = require('./errors/SeiNotEnabledInKeplrWalletError.cjs');
|
|
54
55
|
var eventTimeline = require('./eventTimeline/eventTimeline.cjs');
|
|
55
56
|
var formatNumberText = require('./formatNumberText/formatNumberText.cjs');
|
|
56
57
|
var getProvidersFromWindow = require('./getProvidersFromWindow/getProvidersFromWindow.cjs');
|
|
@@ -160,6 +161,7 @@ exports.UserRejectedRequestError = UserRejectedRequestError.UserRejectedRequestE
|
|
|
160
161
|
exports.InvalidEmbeddedWalletSessionKeyError = InvalidEmbeddedWalletSessionKeyError.InvalidEmbeddedWalletSessionKeyError;
|
|
161
162
|
exports.EmbeddedWalletExistsError = EmbeddedWalletExistsError.EmbeddedWalletExistsError;
|
|
162
163
|
exports.GetAddressCancelledError = GetAddressCancelledError.GetAddressCancelledError;
|
|
164
|
+
exports.SeiNotEnabledInKeplrWalletError = SeiNotEnabledInKeplrWalletError.SeiNotEnabledInKeplrWalletError;
|
|
163
165
|
exports.createEventTimeline = eventTimeline.createEventTimeline;
|
|
164
166
|
exports.formatNumberText = formatNumberText.formatNumberText;
|
|
165
167
|
exports.getProvidersFromWindow = getProvidersFromWindow.getProvidersFromWindow;
|
package/src/index.js
CHANGED
|
@@ -47,6 +47,7 @@ export { UserRejectedRequestError } from './errors/UserRejectedRequestError.js';
|
|
|
47
47
|
export { InvalidEmbeddedWalletSessionKeyError } from './errors/InvalidEmbeddedWalletSessionKeyError.js';
|
|
48
48
|
export { EmbeddedWalletExistsError } from './errors/EmbeddedWalletExistsError.js';
|
|
49
49
|
export { GetAddressCancelledError } from './errors/GetAddressCancelledError.js';
|
|
50
|
+
export { SeiNotEnabledInKeplrWalletError } from './errors/SeiNotEnabledInKeplrWalletError.js';
|
|
50
51
|
export { createEventTimeline } from './eventTimeline/eventTimeline.js';
|
|
51
52
|
export { formatNumberText } from './formatNumberText/formatNumberText.js';
|
|
52
53
|
export { getProvidersFromWindow } from './getProvidersFromWindow/getProvidersFromWindow.js';
|