open-graph-scraper
Advanced tools
Comparing version 2.4.0 to 2.4.1
@@ -350,2 +350,3 @@ var request = require('request'), | ||
options.gzip = true; | ||
options.encoding = options.encoding || null; | ||
if (process.browser) { | ||
@@ -352,0 +353,0 @@ options.gzip = false; |
{ | ||
"name": "open-graph-scraper", | ||
"description": "Node.js scraper service for Open Graph info", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "app.js", |
@@ -142,2 +142,4 @@ var app = require('../app'), | ||
app(options1, function (err, result, source) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -159,2 +161,4 @@ expect(result.success).to.be(true); | ||
app(options2, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -168,2 +172,4 @@ expect(result.success).to.be(true); | ||
app(options3, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -177,2 +183,4 @@ expect(result.success).to.be(true); | ||
app(options4, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -186,2 +194,4 @@ expect(result.success).to.be(true); | ||
app(options5, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -195,2 +205,4 @@ expect(result.success).to.be(true); | ||
app(options6, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -204,2 +216,4 @@ expect(result.success).to.be(true); | ||
app(options7, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(true); | ||
@@ -213,2 +227,4 @@ expect(result.success).to.be(false); | ||
app(optionsNoUrl, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(true); | ||
@@ -222,2 +238,4 @@ expect(result.success).to.be(false); | ||
app(optionsEmpty, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(true); | ||
@@ -231,2 +249,4 @@ expect(result.err).to.be('Invalid URL'); | ||
app(options8, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -240,2 +260,4 @@ expect(result.success).to.be(true); | ||
app(options9, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -249,2 +271,4 @@ expect(result.success).to.be(true); | ||
app(options10, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -258,2 +282,4 @@ expect(result.success).to.be(true); | ||
app(options11, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -267,2 +293,4 @@ expect(result.success).to.be(true); | ||
app(options12, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(true); | ||
@@ -276,2 +304,4 @@ expect(result.success).to.be(false); | ||
app(options13, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(true); | ||
@@ -285,2 +315,4 @@ expect(result.success).to.be(false); | ||
app(options14, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(true); | ||
@@ -294,2 +326,4 @@ expect(result.success).to.be(false); | ||
app(options15, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(true); | ||
@@ -303,2 +337,4 @@ expect(result.success).to.be(false); | ||
app(options16, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -312,2 +348,4 @@ expect(result.success).to.be(true); | ||
app(options17, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -322,2 +360,4 @@ expect(result.success).to.be(true); | ||
app(options18, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -331,2 +371,4 @@ expect(result.success).to.be(true); | ||
app(options19, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -343,2 +385,4 @@ expect(result.success).to.be(true); | ||
app(optionsYoutube, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -361,3 +405,4 @@ expect(result.success).to.be(true); | ||
app(optionsTwitch, function (err, result) { | ||
// console.log('result', result); | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -377,2 +422,4 @@ expect(result.success).to.be(true); | ||
app(optionsFlickr, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -392,2 +439,4 @@ expect(result.success).to.be(true); | ||
app(optionTwitter, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -409,2 +458,4 @@ expect(result.success).to.be(true); | ||
app(optionsGithub, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -436,2 +487,4 @@ expect(result.success).to.be(true); | ||
app(optionsAtom, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -462,2 +515,4 @@ expect(result.success).to.be(true); | ||
app(optionCharset1, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -471,2 +526,4 @@ expect(result.success).to.be(true); | ||
app(optionCharset2, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -481,2 +538,4 @@ expect(result.success).to.be(true); | ||
app(optionCharset3, function (err, result) { | ||
console.log('err:', err); | ||
console.log('result:', result); | ||
expect(err).to.be(false); | ||
@@ -483,0 +542,0 @@ expect(result.success).to.be(true); |
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
47561
1234