Comparing version 0.6.5 to 0.6.6
@@ -20,4 +20,4 @@ /* | ||
var ipv6 = require('ipv6').v6; | ||
var BigInteger = require('ipv6/lib/node/bigint').BigInteger; | ||
var Address4 = require('ip-address').Address4; | ||
var Address6 = require('ip-address').Address6; | ||
@@ -60,3 +60,3 @@ var BitBuffer = require('./bitbuffer').BitBuffer; | ||
if (ver === 6) { | ||
var adr = new ipv6.Address(ad); | ||
var adr = new Address6(ad); | ||
@@ -87,2 +87,3 @@ if (adr.error) { | ||
arr, | ||
ip4, | ||
ip6; | ||
@@ -99,5 +100,7 @@ if (y === undefined) { // handed a string | ||
ip6 = (ip instanceof ipv6.Address ? ip : new ipv6.Address(ip)); | ||
this.v = (ip6.is4() ? 4 : (ip6.valid ? 6 : 0)); | ||
ip4 = (ip instanceof Address4 ? ip : new Address4(ip)); | ||
ip6 = (ip instanceof Address6 ? ip : new Address6(ip)); | ||
this.v = (ip4.valid ? 4 : (ip6.valid ? 6 : 0)); | ||
if (this.v === 6) { | ||
@@ -123,6 +126,8 @@ bits = 128; | ||
buf1, | ||
ip4, | ||
ip6; | ||
ip6 = new ipv6.Address(x); | ||
ver = (ip6.is4() ? 4 : (ip6.valid ? 6 : 0)); | ||
ip4 = new Address4(x); | ||
ip6 = new Address6(x); | ||
ver = (ip4.valid ? 4 : (ip6.valid ? 6 : 0)); | ||
@@ -129,0 +134,0 @@ if (ver !== this.v) { |
@@ -16,3 +16,3 @@ { | ||
"description": "Serialization and Validation Framework for objects in RESTful APIs", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"homepage": "https://github.com/racker/node-swiz", | ||
@@ -31,3 +31,3 @@ "repository": { | ||
"engines": { | ||
"node": ">= 0.4.0" | ||
"node": ">= 0.10.0" | ||
}, | ||
@@ -37,3 +37,3 @@ "dependencies": { | ||
"validator": "3.41.1", | ||
"ipv6": "2.0.2", | ||
"ip-address": "5.8.6", | ||
"elementtree": "0.1.6", | ||
@@ -40,0 +40,0 @@ "sprintf": "0.1.1" |
Sorry, the diff of this file is too big to display
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
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
225164
6899
+ Addedip-address@5.8.6
+ Addedip-address@5.8.6(transitive)
+ Addedjsbn@0.1.0(transitive)
+ Addedlodash.find@4.6.0(transitive)
+ Addedlodash.max@4.0.1(transitive)
+ Addedlodash.merge@4.6.2(transitive)
+ Addedlodash.padstart@4.6.1(transitive)
+ Addedlodash.repeat@4.1.0(transitive)
+ Addedsprintf-js@1.1.3(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removedipv6@2.0.2
- Removedasync@0.2.10(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcli@1.0.1(transitive)
- Removedcliff@0.1.10(transitive)
- Removedcolors@0.6.21.0.3(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedcycle@1.0.3(transitive)
- Removedexit@0.1.2(transitive)
- Removedeyes@0.1.8(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedipv6@2.0.2(transitive)
- Removedisstream@0.1.2(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpkginfo@0.3.1(transitive)
- Removedstack-trace@0.0.10(transitive)
- Removedwinston@0.8.3(transitive)
- Removedwrappy@1.0.2(transitive)