@polkadot/keyring
Advanced tools
Comparing version 0.34.18 to 0.34.19
{ | ||
"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' | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73075
1242
Updated@polkadot/util@^0.34.19