This repository has been archived by the owner on Jan 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0daf4e6
commit 2a60d33
Showing
8 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ | |
|
||
"globals": { | ||
"Mailer": true, | ||
"Utils": true, | ||
"juice": false, | ||
"FlowRouter": false, | ||
"Router": false, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import { theModule } from './lib/mailer'; | ||
import { Mailer as theModule } from './lib/mailer'; | ||
|
||
Mailer = theModule; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,7 +76,7 @@ let ROOT = privateDir && Path.join(privateDir, 'programs', 'server', 'assets', ' | |
|
||
ROOT = ROOT || developmentPrivateDir(); | ||
|
||
Utils = { | ||
const Utils = { | ||
// Takes an HTML string and outputs a text version of it. Catches and logs errors. | ||
toText(html, opts = {}) { | ||
try { | ||
|
@@ -196,7 +196,8 @@ Utils = { | |
? 'Please run `meteor npm install --save node-sass` in your app to add sass support.' | ||
: 'Please run `meteor add chrisbutler:node-sass` to add sass support.'; | ||
|
||
Utils.Logger.warn(`Could not find sass module. Sass support is opt-in since lookback:[email protected]. | ||
Utils.Logger | ||
.warn(`Could not find sass module. Sass support is opt-in since lookback:[email protected]. | ||
${packageToRecommend}`, TAG); | ||
return Utils.readFile(scss); | ||
|
@@ -228,3 +229,5 @@ ${packageToRecommend}`, TAG); | |
return ''; // fallback: on error, or if file does NOT exist | ||
} | ||
}; | ||
|
||
export default Utils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters