Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

discord-web

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-web - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

2

package.json
{
"name":"discord-web",
"description":"Web client for the Discord MUD Engine.",
"version":"0.6.0",
"version":"0.6.1",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -38,4 +38,4 @@ (function() { //Only Discord will end up in the global namespace.

this.attachEvents();
this.connection = io.connect('http://localhost');
//this.connection.emit("data", ">>> GUI_ON <<<");
this.connection = io.connect('http://'+window.location.hostname);
this.connection.emit("data", ">>> GUI_ON <<<");
this.connection.on('data', this.handleData.bind(this));

@@ -70,2 +70,8 @@ this.connection.on('ansi', this.handleANSI.bind(this));

handleData: function(data) {
var my = this;
if (data.match(/\\r\\n/)) {
return data.split("\\r\\n").each(function(l) {
if (l.length) my.handleData(l);
});
}
data = data.trim();

@@ -81,3 +87,3 @@ var patt = this.options.escapePattern;

var handlerMeth = obj.handler+'Handler';
if (!this[handlerMeth]) { console.error("No handler found for "+handlerMeth+"."); return; }
//if (!this[handlerMeth]) { console.error("No handler found for "+handlerMeth+"."); return; }
this[handlerMeth](obj.data);

@@ -84,0 +90,0 @@ } else {

@@ -10,3 +10,4 @@ var net = require('net'),

app.use(express.static(config.world_path + '/public'));
var path = require('path').normalize(config.static_path || config.world_path + "/../public");
app.use(express.static(config.static_path || config.world_path + "/../public"));
app.use(express.static(__dirname + '/public'));

@@ -42,2 +43,2 @@

};
};

Sorry, the diff of this file is not supported yet

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