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

easyip

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easyip - npm Package Compare versions

Comparing version 2.0.9 to 2.1.0

test/mocha-packet.js

6

easyip.js
/*!
* Copyright © 2011-2013 Peter Magnusson.
* Copyright © 2011 Peter Magnusson.
* All rights reserved.

@@ -58,3 +58,3 @@ */

payloadToStorage(packet.payload, packet.payload_operand
, packet.header.REQ_OFFSET_SERVER
, packet.header.REQ_OFFSET_CLIENT
, packet.header.REQ_SIZE);

@@ -116,3 +116,3 @@ }

//it's a request for something
var offset = packet.header.REQ_OFFSET_SERVER;
var offset = packet.header.REQ_OFFSET_CLIENT;
var operand = packet.header.REQ_TYPE;

@@ -119,0 +119,0 @@ var payload = [];

@@ -0,0 +0,0 @@ /*!

@@ -0,0 +0,0 @@ function checkBit(value, bit){

@@ -0,0 +0,0 @@ var b = require('./bits')

@@ -0,0 +0,0 @@ /*!

@@ -156,3 +156,15 @@ /*!

if(payload_operand === OPERANDS.STRING){
throw new Error("not implemented");
//size is number of strings
var strings = [];
var start=20;
for (var i = 20; i < buf.length; i++) {
if (buf[i] == 0) {
strings.push(buf.toString('utf8', start, i));
start = i;
if (strings.length === payload_size) {
i = buf.length;
}
}
}
p.payload = strings;
}

@@ -159,0 +171,0 @@ else{

@@ -56,2 +56,3 @@ /*!

}
this.emit('set', operand, index, value);
};

@@ -58,0 +59,0 @@

{
"author": "Peter Magnusson <kmpm@birchroad.net>",
"name": "easyip",
"description": "Node library for the Festo Easy-IP protocoll",
"version": "2.0.9",
"description": "Node library for the Fest Easy-IP protocoll",
"version": "2.1.0",
"homepage": "http://github.com/birchroad/node-easyip",

@@ -13,14 +13,13 @@ "repository": {

"engines": {
"node": "~v0.6.0"
"node": "v0.10.x"
},
"dependencies": {
"jspack": ">=0.0.1"
"jspack": "0.0.x"
},
"devDependencies": {
"vows": "~0.7.0"
},
"scripts": {
"test": "vows --spec"
}
, "devDependencies": {
"vows": ">= 0.0.1"
}
, "scripts": {
"test": "./node_modules/.bin/vows"
}
}

@@ -6,9 +6,8 @@ Node.js library for Festo Easy-IP protocol

## Disclaimer
It is used in production but not yet documented as much as I would like to.
This library is certanly not stable even though the protocol itself is
## Installation
node-easyip is not available as a npm module yet. You have to check out the source.
npm install easyip
### Dependencies

@@ -37,3 +36,3 @@ [node-jspack](http://github.com/birchroad/node-jspack)

Copyright (c) 2011-2013 Peter Magnusson &lt;kmpm@birchroad.net&gt;
Copyright (c) 2011 Peter Magnusson &lt;kmpm@birchroad.net&gt;

@@ -40,0 +39,0 @@ Permission is hereby granted, free of charge, to any person obtaining

@@ -0,0 +0,0 @@ var vows = require('vows')

@@ -0,0 +0,0 @@ var vows = require('vows')

@@ -0,0 +0,0 @@ var vows = require('vows')

@@ -0,0 +0,0 @@ /*!

@@ -10,3 +10,6 @@ var vows = require('vows')

var string_message_packet = new Buffer('000001000000000b0100000000000000000000007c534d537c34367c666f6f00', 'hex');
vows.describe('packet').addBatch({

@@ -124,2 +127,13 @@ 'packet module':{

},
'parse string Packet': {
topic: function (mod) {
return mod.Packet.parse(string_message_packet);
},
'string payload': function (packet) {
assert.isObject(packet);
assert.equal(packet.payload.length, 1);
assert.isTrue(packet.hasPayload());
}
},
'packet.packTo':{

@@ -126,0 +140,0 @@ topic:function(mod){

@@ -0,0 +0,0 @@ /*!

Sorry, the diff of this file is not supported yet

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