Comparing version 0.6.3 to 0.7.1
@@ -201,2 +201,3 @@ Living = new Class({ | ||
this.rest(); | ||
this.guiSend(this.dumpStats(), 'status'); | ||
}, | ||
@@ -203,0 +204,0 @@ |
@@ -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(); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance 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
125320
3134
4
+ Addedglob@>3.0.1
+ Added@isaacs/cliui@8.0.2(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@11.0.0(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@4.0.2(transitive)
+ Addedlru-cache@11.0.2(transitive)
+ Addedminimatch@10.0.1(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedmootools@1.5.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@2.0.0(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
- Removedmootools@1.3.2(transitive)
Updatedmootools@>=1.4.4