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

enniot-device-sdk

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enniot-device-sdk - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

2

package.json
{
"name": "enniot-device-sdk",
"version": "0.0.15",
"version": "0.0.16",
"description": "",

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

@@ -14,12 +14,16 @@ const net = require('net');

socket.on('data', data => {
const resStr = data.slice(2).toString();
const res = JSON.parse(resStr);
try {
const resStr = data.slice(2).toString();
const res = JSON.parse(resStr);
const { result, content } = res;
if(!result.status) {
reject(new Error(result.retDesc));
} else {
resolve(content);
const { result, content } = res;
if(!result.status) {
reject(new Error(result.retDesc));
} else {
resolve(content);
}
socket.destroy();
} catch(err) {
reject(err)
}
socket.destroy();
});

@@ -26,0 +30,0 @@

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