@crawlee/core 3.13.3-beta.9 → 3.13.3

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.
Files changed (43) hide show
  1. package/autoscaling/autoscaled_pool.d.ts +16 -16
  2. package/autoscaling/autoscaled_pool.js +13 -13
  3. package/autoscaling/snapshotter.d.ts +1 -1
  4. package/autoscaling/snapshotter.js +1 -1
  5. package/autoscaling/system_status.d.ts +12 -12
  6. package/autoscaling/system_status.js +11 -11
  7. package/configuration.d.ts +10 -10
  8. package/configuration.js +4 -4
  9. package/crawlers/crawler_commons.d.ts +12 -12
  10. package/crawlers/crawler_commons.d.ts.map +1 -1
  11. package/crawlers/crawler_commons.js +5 -12
  12. package/crawlers/crawler_commons.js.map +1 -1
  13. package/crawlers/statistics.d.ts +5 -17
  14. package/crawlers/statistics.d.ts.map +1 -1
  15. package/crawlers/statistics.js +9 -20
  16. package/crawlers/statistics.js.map +1 -1
  17. package/enqueue_links/enqueue_links.d.ts +14 -14
  18. package/enqueue_links/enqueue_links.js +5 -5
  19. package/enqueue_links/shared.d.ts +2 -2
  20. package/http_clients/base-http-client.d.ts +7 -7
  21. package/http_clients/base-http-client.js +1 -1
  22. package/package.json +5 -5
  23. package/proxy_configuration.d.ts +11 -11
  24. package/proxy_configuration.js +8 -8
  25. package/request.d.ts +3 -3
  26. package/request.js +2 -2
  27. package/session_pool/session.d.ts +1 -1
  28. package/session_pool/session_pool.d.ts +12 -12
  29. package/session_pool/session_pool.js +10 -10
  30. package/storages/dataset.d.ts +15 -15
  31. package/storages/dataset.js +9 -9
  32. package/storages/key_value_store.d.ts +32 -32
  33. package/storages/key_value_store.js +22 -22
  34. package/storages/request_list.d.ts +35 -35
  35. package/storages/request_list.js +19 -19
  36. package/storages/request_provider.d.ts +19 -19
  37. package/storages/request_provider.js +12 -12
  38. package/storages/request_queue.d.ts +16 -16
  39. package/storages/request_queue.js +16 -16
  40. package/storages/request_queue_v2.d.ts +7 -7
  41. package/storages/request_queue_v2.js +7 -7
  42. package/storages/utils.d.ts +2 -2
  43. package/tsconfig.build.tsbuildinfo +1 -1
