open-graph-scraper
Advanced tools
Comparing version 2.2.2 to 2.3.0
@@ -5,2 +5,3 @@ var request = require('request'), | ||
iconv = require('iconv-lite'), | ||
url = require('url'), | ||
_ = require('lodash'); | ||
@@ -344,2 +345,6 @@ | ||
options.gzip = true; | ||
if (process.browser) { | ||
options.gzip = false; | ||
options.protocol = url.parse(options.url).protocol; | ||
} | ||
that.getOG(options, function (err, results) { | ||
@@ -346,0 +351,0 @@ if (results) { |
{ | ||
"name": "open-graph-scraper", | ||
"description": "Node.js scraper service for Open Graph info", | ||
"version": "2.2.2", | ||
"version": "2.3.0", | ||
"license": "MIT", | ||
"main": "app.js", | ||
"engines" : { | ||
"node" : "6.x" | ||
}, | ||
"author": { | ||
@@ -8,0 +11,0 @@ "name" : "Josh Shemas", |
@@ -0,0 +0,0 @@ openGraphScraper |
@@ -281,4 +281,4 @@ var app = require('../app'), | ||
expect(result.success).to.be(true); | ||
expect(result.data.ogTitle).to.be('Twitter'); | ||
expect(result.data.ogDescription).to.be('Connect with your friends — and other fascinating people. Get in-the-moment updates on the things that interest you. And watch events unfold, in real time, from every angle.'); | ||
expect(result.data.ogTitle).to.be('Twitter. It\'s what\'s happening.'); | ||
expect(result.data.ogDescription).to.be('From breaking news and entertainment to sports and politics, get the full story with all the live commentary.'); | ||
done(); | ||
@@ -285,0 +285,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
31176
904