@crawlee/core 4.0.0-beta.206 → 4.0.0-beta.208
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.
- package/errors.d.ts +6 -0
- package/errors.js +6 -0
- package/package.json +6 -6
package/errors.d.ts
CHANGED
|
@@ -48,6 +48,12 @@ export declare class StateValidationError extends Error {
|
|
|
48
48
|
export declare class SessionError extends Error {
|
|
49
49
|
constructor(message?: string);
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* A {@link SessionError} for a session that finished without being blocked, e.g. by reaching its
|
|
53
|
+
* `maxUsageCount` or `maxAgeSecs`. A plain `SessionError` means the session was blocked.
|
|
54
|
+
*/
|
|
55
|
+
export declare class SessionRetiredError extends SessionError {
|
|
56
|
+
}
|
|
51
57
|
/**
|
|
52
58
|
* Wraps the failure of a callback registered with {@link StorageTransaction.afterCommit|`afterCommit`}
|
|
53
59
|
* that ran after the request's writes had already been committed.
|
package/errors.js
CHANGED
|
@@ -59,6 +59,12 @@ export class SessionError extends Error {
|
|
|
59
59
|
super(`Detected a session error, retiring session... ${message ? `\n${message}` : ''}`);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* A {@link SessionError} for a session that finished without being blocked, e.g. by reaching its
|
|
64
|
+
* `maxUsageCount` or `maxAgeSecs`. A plain `SessionError` means the session was blocked.
|
|
65
|
+
*/
|
|
66
|
+
export class SessionRetiredError extends SessionError {
|
|
67
|
+
}
|
|
62
68
|
/**
|
|
63
69
|
* Wraps the failure of a callback registered with {@link StorageTransaction.afterCommit|`afterCommit`}
|
|
64
70
|
* that ran after the request's writes had already been committed.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/core",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.208",
|
|
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"
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
"@apify/log": "^3.0.1",
|
|
54
54
|
"@apify/timeout": "^1.0.1",
|
|
55
55
|
"@apify/utilities": "^3.0.1",
|
|
56
|
-
"@crawlee/fs-storage": "4.0.0-beta.
|
|
57
|
-
"@crawlee/http-client": "4.0.0-beta.
|
|
58
|
-
"@crawlee/types": "4.0.0-beta.
|
|
59
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
56
|
+
"@crawlee/fs-storage": "4.0.0-beta.208",
|
|
57
|
+
"@crawlee/http-client": "4.0.0-beta.208",
|
|
58
|
+
"@crawlee/types": "4.0.0-beta.208",
|
|
59
|
+
"@crawlee/utils": "4.0.0-beta.208",
|
|
60
60
|
"@sapphire/async-queue": "^1.5.5",
|
|
61
61
|
"@standard-schema/spec": "^1.0.0",
|
|
62
62
|
"@vladfrangu/async_event_emitter": "^2.4.6",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "81d3fbc1abd10fd34be2694a98f4a36e2ebc2f64"
|
|
80
80
|
}
|