Remove from* variants, move fromString to stringTo (#233)

* Remove from* variants, move fromString to stringTo

* Bump
This commit is contained in:
Jaco Greeff
2018-10-18 10:30:14 +02:00
committed by GitHub
parent 35579c4d70
commit 57eddba598
56 changed files with 69 additions and 378 deletions
-15
View File
@@ -1,15 +0,0 @@
// Copyright 2017-2018 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import isFunction from '../is/function';
import { bufferFromU8a } from './index';
describe('bufferFromU8a', () => {
it('exists as a function', () => {
expect(
isFunction(bufferFromU8a)
).toEqual(true);
});
});
-13
View File
@@ -1,13 +0,0 @@
// Copyright 2017-2018 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import bufferFromU8a from '../u8a/toBuffer';
/**
* @name bufferFromU8a
* @signature bufferFromU8a (value?: string): Buffer
* @summary Creates a Buffer object from a Uint8Array.
* @alias u8a/toBuffer
*/
export default bufferFromU8a;
-2
View File
@@ -2,13 +2,11 @@
// This software may be modified and distributed under the terms
// of the ISC license. See the LICENSE file for details.
import bufferFromU8a from './fromU8a';
import bufferToU8a from './toU8a';
/**
* @summary Utility methods to convert to and from `Buffer` objects
*/
export {
bufferFromU8a,
bufferToU8a
};