Skip to content

Commit

Permalink
Support for node v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcg committed Feb 25, 2015
1 parent 33378e9 commit dac781b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: node_js

node_js:
- "0.12"
- "0.10"
- "0.8"

script: make test
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ exports.request = function(options, cb) {
options = url.parse(options);
}

options.protocol = 'http:';

agent = new Socks5ClientHttpsAgent(options);
options.agent = agent;

Expand Down
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"name": "socks5-https-client",
"description": "SOCKS v5 HTTPS client.",
"version": "0.2.2",
"version": "1.0.0",
"main": "index.js",
"homepage": "https://github.com/mattcg/socks5-https-client",
"implements": ["CommonJS/Modules/1.0"],
"contributors": [
{
"name": "Matthew Caruana Galizia",
"email": "m@m.cg"
}
],
"author": {
"name": "Matthew Caruana Galizia",
"email": "m@m.cg"
},
"keywords": [
"socks5", "socksv5", "socks", "v5", "https", "ssl", "tls", "tor", "client"
],
Expand All @@ -22,19 +20,20 @@
"url": "https://github.com/mattcg/socks5-https-client.git"
},
"dependencies": {
"socks5-client": "~0.3.6",
"socks5-client": "~1.0.0",
"starttls": "~0.2.1"
},
"devDependencies": {
"mocha": "1.x",
"node-socks": "0.x"
"mocha": "~2.1.0",
"node-socks": "~0.1.0"
},
"scripts": {
"test": "make test"
},
"engines": {
"node": "0.x"
"node": ">= 0.10.0"
},
"engineStrict": true,
"licenses": [
{
"type": "MIT",
Expand Down

0 comments on commit dac781b

Please sign in to comment.