Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@polkadot/keyring

Package Overview
Dependencies
Maintainers
1
Versions
1173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polkadot/keyring - npm Package Compare versions

Comparing version 0.34.18 to 0.34.19

6

package.json
{
"name": "@polkadot/keyring",
"version": "0.34.18",
"version": "0.34.19",
"description": "Keyring management",

@@ -34,4 +34,4 @@ "main": "index.js",

"@babel/runtime": "^7.3.1",
"@polkadot/util": "^0.34.18",
"@polkadot/util-crypto": "^0.34.18",
"@polkadot/util": "^0.34.19",
"@polkadot/util-crypto": "^0.34.19",
"@types/bs58": "^4.0.0",

@@ -38,0 +38,0 @@ "bs58": "^4.0.1"

@@ -10,2 +10,4 @@ "use strict";

var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread"));
var _index = require("@polkadot/util-crypto/index");

@@ -94,4 +96,4 @@

publicKey: () => _publicKey,
setMeta: _meta => {
meta = meta;
setMeta: additional => {
meta = (0, _objectSpread2.default)({}, meta, additional);
},

@@ -98,0 +100,0 @@ sign: message => _sign(type, message, {

@@ -27,2 +27,19 @@ "use strict";

});
it('allows setting/getting of meta', () => {
keyring.bob.setMeta({
foo: 'bar',
something: 'else'
});
expect(keyring.bob.getMeta()).toMatchObject({
foo: 'bar',
something: 'else'
});
keyring.bob.setMeta({
something: 'thing'
});
expect(keyring.bob.getMeta()).toMatchObject({
foo: 'bar',
something: 'thing'
});
});
});
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