socketcluster-client
Advanced tools
Comparing version 0.9.9 to 0.9.10
@@ -0,2 +1,9 @@ | ||
var ClusterSocket = require('./clustersocket'); | ||
module.exports.ClusterSocket = ClusterSocket; | ||
module.exports.JSON = ClusterSocket.JSON; | ||
module.exports = require('./lib/'); | ||
module.exports.Emitter = require('emitter'); | ||
module.exports.connect = function (options) { | ||
return new ClusterSocket(options); | ||
}; |
{ | ||
"name": "socketcluster-client", | ||
"description": "Client side of SocketCluster", | ||
"version": "0.9.9", | ||
"version": "0.9.10", | ||
"homepage": "https://github.com/topcloud/socketcluster-client", | ||
@@ -13,35 +13,6 @@ "contributors": [ | ||
"dependencies": { | ||
"global": "https://github.com/component/global/archive/v2.0.1.tar.gz", | ||
"has-cors": "https://github.com/component/has-cors/archive/v1.0.2.tar.gz", | ||
"ws": "https://github.com/TooTallNate/ws/archive/0cb9fe7a21a7a7c200f68b57916d1d62b66082a1.tar.gz", | ||
"xmlhttprequest": "https://github.com/LearnBoost/node-XMLHttpRequest/archive/0f36d0b5ebc03d85f860d42a64ae9791e1daa433.tar.gz", | ||
"emitter": "http://github.com/component/emitter/archive/1.0.1.tar.gz", | ||
"indexof": "0.0.1", | ||
"engine.io-parser": "0.3.0", | ||
"debug": "0.7.2" | ||
"engine.io-client": "1.1.0", | ||
"emitter": "http://github.com/component/emitter/archive/1.0.1.tar.gz" | ||
}, | ||
"devDependencies": { | ||
"mocha": "*", | ||
"serve": "*", | ||
"expect.js": "*", | ||
"istanbul": "*" | ||
}, | ||
"component": { | ||
"scripts": { | ||
"socketcluster/index.js": "lib/index.js", | ||
"socketcluster/clustersocket.js": "lib/clustersocket.js", | ||
"socketcluster/socket.js": "lib/socket.js", | ||
"socketcluster/transport.js": "lib/transport.js", | ||
"socketcluster/emitter.js": "lib/emitter.js", | ||
"socketcluster/json.js": "lib/json.js", | ||
"socketcluster/util.js": "lib/util.js", | ||
"socketcluster/transports/index.js": "lib/transports/index.js", | ||
"socketcluster/transports/polling.js": "lib/transports/polling.js", | ||
"socketcluster/transports/polling-xhr.js": "lib/transports/polling-xhr.js", | ||
"socketcluster/transports/polling-jsonp.js": "lib/transports/polling-jsonp.js", | ||
"socketcluster/transports/websocket.js": "lib/transports/websocket.js", | ||
"socketcluster/transports/flashsocket.js": "lib/transports/flashsocket.js" | ||
} | ||
}, | ||
"readmeFilename": "README.md" | ||
} |
@@ -19,3 +19,3 @@ SocketCluster Client | ||
``` | ||
component build -s socketCluster -n socketcluster -o . | ||
browserify -s socketCluster index.js > socketcluster.js | ||
``` | ||
@@ -28,3 +28,3 @@ | ||
```html | ||
<script type="text/javascript" src="/socketcluster.js"></script>; | ||
<script type="text/javascript" src="/socketcluster.js"></script> | ||
``` | ||
@@ -38,6 +38,6 @@ | ||
var options = { | ||
protocol: location.protocol.replace(/:$/, ''), | ||
hostname: location.hostname, | ||
port: 8000, | ||
autoReconnect: true | ||
protocol: location.protocol.replace(/:$/, ''), | ||
hostname: location.hostname, | ||
port: 8000, | ||
autoReconnect: true | ||
}; | ||
@@ -48,3 +48,3 @@ | ||
socket.on('connect', function () { | ||
console.log('CONNECTED'); | ||
console.log('CONNECTED'); | ||
}); | ||
@@ -54,7 +54,7 @@ | ||
socket.on('rand', function (num) { | ||
console.log('RANDOM: ' + num); | ||
var curHTML = document.body.innerHTML; | ||
curHTML += 'RANDOM: ' + num + '<br />'; | ||
document.body.innerHTML = curHTML; | ||
console.log('RANDOM: ' + num); | ||
var curHTML = document.body.innerHTML; | ||
curHTML += 'RANDOM: ' + num + '<br />'; | ||
document.body.innerHTML = curHTML; | ||
}); | ||
``` |
Sorry, the diff of this file is too big to display
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 4 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
2
0
1
3
2
120345
7
4012
+ Addedengine.io-client@1.1.0
+ Addedafter@0.8.1(transitive)
+ Addedarraybuffer.slice@0.0.6(transitive)
+ Addedbase64-arraybuffer@0.1.0(transitive)
+ Addedbetter-assert@1.0.2(transitive)
+ Addedblob@0.0.2(transitive)
+ Addedcallsite@1.0.0(transitive)
+ Addedcommander@0.6.1(transitive)
+ Addeddebug@0.7.4(transitive)
+ Addedengine.io-client@1.1.0(transitive)
+ Addedengine.io-parser@1.0.4(transitive)
+ Addedhas-cors@1.0.3(transitive)
+ Addedinherits@2.0.1(transitive)
+ Addednan@0.3.2(transitive)
+ Addedoptions@0.0.6(transitive)
+ Addedparsejson@0.0.1(transitive)
+ Addedparseqs@0.0.2(transitive)
+ Addedparseuri@0.0.2(transitive)
+ Addedtinycolor@0.0.1(transitive)
+ Addedws@0.4.31(transitive)
- Removeddebug@0.7.2
- Removedengine.io-parser@0.3.0
- Removedglobal@https://github.com/component/global/archive/v2.0.1.tar.gz
- Removedhas-cors@https://github.com/component/has-cors/archive/v1.0.2.tar.gz
- Removedindexof@0.0.1
- Removedws@https://github.com/TooTallNate/ws/archive/0cb9fe7a21a7a7c200f68b57916d1d62b66082a1.tar.gz
- Removeddebug@0.7.2(transitive)
- Removedengine.io-parser@0.3.0(transitive)