@dynamic-labs/embedded-wallet 3.0.0 → 3.0.2

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,19 @@
1
1
 
2
+ ### [3.0.2](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.1...v3.0.2) (2024-09-13)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * 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))
8
+
9
+ ### [3.0.1](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0...v3.0.1) (2024-09-13)
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * 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))
15
+ * 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))
16
+
2
17
  ## [3.0.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.68...v3.0.0) (2024-09-13)
3
18
 
4
19
  ## [3.0.0-alpha.68](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.67...v3.0.0-alpha.68) (2024-09-12)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/embedded-wallet",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -31,11 +31,11 @@
31
31
  "@turnkey/http": "2.12.2",
32
32
  "@turnkey/iframe-stamper": "2.0.0",
33
33
  "@turnkey/webauthn-stamper": "0.5.0",
34
- "@dynamic-labs/logger": "3.0.0",
35
- "@dynamic-labs/utils": "3.0.0",
36
- "@dynamic-labs/wallet-book": "3.0.0",
37
- "@dynamic-labs/wallet-connector-core": "3.0.0",
38
- "@dynamic-labs/webauthn": "3.0.0"
34
+ "@dynamic-labs/logger": "3.0.2",
35
+ "@dynamic-labs/utils": "3.0.2",
36
+ "@dynamic-labs/wallet-book": "3.0.2",
37
+ "@dynamic-labs/wallet-connector-core": "3.0.2",
38
+ "@dynamic-labs/webauthn": "3.0.2"
39
39
  },
40
40
  "peerDependencies": {}
41
41
  }
@@ -73,8 +73,11 @@ class ExportHandler {
73
73
  if (!this.__iframeStamper) {
74
74
  throw new utils.DynamicError('Cannot proceed with your request');
75
75
  }
76
+ const keyFormat = chain === 'solana' || chain === 'SOL'
77
+ ? iframeStamper.KeyFormat.Solana
78
+ : iframeStamper.KeyFormat.Hexadecimal;
76
79
  try {
77
- return yield this.__iframeStamper.injectKeyExportBundle(exportBundle, organizationId, chain === 'solana' ? iframeStamper.KeyFormat.Solana : iframeStamper.KeyFormat.Hexadecimal);
80
+ return yield this.__iframeStamper.injectKeyExportBundle(exportBundle, organizationId, keyFormat);
78
81
  }
79
82
  catch (err) {
80
83
  logger.logger.error('Error while verifying export private key', err);
@@ -69,8 +69,11 @@ class ExportHandler {
69
69
  if (!this.__iframeStamper) {
70
70
  throw new DynamicError('Cannot proceed with your request');
71
71
  }
72
+ const keyFormat = chain === 'solana' || chain === 'SOL'
73
+ ? KeyFormat.Solana
74
+ : KeyFormat.Hexadecimal;
72
75
  try {
73
- return yield this.__iframeStamper.injectKeyExportBundle(exportBundle, organizationId, chain === 'solana' ? KeyFormat.Solana : KeyFormat.Hexadecimal);
76
+ return yield this.__iframeStamper.injectKeyExportBundle(exportBundle, organizationId, keyFormat);
74
77
  }
75
78
  catch (err) {
76
79
  logger.error('Error while verifying export private key', err);