You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[[`71c4d05037`](https://github.com/postlight/mercury-parser/commit/71c4d05037)] - **chore**: Include "src/shims" for webpack builds for web (#302) (Alexsander Akers)
19
+
-[[`a3fe02678c`](https://github.com/postlight/mercury-parser/commit/a3fe02678c)] - **chore**: small CoC typofix (#358) (Frankie Simms)
20
+
-[[`437f50a5c8`](https://github.com/postlight/mercury-parser/commit/437f50a5c8)] - **fix**: Initialize Content-Type as empty string if not present (#359) (John Holdun)
-[[`bafa764000`](https://github.com/postlight/mercury-parser/commit/bafa764000)] - **chore**: set up ciftr for failed test reports (#343) (Frankie Simms)
-[[`136d6df798`](https://github.com/postlight/mercury-parser/commit/136d6df798)] - **feat**: Return specific errors on failed parse attempts (Toufic Mouallem)
30
+
-[[`a250f403f5`](https://github.com/postlight/mercury-parser/commit/a250f403f5)] - **fix**: Preserve whitespace in certain HTML elements (#333) (Toufic Mouallem)
31
+
-[[`2a3ade706d`](https://github.com/postlight/mercury-parser/commit/2a3ade706d)] - **fix**: run parser preview (Adam Pash)
-[[`9714cb70c5`](https://github.com/postlight/mercury-parser/commit/9714cb70c5)] - **feat**: Use Deadspin parser for all Kinja websites (#304) (Toufic Mouallem)
-[[`ed14203e97`](https://github.com/postlight/mercury-parser/commit/ed14203e97)] - **fix**: return early if creating the resource failed. (#285) (Ben Ubois)
47
+
-[[`52dfdda553`](https://github.com/postlight/mercury-parser/commit/52dfdda553)] - **deps**: Update mocha to the latest version 🚀 (#282) (greenkeeper[bot])
thrownewError("Unable to fetch content. Original exception was ".concat(response.error));
240
-
}elseif(!parseNon2xx){
241
-
thrownewError("Resource returned a response status code of ".concat(response.statusCode," and resource was instructed to reject non-2xx level status codes."));
240
+
}elseif(!parseNon200){
241
+
thrownewError("Resource returned a response status code of ".concat(response.statusCode," and resource was instructed to reject non-200 status codes."));
242
242
}
243
243
}
244
244
@@ -1248,6 +1248,7 @@ function absolutize($, rootUrl, attr) {
1248
1248
$("[".concat(attr,"]")).each(function(_,node){
1249
1249
varattrs=getAttrs(node);
1250
1250
varurl=attrs[attr];
1251
+
if(!url)return;
1251
1252
varabsoluteUrl=URL.resolve(baseUrl||rootUrl,url);
1252
1253
setAttr(node,attr,absoluteUrl);
1253
1254
});
@@ -1646,7 +1647,8 @@ var Resource = {
1646
1647
generateDoc: functiongenerateDoc(_ref){
1647
1648
varcontent=_ref.body,
1648
1649
response=_ref.response;
1649
-
varcontentType=response.headers['content-type'];// TODO: Implement is_text function from
Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "@postlight/mercury-parser",
3
-
"version": "2.0.0",
3
+
"version": "2.1.0",
4
4
"description": "Mercury transforms web pages into clean text. Publishers and programmers use it to make the web make sense, and readers use it to read any web article comfortably.",
0 commit comments