Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

swiz

Package Overview
Dependencies
Maintainers
11
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

swiz - npm Package Compare versions

Comparing version 0.6.5 to 0.6.6

19

lib/cidr.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc