[CI Skip] 0.6.4

This commit is contained in:
Travis CI
2017-12-02 08:53:26 +00:00
parent 31f8a9b4cd
commit ecf29b56bb
2 changed files with 19 additions and 1 deletions
+18
View File
@@ -14,6 +14,24 @@ Utility methods for this package are split into groups
# Available methods
## assert
Checks for a valid test, if not ExtError is thrown.
```js
assert (test: boolean, message: string, code: number = ExtError.CODES.ASSERT, data: any): void
```
Checks that `test` is a true value. If value is `false` (or `false-ish`), it throws an ExtError with the supplied `message` and an optional `code` and `data`. When `test` passes, `true` is returned.
```js
const assert = require('@polkadot/util/assert');
assert(true === true, 'True should be true'); // true returned
assert(false === true, 'False should not be true'); // ExtError thrown
```
## Logger
Creates a consistent log interface for messages
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@polkadot/util",
"version": "0.6.3",
"version": "0.6.4",
"description": "A collection of useful utilities for @polkadot",
"main": "index.js",
"keywords": [