From 0da92010afba426f3a2b1a0e0fbc84e14da5b511 Mon Sep 17 00:00:00 2001 From: Wardormeur Date: Wed, 23 Mar 2016 19:12:22 +0000 Subject: [PATCH] Add support for international url slug --- dojos.js | 2 +- package.json | 4 ++-- scripts/generate-slugs.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dojos.js b/dojos.js index d5bd7775..0e498fba 100644 --- a/dojos.js +++ b/dojos.js @@ -2,7 +2,7 @@ var _ = require('lodash'); var async = require('async'); -var slug = require('slug'); +var slug = require('limax'); var shortid = require('shortid'); var crypto = require('crypto'); var randomstring = require('randomstring'); diff --git a/package.json b/package.json index b01b7f44..69192299 100644 --- a/package.json +++ b/package.json @@ -54,8 +54,8 @@ "seneca-mail": "0.2.1", "seneca-postgresql-store": "1.1.3", "shortid": "2.2.2", - "slug": "0.9.1", "xoauth2": "1.1.0", - "yargs": "3.7.2" + "yargs": "3.7.2", + "limax": "~1.2.0" } } diff --git a/scripts/generate-slugs.js b/scripts/generate-slugs.js index dd1c6e3d..3c84bcf8 100644 --- a/scripts/generate-slugs.js +++ b/scripts/generate-slugs.js @@ -4,7 +4,7 @@ var _ = require('lodash'); var url = require('url'); var async = require('async'); var request = require('request'); -var slug = require('slug'); +var slug = require('limax'); var seneca = require('seneca')({ timeout: 10 * 60 * 1000 });