From f47109480399ad97f641143759a6f0a066d9d547 Mon Sep 17 00:00:00 2001 From: Randy Date: Wed, 14 Dec 2016 15:32:13 -0800 Subject: [PATCH] Fixing deprecated dependancy (swig) #22 and updating mocha, should and supertest --- index.js | 2 +- package.json | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 27b1ed3..440bcaa 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ const debug = require('debug')('koa:swig'); const mixin = require('utils-merge'); const thenify = require('thenify'); const path = require('path'); -const swig = require('swig'); +const swig = require('swig-templates'); const extname = path.extname; const resolve = path.resolve; diff --git a/package.json b/package.json index af6c371..4ff9654 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "koa-swig", - "version": "2.2.0", + "version": "2.2.1", "description": "Koa view render based on Swig, support tags, filters, and extensions.", "main": "index.js", "scripts": { @@ -23,13 +23,13 @@ "koa": "^1.x", "koa-flash": "^1.x", "koa-session": "^3.x", - "mocha": "^2.x", - "should": "^7.x", - "supertest": "^1.x" + "mocha": "^3.x", + "should": "^11.x", + "supertest": "^2.x" }, "dependencies": { "debug": "^2.x", - "swig": "^1.4.2", + "swig-templates": "^2.0.2", "thenify": "^3.1.0", "utils-merge": "^1.0.0" },