@crawlee/http 4.0.0-beta.106 → 4.0.0-beta.107

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.
@@ -295,7 +295,9 @@ export class HttpCrawler extends BasicCrawler {
295
295
  if (!cookie)
296
296
  continue;
297
297
  try {
298
- crawlingContext.session.cookieJar.setCookieSync(cookie, response.url, { ignoreError: false });
298
+ await crawlingContext.session.cookieJar.setCookie(cookie, response.url, {
299
+ ignoreError: false,
300
+ });
299
301
  }
300
302
  catch (e) {
301
303
  this.log.debug(`Could not set cookie: ${e.message}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/http",
3
- "version": "4.0.0-beta.106",
3
+ "version": "4.0.0-beta.107",
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": ">=22.0.0"
@@ -49,11 +49,11 @@
49
49
  "dependencies": {
50
50
  "@apify/timeout": "^0.4.4",
51
51
  "@apify/utilities": "^2.15.5",
52
- "@crawlee/basic": "4.0.0-beta.106",
53
- "@crawlee/core": "4.0.0-beta.106",
54
- "@crawlee/http-client": "4.0.0-beta.106",
55
- "@crawlee/types": "4.0.0-beta.106",
56
- "@crawlee/utils": "4.0.0-beta.106",
52
+ "@crawlee/basic": "4.0.0-beta.107",
53
+ "@crawlee/core": "4.0.0-beta.107",
54
+ "@crawlee/http-client": "4.0.0-beta.107",
55
+ "@crawlee/types": "4.0.0-beta.107",
56
+ "@crawlee/utils": "4.0.0-beta.107",
57
57
  "@types/content-type": "^1.1.8",
58
58
  "cheerio": "^1.0.0",
59
59
  "content-type": "^1.0.5",
@@ -70,5 +70,5 @@
70
70
  }
71
71
  }
72
72
  },
73
- "gitHead": "c622f1fc65e65221ea245817c58ecc0ffb4a5cb0"
73
+ "gitHead": "5a3cb6242d0ae261df93c5e03cfebbb9b736e6b7"
74
74
  }