Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

planet

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

planet - npm Package Compare versions

Comparing version
0.14.10
to
0.14.11
+4
-4
package.json
{
"name": "planet"
, "version": "0.14.10"
, "version": "0.14.11"
, "author": "Enrique Erne (http://mild.ch/)"

@@ -26,9 +26,9 @@ , "description": "collaboratively edit anything"

"socket.io": "0.9.16"
, "yargs": "1.2.1"
, "yargs": "1.3.1"
, "tool": "1.0.1"
}
, "devDependencies": {
"mocha": "1.17.1"
"mocha": "1.21.4"
, "expect.js": "0.3.1"
, "wrapup": "1.0.5"
, "wrapup": "1.0.7"
, "benchmark": ">= 1.0.0"

@@ -35,0 +35,0 @@ , "socket.io-client": "0.9.16"

@@ -422,5 +422,5 @@ # Planet

- [Socket.IO](http://socket.io/) 0.9.x
- [Yargs](https://npmjs.org/package/yargs) 1.1.3
- [Tool](https://github.com/thisconnect/tool) 1.0.1
- [Socket.IO](http://socket.io/)
- [Yargs](https://npmjs.org/package/yargs)
- [Tool](https://github.com/thisconnect/tool)

@@ -45,3 +45,28 @@ var expect = require('expect.js');

it('should `set` an element at the end of an array', function(done){
var socket = io.connect('//:8004', {
'force new connection': true
});
socket.once('connect', function(){
socket.emit('set', '_add_array', ['a0', 'a1', 'a2']);
});
socket.once('set', function(){
socket.once('set', function(){
socket.emit('get', '_add_array', function(data){
expect(data).to.be.an('array');
expect(data[3]).to.be(null);
expect(data[4]).to.be('a4');
socket.disconnect();
done();
});
});
socket.emit('set', ['_add_array', 4], 'a4');
});
});
it('should `set` an element to an array', function(done){

@@ -48,0 +73,0 @@