+4
-4
| { | ||
| "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" |
+3
-3
@@ -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) | ||
+25
-0
@@ -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 @@ |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
393411
0.15%9585
0.21%+ Added
- Removed
- Removed
Updated