feedparser
Advanced tools
Comparing version 0.19.2 to 1.0.0
1.0.0 / 2015-02-26 | ||
================== | ||
* Bump mocha devDependency to v2.1.x | ||
* Cleanup package.json | ||
* Update copyright year in README | ||
* Remove node v0.8 support | ||
* Merge pull request #134 from designfrontier/master | ||
* added a testing environment for node v0.12 | ||
* removed resanitize as a dependency since the only thing in use was a 4 line function. Moved the function to utils | ||
v0.19.2 / 2014-09-02 | ||
@@ -3,0 +14,0 @@ ================== |
10
main.js
@@ -15,7 +15,5 @@ /********************************************************************** | ||
, indexOfObject = require('array-indexofobject') | ||
, resanitize = require('resanitize') | ||
, util = require('util') | ||
, TransformStream = require('readable-stream').Transform | ||
, utils = require('./utils') | ||
; | ||
, utils = require('./utils'); | ||
@@ -699,4 +697,4 @@ /** | ||
} | ||
meta.title = meta.title && resanitize.stripHtml(meta.title); | ||
meta.description = meta.description && resanitize.stripHtml(meta.description); | ||
meta.title = meta.title && utils.stripHtml(meta.title); | ||
meta.description = meta.description && utils.stripHtml(meta.description); | ||
} | ||
@@ -1018,3 +1016,3 @@ | ||
} | ||
item.title = item.title && resanitize.stripHtml(item.title); | ||
item.title = item.title && utils.stripHtml(item.title); | ||
} | ||
@@ -1021,0 +1019,0 @@ return item; |
@@ -5,3 +5,3 @@ { | ||
"description": "Robust RSS Atom and RDF feed parsing using sax js", | ||
"version": "0.19.2", | ||
"version": "1.0.0", | ||
"keywords": [ | ||
@@ -25,5 +25,5 @@ "rss", | ||
}, | ||
"main": "./main.js", | ||
"main": "main.js", | ||
"engines": { | ||
"node": ">= 0.8.0" | ||
"node": ">= 0.10.0" | ||
}, | ||
@@ -34,13 +34,12 @@ "dependencies": { | ||
"array-indexofobject": "~0.0.1", | ||
"readable-stream": "~1.0.17", | ||
"resanitize": "~0.3.0" | ||
"readable-stream": "~1.0.17" | ||
}, | ||
"devDependencies": { | ||
"mocha": "1.x", | ||
"request": "2.27.x", | ||
"iconv": "2.0.x" | ||
"iconv": "2.1.x", | ||
"mocha": "~2.1.0", | ||
"request": "2.27.x" | ||
}, | ||
"scripts": { | ||
"test": "./node_modules/mocha/bin/mocha" | ||
"test": "mocha" | ||
} | ||
} |
@@ -19,5 +19,4 @@ [![Build Status](https://secure.travis-ci.org/danmactough/node-feedparser.png?branch=master)](https://travis-ci.org/danmactough/node-feedparser) | ||
- [addressparser](https://github.com/andris9/addressparser) | ||
- [resanitize](https://github.com/danmactough/node-resanitize) | ||
- [array-indexofobject](https://github.com/danmactough/node-array-indexofobject) | ||
- [readable-stream](https://github.com/isaacs/readable-stream) (only if using Node <= v0.8.x) | ||
- [readable-stream](https://github.com/isaacs/readable-stream) | ||
@@ -40,3 +39,4 @@ ## Installation | ||
- `data` - all readable streams will emit a `data` event, but this puts the | ||
stream into "old" v0.8-style push streams | ||
stream into "old" v0.8-style push streams (if you're using v0.10, but not | ||
v0.12) | ||
- `end` - stream behavior dictates that the `end` event will never fire if | ||
@@ -226,3 +226,3 @@ you don't read any data from the stream; you can kick the Feedparser stream | ||
Copyright (c) 2011-2014 Dan MacTough and contributors | ||
Copyright (c) 2011-2015 Dan MacTough and contributors | ||
@@ -229,0 +229,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of |
14
utils.js
@@ -183,1 +183,15 @@ | ||
exports.reresolve = reresolve; | ||
/* | ||
* Aggressivly strip HTML tags | ||
* Pulled out of node-resanitize because it was all that was being used | ||
* and it's way lighter... | ||
* | ||
* @param {String} str | ||
*/ | ||
function stripHtml (str) { | ||
return str.replace(/<.*?>/g, ''); | ||
} | ||
exports.stripHtml = stripHtml; |
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
4
0
438954
37
1694
- Removedresanitize@~0.3.0
- Removedresanitize@0.3.0(transitive)
- Removedvalidator@1.5.1(transitive)