open-graph-scraper
Advanced tools
Comparing version 6.2.2 to 6.3.0
# Change Log | ||
## 6.3.0 | ||
- Export `SuccessResult` and `ErrorResult` types | ||
- Updating dependencies | ||
## 6.2.2 | ||
@@ -4,0 +9,0 @@ |
@@ -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 {}; |
@@ -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": { |
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
88312
2114
+ Addedchardet@2.0.0(transitive)
- Removedchardet@1.6.1(transitive)
Updatedchardet@^2.0.0
Updatedundici@^5.25.4
Updatedvalidator@^13.11.0