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 6.2.2 to 6.3.0

5

CHANGELOG.md
# Change Log
## 6.3.0
- Export `SuccessResult` and `ErrorResult` types
- Updating dependencies
## 6.2.2

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

5

dist/index.d.ts

@@ -18,3 +18,3 @@ import type { OpenGraphScraperOptions, OgObject } from './lib/types';

export default function run(options: OpenGraphScraperOptions): Promise<ErrorResult | SuccessResult>;
type SuccessResult = {
export type SuccessResult = {
error: false;

@@ -25,3 +25,3 @@ html: string;

};
type ErrorResult = {
export type ErrorResult = {
error: true;

@@ -32,2 +32,1 @@ html: undefined;

};
export {};

4

index.ts

@@ -54,3 +54,3 @@ /* eslint-disable max-len, import/no-import-module-exports */

type SuccessResult = {
export type SuccessResult = {
error: false;

@@ -62,3 +62,3 @@ html: string;

type ErrorResult = {
export type ErrorResult = {
error: true;

@@ -65,0 +65,0 @@ html: undefined;

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

@@ -28,6 +28,6 @@ "main": "./dist/index.js",

"dependencies": {
"chardet": "^1.6.0",
"chardet": "^2.0.0",
"cheerio": "^1.0.0-rc.12",
"undici": "^5.22.1",
"validator": "^13.9.0"
"undici": "^5.25.4",
"validator": "^13.11.0"
},

@@ -40,20 +40,20 @@ "files": [

"devDependencies": {
"@snyk/protect": "^1.1190.0",
"@types/mocha": "^10.0.1",
"@types/node": "^18.16.18",
"@types/validator": "^13.7.17",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"chai": "^4.3.7",
"eslint": "^8.45.0",
"@snyk/protect": "^1.1230.0",
"@types/mocha": "^10.0.2",
"@types/node": "^18.18.3",
"@types/validator": "^13.11.2",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"chai": "^4.3.10",
"eslint": "^8.50.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-mocha": "^10.2.0",
"eslint-plugin-promise": "^6.1.1",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"sinon": "^15.2.0",
"sinon": "^16.0.0",
"ts-mocha": "^10.0.0",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},

@@ -60,0 +60,0 @@ "repository": {

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