@polkadot/util
Advanced tools
Comparing version 0.18.4 to 0.18.5
{ | ||
"name": "@polkadot/util", | ||
"version": "0.18.4", | ||
"version": "0.18.5", | ||
"description": "A collection of useful utilities for @polkadot", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@polkadot/api-jsonrpc": "^0.8.5" | ||
"@polkadot/api-jsonrpc": "^0.8.11" | ||
}, | ||
@@ -35,0 +35,0 @@ "dependencies": { |
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -6,7 +6,7 @@ // Copyright 2017-2018 Jaco Greeff | ||
// of the ISC license. See the LICENSE file for details. | ||
var u8aToU8a = require('./toU8a'); | ||
/** | ||
@name u8aConcat | ||
@signature u8aConcat (...values: Array<Uint8Array>): Uint8Array | ||
@signature u8aConcat (...values: Array<Uint8Array | string>): Uint8Array | ||
@summary Creates a concatenated Uint8Array from the inputs. | ||
@@ -35,3 +35,3 @@ @description | ||
return list.reduce(function (result, item) { | ||
result.set(item, offset); | ||
result.set(u8aToU8a(item), offset); | ||
offset += item.length; | ||
@@ -38,0 +38,0 @@ |
@@ -17,2 +17,3 @@ 'use strict'; | ||
var u8aToString = require('./toString'); | ||
var u8aToU8a = require('./toU8a'); | ||
var u8aToUtf8 = require('./toUtf8'); | ||
@@ -35,3 +36,4 @@ | ||
u8aToString: u8aToString, | ||
u8aToU8a: u8aToU8a, | ||
u8aToUtf8: u8aToUtf8 | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
148479
191
1421