@crawlee/playwright 3.18.1-beta.6 → 3.18.1-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -514,9 +514,9 @@ async function handleCloudflareChallenge(page, url, session, options = {}) {
514
514
  });
515
515
  options.isChallengeCallback ?? (options.isChallengeCallback = async () => {
516
516
  return await page.evaluate(async () => {
517
- // Cloudflare nests the ray ID under varying wrapper elements, so we match by descendants
518
- // instead of a direct-child chain (e.g. a `.footer-wrapper` was inserted in between).
519
- return !!document.querySelector('.footer .footer-inner .diagnostic-wrapper .ray-id');
517
+ // Cloudflare keeps reshuffling the wrapper elements between `.footer-inner` and `.ray-id`,
518
+ // so only the stable outer classes are matched.
519
+ return !!document.querySelector('.footer .footer-inner .ray-id');
520
520
  });
521
521
  });
522
522
  const retryBlocked = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/playwright",
3
- "version": "3.18.1-beta.6",
3
+ "version": "3.18.1-beta.8",
4
4
  "description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
5
5
  "engines": {
6
6
  "node": ">=16.0.0"
@@ -56,11 +56,11 @@
56
56
  "@apify/datastructures": "^2.0.0",
57
57
  "@apify/log": "^2.4.0",
58
58
  "@apify/timeout": "^0.4.0",
59
- "@crawlee/browser": "3.18.1-beta.6",
60
- "@crawlee/browser-pool": "3.18.1-beta.6",
61
- "@crawlee/core": "3.18.1-beta.6",
62
- "@crawlee/types": "3.18.1-beta.6",
63
- "@crawlee/utils": "3.18.1-beta.6",
59
+ "@crawlee/browser": "3.18.1-beta.8",
60
+ "@crawlee/browser-pool": "3.18.1-beta.8",
61
+ "@crawlee/core": "3.18.1-beta.8",
62
+ "@crawlee/types": "3.18.1-beta.8",
63
+ "@crawlee/utils": "3.18.1-beta.8",
64
64
  "cheerio": "1.0.0-rc.12",
65
65
  "jquery": "^3.6.0",
66
66
  "lodash.isequal": "^4.5.0",
@@ -90,5 +90,5 @@
90
90
  }
91
91
  }
92
92
  },
93
- "gitHead": "257a7c4c29d71be12997883259223ed9c9978b70"
93
+ "gitHead": "276ddb709d97e4523bbe7b0773e5fc955c81da01"
94
94
  }