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

cheshire

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cheshire - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

6

client/Cheshire_client.js

@@ -6,2 +6,3 @@ function Cheshire(address) {

var custom = new EventEmitter();
this.name = '';
this.rule = {};

@@ -61,2 +62,7 @@ this.rule.on = function(type, handler) {

Cheshire.prototype.emit = function(type, data) {
if (type === 'setName') {
this.socket.send(data.name);
return;
}
this.socket.send(JSON.stringify({

@@ -63,0 +69,0 @@ type : type,

2

package.json
{
"name": "cheshire",
"version": "0.1.2",
"version": "0.1.3",
"description": "Turn based boardgame framework based on websocket",

@@ -5,0 +5,0 @@ "main": "server/Cheshire.js",

@@ -24,7 +24,19 @@ var ws = require('ws');

if (Storage.users[name]) {
socket.send('Dupe');
socket.send(JSON.stringify({
type : 'nameSet',
data : {
name : name,
error : 'Duplicated name'
}
}));
socket.once(onName);
return;
}
socket.send('ok');
socket.send(JSON.stringify({
type : 'nameSet',
data : {
name : name,
success : true
}
}));
var user = new User(name, socket);

@@ -31,0 +43,0 @@ Storage.users[name] = user;

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