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

discord

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

discord - npm Package Compare versions

Comparing version 0.6.3 to 0.7.1

1

classes/Living.js

@@ -201,2 +201,3 @@ Living = new Class({

this.rest();
this.guiSend(this.dumpStats(), 'status');
},

@@ -203,0 +204,0 @@

2

classes/Room.js

@@ -143,3 +143,3 @@ Room = new Class({

if (exits.length==0) observer.send('There are no obvious exits.', 'exits');
else observer.send('Exits: '+exits.join(', '), 'exits');
else observer.send('Exits: '+exits.join(', '), 'exits', 'exits');

@@ -146,0 +146,0 @@ var living = this.listLiving(observer);

@@ -0,3 +1,5 @@

require('string-color');
//Color styles for outputting classed text to the terminal.
Styles = {
var styles = {

@@ -17,11 +19,12 @@ 'tell' : ['bold','yellow'],

style: function(style) {
if (Styles[style]) {
var classes = (Styles[style]),my=this;
var str = this;
if (styles[style]) {
var classes = (styles[style]), my=this;
if (!classes.each) classes = [classes];
classes.each(function(color) {
my = my.color(color);
str = my.color(color);
});
} return this;
} return str;
},
});

@@ -294,4 +294,3 @@ var fs = require('fs'),

return this.loadModule(fallbacks, opts);
}
log_error("Can't find module for "+file);
}
return false;

@@ -298,0 +297,0 @@ }

@@ -27,1 +27,7 @@ ENGINE_PATH = __dirname+'/';

require('./classes/Conversation');
log_error = function(err) {
sys.puts('ERROR: '.color('red')+err);
if (err.stack) { sys.puts("====>"+err.stack); }
}
{
"name":"discord",
"description":"A LP/Discworld inspired MUD server running on Node.JS and MooTools.",
"version":"0.6.3",
"version":"0.7.1",
"repository": {

@@ -10,5 +10,6 @@ "type": "git",

"dependencies": {
"mootools":"1.3.2",
"mootools":">=1.4.4",
"describe":">=0.8.0",
"string-color":">=0.8.0"
"string-color":">=0.8.0",
"glob":">3.0.1"
},

@@ -15,0 +16,0 @@ "author": {

@@ -23,7 +23,2 @@ /**

log_error = function(err) {
sys.puts('ERROR: '.color('red')+err);
if (err.stack) { sys.puts("====>"+err.stack); }
}
var world = new World(config);

@@ -50,3 +45,5 @@

if (!stream.writable) return;
stream.write(message.style(style).wordwrap(80)+"\r\n");
var brk = (enhanced) ? "\\r\\n" : "\r\n";
var str = message.style(style);
stream.write(str.wordwrap(80)+brk);
});

@@ -58,3 +55,3 @@

var json = JSON.encode(data);
stream.write("<!-- \n"+json+"\n-->\n");
stream.write("<!-- \n"+json+"\n-->\n\\r\\n");
});

@@ -61,0 +58,0 @@

@@ -7,6 +7,10 @@ require(__dirname+'/../engine');

WORLD_PATH = __dirname+"/../example_world/";
(['messaging', 'advanced_parser', 'world']).each(function(test_module) {
require(__dirname+"/tests/"+test_module);
});
process.exit();
var glob = require("glob");
glob(__dirname+"/tests/**/*.js", {cwd: __dirname}, function (er, files) {
files.each(function(f) {
require(__dirname+'/'+f);
});
process.exit();
});
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