Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from microlinkhq:master #26

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/browserless/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"p-reflect": "~2.1.0",
"p-retry": "~4.6.1",
"p-timeout": "~4.1.0",
"require-one-of": "~1.0.19",
"require-one-of": "~1.0.20",
"superlock": "~1.2.2"
},
"devDependencies": {
Expand Down
12 changes: 6 additions & 6 deletions packages/browserless/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ require('@browserless/test')(getBrowser())
test('pass specific options to a context', async t => {
const proxiedRequestUrls = []

const serverUrl = await runServer(t, async ({ req, res }) => {
const proxyUrl = await runServer(t, async ({ req, res }) => {
proxiedRequestUrls.push(req.url)

const proxyRequest = request(
Expand All @@ -41,16 +41,16 @@ test('pass specific options to a context', async t => {
})
})

const proxyServer = serverUrl.slice(0, -1)
const targetUrl = await runServer(t, ({ res }) => res.end())

const { host: proxyServer } = new URL(proxyUrl)
const browserless = await getBrowserContext(t, { proxyServer })
const page = await browserless.page()
t.teardown(() => page.close())

await browserless.goto(page, {
url: 'http://example.com'
})
await browserless.goto(page, { url: targetUrl })

t.deepEqual(proxiedRequestUrls, ['http://example.com/', 'http://example.com/favicon.ico'])
t.deepEqual(proxiedRequestUrls, [targetUrl, new URL('/favicon.ico', targetUrl).toString()])
})

test('ensure to destroy browser contexts', async t => {
Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"puppeteer"
],
"dependencies": {
"beauty-error": "~1.2.18",
"beauty-error": "~1.2.20",
"browserless": "^10.7.1",
"dark-mode": "~3.0.0",
"dset": "~3.1.4",
Expand All @@ -40,8 +40,8 @@
"nestie": "~1.0.3",
"picocolors": "~1.1.1",
"pretty-bytes": "~5.6.0",
"process-stats": "~3.7.7",
"restore-cursor": "~3.1.0",
"process-stats": "~3.7.12",
"signal-exit": "~4.1.0",
"term-img": "~5.0.0",
"unique-random-array": "~2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/function/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"dependencies": {
"isolated-function": "~0.1.26",
"p-retry": "~4.6.1",
"require-one-of": "~1.0.19"
"require-one-of": "~1.0.20"
},
"devDependencies": {
"@browserless/test": "^10.7.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/goto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@
],
"dependencies": {
"@browserless/devices": "^10.7.0",
"@ghostery/adblocker-puppeteer": "~2.3.1",
"@ghostery/adblocker-puppeteer": "~2.5.0",
"@kikobeats/time-span": "~1.0.5",
"debug-logfmt": "~1.2.3",
"got": "~11.8.6",
"is-url-http": "~2.3.8",
"p-reflect": "~2.1.0",
"p-timeout": "~4.1.0",
"pretty-ms": "~7.0.1",
"is-url-http": "~2.3.9",
"shallow-equal": "~3.1.0",
"tough-cookie": "~5.0.0"
"tough-cookie": "~5.1.0"
},
"devDependencies": {
"@browserless/test": "^10.7.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"fs-extra": "latest",
"img-diff-js": "latest",
"pdf-parse": "latest",
"puppeteer": "23.11.1",
"puppeteer": "24.2.0",
"signal-exit": "latest",
"temperment": "latest"
},
Expand Down
Loading