@crawlee/http 4.0.0-beta.85 → 4.0.0-beta.86

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.
@@ -7,7 +7,7 @@ import type { JsonValue } from 'type-fest';
7
7
  export type HttpErrorHandler<UserData extends Dictionary = any, // with default to Dictionary we cant use a typed router in untyped crawler
8
8
  JSONData extends JsonValue = any, // with default to Dictionary we cant use a typed router in untyped crawler
9
9
  ContextExtension = Dictionary<never>> = ErrorHandler<CrawlingContext, HttpCrawlingContext<UserData, JSONData> & ContextExtension>;
10
- export interface HttpCrawlerOptions<Context extends InternalHttpCrawlingContext = InternalHttpCrawlingContext, ContextExtension = Dictionary<never>, ExtendedContext extends Context = Context & ContextExtension> extends BasicCrawlerOptions<Context, ContextExtension, ExtendedContext> {
10
+ export interface HttpCrawlerOptions<Context extends InternalHttpCrawlingContext = InternalHttpCrawlingContext, ContextExtension = Dictionary<never>, ExtendedContext extends Context = Context & ContextExtension, Routes extends Record<keyof Routes, Dictionary> = Record<string, GetUserDataFromRequest<Context['request']>>> extends BasicCrawlerOptions<Context, ContextExtension, ExtendedContext, Routes> {
11
11
  /**
12
12
  * Timeout in which the HTTP request to the resource needs to finish, given in seconds.
13
13
  */
@@ -231,7 +231,7 @@ JSONData extends JsonValue = any> = RequestHandler<HttpCrawlingContext<UserData,
231
231
  * ```
232
232
  * @category Crawlers
233
233
  */
234
- export declare class HttpCrawler<Context extends InternalHttpCrawlingContext<any, any> = InternalHttpCrawlingContext, ContextExtension = Dictionary<never>, ExtendedContext extends Context = Context & ContextExtension> extends BasicCrawler<Context, ContextExtension, ExtendedContext> {
234
+ export declare class HttpCrawler<Context extends InternalHttpCrawlingContext<any, any> = InternalHttpCrawlingContext, ContextExtension = Dictionary<never>, ExtendedContext extends Context = Context & ContextExtension, Routes extends Record<keyof Routes, Dictionary> = Record<string, GetUserDataFromRequest<Context['request']>>> extends BasicCrawler<Context, ContextExtension, ExtendedContext, Routes> {
235
235
  private preNavigationHooks;
236
236
  private postNavigationHooks;
237
237
  private saveResponseCookies;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crawlee/http",
3
- "version": "4.0.0-beta.85",
3
+ "version": "4.0.0-beta.86",
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.3.2",
51
51
  "@apify/utilities": "^2.15.5",
52
- "@crawlee/basic": "4.0.0-beta.85",
53
- "@crawlee/core": "4.0.0-beta.85",
54
- "@crawlee/http-client": "4.0.0-beta.85",
55
- "@crawlee/types": "4.0.0-beta.85",
56
- "@crawlee/utils": "4.0.0-beta.85",
52
+ "@crawlee/basic": "4.0.0-beta.86",
53
+ "@crawlee/core": "4.0.0-beta.86",
54
+ "@crawlee/http-client": "4.0.0-beta.86",
55
+ "@crawlee/types": "4.0.0-beta.86",
56
+ "@crawlee/utils": "4.0.0-beta.86",
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": "8d6d3cd9da3dc9cb0b7822b28eb317019b6806bc"
73
+ "gitHead": "c2f251426f3ccfcc6efc920e6d492be57beac43b"
74
74
  }