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

devicestack

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

devicestack - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

3

lib/connection.js

@@ -128,3 +128,4 @@ var EventEmitter2 = require('eventemitter2').EventEmitter2

Connection.prototype.toJSON = function() {
var json = _.clone(this.attributes, true);
var parse = JSON.deserialize || JSON.parse;
var json = parse(JSON.stringify(this.attributes));
json.device = this.device ? this.device.toJSON() : undefined;

@@ -131,0 +132,0 @@ return json;

@@ -110,3 +110,4 @@ var EventEmitter2 = require('eventemitter2').EventEmitter2

Device.prototype.toJSON = function() {
var json = _.clone(this.attributes, true);
var parse = JSON.deserialize || JSON.parse;
var json = parse(JSON.stringify(this.attributes));
json.connection = this.connection ? { id: this.connection.id } : undefined;

@@ -113,0 +114,0 @@ return json;

@@ -110,3 +110,3 @@ var EventEmitter2 = require('eventemitter2').EventEmitter2

if (self.unwrapFrame) {
unwrappedFrame = self.unwrapFrame(_.clone(nextFrame));
var unwrappedFrame = self.unwrapFrame(_.clone(nextFrame));
if (self.log) self.log('receive unwrapped frame: ' + unwrappedFrame.toHexDebug());

@@ -113,0 +113,0 @@ self.emit('receive', unwrappedFrame);

{
"name": "devicestack",
"version": "1.1.2",
"version": "1.1.3",
"description": "This module helps you to represent a device and its protocol.",

@@ -5,0 +5,0 @@ "private": false,

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