Socket
Socket
Sign inDemoInstall

@metamask/keyring-api

Package Overview
Dependencies
Maintainers
12
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@metamask/keyring-api - npm Package Compare versions

Comparing version 6.1.1 to 6.2.0

10

CHANGELOG.md

@@ -10,2 +10,9 @@ # Changelog

## [6.2.0]
### Added
- Add `accountNameSuggestion` field to the `AccountCreatedEvent` ([#291](https://github.com/MetaMask/keyring-api/pull/291))
- Add `displayConfirmation` field to the `AccountCreatedEvent` ([#307](https://github.com/MetaMask/keyring-api/pull/307))
## [6.1.1]

@@ -287,3 +294,4 @@

[Unreleased]: https://github.com/MetaMask/keyring-api/compare/v6.1.1...HEAD
[Unreleased]: https://github.com/MetaMask/keyring-api/compare/v6.2.0...HEAD
[6.2.0]: https://github.com/MetaMask/keyring-api/compare/v6.1.1...v6.2.0
[6.1.1]: https://github.com/MetaMask/keyring-api/compare/v6.1.0...v6.1.1

@@ -290,0 +298,0 @@ [6.1.0]: https://github.com/MetaMask/keyring-api/compare/v6.0.0...v6.1.0

@@ -23,2 +23,4 @@ export declare const AccountCreatedEventStruct: import("superstruct").Struct<{

};
accountNameSuggestion: string | import("../superstruct").ExactOptionalTag;
displayConfirmation: boolean | import("../superstruct").ExactOptionalTag;
};

@@ -47,2 +49,4 @@ }, {

};
accountNameSuggestion: string | import("../superstruct").ExactOptionalTag;
displayConfirmation: boolean | import("../superstruct").ExactOptionalTag;
}, {

@@ -71,2 +75,15 @@ /**

}, null>;
/**
* Account name suggestion provided to the MetaMask client.
*
* The keyring can suggest a name for the account, but it's up to the
* client to decide whether to use it. The keyring won't be informed if the
* client decides to use a different name.
*/
accountNameSuggestion: import("superstruct").Struct<string | import("../superstruct").ExactOptionalTag, null>;
/**
* Instructs MetaMask to display the add account confirmation dialog in the UI.
* **Note:** This is not guaranteed to be honored by the MetaMask client.
*/
displayConfirmation: import("superstruct").Struct<boolean | import("../superstruct").ExactOptionalTag, null>;
}>;

@@ -73,0 +90,0 @@ }>;

@@ -8,2 +8,3 @@ "use strict";

const events_1 = require("../events");
const superstruct_2 = require("../superstruct");
const utils_2 = require("../utils");

@@ -17,2 +18,15 @@ exports.AccountCreatedEventStruct = (0, superstruct_1.object)({

account: api_1.KeyringAccountStruct,
/**
* Account name suggestion provided to the MetaMask client.
*
* The keyring can suggest a name for the account, but it's up to the
* client to decide whether to use it. The keyring won't be informed if the
* client decides to use a different name.
*/
accountNameSuggestion: (0, superstruct_2.exactOptional)((0, superstruct_1.string)()),
/**
* Instructs MetaMask to display the add account confirmation dialog in the UI.
* **Note:** This is not guaranteed to be honored by the MetaMask client.
*/
displayConfirmation: (0, superstruct_2.exactOptional)((0, superstruct_1.boolean)()),
}),

@@ -19,0 +33,0 @@ });

4

package.json
{
"name": "@metamask/keyring-api",
"version": "6.1.1",
"version": "6.2.0",
"description": "MetaMask Keyring API",

@@ -49,3 +49,3 @@ "keywords": [

"devDependencies": {
"@lavamoat/allow-scripts": "^2.3.1",
"@lavamoat/allow-scripts": "^3.0.4",
"@lavamoat/preinstall-always-fail": "^1.0.0",

@@ -52,0 +52,0 @@ "@metamask/auto-changelog": "^3.1.0",

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc