@ifings/api-client
Advanced tools
Comparing version 0.6.3 to 0.6.4
@@ -47,11 +47,11 @@ "use strict"; | ||
var stackId = data.stackId, | ||
sensorId = data.sensorId; | ||
return methods(instance, "".concat(baseUrl, "/").concat(stackId, "/sensors")).delete(sensorId, config); | ||
id = data.id; | ||
return methods(instance, "".concat(baseUrl, "/").concat(stackId, "/sensors")).delete(id, config); | ||
}, | ||
put: function put(data, config) { | ||
var stackId = data.stackId, | ||
sensorId = data.sensorId, | ||
putData = _objectWithoutProperties(data, ["stackId", "sensorId"]); | ||
id = data.id, | ||
putData = _objectWithoutProperties(data, ["stackId", "id"]); | ||
return methods(instance, "".concat(baseUrl, "/").concat(stackId, "/sensors")).put(sensorId, putData, config); | ||
return methods(instance, "".concat(baseUrl, "/").concat(stackId, "/sensors")).put(id, putData, config); | ||
}, | ||
@@ -68,11 +68,11 @@ create: function create(data, config) { | ||
var stackId = data.stackId, | ||
actuatorId = data.actuatorId; | ||
return methods(instance, "".concat(baseUrl, "/").concat(stackId, "/actuators")).delete(actuatorId, config); | ||
id = data.id; | ||
return methods(instance, "".concat(baseUrl, "/").concat(stackId, "/actuators")).delete(id, config); | ||
}, | ||
put: function put(data, config) { | ||
var stackId = data.stackId, | ||
actuatorId = data.actuatorId, | ||
putData = _objectWithoutProperties(data, ["stackId", "actuatorId"]); | ||
id = data.id, | ||
putData = _objectWithoutProperties(data, ["stackId", "id"]); | ||
return methods(instance, "".concat(baseUrl, "/").concat(stackId, "/actuators")).put(actuatorId, putData, config); | ||
return methods(instance, "".concat(baseUrl, "/").concat(stackId, "/actuators")).put(id, putData, config); | ||
}, | ||
@@ -79,0 +79,0 @@ create: function create(data, config) { |
{ | ||
"name": "@ifings/api-client", | ||
"description": "iFings API client", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47394