@azteam/http-client
Advanced tools
Comparing version 1.0.66 to 1.0.67
@@ -8,5 +8,26 @@ "use strict"; | ||
(async () => { | ||
const client = new _index.default(); | ||
const client = new _index.default({ | ||
proxy: { | ||
host: '208.70.249.9', | ||
port: '1333', | ||
auth: { | ||
username: '5e5LSs27778', | ||
password: 'U3HYkYRcN6' | ||
} | ||
} // cookieFile: '/Users/toda93/Desktop/cookie.json' | ||
}); | ||
let response = await client.get('https://ipv4bot.whatismyipaddress.com/'); | ||
console.log(response); | ||
response = await client.setProxy({ | ||
host: '208.70.249.171', | ||
port: '4220', | ||
auth: { | ||
username: '5e5LSs27778', | ||
password: 'U3HYkYRcN6' | ||
} | ||
}).get('https://ipv4bot.whatismyipaddress.com/'); | ||
console.log(response); | ||
response = await client.get('https://ipv4bot.whatismyipaddress.com/'); | ||
console.log(response); | ||
})(); |
{ | ||
"name": "@azteam/http-client", | ||
"version": "1.0.66", | ||
"version": "1.0.67", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
20432
373