Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iot-js-sdk

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iot-js-sdk - npm Package Compare versions

Comparing version 2.2.1 to 3.0.0

16

container/container-controller.js

@@ -55,2 +55,16 @@ 'use strict';

ContainerController.prototype.subscribeToContainer = function subscribeToContainer(containerId, email) {
if (typeof containerId !== 'string') {
return Promise.reject(new Error('containerId parameter of type "string" is required'));
}
if (typeof email !== 'string') {
return Promise.reject(new Error('email parameter of type "string" is required'));
}
var data = {
id: containerId,
email: email
};
return this.connection.post(data, '/containers/subscribe');
};
return ContainerController;

@@ -60,2 +74,2 @@ }();

exports.default = ContainerController;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250YWluZXIvY29udGFpbmVyLWNvbnRyb2xsZXIuanMiXSwibmFtZXMiOlsiQ29udGFpbmVyQ29udHJvbGxlciIsImNvbm5lY3Rpb24iLCJFcnJvciIsImdldENvbnRhaW5lciIsImlkIiwiUHJvbWlzZSIsInJlamVjdCIsImdldCIsInRoZW4iLCJkYXRhIiwiZmlsbExldmVsIiwibGF0aXR1ZGUiLCJsb25naXR1ZGUiLCJsYXN0VXBkYXRlZCIsImdldENvbnRhaW5lcnNOZWFyTWUiLCJyZXN1bHQiLCJtYXAiLCJwdXNoIiwiZGF0dW0iXSwibWFwcGluZ3MiOiI7Ozs7QUFBQTs7Ozs7Ozs7SUFFcUJBLG1CO0FBQ25CLCtCQUFZQyxVQUFaLEVBQXdCO0FBQUE7O0FBQ3RCLFFBQUksRUFBRUEsMENBQUYsQ0FBSixFQUF5QztBQUN2QyxZQUFNLElBQUlDLEtBQUosQ0FBVSx1REFBVixDQUFOO0FBQ0Q7QUFDRCxTQUFLRCxVQUFMLEdBQWtCQSxVQUFsQ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G4gICAgY29uc3QgcmVzdWx0ID0gW107XG4gICAgcmV0dXJuIHRoaXMuY29ubmVjdGlvbi5nZXQoJy9jb250YWluZXJzL25lYXJtZS8nICsgbGF0aXR1ZGUgKyAnLycgKyBsb25naXR1ZGUpXG4gICAgICAudGhlbihkYXRhID0+IGRhdGEubWFwKGRhdHVtID0+IHtcbiAgICAgICAgcmVzdWx0LnB1c2goe1xuICAgICAgICAgIGlkOiBkYXR1bS5pZCxcbiAgICAgICAgICBmaWxsTGV2ZWw6IGRhdHVtLmZpbGxMZXZlbCxcbiAgICAgICAgICBsYXRpdHVkZTogZGF0dW0ubGF0aXR1ZGUsXG4gICAgICAgICAgbG9uZ2l0dWRlOiBkYXR1bS5sb25naXR1ZGUsXG4gICAgICAgICAgbGFzdFVwZGF0ZWQ6IGRhdHVtLmxhc3RVcGRhdGVkXG4gICAgICAgIH0pO1xuICAgICAgfSkpXG4gICAgICAudGhlbigoKSA9PiByZXN1bHQpO1xuICB9XG59XG4iXX0=
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250YWluZXIvY29udGFpbmVyLWNvbnRyb2xsZXIuanMiXSwibmFtZXMiOlsiQ29udGFpbmVyQ29udHJvbGxlciIsImNvbm5lY3Rpb24iLCJFcnJvciIsImdldENvbnRhaW5lciIsImlkIiwiUHJvbWlzZSIsInJlamVjdCIsImdldCIsInRoZW4iLCJkYXRhIiwiZmlsbExldmVsIiwibGF0aXR1ZGUiLCJsb25naXR1ZGUiLCJsYXN0VXBkYXRlZCIsImdldENvbnRhaW5lcnNOZWFyTWUiLCJyZXN1bHQiLCJtYXAiLCJwdXNoIiwiZGF0dW0iLCJzdWJzY3JpYmVUb0NvbnRhaW5lciIsImNvbnRhaW5lcklkIiwiZW1haWwiLCJwb3N0Il0sIm1hcHBpbmdzIjoiOzs7O0FBQUE7Ozs7Ozs7O0lBRXFCQSxtQjtBQUNuQiwrQk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0dWRlLFxuICAgICAgICAgIGxhc3RVcGRhdGVkOiBkYXR1bS5sYXN0VXBkYXRlZFxuICAgICAgICB9KTtcbiAgICAgIH0pKVxuICAgICAgLnRoZW4oKCkgPT4gcmVzdWx0KTtcbiAgfVxuXG4gIHN1YnNjcmliZVRvQ29udGFpbmVyKGNvbnRhaW5lcklkLCBlbWFpbCkge1xuICAgIGlmICh0eXBlb2YgY29udGFpbmVySWQgIT09ICdzdHJpbmcnKSB7XG4gICAgICByZXR1cm4gUHJvbWlzZS5yZWplY3QobmV3IEVycm9yKCdjb250YWluZXJJZCBwYXJhbWV0ZXIgb2YgdHlwZSBcInN0cmluZ1wiIGlzIHJlcXVpcmVkJykpO1xuICAgIH1cbiAgICBpZiAodHlwZW9mIGVtYWlsICE9PSAnc3RyaW5nJykge1xuICAgICAgcmV0dXJuIFByb21pc2UucmVqZWN0KG5ldyBFcnJvcignZW1haWwgcGFyYW1ldGVyIG9mIHR5cGUgXCJzdHJpbmdcIiBpcyByZXF1aXJlZCcpKTtcbiAgICB9XG4gICAgY29uc3QgZGF0YSA9XG4gICAgICB7XG4gICAgICAgIGlkOiBjb250YWluZXJJZCxcbiAgICAgICAgZW1haWxcbiAgICAgIH07XG4gICAgcmV0dXJuIHRoaXMuY29ubmVjdGlvbi5wb3N0KGRhdGEsICcvY29udGFpbmVycy9zdWJzY3JpYmUnKTtcbiAgfVxufVxuIl19

