Remove from* variants, move fromString to stringTo (#233)
* Remove from* variants, move fromString to stringTo * Bump
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
@@ -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,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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user