@metamask-previews/seedless-onboarding-controller 10.0.3-preview-e0e795054 → 10.0.3-preview-064aea96d

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
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Added
11
+
12
+ - Add `InvalidPrimarySecretDataTypeError` with an ordered list of non-sensitive `SecretType` / `EncAccountDataType` values when fetched secret metadata does not include a primary mnemonic ([#9587](https://github.com/MetaMask/core/pull/9587))
13
+
10
14
  ### Changed
11
15
 
12
16
  - Bump `@metamask/messenger` from `^1.2.0` to `^2.0.0` ([#9392](https://github.com/MetaMask/core/pull/9392))
@@ -1330,7 +1330,7 @@ async function _SeedlessOnboardingController_recoverEncKey(password) {
1330
1330
  result.dataType === null ||
1331
1331
  result.dataType === toprf_secure_backup_1.EncAccountDataType.PrimarySrp));
1332
1332
  if (primaryIndex === -1) {
1333
- throw new Error(constants_1.SeedlessOnboardingControllerErrorMessage.InvalidPrimarySecretDataType);
1333
+ throw errors_1.InvalidPrimarySecretDataTypeError.fromSecretMetadata(results);
1334
1334
  }
1335
1335
  if (primaryIndex !== 0) {
1336
1336
  const [primary] = results.splice(primaryIndex, 1);