@dynamic-labs/utils 3.0.3 → 4.0.0-alpha.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 CHANGED
@@ -1,26 +1,27 @@
1
1
 
2
- ### [3.0.3](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.2...v3.0.3) (2024-09-16)
2
+ ## [4.0.0-alpha.1](https://github.com/dynamic-labs/DynamicAuth/compare/v4.0.0-alpha.0...v4.0.0-alpha.1) (2024-09-17)
3
3
 
4
4
 
5
- ### Bug Fixes
6
-
7
- * deeplinking for magic eden ethereum and btc ([#6919](https://github.com/dynamic-labs/DynamicAuth/issues/6919)) ([822efaa](https://github.com/dynamic-labs/DynamicAuth/commit/822efaabdec4415a031afabeef13b66ae7d3cd7c))
8
- * sendBitcoin for unisat ([#6903](https://github.com/dynamic-labs/DynamicAuth/issues/6903)) ([71f726d](https://github.com/dynamic-labs/DynamicAuth/commit/71f726df7d8ff8307048ba1390c4847a9b16ce64))
5
+ ### Features
9
6
 
10
- ### [3.0.2](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.1...v3.0.2) (2024-09-13)
7
+ * blockaid website scanning for global connectivity ([#6874](https://github.com/dynamic-labs/DynamicAuth/issues/6874)) ([f8cbabd](https://github.com/dynamic-labs/DynamicAuth/commit/f8cbabd92fd4b5b096f47ff8e24c572ad7720dd8))
11
8
 
12
9
 
13
10
  ### Bug Fixes
14
11
 
15
- * solana and cosmos signers not working properly ([#6897](https://github.com/dynamic-labs/DynamicAuth/issues/6897)) ([6e27c08](https://github.com/dynamic-labs/DynamicAuth/commit/6e27c0817f8f0a454eaa14ff56a430072f9730e3))
12
+ * deeplinking on ethereum and bitcoin sats connector ([#6917](https://github.com/dynamic-labs/DynamicAuth/issues/6917)) ([3896c3a](https://github.com/dynamic-labs/DynamicAuth/commit/3896c3a97819459da74dc5b4771796d7991c1f07))
13
+ * emit walletAdded event when createEmbeddedWalletAccount called ([#6922](https://github.com/dynamic-labs/DynamicAuth/issues/6922)) ([2a8bdd6](https://github.com/dynamic-labs/DynamicAuth/commit/2a8bdd68c50efd946c6f9b398dfae2b3585db34f))
14
+ * interface for sendBitcoin on unisat ([37a1bc2](https://github.com/dynamic-labs/DynamicAuth/commit/37a1bc216f43eef817c40e23b9161327f9d29c59))
15
+ * remove ballet crypto and duplicate keplr entry ([#6906](https://github.com/dynamic-labs/DynamicAuth/issues/6906)) ([14aeeea](https://github.com/dynamic-labs/DynamicAuth/commit/14aeeeaa8d906344f4aeddf9e73527df346b9ea0))
16
+ * solana and cosmos signers not working properly ([#6898](https://github.com/dynamic-labs/DynamicAuth/issues/6898)) ([6f07981](https://github.com/dynamic-labs/DynamicAuth/commit/6f079811c0d7e45b97d2dae72f4141268ab4fe0c))
16
17
 
17
- ### [3.0.1](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0...v3.0.1) (2024-09-13)
18
+ ## [4.0.0-alpha.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0...v4.0.0-alpha.0) (2024-09-13)
18
19
 
19
20
 
20
21
  ### Bug Fixes
21
22
 
22
- * create v2 embedded wallet experience in manual mode ([#6887](https://github.com/dynamic-labs/DynamicAuth/issues/6887)) ([#6891](https://github.com/dynamic-labs/DynamicAuth/issues/6891)) ([64d027b](https://github.com/dynamic-labs/DynamicAuth/commit/64d027b4b5d877845551eae23c666d7863f7109d))
23
- * solana pk export format ([#6888](https://github.com/dynamic-labs/DynamicAuth/issues/6888)) ([#6890](https://github.com/dynamic-labs/DynamicAuth/issues/6890)) ([cb68997](https://github.com/dynamic-labs/DynamicAuth/commit/cb68997970ccf53734b7d296153185b4866c7f94))
23
+ * create v2 embedded wallet experience in manual mode ([#6887](https://github.com/dynamic-labs/DynamicAuth/issues/6887)) ([8b0953a](https://github.com/dynamic-labs/DynamicAuth/commit/8b0953ac6d511ca254e01da689beb46faa68cf02))
24
+ * solana pk export format ([#6888](https://github.com/dynamic-labs/DynamicAuth/issues/6888)) ([31a5fe2](https://github.com/dynamic-labs/DynamicAuth/commit/31a5fe272cbfabf8e5d90bc8f18dcf0fff504fd1))
24
25
 
25
26
  ## [3.0.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.68...v3.0.0) (2024-09-13)
26
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/utils",
3
- "version": "3.0.3",
3
+ "version": "4.0.0-alpha.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -26,10 +26,10 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/sdk-api-core": "0.0.529",
29
+ "@dynamic-labs/sdk-api-core": "0.0.530",
30
30
  "tldts": "6.0.16",
31
- "@dynamic-labs/logger": "3.0.3",
32
- "@dynamic-labs/types": "3.0.3",
31
+ "@dynamic-labs/logger": "4.0.0-alpha.1",
32
+ "@dynamic-labs/types": "4.0.0-alpha.1",
33
33
  "buffer": "6.0.3",
34
34
  "eventemitter3": "5.0.1",
35
35
  "stream": "0.0.2"
@@ -0,0 +1,14 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var DynamicError = require('./DynamicError.cjs');
7
+
8
+ class InvalidEmbeddedWalletSessionKeyError extends DynamicError.DynamicError {
9
+ constructor(error) {
10
+ super(error !== null && error !== void 0 ? error : 'Invalid embedded wallet session key.');
11
+ }
12
+ }
13
+
14
+ exports.InvalidEmbeddedWalletSessionKeyError = InvalidEmbeddedWalletSessionKeyError;
@@ -0,0 +1,4 @@
1
+ import { DynamicError } from './DynamicError';
2
+ export declare class InvalidEmbeddedWalletSessionKeyError extends DynamicError {
3
+ constructor(error?: string);
4
+ }
@@ -0,0 +1,10 @@
1
+ 'use client'
2
+ import { DynamicError } from './DynamicError.js';
3
+
4
+ class InvalidEmbeddedWalletSessionKeyError extends DynamicError {
5
+ constructor(error) {
6
+ super(error !== null && error !== void 0 ? error : 'Invalid embedded wallet session key.');
7
+ }
8
+ }
9
+
10
+ export { InvalidEmbeddedWalletSessionKeyError };
@@ -0,0 +1,11 @@
1
+ 'use client'
2
+ 'use strict';
3
+
4
+ Object.defineProperty(exports, '__esModule', { value: true });
5
+
6
+ var DynamicError = require('./DynamicError.cjs');
7
+
8
+ class RequestChannelNotHandledError extends DynamicError.DynamicError {
9
+ }
10
+
11
+ exports.RequestChannelNotHandledError = RequestChannelNotHandledError;
@@ -0,0 +1,3 @@
1
+ import { DynamicError } from './DynamicError';
2
+ export declare class RequestChannelNotHandledError extends DynamicError {
3
+ }
@@ -0,0 +1,7 @@
1
+ 'use client'
2
+ import { DynamicError } from './DynamicError.js';
3
+
4
+ class RequestChannelNotHandledError extends DynamicError {
5
+ }
6
+
7
+ export { RequestChannelNotHandledError };
@@ -27,6 +27,7 @@ export * from './InvalidPhoneNumberError';
27
27
  export * from './MergeAccountsConfirmationError';
28
28
  export * from './CustomFieldNotUniqueError';
29
29
  export * from './CookieInvalidError';
30
+ export * from './RequestChannelNotHandledError';
30
31
  export * from './AccessBlockedError';
31
32
  export * from './EmbeddedWalletException';
32
33
  export * from './MfaInvalidOtpError';
@@ -34,3 +35,4 @@ export * from './MfaRateLimitedError';
34
35
  export * from './ExternalAuthError';
35
36
  export * from './WalletAddressMismatchError';
36
37
  export * from './UserRejectedRequestError';
38
+ export * from './InvalidEmbeddedWalletSessionKeyError';
package/src/index.cjs CHANGED
@@ -33,6 +33,7 @@ var InvalidPhoneNumberError = require('./errors/InvalidPhoneNumberError.cjs');
33
33
  var MergeAccountsConfirmationError = require('./errors/MergeAccountsConfirmationError.cjs');
34
34
  var CustomFieldNotUniqueError = require('./errors/CustomFieldNotUniqueError.cjs');
35
35
  var CookieInvalidError = require('./errors/CookieInvalidError.cjs');
36
+ var RequestChannelNotHandledError = require('./errors/RequestChannelNotHandledError.cjs');
36
37
  var AccessBlockedError = require('./errors/AccessBlockedError.cjs');
37
38
  var EmbeddedWalletException = require('./errors/EmbeddedWalletException.cjs');
38
39
  var MfaInvalidOtpError = require('./errors/MfaInvalidOtpError.cjs');
@@ -40,6 +41,7 @@ var MfaRateLimitedError = require('./errors/MfaRateLimitedError.cjs');
40
41
  var ExternalAuthError = require('./errors/ExternalAuthError.cjs');
41
42
  var WalletAddressMismatchError = require('./errors/WalletAddressMismatchError.cjs');
42
43
  var UserRejectedRequestError = require('./errors/UserRejectedRequestError.cjs');
44
+ var InvalidEmbeddedWalletSessionKeyError = require('./errors/InvalidEmbeddedWalletSessionKeyError.cjs');
43
45
  var CancellablePromise = require('./CancellablePromise/CancellablePromise.cjs');
44
46
  var isFunction = require('./isFunction/isFunction.cjs');
45
47
  var isMobile = require('./isMobile.cjs');
@@ -107,6 +109,7 @@ exports.InvalidPhoneNumberError = InvalidPhoneNumberError.InvalidPhoneNumberErro
107
109
  exports.MergeAccountsConfirmationError = MergeAccountsConfirmationError.MergeAccountsConfirmationError;
108
110
  exports.CustomFieldNotUniqueError = CustomFieldNotUniqueError.CustomFieldNotUniqueError;
109
111
  exports.CookieInvalidError = CookieInvalidError.CookieInvalidError;
112
+ exports.RequestChannelNotHandledError = RequestChannelNotHandledError.RequestChannelNotHandledError;
110
113
  exports.AccessBlockedError = AccessBlockedError.AccessBlockedError;
111
114
  exports.EmbeddedWalletException = EmbeddedWalletException.EmbeddedWalletException;
112
115
  exports.MfaInvalidOtpError = MfaInvalidOtpError.MfaInvalidOtpError;
@@ -114,6 +117,7 @@ exports.MfaRateLimitedError = MfaRateLimitedError.MfaRateLimitedError;
114
117
  exports.ExternalAuthError = ExternalAuthError.ExternalAuthError;
115
118
  exports.WalletAddressMismatchError = WalletAddressMismatchError.WalletAddressMismatchError;
116
119
  exports.UserRejectedRequestError = UserRejectedRequestError.UserRejectedRequestError;
120
+ exports.InvalidEmbeddedWalletSessionKeyError = InvalidEmbeddedWalletSessionKeyError.InvalidEmbeddedWalletSessionKeyError;
117
121
  exports.CancellablePromise = CancellablePromise.CancellablePromise;
118
122
  exports.isFunction = isFunction.isFunction;
119
123
  exports.getAndroidVersion = isMobile.getAndroidVersion;
package/src/index.js CHANGED
@@ -29,6 +29,7 @@ export { InvalidPhoneNumberError } from './errors/InvalidPhoneNumberError.js';
29
29
  export { MergeAccountsConfirmationError } from './errors/MergeAccountsConfirmationError.js';
30
30
  export { CustomFieldNotUniqueError } from './errors/CustomFieldNotUniqueError.js';
31
31
  export { CookieInvalidError } from './errors/CookieInvalidError.js';
32
+ export { RequestChannelNotHandledError } from './errors/RequestChannelNotHandledError.js';
32
33
  export { AccessBlockedError } from './errors/AccessBlockedError.js';
33
34
  export { EmbeddedWalletException } from './errors/EmbeddedWalletException.js';
34
35
  export { MfaInvalidOtpError } from './errors/MfaInvalidOtpError.js';
@@ -36,6 +37,7 @@ export { MfaRateLimitedError } from './errors/MfaRateLimitedError.js';
36
37
  export { ExternalAuthError } from './errors/ExternalAuthError.js';
37
38
  export { WalletAddressMismatchError } from './errors/WalletAddressMismatchError.js';
38
39
  export { UserRejectedRequestError } from './errors/UserRejectedRequestError.js';
40
+ export { InvalidEmbeddedWalletSessionKeyError } from './errors/InvalidEmbeddedWalletSessionKeyError.js';
39
41
  export { CancellablePromise } from './CancellablePromise/CancellablePromise.js';
40
42
  export { isFunction } from './isFunction/isFunction.js';
41
43
  export { getAndroidVersion, isAndroid, isIOS, isIPad, isIPhone, isIPhone8OrEarlier, isLegacySafari, isMobile, isSafariBrowser, isSamsungBrowser, isWindows } from './isMobile.js';