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.1 to 0.6.2

.npmignore

15

classes/World.js

@@ -1,2 +0,3 @@

var fs = require('fs');
var fs = require('fs'),
pth = require('path');
/**

@@ -53,3 +54,3 @@ * The World class is the main game driver. It determines which files to load

this.config = config;
this.worldPath = ENGINE_PATH+config.world_path+'/';
this.worldPath = require('path').join(config.world_path);
this.defaultRoom = config.start_room;

@@ -64,5 +65,5 @@ this.players = this.players;

initializeRooms: function() {
var path = this.joinPath(this.worldPath+'/'+this.roomPath);
var path = this.joinPath(this.worldPath+this.roomPath);
//Recursive glob of all .js files in rooms/.

@@ -147,3 +148,3 @@ var files = this.globJS(path);

var room = this.loadModule(this.roomPath+path);
if (!room) { log_error("Room not found for "+path); }
if (!room) { console.warn("Room not found for "+path); }
if (room) {

@@ -254,4 +255,4 @@ this.rooms[path] = new room(this, path);

//Synchronous is OK in this case because we'll be loading these files on initialization.
var files = [];
var stats = fs.statSync(filename);
var files = [], stats;
stats = fs.statSync(filename);
if (stats.isFile() && filename.match(/\.js$/)) {

@@ -258,0 +259,0 @@ files.push(filename);

{
"name":"discord",
"description":"A LP/Discworld inspired MUD server running on Node.JS and MooTools.",
"version":"0.6.1",
"version":"0.6.2",
"repository": {

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

@@ -18,3 +18,3 @@ /**

require('./engine');
var sys = require('sys'),
var sys = require('util'),
fs = require('fs');

@@ -21,0 +21,0 @@

@@ -6,2 +6,3 @@ require(__dirname+'/../engine');

WORLD_PATH = __dirname+"/../example_world/";
(['messaging', 'advanced_parser', 'world']).each(function(test_module) {

@@ -8,0 +9,0 @@ require(__dirname+"/tests/"+test_module);

@@ -75,3 +75,3 @@ var brush = new Class({

name: 'test',
world_path: 'example_world',
world_path: WORLD_PATH,
start_room: 'lobby',

@@ -78,0 +78,0 @@ port: '1111'

@@ -15,3 +15,3 @@ var actor = new Class({

name: 'test',
world_path: 'example_world',
world_path: WORLD_PATH,
start_room: 'lobby',

@@ -18,0 +18,0 @@ port: '1111'

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