@polkadot/util
Advanced tools
Comparing version 0.18.5 to 0.18.6
{ | ||
"name": "@polkadot/util", | ||
"version": "0.18.5", | ||
"version": "0.18.6", | ||
"description": "A collection of useful utilities for @polkadot", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@polkadot/api-jsonrpc": "^0.8.11" | ||
"@polkadot/api-jsonrpc": "^0.8.13" | ||
}, | ||
@@ -35,0 +35,0 @@ "dependencies": { |
@@ -23,6 +23,7 @@ 'use strict'; | ||
module.exports = function u8aConcat() { | ||
for (var _len = arguments.length, list = Array(_len), _key = 0; _key < _len; _key++) { | ||
list[_key] = arguments[_key]; | ||
for (var _len = arguments.length, _list = Array(_len), _key = 0; _key < _len; _key++) { | ||
_list[_key] = arguments[_key]; | ||
} | ||
var list = _list.map(u8aToU8a); | ||
var length = list.reduce(function (total, item) { | ||
@@ -35,3 +36,3 @@ return total + item.length; | ||
return list.reduce(function (result, item) { | ||
result.set(u8aToU8a(item), offset); | ||
result.set(item, offset); | ||
offset += item.length; | ||
@@ -38,0 +39,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
148791
1422