From d90db1b77e21930ca0cec250c14e712001834d49 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sat, 14 May 2016 00:47:29 +0300 Subject: [PATCH] fix: revert compatibility changes for mos@0.21 --- index.js | 10 +++++++--- index.spec.js | 1 + lib/index.js | 10 ---------- lib/index.spec.js | 2 -- 4 files changed, 8 insertions(+), 15 deletions(-) delete mode 100644 lib/index.js delete mode 100644 lib/index.spec.js diff --git a/index.js b/index.js index b26b98c..07e70a5 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,10 @@ 'use strict' -module.exports = (mos, md) => Object.assign(mos.scope, require('./lib')(md)) +module.exports = plugin -module.exports.attributes = { - pkg: require('./package.json'), +const renderInstallation = require('./lib/render-installation') + +function plugin (markdown) { + return { + installation: opts => renderInstallation(Object.assign(opts || {}, markdown)), + } } diff --git a/index.spec.js b/index.spec.js index c2720a4..774b1ec 100644 --- a/index.spec.js +++ b/index.spec.js @@ -1 +1,2 @@ +'use strict' require('.') diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 4637edf..0000000 --- a/lib/index.js +++ /dev/null @@ -1,10 +0,0 @@ -'use strict' -module.exports = plugin - -const renderInstallation = require('./render-installation') - -function plugin (markdown) { - return { - installation: opts => renderInstallation(Object.assign(opts || {}, markdown)), - } -} diff --git a/lib/index.spec.js b/lib/index.spec.js deleted file mode 100644 index 774b1ec..0000000 --- a/lib/index.spec.js +++ /dev/null @@ -1,2 +0,0 @@ -'use strict' -require('.')