Merge pull request #45 from Dahlgren/bugfix/server-id-slug

Change slug generation library to avoid issues with build environment
This commit is contained in:
Björn Dahlgren 2017-03-31 17:32:39 +02:00 committed by GitHub
commit f400d7efe9
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
var events = require('events');
var fs = require('fs');
var gamedig = require('gamedig');
var slug = require('slug');
var slugify = require('slugify');
var spawn = require('child_process').spawn;
var ArmaServer = require('arma-server');
@ -55,7 +55,7 @@ Server.prototype.update = function (options) {
this.title = options.title;
this.von = options.von;
this.id = slug(this.title).replace('.', '-');
this.id = slugify(this.title).replace('.', '-');
this.port = parseInt(this.port, 10); // If port is a string then gamedig fails
};

View File

@ -19,7 +19,7 @@
"gamedig": "0.2.25",
"lodash": "^3.6.0",
"playwithsix": "0.0.11",
"slug": "~0.4.0",
"slugify": "^1.1.0",
"socket.io": "^1.0.4",
"steam-workshop": "0.0.1",
"userhome": "^1.0.0",