scrypt-ts
Advanced tools
Comparing version 1.3.26 to 1.3.27
@@ -27,5 +27,8 @@ "use strict"; | ||
} | ||
if (typeof end === 'bigint' && startIndex >= endIndex) { | ||
throw new Error('start index should be less than end index'); | ||
if (typeof end === 'bigint' && startIndex > endIndex) { | ||
throw new Error('start index should be less than or equal to end index'); | ||
} | ||
if (typeof end === 'bigint' && end === BigInt(0)) { | ||
throw new Error('end index should be positive'); | ||
} | ||
if (startIndex > byteString.length) { | ||
@@ -32,0 +35,0 @@ throw new Error('start index should not be greater than the length'); |
@@ -90,2 +90,5 @@ "use strict"; | ||
} | ||
if (literal.length % 2 !== 0) { | ||
throw new Error('hex literal length must be even'); | ||
} | ||
return literal; | ||
@@ -92,0 +95,0 @@ } |
{ | ||
"name": "scrypt-ts", | ||
"version": "1.3.26", | ||
"version": "1.3.27", | ||
"description": "A toolset for building sCrypt smart contract applications on Bitcoin SV network written in typescript.", | ||
@@ -61,3 +61,3 @@ "main": "dist/index.js", | ||
"reflect-metadata": "^0.1.13", | ||
"scryptlib": "^2.1.38", | ||
"scryptlib": "^2.1.41", | ||
"socket.io-client": "^4.6.1", | ||
@@ -64,0 +64,0 @@ "superagent": "^8.0.9" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
688394
12041
Updatedscryptlib@^2.1.41