eh-api-client
Advanced tools
Comparing version 0.25.0 to 0.26.0
@@ -30,2 +30,3 @@ // Type definitions for eh-api-client 0.24.0 | ||
getClient(userId: number, app: string): Client; | ||
getRawClient(): Client; | ||
get(options, body?, cb?): Promise<any>; | ||
@@ -32,0 +33,0 @@ post(options, body?, cb?): Promise<any>; |
11
index.js
@@ -89,2 +89,13 @@ var | ||
/** | ||
*/ | ||
Factory.prototype.getRawClient = function() { | ||
if(!userId) { | ||
userId = 0; | ||
} | ||
var client = new this.Client(this.apiURL); | ||
client._factory = this; | ||
return client; | ||
}; | ||
/** | ||
* @param {Number} userId | ||
@@ -91,0 +102,0 @@ * @param {String} app |
{ | ||
"name": "eh-api-client", | ||
"version": "0.25.0", | ||
"version": "0.26.0", | ||
"description": "Node.js rest client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
72574
1677