Comparing version 1.2.5 to 1.2.6
{ | ||
"name": "inet_xtoy", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "inet_ntop() and inet_pton() bindings for Node.js", | ||
@@ -38,5 +38,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"mocha": "^10.0.0", | ||
"node-gyp": "^9.0.0", | ||
"prebuild": "^11.0.0", | ||
"mocha": "^10.2.0", | ||
"node-gyp": "^9.4.1", | ||
"prebuild": "^12.1.0", | ||
"should": "^13.2.3" | ||
@@ -58,3 +58,4 @@ }, | ||
"publishConfig": { | ||
"access": "public" | ||
"access": "public", | ||
"provenance": true | ||
}, | ||
@@ -61,0 +62,0 @@ "binary": { |
@@ -32,12 +32,12 @@ # node-inet-xtoy | ||
Throws `TypeError` when the number of arguments is not 1, or when `buf` is neither String nor Buffer, or when the length of `buf` si neither 4 nor 16. | ||
Throws `TypeError` when the number of arguments is not 1, when `buf` is neither String nor Buffer or when the length of `buf` is neither 4 nor 16. | ||
**inet_pton(ip)** converts an IPv4 or IPv6 address `buf` from text to binary form. | ||
`ip` is expected to be a string. If `ip` is not a valid IP address, the function returns `null`. | ||
`ip` is expected to be a string. The function returns `null` if `ip` is not a valid IP address. | ||
Returns `Buffer` with binary form of the given `ip`, the length of the buffer is either 4 or 16 bytes. | ||
Returns `Buffer` with the binary form of the given `ip`; the length of the buffer is either 4 or 16 bytes. | ||
Throws `TypeError` when the number of arguments is not 1, or when `ip` is not a string. | ||
Throws `TypeError` when the number of arguments is not 1 or when `ip` is not a string. | ||
Throws `Error` when a call to [`inet_pton(3)`](http://man7.org/linux/man-pages/man3/inet_pton.3.html) fails. |
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
7588