From 2febab69fcbcb91b865efbc9d7a2db3db84dbafc Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Sun, 23 Nov 2014 15:24:59 -0500 Subject: [PATCH] deps: ipaddr.js@0.1.5 --- HISTORY.md | 6 ++++++ package.json | 2 +- test/test.js | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index c0ff10e..1a53579 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,9 @@ +unreleased +========== + + * deps: ipaddr.js@0.1.5 + - Fix edge cases with `isValid` + 1.0.3 / 2014-09-21 ================== diff --git a/package.json b/package.json index d2a0a50..257708c 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "repository": "jshttp/proxy-addr", "dependencies": { "forwarded": "~0.1.0", - "ipaddr.js": "0.1.3" + "ipaddr.js": "0.1.5" }, "devDependencies": { "benchmark": "1.0.0", diff --git a/test/test.js b/test/test.js index 4f2c853..4f8cac6 100644 --- a/test/test.js +++ b/test/test.js @@ -65,6 +65,7 @@ describe('proxyaddr(req, trust)', function () { var req = createReq('127.0.0.1'); assert.throws(proxyaddr.bind(null, req, 'blargh'), /invalid IP address/); assert.throws(proxyaddr.bind(null, req, '10.0.300.1/16'), /invalid IP address/); + assert.throws(proxyaddr.bind(null, req, '-1'), /invalid IP address/); }); it('should reject bad CIDR', function () { @@ -440,6 +441,7 @@ describe('proxyaddr.compile(trust)', function () { it('should reject non-IP', function () { assert.throws(proxyaddr.compile.bind(null, 'blargh'), /invalid IP address/); + assert.throws(proxyaddr.compile.bind(null, '-1'), /invalid IP address/); }); it('should reject bad CIDR', function () {