Socket
Socket
Sign inDemoInstall

virtual-device-sdk

Package Overview
Dependencies
13
Maintainers
2
Versions
72
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.8.0 to 1.8.1

36

lib/src/VirtualDevice.js

@@ -153,7 +153,15 @@ "use strict";

var parameterValue = this.configuration[key];
if (!parameterValue) {
if (parameterValue === undefined) {
continue;
}
var parameterName = VirtualDeviceParameterMapper[key] || key;
url += "&" + parameterName + "=" + parameterValue;
if (Array.isArray(parameterValue)) {
for (var _c = 0, parameterValue_1 = parameterValue; _c < parameterValue_1.length; _c++) {
var element = parameterValue_1[_c];
url += "&" + parameterName + "=" + element;
}
}
else {
url += "&" + parameterName + "=" + parameterValue;
}
}

@@ -194,5 +202,5 @@ url = encodeURI(url);

var _this = this;
var path, _i, _a, key, parameterValue, parameterName, procesedMessages, error_1, url;
return __generator(this, function (_b) {
switch (_b.label) {
var path, _i, _a, key, parameterValue, parameterName, _b, parameterValue_2, element, procesedMessages, error_1, url;
return __generator(this, function (_c) {
switch (_c.label) {
case 0:

@@ -207,3 +215,11 @@ path = "/batch_process?";

parameterName = VirtualDeviceParameterMapper[key] || key;
path += "&" + parameterName + "=" + parameterValue;
if (Array.isArray(parameterValue)) {
for (_b = 0, parameterValue_2 = parameterValue; _b < parameterValue_2.length; _b++) {
element = parameterValue_2[_b];
path += "&" + parameterName + "=" + element;
}
}
else {
path += "&" + parameterName + "=" + parameterValue;
}
}

@@ -213,11 +229,11 @@ if (debug) {

}
_b.label = 1;
_c.label = 1;
case 1:
_b.trys.push([1, 3, , 4]);
_c.trys.push([1, 3, , 4]);
return [4, this.processMessages(messages)];
case 2:
procesedMessages = _b.sent();
procesedMessages = _c.sent();
return [3, 4];
case 3:
error_1 = _b.sent();
error_1 = _c.sent();
return [2, Promise.reject(error_1)];

@@ -224,0 +240,0 @@ case 4:

@@ -7,3 +7,3 @@ {

"typings": "./lib/src/Index.d.ts",
"version": "1.8.0",
"version": "1.8.1",
"engines": {

@@ -50,3 +50,3 @@ "node": "> 6.0.0"

"chai": "^4.0.2",
"codecov": "^3.6.5",
"codecov": "^3.7.1",
"mocha": "^5.2.0",

@@ -53,0 +53,0 @@ "nock": "^9.0.24",

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