Browse Source

Merge f36420d751 into 54f6164f58

pull/85/merge
Aras Abbasi 5 days ago
committed by GitHub
parent
commit
807e7e539a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 15 deletions
  1. +4
    -3
      lib/client.js
  2. +0
    -11
      package-lock.json
  3. +0
    -1
      package.json

+ 4
- 3
lib/client.js View File

@ -3,7 +3,6 @@ var https = require("https");
var json = require("./json"); var json = require("./json");
var url = require("url"); var url = require("url");
var util = require("util"); var util = require("util");
var _ = require('lodash');
/*section: client /*section: client
*comment: | *comment: |
@ -67,12 +66,14 @@ client.prototype.request = function(method, path, params, callback){
"query": query, "query": query,
}); });
var http_options = _.assign({
var http_options = {
hostname: this.api_host, hostname: this.api_host,
port: 443, port: 443,
method: method.toUpperCase(), method: method.toUpperCase(),
path: path path: path
}, this.http_options);
};
Object.assign(http_options, this.http_options);
if(this.proxy_agent){ if(this.proxy_agent){
http_options["agent"] = this.proxy_agent; http_options["agent"] = this.proxy_agent;


+ 0
- 11
package-lock.json View File

@ -11,7 +11,6 @@
"dependencies": { "dependencies": {
"extend": "^3.0.2", "extend": "^3.0.2",
"json-bigint": "^1.0.0", "json-bigint": "^1.0.0",
"lodash": "^4.17.21",
"minimist": "^1.2.5", "minimist": "^1.2.5",
"rc": "^1.2.8" "rc": "^1.2.8"
}, },
@ -590,11 +589,6 @@
"node": "*" "node": "*"
} }
}, },
"node_modules/lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
"node_modules/lolex": { "node_modules/lolex": {
"version": "1.3.2", "version": "1.3.2",
"resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz", "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz",
@ -1338,11 +1332,6 @@
} }
} }
}, },
"lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
"lolex": { "lolex": {
"version": "1.3.2", "version": "1.3.2",
"resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz", "resolved": "https://registry.npmjs.org/lolex/-/lolex-1.3.2.tgz",


+ 0
- 1
package.json View File

@ -29,7 +29,6 @@
"dependencies": { "dependencies": {
"extend": "^3.0.2", "extend": "^3.0.2",
"json-bigint": "^1.0.0", "json-bigint": "^1.0.0",
"lodash": "^4.17.21",
"minimist": "^1.2.5", "minimist": "^1.2.5",
"rc": "^1.2.8" "rc": "^1.2.8"
}, },


Loading…
Cancel
Save