ethereum-bloom-filters
Advanced tools
Comparing version 1.1.0 to 1.2.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const sha3_1 = require("@noble/hashes/sha3"); | ||
const utils_1 = require("@noble/hashes/utils"); | ||
/** | ||
@@ -28,8 +29,3 @@ * Keccak256 hash | ||
function bytesToHex(bytes) { | ||
const hex = []; | ||
for (let i = 0; i < bytes.length; i++) { | ||
hex.push((bytes[i] >>> 4).toString(16)); | ||
hex.push((bytes[i] & 0xf).toString(16)); | ||
} | ||
return `0x${hex.join('').replace(/^0+/, '')}`; | ||
return "0x" + utils_1.bytesToHex(bytes); | ||
} | ||
@@ -36,0 +32,0 @@ exports.bytesToHex = bytesToHex; |
{ | ||
"name": "ethereum-bloom-filters", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Ability to test bloom filters for ethereum.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
20346
10
0
317