Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Dec 3, 2024
1 parent 3b1ab4a commit ac3edd9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
7 changes: 3 additions & 4 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import type {
PuppeteerLaunchOptions,
PuppeteerNodeLaunchOptions,
Page,
Browser,
EvaluateFunc,
Protocol,
Product,
BoundingBox,
} from 'puppeteer';

Expand Down Expand Up @@ -381,7 +380,7 @@ export type Options = {
@default {headless: 'new'}
*/
readonly launchOptions?: PuppeteerLaunchOptions;
readonly launchOptions?: PuppeteerNodeLaunchOptions;

/**
Inset the bounding box of the screenshot.
Expand Down Expand Up @@ -478,4 +477,4 @@ declare const captureWebsite: {

export default captureWebsite;

export {type PuppeteerLaunchOptions as LaunchOptions} from 'puppeteer';
export {type PuppeteerNodeLaunchOptions as LaunchOptions} from 'puppeteer';
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {setTimeout} from 'node:timers/promises';
import fileUrl from 'file-url';
import puppeteer, {KnownDevices} from 'puppeteer';
import toughCookie from 'tough-cookie';
import {PuppeteerBlocker} from '@cliqz/adblocker-puppeteer';
import {PuppeteerBlocker} from '@ghostery/adblocker-puppeteer';

const isUrl = string => /^(https?|file):\/\/|^data:/.test(string);

Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
"jpeg"
],
"dependencies": {
"@cliqz/adblocker-puppeteer": "^1.27.2",
"@ghostery/adblocker-puppeteer": "^2.1.1",
"file-url": "^4.0.0",
"puppeteer": "^21.9.0",
"tough-cookie": "^4.1.3"
"puppeteer": "^23.10.0",
"tough-cookie": "^5.0.0"
},
"devDependencies": {
"ava": "^5.3.1",
"ava": "^6.2.0",
"create-test-server": "^3.0.1",
"delay": "^6.0.0",
"image-dimensions": "^2.3.0",
Expand All @@ -58,9 +58,9 @@
"pify": "^6.1.0",
"png-js": "^1.0.0",
"tempy": "^3.1.0",
"tsd": "^0.31.0",
"uint8array-extras": "^1.1.0",
"xo": "^0.58.0"
"tsd": "^0.31.2",
"uint8array-extras": "^1.4.0",
"xo": "^0.59.3"
},
"ava": {
"serial": true
Expand Down

0 comments on commit ac3edd9

Please sign in to comment.