bitcoin-address-validation
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -8,9 +8,7 @@ 'use strict'; | ||
var hashSha256 = _interopDefault(require('hash.js/lib/hash/sha/256')); | ||
var buffer = _interopDefault(require('buffer/')); | ||
var bops = _interopDefault(require('bops')); | ||
const Buffer = buffer.Buffer; | ||
const base58 = baseX('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'); | ||
const sha256 = payload => Buffer.from(hashSha256().update(payload).digest()); | ||
const sha256 = payload => bops.from(hashSha256().update(payload).digest()); | ||
@@ -17,0 +15,0 @@ const addressTypes = { |
import baseX from 'base-x'; | ||
import bech32 from 'bech32'; | ||
import hashSha256 from 'hash.js/lib/hash/sha/256'; | ||
import buffer from 'buffer/'; | ||
import bops from 'bops'; | ||
const Buffer = buffer.Buffer; | ||
const base58 = baseX('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'); | ||
const sha256 = payload => Buffer.from(hashSha256().update(payload).digest()); | ||
const sha256 = payload => bops.from(hashSha256().update(payload).digest()); | ||
@@ -12,0 +10,0 @@ const addressTypes = { |
{ | ||
"name": "bitcoin-address-validation", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Validate any Bitcoin address - Bech32, P2SH and P2PKH", | ||
@@ -54,5 +54,5 @@ "homepage": "https://github.com/ruigomeseu/bitcoin-address-validation", | ||
"bech32": "^1.1.3", | ||
"buffer": "^5.2.1", | ||
"bops": "^1.0.0", | ||
"hash.js": "^1.1.5" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
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
34846
1079
2
+ Addedbops@^1.0.0
+ Addedbase64-js@1.0.2(transitive)
+ Addedbops@1.0.1(transitive)
+ Addedto-utf8@0.0.1(transitive)
- Removedbuffer@^5.2.1
- Removedbase64-js@1.5.1(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedieee754@1.2.1(transitive)