Skip to content

Commit

Permalink
build(deps): bump puppeteer from 14.4.1 to 16.1.0 (#943)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tim Brust <[email protected]>
  • Loading branch information
dependabot[bot] and timbru31 authored Aug 16, 2022
1 parent 2eaaf8f commit 6cd8155
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 55 deletions.
62 changes: 17 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"discord.js": "^13.8.1",
"inquirer": "^8.2.4",
"proxy-chain": "^2.0.6",
"puppeteer": "^14.4.1",
"puppeteer": "^16.1.0",
"puppeteer-extra": "^3.3.4",
"puppeteer-extra-plugin-stealth": "^2.11.1",
"telegraf": "^4.8.6",
Expand Down
3 changes: 1 addition & 2 deletions src/cookies/basket-adder.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { SerializableOrJSHandle } from "puppeteer";
import { v4 } from "uuid";
import type { Logger } from "winston";
import type { BrowserManager } from "../core/browser-manager";
Expand Down Expand Up @@ -160,7 +159,7 @@ export class BasketAdder {
)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
.catch((_) => ({ success: false, status: -2, body: null })),
this.store as SerializableOrJSHandle,
this.store,
id,
v4(),
GRAPHQL_CLIENT_VERSION,
Expand Down
4 changes: 2 additions & 2 deletions src/core/browser-manager.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { prompt } from "inquirer";
import { Server } from "proxy-chain";
import type { Browser, Page, PuppeteerNodeLaunchOptions, SerializableOrJSHandle } from "puppeteer";
import type { Browser, Page, PuppeteerNodeLaunchOptions } from "puppeteer";
import puppeteer from "puppeteer-extra";
import StealthPlugin from "puppeteer-extra-plugin-stealth";
import UserAgent from "user-agents";
Expand Down Expand Up @@ -143,7 +143,7 @@ export class BrowserManager {
)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
.catch((_) => ({ status: -2, body: null })),
this.store as SerializableOrJSHandle,
this.store,
email,
password,
v4(),
Expand Down
5 changes: 2 additions & 3 deletions src/stock-checkers/category-checker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { SerializableOrJSHandle } from "puppeteer";
import { v4 } from "uuid";
import type { Logger } from "winston";
import type { BrowserManager } from "../core/browser-manager";
Expand Down Expand Up @@ -207,7 +206,7 @@ export class CategoryChecker {
)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
.catch((_) => ({ status: -2, body: null })),
this.store as SerializableOrJSHandle,
this.store,
page,
category,
v4(),
Expand Down Expand Up @@ -299,7 +298,7 @@ export class CategoryChecker {
)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
.catch((_) => ({ status: -2, body: null })),
this.store as SerializableOrJSHandle,
this.store,
productId,
v4(),
GRAPHQL_CLIENT_VERSION,
Expand Down
3 changes: 1 addition & 2 deletions src/stock-checkers/wishlist-checker.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import type { SerializableOrJSHandle } from "puppeteer";
import { v4 } from "uuid";
import type { Logger } from "winston";
import type { BrowserManager } from "../core/browser-manager";
Expand Down Expand Up @@ -177,7 +176,7 @@ export class WishlistChecker {
)
// eslint-disable-next-line @typescript-eslint/no-unused-vars
.catch((_) => ({ status: -2, body: null })),
this.store as SerializableOrJSHandle,
this.store,
offset,
v4(),
GRAPHQL_CLIENT_VERSION,
Expand Down

0 comments on commit 6cd8155

Please sign in to comment.