Socket
Socket
Sign inDemoInstall

rss-parser

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rss-parser - npm Package Compare versions

Comparing version 2.10.2 to 2.10.3

browser.js

1

index.js

@@ -273,2 +273,3 @@ 'use strict';

hostname: parsedUrl.hostname,
port: parsedUrl.port,
path: parsedUrl.path,

@@ -275,0 +276,0 @@ headers: {'User-Agent': 'rss-parser'}

14

package.json
{
"name": "rss-parser",
"version": "2.10.2",
"version": "2.10.3",
"main": "index.js",
"scripts": {
"test": "mocha"
"test": "mocha",
"build": "./scripts/build.sh"
},

@@ -11,6 +12,9 @@ "author": "Bobby Brennan",

"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-es2015": "^6.24.1",
"chai": "^3.4.1",
"grunt": "^0.4.5",
"grunt-browserify": "^4.0.1",
"grunt-contrib-uglify": "^2.2.0"
"express": "^4.15.4",
"puppeteer": "^0.9.0",
"webpack": "^3.5.5"
},

@@ -17,0 +21,0 @@ "dependencies": {

@@ -130,8 +130,7 @@ # rss-parser

```bash
# change version in package.json
grunt build
git commit -a -m "vX.X.X"
git tag vX.X.X
npm run build
git commit -a -m "Build distribution"
npm version minor # or major/patch
npm publish
git push --follow-tags
```
"use strict";
var FS = require('fs');
var HTTP = require('http');

@@ -100,2 +101,23 @@ var Parser = require('../index.js');

});
it('should parse URL', function(done) {
var server = HTTP.createServer(function(req, res) {
var file = FS.createReadStream(INPUT_FILE, 'utf8');
file.pipe(res);
});
server.listen(function() {
var port = server.address().port;
var url = 'http://localhost:' + port;
Parser.parseURL(url, function(err, parsed) {
Expect(err).to.equal(null);
var str = JSON.stringify(parsed, null, 2);
var expected = FS.readFileSync(OUTPUT_FILE, 'utf8');
Expect(str).to.equal(expected);
done();
});
});
});
})

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc