Socket
Socket
Sign inDemoInstall

eh-api-client

Package Overview
Dependencies
54
Maintainers
2
Versions
96
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.50.0 to 0.51.0

2

index.d.ts

@@ -57,3 +57,3 @@ // Type definitions for eh-api-client 0.24.0

exists(options: Options, cb?: Callback<boolean>): Promise<boolean>;
getClient(userId: number, app: string): Client;
getClient(userId: number, app: string, token?: string): Client;
getClientWithAuthBearerToken(token: string): Client;

@@ -60,0 +60,0 @@ getRawClient(): Client;

@@ -136,9 +136,11 @@ var

*/
Factory.prototype.getClient = function(userId, app) {
Factory.prototype.getClient = function(userId, app, token) {
if(!userId) {
userId = 0;
}
var client = new this.Client(this.apiURL, {
internalAuth: userId + ":" + app
});
var internalAuth = userId + ":" + app;
if (token) {
internalAuth = internalAuth + ":" + token
}
var client = new this.Client(this.apiURL, { internalAuth });
Factory.setClientProperties(client)

@@ -145,0 +147,0 @@ client._factory = this;

{
"name": "eh-api-client",
"version": "0.50.0",
"version": "0.51.0",
"description": "Node.js rest client",

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

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