@@ -20,7 +20,7 @@ export interface AutoscaledPoolOptions {
20
20
  * If it resolves to `true` then the pool's run finishes. Being called only
21
21
  * when there are no tasks being processed means that as long as `isTaskReadyFunction()`
22
22
  * keeps resolving to `true`, `isFinishedFunction()` will never be called.
23
- * To abort a run, use the {@apilink AutoscaledPool.abort} method.
23
+ * To abort a run, use the {@link AutoscaledPool.abort} method.
24
24
  */
25
25
  isFinishedFunction?: () => Promise<boolean>;
26
26
  /**
@@ -84,12 +84,12 @@ export interface AutoscaledPoolOptions {
84
84
  */
85
85
  taskTimeoutSecs?: number;
86
86
  /**
87
- * Options to be passed down to the {@apilink Snapshotter} constructor. This is useful for fine-tuning
87
+ * Options to be passed down to the {@link Snapshotter} constructor. This is useful for fine-tuning
88
88
  * the snapshot intervals and history.
89
89
  */
90
90
  snapshotterOptions?: SnapshotterOptions;
91
91
  /**
92
- * Options to be passed down to the {@apilink SystemStatus} constructor. This is useful for fine-tuning
92
+ * Options to be passed down to the {@link SystemStatus} constructor. This is useful for fine-tuning
93
93
  * the system status reports. If a custom snapshotter is set in the options, it will be used
94
94
  * by the pool.
95
95
  */
@@ -106,22 +106,22 @@ export interface AutoscaledPoolOptions {
106
106
  * The pool only starts new tasks if there is enough free CPU and memory available
107
107
  * and the Javascript event loop is not blocked.
108
108
  *
109
- * The information about the CPU and memory usage is obtained by the {@apilink Snapshotter} class,
109
+ * The information about the CPU and memory usage is obtained by the {@link Snapshotter} class,
110
110
  * which makes regular snapshots of system resources that may be either local
111
111
  * or from the Apify cloud infrastructure in case the process is running on the Apify platform.
112
- * Meaningful data gathered from these snapshots is provided to `AutoscaledPool` by the {@apilink SystemStatus} class.
112
+ * Meaningful data gathered from these snapshots is provided to `AutoscaledPool` by the {@link SystemStatus} class.
113
113
  *
114
114
  * Before running the pool, you need to implement the following three functions:
115
- * {@apilink AutoscaledPoolOptions.runTaskFunction},
116
- * {@apilink AutoscaledPoolOptions.isTaskReadyFunction} and
117
- * {@apilink AutoscaledPoolOptions.isFinishedFunction}.
115
+ * {@link AutoscaledPoolOptions.runTaskFunction},
116
+ * {@link AutoscaledPoolOptions.isTaskReadyFunction} and
117
+ * {@link AutoscaledPoolOptions.isFinishedFunction}.
118
118
  *
119
- * The auto-scaled pool is started by calling the {@apilink AutoscaledPool.run} function.
120
- * The pool periodically queries the {@apilink AutoscaledPoolOptions.isTaskReadyFunction} function
119
+ * The auto-scaled pool is started by calling the {@link AutoscaledPool.run} function.
120
+ * The pool periodically queries the {@link AutoscaledPoolOptions.isTaskReadyFunction} function
121
121
  * for more tasks, managing optimal concurrency, until the function resolves to `false`. The pool then queries
122
- * the {@apilink AutoscaledPoolOptions.isFinishedFunction}. If it resolves to `true`, the run finishes after all running tasks complete.
122
+ * the {@link AutoscaledPoolOptions.isFinishedFunction}. If it resolves to `true`, the run finishes after all running tasks complete.
123
123
  * If it resolves to `false`, it assumes there will be more tasks available later and keeps periodically querying for tasks.
124
- * If any of the tasks throws then the {@apilink AutoscaledPool.run} function rejects the promise with an error.
124
+ * If any of the tasks throws then the {@link AutoscaledPool.run} function rejects the promise with an error.
125
125
  *
126
126
  * The pool evaluates whether it should start a new task every time one of the tasks finishes
127
127
  * and also in the interval set by the `options.maybeRunIntervalSecs` parameter.
@@ -220,7 +220,7 @@ export declare class AutoscaledPool {
220
220
  run(): Promise<void>;
221
221
  /**
222
222
  * Aborts the run of the auto-scaled pool and destroys it. The promise returned from
223
- * the {@apilink AutoscaledPool.run} function will immediately resolve, no more new tasks
223
+ * the {@link AutoscaledPool.run} function will immediately resolve, no more new tasks
224
224
  * will be spawned and all running tasks will be left in their current state.
225
225
  *
226
226
  * Due to the nature of the tasks, auto-scaled pool cannot reliably guarantee abortion
@@ -232,19 +232,19 @@ export declare class AutoscaledPool {
232
232
  abort(): Promise<void>;
233
233
  /**
234
234
  * Prevents the auto-scaled pool from starting new tasks, but allows the running ones to finish
235
- * (unlike abort, which terminates them). Used together with {@apilink AutoscaledPool.resume}
235
+ * (unlike abort, which terminates them). Used together with {@link AutoscaledPool.resume}
236
236
  *
237
237
  * The function's promise will resolve once all running tasks have completed and the pool
238
238
  * is effectively idle. If the `timeoutSecs` argument is provided, the promise will reject
239
239
  * with a timeout error after the `timeoutSecs` seconds.
240
240
  *
241
- * The promise returned from the {@apilink AutoscaledPool.run} function will not resolve
241
+ * The promise returned from the {@link AutoscaledPool.run} function will not resolve
242
242
  * when `.pause()` is invoked (unlike abort, which resolves it).
243
243
  */
244
244
  pause(timeoutSecs?: number): Promise<void>;
245
245
  /**
246
246
  * Resumes the operation of the autoscaled-pool by allowing more tasks to be run.
247
- * Used together with {@apilink AutoscaledPool.pause}
247
+ * Used together with {@link AutoscaledPool.pause}
248
248
  *
249
249
  * Tasks will automatically start running again in `options.maybeRunIntervalSecs`.
250
250
  */
@@ -15,22 +15,22 @@ const system_status_1 = require("./system_status");
15
15
  * The pool only starts new tasks if there is enough free CPU and memory available
16
16
  * and the Javascript event loop is not blocked.
17
17
  *
18
- * The information about the CPU and memory usage is obtained by the {@apilink Snapshotter} class,
18
+ * The information about the CPU and memory usage is obtained by the {@link Snapshotter} class,
19
19
  * which makes regular snapshots of system resources that may be either local
20
20
  * or from the Apify cloud infrastructure in case the process is running on the Apify platform.
21
- * Meaningful data gathered from these snapshots is provided to `AutoscaledPool` by the {@apilink SystemStatus} class.
21
+ * Meaningful data gathered from these snapshots is provided to `AutoscaledPool` by the {@link SystemStatus} class.
22
22
  *
23
23
  * Before running the pool, you need to implement the following three functions:
24
- * {@apilink AutoscaledPoolOptions.runTaskFunction},
25
- * {@apilink AutoscaledPoolOptions.isTaskReadyFunction} and
26
- * {@apilink AutoscaledPoolOptions.isFinishedFunction}.
24
+ * {@link AutoscaledPoolOptions.runTaskFunction},
25
+ * {@link AutoscaledPoolOptions.isTaskReadyFunction} and
26
+ * {@link AutoscaledPoolOptions.isFinishedFunction}.
27
27
  *
28
- * The auto-scaled pool is started by calling the {@apilink AutoscaledPool.run} function.
29
- * The pool periodically queries the {@apilink AutoscaledPoolOptions.isTaskReadyFunction} function
28
+ * The auto-scaled pool is started by calling the {@link AutoscaledPool.run} function.
29
+ * The pool periodically queries the {@link AutoscaledPoolOptions.isTaskReadyFunction} function
30
30
  * for more tasks, managing optimal concurrency, until the function resolves to `false`. The pool then queries
31
- * the {@apilink AutoscaledPoolOptions.isFinishedFunction}. If it resolves to `true`, the run finishes after all running tasks complete.
31
+ * the {@link AutoscaledPoolOptions.isFinishedFunction}. If it resolves to `true`, the run finishes after all running tasks complete.
32
32
  * If it resolves to `false`, it assumes there will be more tasks available later and keeps periodically querying for tasks.
33
- * If any of the tasks throws then the {@apilink AutoscaledPool.run} function rejects the promise with an error.
33
+ * If any of the tasks throws then the {@link AutoscaledPool.run} function rejects the promise with an error.
34
34
  *
35
35
  * The pool evaluates whether it should start a new task every time one of the tasks finishes
36
36
  * and also in the interval set by the `options.maybeRunIntervalSecs` parameter.
@@ -373,7 +373,7 @@ class AutoscaledPool {
373
373
  }
374
374
  /**
375
375
  * Aborts the run of the auto-scaled pool and destroys it. The promise returned from
376
- * the {@apilink AutoscaledPool.run} function will immediately resolve, no more new tasks
376
+ * the {@link AutoscaledPool.run} function will immediately resolve, no more new tasks
377
377
  * will be spawned and all running tasks will be left in their current state.
378
378
  *
379
379
  * Due to the nature of the tasks, auto-scaled pool cannot reliably guarantee abortion
@@ -391,13 +391,13 @@ class AutoscaledPool {
391
391
  }
392
392
  /**
393
393
  * Prevents the auto-scaled pool from starting new tasks, but allows the running ones to finish
394
- * (unlike abort, which terminates them). Used together with {@apilink AutoscaledPool.resume}
394
+ * (unlike abort, which terminates them). Used together with {@link AutoscaledPool.resume}
395
395
  *
396
396
  * The function's promise will resolve once all running tasks have completed and the pool
397
397
  * is effectively idle. If the `timeoutSecs` argument is provided, the promise will reject
398
398
  * with a timeout error after the `timeoutSecs` seconds.
399
399
  *
400
- * The promise returned from the {@apilink AutoscaledPool.run} function will not resolve
400
+ * The promise returned from the {@link AutoscaledPool.run} function will not resolve
401
401
  * when `.pause()` is invoked (unlike abort, which resolves it).
402
402
  */
403
403
  async pause(timeoutSecs) {
@@ -426,7 +426,7 @@ class AutoscaledPool {
426
426
  }
427
427
  /**
428
428
  * Resumes the operation of the autoscaled-pool by allowing more tasks to be run.
429
- * Used together with {@apilink AutoscaledPool.pause}
429
+ * Used together with {@link AutoscaledPool.pause}
430
430
  *
431
431
  * Tasks will automatically start running again in `options.maybeRunIntervalSecs`.
432
432
  */
@@ -75,7 +75,7 @@ interface ClientSnapshot {
75
75
  * Creates snapshots of system resources at given intervals and marks the resource
76
76
  * as either overloaded or not during the last interval. Keeps a history of the snapshots.
77
77
  * It tracks the following resources: Memory, EventLoop, API and CPU.
78
- * The class is used by the {@apilink AutoscaledPool} class.
78
+ * The class is used by the {@link AutoscaledPool} class.
79
79
  *
80
80
  * When running on the Apify platform, the CPU and memory statistics are provided by the platform,
81
81
  * as collected from the running Docker container. When running locally, `Snapshotter`
@@ -14,7 +14,7 @@ const CRITICAL_OVERLOAD_RATE_LIMIT_MILLIS = 10000;
14
14
  * Creates snapshots of system resources at given intervals and marks the resource
15
15
  * as either overloaded or not during the last interval. Keeps a history of the snapshots.
16
16
  * It tracks the following resources: Memory, EventLoop, API and CPU.
17
- * The class is used by the {@apilink AutoscaledPool} class.
17
+ * The class is used by the {@link AutoscaledPool} class.
18
18
  *
19
19
  * When running on the Apify platform, the CPU and memory statistics are provided by the platform,
20
20
  * as collected from the running Docker container. When running locally, `Snapshotter`
@@ -29,7 +29,7 @@ export interface SystemInfo {
29
29
  }
30
30
  export interface SystemStatusOptions {
31
31
  /**
32
- * Defines max age of snapshots used in the {@apilink SystemStatus.getCurrentStatus} measurement.
32
+ * Defines max age of snapshots used in the {@link SystemStatus.getCurrentStatus} measurement.
33
33
  * @default 5
34
34
  */
35
35
  currentHistorySecs?: number;
@@ -82,25 +82,25 @@ export interface FinalStatistics {
82
82
  crawlerRuntimeMillis: number;
83
83
  }
84
84
  /**
85
- * Provides a simple interface to reading system status from a {@apilink Snapshotter} instance.
86
- * It only exposes two functions {@apilink SystemStatus.getCurrentStatus}
87
- * and {@apilink SystemStatus.getHistoricalStatus}.
85
+ * Provides a simple interface to reading system status from a {@link Snapshotter} instance.
86
+ * It only exposes two functions {@link SystemStatus.getCurrentStatus}
87
+ * and {@link SystemStatus.getHistoricalStatus}.
88
88
  * The system status is calculated using a weighted average of overloaded
89
89
  * messages in the snapshots, with the weights being the time intervals
90
90
  * between the snapshots. Each resource is calculated separately
91
91
  * and the system is overloaded whenever at least one resource is overloaded.
92
- * The class is used by the {@apilink AutoscaledPool} class.
92
+ * The class is used by the {@link AutoscaledPool} class.
93
93
  *
94
- * {@apilink SystemStatus.getCurrentStatus}
94
+ * {@link SystemStatus.getCurrentStatus}
95
95
  * returns a boolean that represents the current status of the system.
96
96
  * The length of the current timeframe in seconds is configurable
97
97
  * by the `currentHistorySecs` option and represents the max age
98
98
  * of snapshots to be considered for the calculation.
99
99
  *
100
- * {@apilink SystemStatus.getHistoricalStatus}
100
+ * {@link SystemStatus.getHistoricalStatus}
101
101
  * returns a boolean that represents the long-term status
102
102
  * of the system. It considers the full snapshot history available
103
- * in the {@apilink Snapshotter} instance.
103
+ * in the {@link Snapshotter} instance.
104
104
  * @category Scaling
105
105
  */
106
106
  export declare class SystemStatus {
@@ -112,7 +112,7 @@ export declare class SystemStatus {
112
112
  private readonly snapshotter;
113
113
  constructor(options?: SystemStatusOptions);
114
114
  /**
115
- * Returns an {@apilink SystemInfo} object with the following structure:
115
+ * Returns an {@link SystemInfo} object with the following structure:
116
116
  *
117
117
  * ```javascript
118
118
  * {
@@ -129,7 +129,7 @@ export declare class SystemStatus {
129
129
  */
130
130
  getCurrentStatus(): SystemInfo;
131
131
  /**
132
- * Returns an {@apilink SystemInfo} object with the following structure:
132
+ * Returns an {@link SystemInfo} object with the following structure:
133
133
  *
134
134
  * ```javascript
135
135
  * {
@@ -141,8 +141,8 @@ export declare class SystemStatus {
141
141
  * ```
142
142
  *
143
143
  * Where the `isSystemIdle` property is set to `false` if the system
144
- * has been overloaded in the full history of the {@apilink Snapshotter}
145
- * (which is configurable in the {@apilink Snapshotter}) and `true` otherwise.
144
+ * has been overloaded in the full history of the {@link Snapshotter}
145
+ * (which is configurable in the {@link Snapshotter}) and `true` otherwise.
146
146
  */
147
147
  getHistoricalStatus(): SystemInfo;
148
148
  /**
@@ -6,25 +6,25 @@ const utils_1 = require("@crawlee/utils");
6
6
  const ow_1 = tslib_1.__importDefault(require("ow"));
7
7
  const snapshotter_1 = require("./snapshotter");
8
8
  /**
9
- * Provides a simple interface to reading system status from a {@apilink Snapshotter} instance.
10
- * It only exposes two functions {@apilink SystemStatus.getCurrentStatus}
11
- * and {@apilink SystemStatus.getHistoricalStatus}.
9
+ * Provides a simple interface to reading system status from a {@link Snapshotter} instance.
10
+ * It only exposes two functions {@link SystemStatus.getCurrentStatus}
11
+ * and {@link SystemStatus.getHistoricalStatus}.
12
12
  * The system status is calculated using a weighted average of overloaded
13
13
  * messages in the snapshots, with the weights being the time intervals
14
14
  * between the snapshots. Each resource is calculated separately
15
15
  * and the system is overloaded whenever at least one resource is overloaded.
16
- * The class is used by the {@apilink AutoscaledPool} class.
16
+ * The class is used by the {@link AutoscaledPool} class.
17
17
  *
18
- * {@apilink SystemStatus.getCurrentStatus}
18
+ * {@link SystemStatus.getCurrentStatus}
19
19
  * returns a boolean that represents the current status of the system.
20
20
  * The length of the current timeframe in seconds is configurable
21
21
  * by the `currentHistorySecs` option and represents the max age
22
22
  * of snapshots to be considered for the calculation.
23
23
  *
24
- * {@apilink SystemStatus.getHistoricalStatus}
24
+ * {@link SystemStatus.getHistoricalStatus}
25
25
  * returns a boolean that represents the long-term status
26
26
  * of the system. It considers the full snapshot history available
27
- * in the {@apilink Snapshotter} instance.
27
+ * in the {@link Snapshotter} instance.
28
28
  * @category Scaling
29
29
  */
30
30
  class SystemStatus {
@@ -83,7 +83,7 @@ class SystemStatus {
83
83
  this.snapshotter = snapshotter || new snapshotter_1.Snapshotter({ config });
84
84
  }
85
85
  /**
86
- * Returns an {@apilink SystemInfo} object with the following structure:
86
+ * Returns an {@link SystemInfo} object with the following structure:
87
87
  *
88
88
  * ```javascript
89
89
  * {
@@ -102,7 +102,7 @@ class SystemStatus {
102
102
  return this._isSystemIdle(this.currentHistoryMillis);
103
103
  }
104
104
  /**
105
- * Returns an {@apilink SystemInfo} object with the following structure:
105
+ * Returns an {@link SystemInfo} object with the following structure:
106
106
  *
107
107
  * ```javascript
108
108
  * {
@@ -114,8 +114,8 @@ class SystemStatus {
114
114
  * ```
115
115
  *
116
116
  * Where the `isSystemIdle` property is set to `false` if the system
117
- * has been overloaded in the full history of the {@apilink Snapshotter}
118
- * (which is configurable in the {@apilink Snapshotter}) and `true` otherwise.
117
+ * has been overloaded in the full history of the {@link Snapshotter}
118
+ * (which is configurable in the {@link Snapshotter}) and `true` otherwise.
119
119
  */
120
120
  getHistoricalStatus() {
121
121
  return this._isSystemIdle();
@@ -9,17 +9,17 @@ import { type Constructor } from './typedefs';
9
9
  export interface ConfigurationOptions {
10
10
  /**
11
11
  * Defines storage client to be used.
12
- * @default {@apilink MemoryStorage}
12
+ * @default {@link MemoryStorage}
13
13
  */
14
14
  storageClient?: StorageClient;
15
15
  /**
16
16
  * Defines the Event Manager to be used.
17
- * @default {@apilink EventManager}
17
+ * @default {@link EventManager}
18
18
  */
19
19
  eventManager?: EventManager;
20
20
  /**
21
21
  * Could be used to adjust the storage client behavior
22
- * e.g. {@apilink MemoryStorageOptions} could be used to adjust the {@apilink MemoryStorage} behavior.
22
+ * e.g. {@link MemoryStorageOptions} could be used to adjust the {@link MemoryStorage} behavior.
23
23
  */
24
24
  storageClientOptions?: Dictionary;
25
25
  /**
@@ -57,7 +57,7 @@ export interface ConfigurationOptions {
57
57
  */
58
58
  maxUsedCpuRatio?: number;
59
59
  /**
60
- * Sets the ratio, defining the amount of system memory that could be used by the {@apilink AutoscaledPool}.
60
+ * Sets the ratio, defining the amount of system memory that could be used by the {@link AutoscaledPool}.
61
61
  * When the memory usage is more than the provided ratio, the memory is considered overloaded.
62
62
  *
63
63
  * Alternative to `CRAWLEE_AVAILABLE_MEMORY_RATIO` environment variable.
@@ -65,7 +65,7 @@ export interface ConfigurationOptions {
65
65
  */
66
66
  availableMemoryRatio?: number;
67
67
  /**
68
- * Sets the amount of system memory in megabytes to be used by the {@apilink AutoscaledPool}.
68
+ * Sets the amount of system memory in megabytes to be used by the {@link AutoscaledPool}.
69
69
  * By default, the maximum memory is set to one quarter of total system memory.
70
70
  *
71
71
  * Alternative to `CRAWLEE_MEMORY_MBYTES` environment variable.
@@ -85,7 +85,7 @@ export interface ConfigurationOptions {
85
85
  systemInfoIntervalMillis?: number;
86
86
  /**
87
87
  * Defines the default input key, i.e. the key that is used to get the crawler input value
88
- * from the default {@apilink KeyValueStore} associated with the current crawler run.
88
+ * from the default {@link KeyValueStore} associated with the current crawler run.
89
89
  *
90
90
  * Alternative to `CRAWLEE_INPUT_KEY` environment variable.
91
91
  * @default 'INPUT'
@@ -257,8 +257,8 @@ export declare class Configuration {
257
257
  */
258
258
  static set(key: keyof ConfigurationOptions, value?: any): void;
259
259
  /**
260
- * Returns cached instance of {@apilink StorageClient} using options as defined in the environment variables or in
261
- * this {@apilink Configuration} instance. Only first call of this method will create the client, following calls will
260
+ * Returns cached instance of {@link StorageClient} using options as defined in the environment variables or in
261
+ * this {@link Configuration} instance. Only first call of this method will create the client, following calls will
262
262
  * return the same client instance.
263
263
  *
264
264
  * Caching works based on the `storageClientOptions`, so calling this method with different options will return
@@ -280,11 +280,11 @@ export declare class Configuration {
280
280
  */
281
281
  static getGlobalConfig(): Configuration;
282
282
  /**
283
- * Gets default {@apilink StorageClient} instance.
283
+ * Gets default {@link StorageClient} instance.
284
284
  */
285
285
  static getStorageClient(): StorageClient;
286
286
  /**
287
- * Gets default {@apilink EventManager} instance.
287
+ * Gets default {@link EventManager} instance.
288
288
  */
289
289
  static getEventManager(): EventManager;
290
290
  /**
package/configuration.js CHANGED
@@ -169,8 +169,8 @@ class Configuration {
169
169
  this.getGlobalConfig().set(key, value);
170
170
  }
171
171
  /**
172
- * Returns cached instance of {@apilink StorageClient} using options as defined in the environment variables or in
173
- * this {@apilink Configuration} instance. Only first call of this method will create the client, following calls will
172
+ * Returns cached instance of {@link StorageClient} using options as defined in the environment variables or in
173
+ * this {@link Configuration} instance. Only first call of this method will create the client, following calls will
174
174
  * return the same client instance.
175
175
  *
176
176
  * Caching works based on the `storageClientOptions`, so calling this method with different options will return
@@ -232,13 +232,13 @@ class Configuration {
232
232
  return Configuration.globalConfig;
233
233
  }
234
234
  /**
235
- * Gets default {@apilink StorageClient} instance.
235
+ * Gets default {@link StorageClient} instance.
236
236
  */
237
237
  static getStorageClient() {
238
238
  return this.getGlobalConfig().getStorageClient();
239
239
  }
240
240
  /**
241
- * Gets default {@apilink EventManager} instance.
241
+ * Gets default {@link EventManager} instance.
242
242
  */
243
243
  static getEventManager() {
244
244
  return this.getGlobalConfig().getEventManager();
@@ -26,15 +26,15 @@ export interface RestrictedCrawlingContext<UserData extends Dictionary = Diction
26
26
  session?: Session;
27
27
  /**
28
28
  * An object with information about currently used proxy by the crawler
29
- * and configured by the {@apilink ProxyConfiguration} class.
29
+ * and configured by the {@link ProxyConfiguration} class.
30
30
  */
31
31
  proxyInfo?: ProxyInfo;
32
32
  /**
33
- * The original {@apilink Request} object.
33
+ * The original {@link Request} object.
34
34
  */
35
35
  request: Request<UserData>;
36
36
  /**
37
- * This function allows you to push data to a {@apilink Dataset} specified by name, or the one currently used by the crawler.
37
+ * This function allows you to push data to a {@link Dataset} specified by name, or the one currently used by the crawler.
38
38
  *
39
39
  * Shortcut for `crawler.pushData()`.
40
40
  *
@@ -42,11 +42,11 @@ export interface RestrictedCrawlingContext<UserData extends Dictionary = Diction
42
42
  */
43
43
  pushData(data: ReadonlyDeep<Parameters<Dataset['pushData']>[0]>, datasetIdOrName?: string): Promise<void>;
44
44
  /**
45
- * This function automatically finds and enqueues links from the current page, adding them to the {@apilink RequestQueue}
45
+ * This function automatically finds and enqueues links from the current page, adding them to the {@link RequestQueue}
46
46
  * currently used by the crawler.
47
47
  *
48
48
  * Optionally, the function allows you to filter the target links' URLs using an array of globs or regular expressions
49
- * and override settings of the enqueued {@apilink Request} objects.
49
+ * and override settings of the enqueued {@link Request} objects.
50
50
  *
51
51
  * Check out the [Crawl a website with relative links](https://crawlee.dev/js/docs/examples/crawl-relative-links) example
52
52
  * for more details regarding its usage.
@@ -89,11 +89,11 @@ export interface RestrictedCrawlingContext<UserData extends Dictionary = Diction
89
89
  export interface CrawlingContext<Crawler = unknown, UserData extends Dictionary = Dictionary> extends RestrictedCrawlingContext<UserData> {
90
90
  crawler: Crawler;
91
91
  /**
92
- * This function automatically finds and enqueues links from the current page, adding them to the {@apilink RequestQueue}
92
+ * This function automatically finds and enqueues links from the current page, adding them to the {@link RequestQueue}
93
93
  * currently used by the crawler.
94
94
  *
95
95
  * Optionally, the function allows you to filter the target links' URLs using an array of globs or regular expressions
96
- * and override settings of the enqueued {@apilink Request} objects.
96
+ * and override settings of the enqueued {@link Request} objects.
97
97
  *
98
98
  * Check out the [Crawl a website with relative links](https://crawlee.dev/js/docs/examples/crawl-relative-links) example
99
99
  * for more details regarding its usage.
@@ -111,7 +111,7 @@ export interface CrawlingContext<Crawler = unknown, UserData extends Dictionary
111
111
  * ```
112
112
  *
113
113
  * @param [options] All `enqueueLinks()` parameters are passed via an options object.
114
- * @returns Promise that resolves to {@apilink BatchAddRequestsResult} object.
114
+ * @returns Promise that resolves to {@link BatchAddRequestsResult} object.
115
115
  */
116
116
  enqueueLinks(options?: ReadonlyDeep<Omit<EnqueueLinksOptions, 'requestQueue'>> & Pick<EnqueueLinksOptions, 'requestQueue'>): Promise<BatchAddRequestsResult>;
117
117
  /**
@@ -138,7 +138,7 @@ export interface CrawlingContext<Crawler = unknown, UserData extends Dictionary
138
138
  sendRequest<Response = string>(overrideOptions?: Partial<OptionsInit>): Promise<GotResponse<Response>>;
139
139
  }
140
140
  /**
141
- * A partial implementation of {@apilink RestrictedCrawlingContext} that stores parameters of calls to context methods for later inspection.
141
+ * A partial implementation of {@link RestrictedCrawlingContext} that stores parameters of calls to context methods for later inspection.
142
142
  *
143
143
  * @experimental
144
144
  */
@@ -151,7 +151,7 @@ export declare class RequestHandlerResult {
151
151
  private enqueueLinksCalls;
152
152
  constructor(config: Configuration, crawleeStateKey: string);
153
153
  /**
154
- * A record of calls to {@apilink RestrictedCrawlingContext.pushData}, {@apilink RestrictedCrawlingContext.addRequests}, {@apilink RestrictedCrawlingContext.enqueueLinks} made by a request handler.
154
+ * A record of calls to {@link RestrictedCrawlingContext.pushData}, {@link RestrictedCrawlingContext.addRequests}, {@link RestrictedCrawlingContext.enqueueLinks} made by a request handler.
155
155
  */
156
156
  get calls(): ReadonlyDeep<{
157
157
  pushData: Parameters<RestrictedCrawlingContext['pushData']>[];
@@ -173,14 +173,14 @@ export declare class RequestHandlerResult {
173
173
  datasetIdOrName?: string;
174
174
  }[]>;
175
175
  /**
176
- * URLs enqueued to the request queue by a request handler, either via {@apilink RestrictedCrawlingContext.addRequests} or {@apilink RestrictedCrawlingContext.enqueueLinks}
176
+ * URLs enqueued to the request queue by a request handler, either via {@link RestrictedCrawlingContext.addRequests} or {@link RestrictedCrawlingContext.enqueueLinks}
177
177
  */
178
178
  get enqueuedUrls(): ReadonlyDeep<{
179
179
  url: string;
180
180
  label?: string;
181
181
  }[]>;
182
182
  /**
183
- * URL lists enqueued to the request queue by a request handler via {@apilink RestrictedCrawlingContext.addRequests} using the `requestsFromUrl` option.
183
+ * URL lists enqueued to the request queue by a request handler via {@link RestrictedCrawlingContext.addRequests} using the `requestsFromUrl` option.
184
184
  */
185
185
  get enqueuedUrlLists(): ReadonlyDeep<{
186
186
  listUrl: string;
@@ -1 +1 @@
1
- {"version":3,"file":"crawler_commons.d.ts","sourceRoot":"","sources":["../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AU,CAAC,yBAAyB,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;KACzE,CAAC,CAMD;IAED;;OAEG;IACH,IAAI,oBAAoB,IAAI,YAAY,CACpC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,YAAY,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC,CACrF,CAEA;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,YAAY,CAAC;QAAE,IAAI,EAAE,UAAU,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAIjF;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,YAAY,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAsBlE;IAED;;OAEG;IACH,IAAI,gBAAgB,IAAI,YAAY,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAgB1E;IAED,QAAQ,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAE7C;IAEF,YAAY,EAAE,yBAAyB,CAAC,cAAc,CAAC,CAErD;IAEF,WAAW,EAAE,yBAAyB,CAAC,aAAa,CAAC,CAEnD;IAEF,QAAQ,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAG7C;IAEF,gBAAgB,EAAE,yBAAyB,CAAC,kBAAkB,CAAC,CAa7D;IAEF,OAAO,CAAC,WAAW,CAAwF;IAE3G,OAAO,CAAC,4BAA4B,CAIlC;IAEF,OAAO,CAAC,4BAA4B,CASlC;CACL"}
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RequestHandlerResult = void 0;
4
4
  const storages_1 = require("../storages");
5
5
  /**
6
- * A partial implementation of {@apilink RestrictedCrawlingContext} that stores parameters of calls to context methods for later inspection.
6
+ * A partial implementation of {@link RestrictedCrawlingContext} that stores parameters of calls to context methods for later inspection.
7
7
  *
8
8
  * @experimental
9
9
  */
@@ -88,17 +88,10 @@ class RequestHandlerResult {
88
88
  id: this.idOrDefault(idOrName),
89
89
  name: idOrName,
90
90
  getValue: async (key) => this.getKeyValueStoreChangedValue(idOrName, key) ?? (await store.getValue(key)),
91
- getAutoSavedValue: async (key, defaultValue = {}) => {
92
- let value = this.getKeyValueStoreChangedValue(idOrName, key);
93
- if (value === null) {
94
- value = (await store.getValue(key)) ?? defaultValue;
95
- this.setKeyValueStoreChangedValue(idOrName, key, value);
96
- }
97
- return value;
98
- },
99
91
  setValue: async (key, value, options) => {
100
92
  this.setKeyValueStoreChangedValue(idOrName, key, value, options);
101
93
  },
94
+ getAutoSavedValue: store.getAutoSavedValue.bind(store),
102
95
  getPublicUrl: store.getPublicUrl.bind(store),
103
96
  };
104
97
  }
@@ -133,7 +126,7 @@ class RequestHandlerResult {
133
126
  });
134
127
  }
135
128
  /**
136
- * A record of calls to {@apilink RestrictedCrawlingContext.pushData}, {@apilink RestrictedCrawlingContext.addRequests}, {@apilink RestrictedCrawlingContext.enqueueLinks} made by a request handler.
129
+ * A record of calls to {@link RestrictedCrawlingContext.pushData}, {@link RestrictedCrawlingContext.addRequests}, {@link RestrictedCrawlingContext.enqueueLinks} made by a request handler.
137
130
  */
138
131
  get calls() {
139
132
  return {
@@ -155,7 +148,7 @@ class RequestHandlerResult {
155
148
  return this.pushDataCalls.flatMap(([data, datasetIdOrName]) => (Array.isArray(data) ? data : [data]).map((item) => ({ item, datasetIdOrName })));
156
149
  }
157
150
  /**
158
- * URLs enqueued to the request queue by a request handler, either via {@apilink RestrictedCrawlingContext.addRequests} or {@apilink RestrictedCrawlingContext.enqueueLinks}
151
+ * URLs enqueued to the request queue by a request handler, either via {@link RestrictedCrawlingContext.addRequests} or {@link RestrictedCrawlingContext.enqueueLinks}
159
152
  */
160
153
  get enqueuedUrls() {
161
154
  const result = [];
@@ -177,7 +170,7 @@ class RequestHandlerResult {
177
170
  return result;
178
171
  }
179
172
  /**
180
- * URL lists enqueued to the request queue by a request handler via {@apilink RestrictedCrawlingContext.addRequests} using the `requestsFromUrl` option.
173
+ * URL lists enqueued to the request queue by a request handler via {@link RestrictedCrawlingContext.addRequests} using the `requestsFromUrl` option.
181
174
  */
182
175
  get enqueuedUrlLists() {
183
176
  const result = [];
@@ -1 +1 @@
1
- {"version":3,"file":"crawler_commons.js","sourceRoot":"","sources":["../../src/crawlers/crawler_commons.ts"],"names":[],"mappings":";;;AAYA,0CAA4C;AA4J5C;;;;GAIG;AACH,MAAa,oBAAoB;IAU7B,YACY,MAAqB,EACrB,eAAuB;QAD/B;;;;mBAAQ,MAAM;WAAe;QAC7B;;;;mBAAQ,eAAe;WAAQ;QAX3B;;;;mBACJ,EAAE;WAAC;QAEC;;;;mBAAqE,EAAE;WAAC;QAExE;;;;mBAA2E,EAAE;WAAC;QAE9E;;;;mBAA6E,EAAE;WAAC;QAwFxF;;;;mBAAkD,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,EAAE;gBAC9E,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC;YACrD,CAAC;WAAC;QAEF;;;;mBAA0D,KAAK,EAAE,OAAO,EAAE,EAAE;gBACxE,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC3C,CAAC;WAAC;QAEF;;;;mBAAwD,KAAK,EAAE,QAAQ,EAAE,OAAO,GAAG,EAAE,EAAE,EAAE;gBACrF,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;YACpD,CAAC;WAAC;QAEF;;;;mBAAkD,KAAK,EAAE,YAAY,EAAE,EAAE;gBACrE,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC;gBACrD,OAAO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