virtual-device-sdk
Advanced tools
Comparing version 1.8.1 to 1.8.2
"use strict"; | ||
var __assign = (this && this.__assign) || Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -279,3 +287,3 @@ return new (P || (P = Promise))(function (resolve, reject) { | ||
headers: { | ||
"Content-Length": new Buffer(inputString).length, | ||
"Content-Length": Buffer.from(inputString).length, | ||
"Content-Type": "application/json", | ||
@@ -406,3 +414,3 @@ }, | ||
headers: { | ||
"Content-Length": new Buffer(inputString).length, | ||
"Content-Length": Buffer.from(inputString).length, | ||
"Content-Type": "application/json", | ||
@@ -451,9 +459,3 @@ }, | ||
} | ||
var errorCode = json.errorCode || json.error_code; | ||
return { | ||
error: json.error, | ||
errorCode: errorCode, | ||
results: results, | ||
status: json.status, | ||
}; | ||
return __assign({}, json, { results: results }); | ||
}; | ||
@@ -460,0 +462,0 @@ VirtualDevice.prototype.handleAsynchResponse = function (data) { |
@@ -7,3 +7,3 @@ { | ||
"typings": "./lib/src/Index.d.ts", | ||
"version": "1.8.1", | ||
"version": "1.8.2", | ||
"engines": { | ||
@@ -10,0 +10,0 @@ "node": "> 6.0.0" |
108055
2335