Socket
Socket
Sign inDemoInstall

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 6.5.0 to 6.5.1

5

CHANGELOG.md
# Change Log
## 6.5.1
- jsonLD is now a array of objects since there can be more then one jsonLD tag pre page
- Updating dependencies to fix npm vulnerabilities
## 6.5.0

@@ -4,0 +9,0 @@

4

dist/lib/extract.js

@@ -61,3 +61,5 @@ "use strict";

if (script.attribs.type && script.attribs.type === 'application/ld+json') {
ogObject.jsonLD = JSON.parse($(script).text());
if (!ogObject.jsonLD)
ogObject.jsonLD = [];
ogObject.jsonLD.push(JSON.parse($(script).text()));
}

@@ -64,0 +66,0 @@ });

@@ -164,3 +164,3 @@ import type { RequestInit } from 'undici';

fbAppId?: string;
jsonLD?: object;
jsonLD?: object[];
modifiedTime?: string;

@@ -167,0 +167,0 @@ musicAlbum?: string;

{
"name": "open-graph-scraper",
"description": "Node.js scraper module for Open Graph and Twitter Card info",
"version": "6.5.0",
"version": "6.5.1",
"license": "MIT",

@@ -31,3 +31,3 @@ "main": "./dist/index.js",

"iconv-lite": "^0.6.3",
"undici": "^6.7.0",
"undici": "^6.11.1",
"validator": "^13.11.0"

@@ -41,8 +41,8 @@ },

"devDependencies": {
"@snyk/protect": "^1.1281.0",
"@snyk/protect": "^1.1287.0",
"@types/mocha": "^10.0.6",
"@types/node": "^18.19.21",
"@types/node": "^18.19.30",
"@types/validator": "^13.11.9",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"chai": "^4.4.1",

@@ -53,13 +53,13 @@ "eslint": "^8.57.0",

"eslint-plugin-import": "^2.29.1",
"eslint-plugin-mocha": "^10.3.0",
"eslint-plugin-mocha": "^10.4.1",
"eslint-plugin-promise": "^6.1.1",
"mocha": "^10.3.0",
"mocha": "^10.4.0",
"nyc": "^15.1.0",
"sinon": "^17.0.1",
"ts-mocha": "^10.0.0",
"typescript": "^5.3.3"
"typescript": "^5.4.4"
},
"repository": {
"type": "git",
"url": "http://github.com/jshemas/openGraphScraper.git",
"url": "git+ssh://git@github.com/jshemas/openGraphScraper.git",
"web": "http://github.com/jshemas/openGraphScraper"

@@ -66,0 +66,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