@metamask/keyring-api 6.1.0 → 6.1.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
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [6.1.1]
11
+
12
+ ### Changed
13
+
14
+ - Fix `isEvmAccountType` accountType type to `string` or `InternalAccountType` ([#304](https://github.com/MetaMask/keyring-api/pull/304))
15
+ - Bump @metamask/snaps-sdk from ^4.0.0 to ^4.2.0 ([#305](https://github.com/MetaMask/keyring-api/pull/305))
16
+
10
17
  ## [6.1.0]
11
18
 
12
19
  ### Added
@@ -276,7 +283,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
276
283
  - SnapController keyring client. It is intended to be used by MetaMask to talk to the snap.
277
284
  - Helper functions to create keyring handler in the snap.
278
285
 
279
- [Unreleased]: https://github.com/MetaMask/keyring-api/compare/v6.1.0...HEAD
286
+ [Unreleased]: https://github.com/MetaMask/keyring-api/compare/v6.1.1...HEAD
287
+ [6.1.1]: https://github.com/MetaMask/keyring-api/compare/v6.1.0...v6.1.1
280
288
  [6.1.0]: https://github.com/MetaMask/keyring-api/compare/v6.0.0...v6.1.0
281
289
  [6.0.0]: https://github.com/MetaMask/keyring-api/compare/v5.1.0...v6.0.0
282
290
  [5.1.0]: https://github.com/MetaMask/keyring-api/compare/v5.0.0...v5.1.0
@@ -4,4 +4,4 @@ import type { InternalAccountType } from '../internal';
4
4
  * @param type - The type to check.
5
5
  * @returns Returns true if the type is an EVM account type, false otherwise.
6
6
  */
7
- export declare function isEvmAccountType(type: InternalAccountType): boolean;
7
+ export declare function isEvmAccountType(type: InternalAccountType | string): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/eth/utils.ts"],"names":[],"mappings":";;;AACA,mCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,IAAyB;IACxD,OAAO,IAAI,KAAK,sBAAc,CAAC,GAAG,IAAI,IAAI,KAAK,sBAAc,CAAC,OAAO,CAAC;AACxE,CAAC;AAFD,4CAEC","sourcesContent":["import type { InternalAccountType } from '../internal';\nimport { EthAccountType } from './types';\n\n/**\n * Checks if the given type is an EVM account type.\n * @param type - The type to check.\n * @returns Returns true if the type is an EVM account type, false otherwise.\n */\nexport function isEvmAccountType(type: InternalAccountType): boolean {\n return type === EthAccountType.Eoa || type === EthAccountType.Erc4337;\n}\n"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/eth/utils.ts"],"names":[],"mappings":";;;AACA,mCAAyC;AAEzC;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,IAAkC;IACjE,OAAO,IAAI,KAAK,sBAAc,CAAC,GAAG,IAAI,IAAI,KAAK,sBAAc,CAAC,OAAO,CAAC;AACxE,CAAC;AAFD,4CAEC","sourcesContent":["import type { InternalAccountType } from '../internal';\nimport { EthAccountType } from './types';\n\n/**\n * Checks if the given type is an EVM account type.\n * @param type - The type to check.\n * @returns Returns true if the type is an EVM account type, false otherwise.\n */\nexport function isEvmAccountType(type: InternalAccountType | string): boolean {\n return type === EthAccountType.Eoa || type === EthAccountType.Erc4337;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask/keyring-api",
3
- "version": "6.1.0",
3
+ "version": "6.1.1",
4
4
  "description": "MetaMask Keyring API",
5
5
  "keywords": [
6
6
  "metamask",
@@ -38,7 +38,7 @@
38
38
  "test:watch": "jest --watch"
39
39
  },
40
40
  "dependencies": {
41
- "@metamask/snaps-sdk": "^4.0.0",
41
+ "@metamask/snaps-sdk": "^4.2.0",
42
42
  "@metamask/utils": "^8.3.0",
43
43
  "@types/uuid": "^9.0.1",
44
44
  "bech32": "^2.0.0",