@rjweb/utils
Advanced tools
Comparing version 1.11.1 to 1.11.2
@@ -0,1 +1,6 @@ | ||
## 1.11.2 | ||
- Fix Subnet validation issues | ||
- Change some IP Parsing | ||
## 1.11.1 | ||
@@ -2,0 +7,0 @@ |
@@ -347,12 +347,8 @@ "use strict"; | ||
case 1: { | ||
if (ints[0] > 255) { | ||
this.rawData.set([ | ||
ints[0] >> 24 & 255, | ||
ints[0] >> 16 & 255, | ||
ints[0] >> 8 & 255, | ||
ints[0] & 255 | ||
]); | ||
break; | ||
} | ||
this.rawData.set(ints); | ||
this.rawData.set([ | ||
ints[0] >> 24 & 255, | ||
ints[0] >> 16 & 255, | ||
ints[0] >> 8 & 255, | ||
ints[0] & 255 | ||
]); | ||
break; | ||
@@ -611,3 +607,3 @@ } | ||
return false; | ||
if (int < 0 && int > 32) | ||
if (int < 0 || int > 32) | ||
return false; | ||
@@ -626,3 +622,3 @@ } else | ||
return false; | ||
if (int < 0 && int > 128) | ||
if (int < 0 || int > 128) | ||
return false; | ||
@@ -629,0 +625,0 @@ } else |
{ | ||
"name": "@rjweb/utils", | ||
"version": "1.11.1", | ||
"version": "1.11.2", | ||
"description": "Easy and Lightweight Utilities", | ||
@@ -5,0 +5,0 @@ "module": "lib/esm/index.js", |
@@ -305,12 +305,8 @@ import * as net from "net"; | ||
case 1: { | ||
if (ints[0] > 255) { | ||
this.rawData.set([ | ||
ints[0] >> 24 & 255, | ||
ints[0] >> 16 & 255, | ||
ints[0] >> 8 & 255, | ||
ints[0] & 255 | ||
]); | ||
break; | ||
} | ||
this.rawData.set(ints); | ||
this.rawData.set([ | ||
ints[0] >> 24 & 255, | ||
ints[0] >> 16 & 255, | ||
ints[0] >> 8 & 255, | ||
ints[0] & 255 | ||
]); | ||
break; | ||
@@ -569,3 +565,3 @@ } | ||
return false; | ||
if (int < 0 && int > 32) | ||
if (int < 0 || int > 32) | ||
return false; | ||
@@ -584,3 +580,3 @@ } else | ||
return false; | ||
if (int < 0 && int > 128) | ||
if (int < 0 || int > 128) | ||
return false; | ||
@@ -587,0 +583,0 @@ } else |
{ | ||
"name": "@rjweb/utils", | ||
"version": "1.11.1", | ||
"version": "1.11.2", | ||
"description": "Easy and Lightweight Utilities", | ||
@@ -5,0 +5,0 @@ "module": "lib/esm/index.js", |
{ | ||
"name": "@rjweb/utils", | ||
"version": "1.11.1", | ||
"version": "1.11.2", | ||
"description": "Easy and Lightweight Utilities", | ||
@@ -5,0 +5,0 @@ "module": "lib/esm/index.js", |
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
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
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
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
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
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
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
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
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
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
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
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
1841446
6543