@dynamic-labs/utils 0.18.0-RC.21 → 0.18.0-RC.23

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,4 +1,20 @@
1
1
 
2
+ ## [0.18.0-RC.23](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.22...v0.18.0-RC.23) (2023-07-31)
3
+
4
+
5
+ ### Features
6
+
7
+ * add hook to expose link/unlink social account ([#2766](https://github.com/dynamic-labs/DynamicAuth/issues/2766)) ([06366ee](https://github.com/dynamic-labs/DynamicAuth/commit/06366eebd9917f39c0177307616bcd936f023326))
8
+ * show modal for duplicate emails ([#2761](https://github.com/dynamic-labs/DynamicAuth/issues/2761)) ([421235b](https://github.com/dynamic-labs/DynamicAuth/commit/421235b4c41ce682b0cf75093dff8281031121cb))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * missing dependencies and providers for MockContextProvider ([#2779](https://github.com/dynamic-labs/DynamicAuth/issues/2779)) ([15ce9af](https://github.com/dynamic-labs/DynamicAuth/commit/15ce9af40240f50878c2a4f103bdcb98d845b49b))
14
+ * Revert "fix: ensure metamask auto-redirect upon message signing ([#2757](https://github.com/dynamic-labs/DynamicAuth/issues/2757))" ([#2776](https://github.com/dynamic-labs/DynamicAuth/issues/2776)) ([9abe356](https://github.com/dynamic-labs/DynamicAuth/commit/9abe3568a9ba9c70a6e17f03e9746a787feae92e))
15
+
16
+ ## [0.18.0-RC.22](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.21...v0.18.0-RC.22) (2023-07-28)
17
+
2
18
  ## [0.18.0-RC.21](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.20...v0.18.0-RC.21) (2023-07-28)
3
19
 
4
20
  ## [0.18.0-RC.20](https://github.com/dynamic-labs/DynamicAuth/compare/v0.18.0-RC.19...v0.18.0-RC.20) (2023-07-27)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/utils",
3
- "version": "0.18.0-RC.21",
3
+ "version": "0.18.0-RC.23",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/dynamic-labs/DynamicAuth.git",
@@ -26,7 +26,7 @@
26
26
  "./package.json": "./package.json"
27
27
  },
28
28
  "dependencies": {
29
- "@dynamic-labs/types": "0.18.0-RC.21"
29
+ "@dynamic-labs/types": "0.18.0-RC.23"
30
30
  },
31
31
  "peerDependencies": {}
32
32
  }
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var DynamicError = require('./DynamicError.cjs');
6
+
7
+ class AccountExistsError extends DynamicError.DynamicError {
8
+ constructor(errorMessage, errorPayload) {
9
+ super(errorMessage);
10
+ this.errorMessage = errorMessage;
11
+ this.errorPayload = errorPayload;
12
+ }
13
+ }
14
+
15
+ exports.AccountExistsError = AccountExistsError;
@@ -0,0 +1,13 @@
1
+ import { DynamicError } from './DynamicError';
2
+ type AccountExistsPayload = {
3
+ email: string;
4
+ embeddedSocialSigninProvider: string;
5
+ embeddedWalletName: string;
6
+ loginProvider: string;
7
+ };
8
+ export declare class AccountExistsError extends DynamicError {
9
+ errorMessage: string;
10
+ errorPayload: AccountExistsPayload;
11
+ constructor(errorMessage: string, errorPayload: AccountExistsPayload);
12
+ }
13
+ export {};
@@ -0,0 +1,11 @@
1
+ import { DynamicError } from './DynamicError.js';
2
+
3
+ class AccountExistsError extends DynamicError {
4
+ constructor(errorMessage, errorPayload) {
5
+ super(errorMessage);
6
+ this.errorMessage = errorMessage;
7
+ this.errorPayload = errorPayload;
8
+ }
9
+ }
10
+
11
+ export { AccountExistsError };
@@ -1,3 +1,4 @@
1
+ export * from './AccountExistsError';
1
2
  export * from './ChainalysisError';
2
3
  export * from './CustomError';
3
4
  export * from './DynamicError';
package/src/index.cjs CHANGED
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var parseChainId = require('./parseChainId.cjs');
6
6
  var parseEvmNetworks = require('./parseEvmNetworks.cjs');
7
+ var AccountExistsError = require('./errors/AccountExistsError.cjs');
7
8
  var ChainalysisError = require('./errors/ChainalysisError.cjs');
8
9
  var CustomError = require('./errors/CustomError.cjs');
9
10
  var DynamicError = require('./errors/DynamicError.cjs');
@@ -27,6 +28,7 @@ var bufferToBase64 = require('./bufferToBase64.cjs');
27
28
 
28
29
  exports.parseChainId = parseChainId.parseChainId;
29
30
  exports.parseEvmNetworks = parseEvmNetworks.parseEvmNetworks;
31
+ exports.AccountExistsError = AccountExistsError.AccountExistsError;
30
32
  exports.ChainalysisError = ChainalysisError.ChainalysisError;
31
33
  exports.CustomError = CustomError.CustomError;
32
34
  exports.DynamicError = DynamicError.DynamicError;
package/src/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { parseChainId } from './parseChainId.js';
2
2
  export { parseEvmNetworks } from './parseEvmNetworks.js';
3
+ export { AccountExistsError } from './errors/AccountExistsError.js';
3
4
  export { ChainalysisError } from './errors/ChainalysisError.js';
4
5
  export { CustomError } from './errors/CustomError.js';
5
6
  export { DynamicError } from './errors/DynamicError.js';