Socket
Socket
Sign inDemoInstall

eh-api-client

Package Overview
Dependencies
47
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.2 to 0.7.3

7

index.js

@@ -26,2 +26,3 @@ var

options = options || {};
this._options = options;
this.lockUUID = options.lockUUID;

@@ -32,2 +33,8 @@ this.internalAuth = options.internalAuth;

Client.prototype.fork = function(subUrl) {
apiURL = this.apiURL + subUrl;
var newClient = new Client(apiURL, this._options);
return newClient;
};
Client.prototype.request = function(method, options, body, cb) {

@@ -34,0 +41,0 @@ if(typeof body === "function") {

2

package.json
{
"name": "eh-api-client",
"version": "0.7.2",
"version": "0.7.3",
"description": "Node.js rest client",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -73,2 +73,7 @@ var

});
it("should fork client", function() {
var fork = client.fork("/sub/url");
fork.apiURL.should.equal(client.apiURL + "/sub/url");
});
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc