@waves/assets-pairs-order
Advanced tools
Comparing version 2.3.4 to 2.3.5
{ | ||
"name": "@waves/assets-pairs-order", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
const WAVES_ID_TYPE = null; | ||
export const compareUint8Arrays = (arr1, arr2) => { | ||
const compareUint8Arrays = (arr1, arr2) => { | ||
// true - arr1 bigger | ||
@@ -8,6 +8,12 @@ // false - arr2 bigger | ||
}; | ||
export const isPair = o => | ||
const isPair = o => | ||
Array.isArray(o) && | ||
o.length === 2 && | ||
o.every(id => typeof id === 'string' || id === WAVES_ID_TYPE); | ||
export const isEmptyArray = a => Array.isArray(a) && a.length === 0; | ||
const isEmptyArray = a => Array.isArray(a) && a.length === 0; | ||
module.exports = { | ||
compareUint8Arrays, | ||
isPair, | ||
isEmptyArray, | ||
}; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
176263
417
0