@dynamic-labs/utils 4.72.0 → 4.73.1
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 +21 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +4 -4
- package/src/errors/RateLimitError.cjs +18 -0
- package/src/errors/RateLimitError.d.ts +6 -0
- package/src/errors/RateLimitError.js +14 -0
- package/src/errors/errorCodes.cjs +10 -0
- package/src/errors/errorCodes.d.ts +2 -0
- package/src/errors/errorCodes.js +5 -0
- package/src/errors/index.d.ts +2 -0
- package/src/index.cjs +5 -0
- package/src/index.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.73.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.73.0...v4.73.1) (2026-03-30)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **tempo:** add isTempoWallet type guard and TempoWallet class ([#10814](https://github.com/dynamic-labs/dynamic-auth/issues/10814)) ([1f2ec94](https://github.com/dynamic-labs/dynamic-auth/commit/1f2ec949bcfd25b2c460e07214041d06b172f12d))
|
|
8
|
+
|
|
9
|
+
## [4.73.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.72.0...v4.73.0) (2026-03-30)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* allow passing credentialId at call time for step-up auth methods ([#10795](https://github.com/dynamic-labs/dynamic-auth/issues/10795)) ([9746667](https://github.com/dynamic-labs/dynamic-auth/commit/974666758ad8b01584cf30efbf2cb64dbde63986))
|
|
15
|
+
* **waas:** preserve WaaS key shares on session expiry using LogoutReason ([#10714](https://github.com/dynamic-labs/dynamic-auth/issues/10714)) ([26f40f7](https://github.com/dynamic-labs/dynamic-auth/commit/26f40f722302b8cf4cc035886d4408393a785283))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* override handlebars to >=4.7.9 (CVE-2026-33937) ([#10805](https://github.com/dynamic-labs/dynamic-auth/issues/10805)) ([7aa40b8](https://github.com/dynamic-labs/dynamic-auth/commit/7aa40b8472487694b438ae3a64b14524c9c726e4))
|
|
21
|
+
* use currentColor in settings icons for dark mode support ([#10811](https://github.com/dynamic-labs/dynamic-auth/issues/10811)) ([8653e97](https://github.com/dynamic-labs/dynamic-auth/commit/8653e97759f0ea5126258c1ced36ae26af3a405c)), closes [#383C48](https://github.com/dynamic-labs/dynamic-auth/issues/383C48) [#ABACB2](https://github.com/dynamic-labs/dynamic-auth/issues/ABACB2)
|
|
22
|
+
|
|
2
23
|
## [4.72.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.71.0...v4.72.0) (2026-03-26)
|
|
3
24
|
|
|
4
25
|
|
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.
|
|
3
|
+
"version": "4.73.1",
|
|
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.909",
|
|
22
22
|
"tldts": "6.0.16",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/logger": "4.
|
|
25
|
-
"@dynamic-labs/types": "4.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.73.1",
|
|
24
|
+
"@dynamic-labs/logger": "4.73.1",
|
|
25
|
+
"@dynamic-labs/types": "4.73.1",
|
|
26
26
|
"buffer": "6.0.3",
|
|
27
27
|
"eventemitter3": "5.0.1"
|
|
28
28
|
},
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var DynamicError = require('./DynamicError.cjs');
|
|
7
|
+
var errorCodes = require('./errorCodes.cjs');
|
|
8
|
+
|
|
9
|
+
class RateLimitError extends DynamicError.DynamicError {
|
|
10
|
+
constructor(message, requestId, cfRay) {
|
|
11
|
+
super(message, errorCodes.RATE_LIMIT_ERROR_CODE);
|
|
12
|
+
this.name = 'RateLimitError';
|
|
13
|
+
this.requestId = requestId;
|
|
14
|
+
this.cfRay = cfRay;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
exports.RateLimitError = RateLimitError;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { DynamicError } from './DynamicError.js';
|
|
3
|
+
import { RATE_LIMIT_ERROR_CODE } from './errorCodes.js';
|
|
4
|
+
|
|
5
|
+
class RateLimitError extends DynamicError {
|
|
6
|
+
constructor(message, requestId, cfRay) {
|
|
7
|
+
super(message, RATE_LIMIT_ERROR_CODE);
|
|
8
|
+
this.name = 'RateLimitError';
|
|
9
|
+
this.requestId = requestId;
|
|
10
|
+
this.cfRay = cfRay;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export { RateLimitError };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
const RATE_LIMIT_ERROR_CODE = 'rate_limit_error';
|
|
7
|
+
const UNKNOWN_ERROR_CODE = 'unknown_error';
|
|
8
|
+
|
|
9
|
+
exports.RATE_LIMIT_ERROR_CODE = RATE_LIMIT_ERROR_CODE;
|
|
10
|
+
exports.UNKNOWN_ERROR_CODE = UNKNOWN_ERROR_CODE;
|
package/src/errors/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './EmailAlreadyExistsError';
|
|
|
10
10
|
export * from './EmailProviderError';
|
|
11
11
|
export * from './EmailVerificationError';
|
|
12
12
|
export * from './EmbeddedWalletException';
|
|
13
|
+
export * from './errorCodes';
|
|
13
14
|
export * from './EmbeddedWalletExistsError';
|
|
14
15
|
export * from './ErrorCode';
|
|
15
16
|
export * from './ExternalAuthError';
|
|
@@ -26,6 +27,7 @@ export * from './MissingPublicAddressError';
|
|
|
26
27
|
export * from './NoAccessError';
|
|
27
28
|
export * from './NotSupportedError';
|
|
28
29
|
export * from './PasskeyError';
|
|
30
|
+
export * from './RateLimitError';
|
|
29
31
|
export * from './RequestChannelNotHandledError';
|
|
30
32
|
export * from './ResponseError';
|
|
31
33
|
export * from './SandboxMaximumThresholdReachedError';
|
package/src/index.cjs
CHANGED
|
@@ -22,6 +22,7 @@ var EmailAlreadyExistsError = require('./errors/EmailAlreadyExistsError.cjs');
|
|
|
22
22
|
var EmailProviderError = require('./errors/EmailProviderError.cjs');
|
|
23
23
|
var EmailVerificationError = require('./errors/EmailVerificationError.cjs');
|
|
24
24
|
var EmbeddedWalletException = require('./errors/EmbeddedWalletException.cjs');
|
|
25
|
+
var errorCodes = require('./errors/errorCodes.cjs');
|
|
25
26
|
var EmbeddedWalletExistsError = require('./errors/EmbeddedWalletExistsError.cjs');
|
|
26
27
|
var ErrorCode = require('./errors/ErrorCode.cjs');
|
|
27
28
|
var ExternalAuthError = require('./errors/ExternalAuthError.cjs');
|
|
@@ -37,6 +38,7 @@ var MissingEnvironmentIdError = require('./errors/MissingEnvironmentIdError.cjs'
|
|
|
37
38
|
var MissingPublicAddressError = require('./errors/MissingPublicAddressError.cjs');
|
|
38
39
|
var NoAccessError = require('./errors/NoAccessError.cjs');
|
|
39
40
|
var NotSupportedError = require('./errors/NotSupportedError.cjs');
|
|
41
|
+
var RateLimitError = require('./errors/RateLimitError.cjs');
|
|
40
42
|
var RequestChannelNotHandledError = require('./errors/RequestChannelNotHandledError.cjs');
|
|
41
43
|
var ResponseError = require('./errors/ResponseError.cjs');
|
|
42
44
|
var SandboxMaximumThresholdReachedError = require('./errors/SandboxMaximumThresholdReachedError.cjs');
|
|
@@ -134,6 +136,8 @@ exports.EmailAlreadyExistsError = EmailAlreadyExistsError.EmailAlreadyExistsErro
|
|
|
134
136
|
exports.EmailProviderError = EmailProviderError.EmailProviderError;
|
|
135
137
|
exports.EmailVerificationError = EmailVerificationError.EmailVerificationError;
|
|
136
138
|
exports.EmbeddedWalletException = EmbeddedWalletException.EmbeddedWalletException;
|
|
139
|
+
exports.RATE_LIMIT_ERROR_CODE = errorCodes.RATE_LIMIT_ERROR_CODE;
|
|
140
|
+
exports.UNKNOWN_ERROR_CODE = errorCodes.UNKNOWN_ERROR_CODE;
|
|
137
141
|
exports.EmbeddedWalletExistsError = EmbeddedWalletExistsError.EmbeddedWalletExistsError;
|
|
138
142
|
Object.defineProperty(exports, 'ErrorCode', {
|
|
139
143
|
enumerable: true,
|
|
@@ -153,6 +157,7 @@ exports.MissingEnvironmentIdError = MissingEnvironmentIdError.MissingEnvironment
|
|
|
153
157
|
exports.MissingPublicAddressError = MissingPublicAddressError.MissingPublicAddressError;
|
|
154
158
|
exports.NoAccessError = NoAccessError.NoAccessError;
|
|
155
159
|
exports.NotSupportedError = NotSupportedError.NotSupportedError;
|
|
160
|
+
exports.RateLimitError = RateLimitError.RateLimitError;
|
|
156
161
|
exports.RequestChannelNotHandledError = RequestChannelNotHandledError.RequestChannelNotHandledError;
|
|
157
162
|
exports.ResponseError = ResponseError.ResponseError;
|
|
158
163
|
exports.SandboxMaximumThresholdReachedError = SandboxMaximumThresholdReachedError.SandboxMaximumThresholdReachedError;
|
package/src/index.js
CHANGED
|
@@ -18,6 +18,7 @@ export { EmailAlreadyExistsError } from './errors/EmailAlreadyExistsError.js';
|
|
|
18
18
|
export { EmailProviderError } from './errors/EmailProviderError.js';
|
|
19
19
|
export { EmailVerificationError } from './errors/EmailVerificationError.js';
|
|
20
20
|
export { EmbeddedWalletException } from './errors/EmbeddedWalletException.js';
|
|
21
|
+
export { RATE_LIMIT_ERROR_CODE, UNKNOWN_ERROR_CODE } from './errors/errorCodes.js';
|
|
21
22
|
export { EmbeddedWalletExistsError } from './errors/EmbeddedWalletExistsError.js';
|
|
22
23
|
export { ErrorCode } from './errors/ErrorCode.js';
|
|
23
24
|
export { ExternalAuthError } from './errors/ExternalAuthError.js';
|
|
@@ -33,6 +34,7 @@ export { MissingEnvironmentIdError } from './errors/MissingEnvironmentIdError.js
|
|
|
33
34
|
export { MissingPublicAddressError } from './errors/MissingPublicAddressError.js';
|
|
34
35
|
export { NoAccessError } from './errors/NoAccessError.js';
|
|
35
36
|
export { NotSupportedError } from './errors/NotSupportedError.js';
|
|
37
|
+
export { RateLimitError } from './errors/RateLimitError.js';
|
|
36
38
|
export { RequestChannelNotHandledError } from './errors/RequestChannelNotHandledError.js';
|
|
37
39
|
export { ResponseError } from './errors/ResponseError.js';
|
|
38
40
|
export { SandboxMaximumThresholdReachedError } from './errors/SandboxMaximumThresholdReachedError.js';
|