premailer-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "premailer-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Node wrapper for the Premailer API (premailer.dialect.ca/api)", | ||
"homepage": "https://github.com/JedWatson/node-premailer", | ||
"author": { | ||
"name": "Jed Watson", | ||
"email": "jed.watson@gmail.com" | ||
"name": "Jed Watson" | ||
}, | ||
@@ -31,5 +30,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/timrwood/moment/issues" | ||
"url": "https://github.com/JedWatson/node-premailer/issues" | ||
}, | ||
"license": "MIT" | ||
} |
@@ -101,3 +101,8 @@ var _ = require('underscore'), | ||
} | ||
apiResponse = JSON.parse(body); | ||
try { | ||
apiResponse = JSON.parse(body); | ||
} catch(ex) { | ||
next(ex); | ||
return; | ||
} | ||
if (options.fetchHTML) { | ||
@@ -104,0 +109,0 @@ getHTML(); |
@@ -6,3 +6,3 @@ node-premailer | ||
node-premailer simplifies api integration by calling the Premailer API to inline css styles (and opther options such as removing comments, classes and ids), then retrieving the generated html and text from their respective URLs before passing them to your callback. | ||
node-premailer simplifies api integration by calling the Premailer API to inline css styles (and other options such as removing comments, classes and ids), then retrieving the generated html and text from their respective URLs before passing them to your callback. | ||
@@ -62,10 +62,10 @@ | ||
- See http://premailer.dialect.ca/api for full list of options. All options have aliases for node.js style variable names. | ||
- adapter | ||
- baseUrl || base_url | ||
- lineLength || line_length | ||
- linkQueryString || link_query_string | ||
- preserveStyles || preserve_styles | ||
- removeIds || remove_ids | ||
- removeClasses || remove_classes | ||
- removeComments || remove_comments | ||
- `adapter` | ||
- `baseUrl` || `base_url` | ||
- `lineLength` || `line_length` | ||
- `linkQueryString` || `link_query_string` | ||
- `preserveStyles` || `preserve_styles` | ||
- `removeIds` || `remove_ids` | ||
- `removeClasses` || `remove_classes` | ||
- `removeComments` || `remove_comments` | ||
@@ -72,0 +72,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7538
119