@liskhq/lisk-utils
Advanced tools
Comparing version 0.3.0-beta.2 to 0.3.0-beta.3
@@ -7,3 +7,3 @@ /// <reference types="node" /> | ||
export declare const bufferArraySubtract: (arr1: Buffer[], arr2: Buffer[]) => Buffer[]; | ||
export declare const bufferArrayOrderByLex: (arr1: Buffer[]) => boolean; | ||
export declare const isBufferArrayOrdered: (arr1: Buffer[]) => boolean; | ||
export declare const bufferArrayUniqueItems: (arr1: Buffer[]) => boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.bufferArrayUniqueItems = exports.bufferArrayOrderByLex = exports.bufferArraySubtract = exports.bufferArrayEqual = exports.bufferArrayContainsSome = exports.bufferArrayContains = exports.bufferArrayIncludes = void 0; | ||
exports.bufferArrayUniqueItems = exports.isBufferArrayOrdered = exports.bufferArraySubtract = exports.bufferArrayEqual = exports.bufferArrayContainsSome = exports.bufferArrayContains = exports.bufferArrayIncludes = void 0; | ||
const buffer_set_1 = require("../data_structures/buffer_set"); | ||
@@ -15,3 +15,3 @@ const bufferArrayIncludes = (arr, val) => arr.find(a => a.equals(val)) !== undefined; | ||
exports.bufferArraySubtract = bufferArraySubtract; | ||
const bufferArrayOrderByLex = (arr1) => { | ||
const isBufferArrayOrdered = (arr1) => { | ||
const sortedArray = [...arr1]; | ||
@@ -21,5 +21,5 @@ sortedArray.sort((a, b) => a.compare(b)); | ||
}; | ||
exports.bufferArrayOrderByLex = bufferArrayOrderByLex; | ||
exports.isBufferArrayOrdered = isBufferArrayOrdered; | ||
const bufferArrayUniqueItems = (arr1) => arr1.length === new buffer_set_1.BufferSet([...arr1]).size; | ||
exports.bufferArrayUniqueItems = bufferArrayUniqueItems; | ||
//# sourceMappingURL=buffer_array.js.map |
{ | ||
"name": "@liskhq/lisk-utils", | ||
"version": "0.3.0-beta.2", | ||
"version": "0.3.0-beta.3", | ||
"description": "Library containing generic utility functions for use with Lisk-related software", | ||
@@ -5,0 +5,0 @@ "author": "Lisk Foundation <admin@lisk.com>, lightcurve GmbH <admin@lightcurve.io>", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46534