From f8cc1a32c4af45fffdd6d99852b8385bd982c55c Mon Sep 17 00:00:00 2001 From: Johan Brook Date: Tue, 29 Nov 2016 00:34:26 -0500 Subject: [PATCH] Use wrapped Atmosphere version of html-to-text module --- example/.meteor/versions | 1 + lib/utils.js | 6 +++--- package.js | 7 ++----- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/example/.meteor/versions b/example/.meteor/versions index a75fc27..270bc44 100644 --- a/example/.meteor/versions +++ b/example/.meteor/versions @@ -35,6 +35,7 @@ kadira:flow-router@2.12.1 livedata@1.0.18 logging@1.0.14 lookback:emails@0.7.6 +lookback:html-to-text@2.1.3_2 meteor@1.6.0 meteor-base@1.0.4 meteorhacks:picker@1.0.3 diff --git a/lib/utils.js b/lib/utils.js index e2a878a..48e4402 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -1,8 +1,8 @@ // # Utils package for `lookback:emails` -const fs = Npm.require('fs'); -const Path = Npm.require('path'); -const htmlToText = Npm.require('html-to-text'); +import fs from 'fs'; +import Path from 'path'; +import { htmlToText } from 'meteor/lookback:html-to-text'; const isDevEnv = process.env.NODE_ENV === 'development'; const minorVersion = parseInt(Meteor.release.split('.')[1], 10); diff --git a/package.js b/package.js index 69b17f9..14b5ae1 100644 --- a/package.js +++ b/package.js @@ -8,10 +8,6 @@ Package.describe({ git: 'https://github.com/lookback/meteor-emails.git' }); -Npm.depends({ - 'html-to-text': '2.1.3' -}); - Package.onUse(function(api) { api.versionsFrom('1.0.4'); @@ -29,7 +25,8 @@ Package.onUse(function(api) { 'email', 'sacha:juice@0.1.3', 'meteorhacks:ssr@2.2.0', - 'meteorhacks:picker@1.0.3' + 'meteorhacks:picker@1.0.3', + 'lookback:html-to-text@2.1.3_2' ], where); api.addFiles([