9

index.js
'use strict';
exports.__esModule = true;
exports.UsergroupController = exports.FillLevelController = exports.ContainerController = exports.Connection = undefined;
exports.FillLevelController = exports.ContainerController = exports.Connection = undefined;

@@ -18,6 +18,2 @@ var _connection = require('./connection/connection');

var _usergroupController = require('./usergroup/usergroup-controller');
var _usergroupController2 = _interopRequireDefault(_usergroupController);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -28,3 +24,2 @@

exports.FillLevelController = _fillLevelController2.default;
exports.UsergroupController = _usergroupController2.default;
//# sourceMappingURL=data:application/json;charset=utf-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xtQjtRQUNBQyxtQiIsImZpbGUiOiJpbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBDb25uZWN0aW9uIGZyb20gJy4vY29ubmVjdGlvbi9jb25uZWN0aW9uJztcbmltcG9ydCBDb250YWluZXJDb250cm9sbGVyIGZyb20gJy4vY29udGFpbmVyL2NvbnRhaW5lci1jb250cm9sbGVyJztcbmltcG9ydCBGaWxsTGV2ZWxDb250cm9sbGVyIGZyb20gJy4vZmlsbC1sZXZlbC9maWxsLWxldmVsLWNvbnRyb2xsZXInO1xuXG5leHBvcnQge1xuICBDb25uZWN0aW9uLFxuICBDb250YWluZXJDb250cm9sbGVyLFxuICBGaWxsTGV2ZWxDb250cm9sbGVyXG59O1xuIl19
{
"name": "iot-js-sdk",
"version": "2.2.1",
"version": "3.0.0",
"description": "IoT JavaScript SDK",

@@ -5,0 +5,0 @@ "main": "src/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc