iot-js-sdk
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -27,3 +27,3 @@ 'use strict'; | ||
} | ||
return this.connection.get('/containers/containers/' + id).then(function (data) { | ||
return this.connection.get('/containers/' + id).then(function (data) { | ||
return { | ||
@@ -41,3 +41,3 @@ id: data.id, | ||
var result = []; | ||
return this.connection.get('/containers/containers/nearme/' + latitude + '/' + longitude).then(function (data) { | ||
return this.connection.get('/containers/nearme/' + latitude + '/' + longitude).then(function (data) { | ||
return data.map(function (datum) { | ||
@@ -61,2 +61,2 @@ result.push({ | ||
exports.default = ContainerController; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250YWluZXIvY29udGFpbmVyLWNvbnRyb2xsZXIuanMiXSwibmFtZXMiOlsiQ29udGFpbmVyQ29udHJvbGxlciIsImNvbm5lY3Rpb24iLCJFcnJvciIsImdldENvbnRhaW5lciIsImlkIiwiUHJvbWlzZSIsInJlamVjdCIsImdldCIsInRoZW4iLCJkYXRhIiwiZmlsbExldmVsIiwibGF0aXR1ZGUiLCJsb25naXR1ZGUiLCJsYXN0VXBkYXRlZCIsImdldENvbnRhaW5lcnNOZWFyTWUiLCJyZXN1bHQiLCJtYXAiLCJwdXNoIiwiZGF0dW0iXSwibWFwcGluZ3MiOiI7Ozs7QUFBQTs7Ozs7Ozs7SUFFcUJBLG1CO0FBQ25CLCtCQUFZQyxVQUFaLEVBQXdCO0FBQUE7O0FBQ3RCLFFBQUksRUFBRUEsMENBQUYsQ0FBSixFQUF5QztBQUN2QyxZQUFNLElBQUlDLEtBQUosQ0FBVSx1REFBVixDQUFOO0FBQ0Q7QUFDRCxTQUFLRCxVQUFMLEdBQWtCQSxVQUFsQjtBQUNEOztnQ0FFREUsWSx5QkFBYUMsRSxFQUFJO0FBQ2YsUUFBSSxPQUFPQSxFQUFQLEtBQWMsUUFBbEIsRUFBNEI7QUFDMUIsYUFBT0MsUU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gbG9uZ2l0dWRlKSB7XG4gICAgY29uc3QgcmVzdWx0ID0gW107XG4gICAgcmV0dXJuIHRoaXMuY29ubmVjdGlvbi5nZXQoJy9jb250YWluZXJzL25lYXJtZS8nICsgbGF0aXR1ZGUgKyAnLycgKyBsb25naXR1ZGUpXG4gICAgICAudGhlbihkYXRhID0+IGRhdGEubWFwKGRhdHVtID0+IHtcbiAgICAgICAgcmVzdWx0LnB1c2goe1xuICAgICAgICAgIGlkOiBkYXR1bS5pZCxcbiAgICAgICAgICBmaWxsTGV2ZWw6IGRhdHVtLmZpbGxMZXZlbCxcbiAgICAgICAgICBsYXRpdHVkZTogZGF0dW0ubGF0aXR1ZGUsXG4gICAgICAgICAgbG9uZ2l0dWRlOiBkYXR1bS5sb25naXR1ZGUsXG4gICAgICAgICAgbGFzdFVwZGF0ZWQ6IGRhdHVtLmxhc3RVcGRhdGVkXG4gICAgICAgIH0pO1xuICAgICAgfSkpXG4gICAgICAudGhlbigoKSA9PiByZXN1bHQpO1xuICB9XG59XG4iXX0= |
{ | ||
"name": "iot-js-sdk", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "IoT JavaScript SDK", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
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
15715