New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mock-dgram

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-dgram - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

9

dgram.js

@@ -130,2 +130,4 @@ // Copyright (c) 2013, Benjamin J. Kelly ("Author")

msg.offset = ~~msg.offset;
msg.ip = msg.ip || {};

@@ -137,6 +139,5 @@ msg.ip.src = msg.ip.src || this._defaultSrc;

? msg.udp.srcPort : this._defaultSrcPort;
msg.udp.dataLength = (msg.data && msg.data.length) ? msg.data.length : 0;
msg.udp.dataLength = msg.udp.dataLength ||
(msg.data && msg.data.length) ? (msg.data.length - msg.offset) : 0;
msg.offset = ~~msg.offset;
// auto-configure destination IP address if not already set

@@ -158,3 +159,3 @@ if (this._address === DEFAULT_IP && msg.ip.dst) {

this.emit('message', msg.data, rinfo);
this.emit('message', msg.data.slice(msg.offset), rinfo);
};

@@ -161,0 +162,0 @@

@@ -12,3 +12,3 @@ {

],
"version": "0.1.1",
"version": "0.1.2",
"author": "Ben Kelly <ben@wanderview.com>",

@@ -15,0 +15,0 @@ "license": "BSD",

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