utf-8-validate
Advanced tools
Comparing version 3.0.4 to 4.0.0
@@ -19,6 +19,2 @@ /*! | ||
const isValidUTF8 = (buf) => { | ||
if (!Buffer.isBuffer(buf)) { | ||
throw new TypeError('First argument needs to be a buffer'); | ||
} | ||
var len = buf.length; | ||
@@ -25,0 +21,0 @@ var i = 0; |
{ | ||
"name": "utf-8-validate", | ||
"version": "3.0.4", | ||
"version": "4.0.0", | ||
"description": "Check if a buffer contains valid UTF-8", | ||
@@ -26,3 +26,3 @@ "main": "index.js", | ||
"bindings": "~1.3.0", | ||
"nan": "~2.7.0", | ||
"nan": "~2.8.0", | ||
"prebuild-install": "~2.3.0" | ||
@@ -29,0 +29,0 @@ }, |
@@ -35,6 +35,2 @@ # utf-8-validate | ||
#### Exceptions | ||
Throws a `TypeError` exception if the first argument is not a buffer. | ||
#### Example | ||
@@ -41,0 +37,0 @@ |
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
7432
69
51
+ Addednan@2.8.0(transitive)
- Removednan@2.7.0(transitive)
Updatednan@~2.8.0