From a9c1e2aa841858be71869db8a491ad804af06680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=B3=E5=BD=93=E5=BD=93?= Date: Tue, 21 Oct 2014 13:12:47 +0800 Subject: [PATCH 1/2] add jsdom jquery --- package.json | 4 +++- proxy.js | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7db71d5..86e4511 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "qrcode-npm": "0.0.3", "socks5-http-client": "^0.1.6", "socks5-https-client": "^0.2.2", - "ws": "^0.4.32" + "ws": "^0.4.32", + "jsdom":"^1.0.3", + "jquery":"^2.1.1" }, "devDependencies": {}, "scripts": { diff --git a/proxy.js b/proxy.js index 2954d5c..24150d0 100644 --- a/proxy.js +++ b/proxy.js @@ -4,6 +4,8 @@ try{ GLOBAL.util['iconv-lite'] = require("iconv-lite"); GLOBAL.util['colorful'] = require("colorful"); GLOBAL.util['path'] = require("path"); + GLOBAL.util['jsdom'] = require('jsdom'); + GLOBAL.util['jquery'] = require('jquery'); GLOBAL.util['Socks5ClientHttpAgent'] = require('socks5-http-client/lib/Agent'); GLOBAL.util['Socks5ClientHttpsAgent'] = require('socks5-https-client/lib/Agent'); }catch(e){} From 85642001840491e95b2eb0d40a7c1b0780c172f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=B3=E5=BD=93=E5=BD=93?= Date: Tue, 21 Oct 2014 13:14:25 +0800 Subject: [PATCH 2/2] 2.5.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 86e4511..8bf25b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anyproxy", - "version": "2.5.0", + "version": "2.5.1", "description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.", "main": "proxy.js", "bin": {