[CI Skip] 0.22.1

This commit is contained in:
Travis CI
2018-05-24 13:06:21 +00:00
parent f1c7553a4f
commit 15caba9eee
8 changed files with 14 additions and 32 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-crypto",
"version": "0.22.0",
"version": "0.22.1",
"description": "A collection of useful crypto utilities for @polkadot",
"main": "index.js",
"keywords": [
@@ -30,7 +30,7 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.47",
"@polkadot/util": "^0.22.0",
"@polkadot/util": "^0.22.1",
"blakejs": "^1.1.0",
"js-sha3": "^0.7.0",
"tweetnacl": "^1.0.0",
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-keyring",
"version": "0.22.0",
"version": "0.22.1",
"description": "Keyring management",
"main": "index.js",
"engines": {
@@ -32,8 +32,8 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.47",
"@polkadot/util": "^0.22.0",
"@polkadot/util-crypto": "^0.22.0",
"@polkadot/util": "^0.22.1",
"@polkadot/util-crypto": "^0.22.1",
"bs58": "^4.0.1"
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-rlp",
"version": "0.22.0",
"version": "0.22.1",
"description": "RLP encoding and decoding",
"main": "index.js",
"keywords": [
@@ -30,7 +30,7 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.47",
"@polkadot/util": "^0.22.0"
"@polkadot/util": "^0.22.1"
},
"devDependencies": {
"ethereumjs-testing": "^1.0.4"
+4 -4
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util-triehash",
"version": "0.22.0",
"version": "0.22.1",
"description": "Creation of triehash values",
"main": "index.js",
"keywords": [
@@ -30,8 +30,8 @@
},
"dependencies": {
"@babel/runtime": "^7.0.0-beta.47",
"@polkadot/util": "^0.22.0",
"@polkadot/util-crypto": "^0.22.0",
"@polkadot/util-rlp": "^0.22.0"
"@polkadot/util": "^0.22.1",
"@polkadot/util-crypto": "^0.22.1",
"@polkadot/util-rlp": "^0.22.1"
}
}
-18
View File
@@ -12,7 +12,6 @@ Utility methods to convert to and from `Uint8Array` objects
- [u8aToBn](#u8atobn) Creates a BN from a Uint8Array object.
- [u8aToBuffer](#u8atobuffer) Creates a Buffer object from a hex string.
- [u8aToHex](#u8atohex) Creates a hex string from a Uint8Array object.
- [u8aToHexShort](#u8atohexshort) Creates a hex string from a Uint8Array object with max characters.
- [u8aToString](#u8atostring) Creates a string from a Uint8Array object.
- [u8aToU8a](#u8atou8a) Creates a Uint8Array value from a Uint8Array bignumber or hex input.
- [u8aToUtf8](#u8atoutf8) Creates a utf-8 string from a Uint8Array object.
@@ -177,23 +176,6 @@ import { u8aToHex } from '@polkadot/util';
u8aToHex(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0xf])); // 0x68656c0f
```
## u8aToHexShort
Creates a hex string from a Uint8Array object with max characters.
```js
u8aToHexShort (value?: UInt8Array, max: number = 16): string
```
`UInt8Array` input values return the actual hex string shortened to the specified characters. `null` or `undefined` values returns an `0x` string.
```js
import { u8aToHexShort } from '@polkadot/util';
u8aToHexShort(new Uint8Array([0x68, 0x65, 0x6c, 0x6c, 0xf]), 4); // 0x68...0f
```
## u8aToString
Creates a string from a Uint8Array object.
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util",
"version": "0.22.0",
"version": "0.22.1",
"description": "A collection of useful utilities for @polkadot",
"main": "index.js",
"keywords": [