Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

open-graph-scraper

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

open-graph-scraper - npm Package Compare versions

Comparing version 2.5.1 to 2.5.2

6

app.js

@@ -496,2 +496,8 @@ var request = require('request'),

// set the ogImage or fallback to ogImageURL or ogImageSecureURL
ogObject.ogImage = ogObject.ogImage ? ogObject.ogImage : (ogObject.ogImageURL ? ogObject.ogImageURL : (ogObject.ogImageSecureURL ? ogObject.ogImageSecureURL : []));
if (!ogObject.ogImage || !ogObject.ogImage.length) {
delete ogObject['ogImage'];
}
/* Combine image/width/height/type

@@ -498,0 +504,0 @@ and sort for priority */

2

package.json
{
"name": "open-graph-scraper",
"description": "Node.js scraper service for Open Graph info",
"version": "2.5.1",
"version": "2.5.2",
"license": "MIT",

@@ -6,0 +6,0 @@ "main": "app.js",

@@ -134,3 +134,3 @@ var app = require('../app'),

var optionCharset3 = {
'url': 'http://www.f2.dion.ne.jp/~initialt/errdiffusion.html',
'url': 'http://www.rakuten.co.jp/',
'encoding': null

@@ -508,3 +508,3 @@ };

expect(result.success).to.be(true);
expect(result.data.ogTitle).to.be('誤差拡散とは');
expect(result.data.ogTitle).to.be('【楽天市場】Shopping is Entertainment! : インターネット最大級の通信販売、通販オンラインショッピングコミュニティ');
done();

@@ -511,0 +511,0 @@ });

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