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

koa-ws

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-ws - npm Package Compare versions

Comparing version 0.2.4 to 1.0.0

24

package.json
{
"name": "koa-ws",
"version": "0.2.4",
"version": "1.0.0",
"keywords": [

@@ -28,19 +28,19 @@ "koa",

"dependencies": {
"co": "^3.1.0",
"debug": "^1.0.4",
"co": "^4.3.1",
"debug": "^2.1.1",
"keygrip": "^1.0.1",
"koa-ws-cookie-helper": "^1.0.0",
"object-assign": "^0.3.1",
"replacestream": "^0.1.4",
"ws": "^0.4.32"
"koa-ws-cookie-helper": "^1.0.3",
"object-assign": "^2.0.0",
"replacestream": "^2.0.0",
"ws": "^0.7.1"
},
"devDependencies": {
"chai": "^1.9.1",
"co-mocha": "0.0.4",
"chai": "^2.0.0",
"co-mocha": "^1.0.1",
"cov": "^0.1.3",
"coveralls": "^2.11.1",
"istanbul": "git://github.com/gotwarlost/istanbul.git#harmony",
"koa": "^0.8.2",
"istanbul": "git://github.com/mekwall/istanbul.git",
"koa": "^0.17.0",
"koa-generic-session": "^1.2.0",
"mocha": "^1.21.4",
"mocha": "^2.1.0",
"mocha-lcov-reporter": "0.0.1",

@@ -47,0 +47,0 @@ "supertest": "^0.13.0"

@@ -195,2 +195,2 @@ (function(){

}.call(this));
}.call(this));

@@ -41,3 +41,3 @@ var co = require('co');

// Create WebSocketServer
this.server = new WebSocketServer({
this.server = new WebSocketServer({
server: server

@@ -99,3 +99,3 @@ });

var payload = {
jsonrpc: '2.0',
jsonrpc: '2.0',
result: result,

@@ -124,3 +124,3 @@ id: this.currentId

} else {
debug('→ Error %s: %s', payload.id, payload.error.code, payload.error.message);
debug('→ Error %s: %s', payload.id, payload.error.code, payload.error.message);
}

@@ -169,5 +169,5 @@ socket.send(JSON.stringify(payload));

var _this = this;
(co(function* () {
(co.wrap(function* () {
socket.session = yield _this.app.sessionStore.get('koa:sess:' + sessionId);
socket.method('session', socket.session);
socket.method('session', socket.session);
})());

@@ -196,3 +196,3 @@ }

generator.expose = expose || false;
this._methods[method] = co(generator);
this._methods[method] = co.wrap(generator);
}

@@ -199,0 +199,0 @@ };

@@ -143,3 +143,3 @@ var fs = require('fs');

});
client.socket.send({ foo: 'bar' });
client.socket.send("{ foo: 'bar' }");
});

@@ -190,2 +190,2 @@

});
});
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