@crawlee/core 4.0.0-beta.106 → 4.0.0-beta.108
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/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.108",
|
|
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"
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"@apify/log": "^2.5.18",
|
|
53
53
|
"@apify/timeout": "^0.4.4",
|
|
54
54
|
"@apify/utilities": "^2.15.5",
|
|
55
|
-
"@crawlee/fs-storage": "4.0.0-beta.
|
|
56
|
-
"@crawlee/types": "4.0.0-beta.
|
|
57
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
55
|
+
"@crawlee/fs-storage": "4.0.0-beta.108",
|
|
56
|
+
"@crawlee/types": "4.0.0-beta.108",
|
|
57
|
+
"@crawlee/utils": "4.0.0-beta.108",
|
|
58
58
|
"@sapphire/async-queue": "^1.5.5",
|
|
59
59
|
"@sapphire/shapeshift": "^4.0.0",
|
|
60
60
|
"@vladfrangu/async_event_emitter": "^2.4.6",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "30b38e8c3fcd97c79d0b697ace661e8fd3454bf4"
|
|
82
82
|
}
|
|
@@ -138,11 +138,11 @@ export declare class Session implements ISession {
|
|
|
138
138
|
* a cookie header or elsewhere.
|
|
139
139
|
* @returns Represents `Cookie` header.
|
|
140
140
|
*/
|
|
141
|
-
getCookieString(url: string): string
|
|
141
|
+
getCookieString(url: string): Promise<string>;
|
|
142
142
|
/**
|
|
143
143
|
* Sets a cookie within this session for the specific URL.
|
|
144
144
|
*/
|
|
145
|
-
setCookie(rawCookie: string, url: string): void
|
|
145
|
+
setCookie(rawCookie: string, url: string): Promise<void>;
|
|
146
146
|
/**
|
|
147
147
|
* Checks if session is not usable. if it is not retires the session.
|
|
148
148
|
*/
|
package/session_pool/session.js
CHANGED
|
@@ -193,15 +193,15 @@ export class Session {
|
|
|
193
193
|
* a cookie header or elsewhere.
|
|
194
194
|
* @returns Represents `Cookie` header.
|
|
195
195
|
*/
|
|
196
|
-
getCookieString(url) {
|
|
197
|
-
return this.cookieJar.
|
|
196
|
+
async getCookieString(url) {
|
|
197
|
+
return this.cookieJar.getCookieString(url, {});
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
200
|
* Sets a cookie within this session for the specific URL.
|
|
201
201
|
*/
|
|
202
|
-
setCookie(rawCookie, url) {
|
|
202
|
+
async setCookie(rawCookie, url) {
|
|
203
203
|
try {
|
|
204
|
-
this.cookieJar.
|
|
204
|
+
await this.cookieJar.setCookie(rawCookie, url);
|
|
205
205
|
}
|
|
206
206
|
catch (e) {
|
|
207
207
|
this.#log.warning('Could not set cookie.', { url, error: e.message });
|