Skip to content

Commit

Permalink
Release v0.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jul 13, 2021
1 parent eabe5c7 commit abb6e32
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions dist/puppeteer-browser-ready.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const browserReady = {
goto(url, options) {
const defaults = { web: {}, addCheerio: true };
const settings = { ...defaults, ...options };
if (options?.web)
console.log('[DEPRECATED] Remove "web" option and use: .then(browserReady.goto(url)).then(webInst => web = webInst)');
return async (browser) => {
const page = await browser.newPage();
const response = await page.goto(url);
Expand Down
2 changes: 2 additions & 0 deletions dist/puppeteer-browser-ready.umd.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
goto(url, options) {
const defaults = { web: {}, addCheerio: true };
const settings = { ...defaults, ...options };
if (options?.web)
console.log('[DEPRECATED] Remove "web" option and use: .then(browserReady.goto(url)).then(webInst => web = webInst)');
return async (browser) => {
const page = await browser.newPage();
const response = await page.goto(url);
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "puppeteer-browser-ready",
"version": "0.2.3",
"version": "0.2.4",
"description": "Simple utility to go to a URL and wait for the HTTP response (written in TypeScript)",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -73,18 +73,18 @@
"pretest": " jshint spec/*.js && eslint --max-warnings 0 . --ext .ts && npm run clean",
"test": " mocha spec/*.spec.js --timeout 5000"
},
"dependencies": {
"cheerio": "~1.0.0-rc.10"
},
"peerDependencies": {
"puppeteer": "^5 || ^6 || ^7 || ^8 || ^9 || ^10"
},
"dependencies": {
"cheerio": "~1.0.0-rc.10"
},
"devDependencies": {
"@types/cheerio": "~0.22",
"@typescript-eslint/eslint-plugin": "~4.28",
"@typescript-eslint/parser": "~4.28",
"assert-deep-strict-equal": "~0.0",
"eslint": "~7.29",
"eslint": "~7.30",
"jshint": "~2.13",
"mocha": "~9.0",
"puppeteer": "~10.1",
Expand Down

0 comments on commit abb6e32

Please sign in to comment.