Skip to content

Commit ff18193

Browse files
authored
Merge pull request #2 from dubesar/master
New Updates
2 parents 7b80e0e + 900674c commit ff18193

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/api_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { version, baseUrl } = require("./config");
22

33
var request = require("request"),
44
logger,
5-
packageVersion = require("../../package.json").version;
5+
packageVersion = require("../package.json").version;
66

77
/**
88
* ApiClient is a function based Class.

lib/automation_client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ AutomationApiClient.prototype.updateSessionById = function(
361361
* Checking validity of requestBody payload.
362362
* @return {Error|null}
363363
*/
364-
if(typeof requestBody === "object") {
364+
if(requestBody === null || requestBody === undefined) {
365365
throw new Error("It's look like your requestBody Payload is Invalid");
366366
}
367367
if(typeof fnCallback === "function") {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/node-rest-client",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "LambdaTest Rest Client for Node.js",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)