@crawlee/basic 4.0.0-beta.17 → 4.0.0-beta.19
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-request.d.ts","sourceRoot":"","sources":["../../src/internals/send-request.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"send-request.d.ts","sourceRoot":"","sources":["../../src/internals/send-request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,kBAAkB,EAAE,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAEzG;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,SAAS,IAChG,kBAAiB,OAAO,CAAC,kBAAkB,CAAM,KAAG,OAAO,CAAC,QAAQ,CAAC,CAWtF"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { processHttpRequestOptions, } from '@crawlee/core';
|
|
2
1
|
/**
|
|
3
2
|
* Prepares a function to be used as the `sendRequest` context helper.
|
|
4
3
|
*
|
|
@@ -17,19 +16,7 @@ export function createSendRequest(httpClient, originRequest, session) {
|
|
|
17
16
|
...overrideOptions?.cookieJar,
|
|
18
17
|
}
|
|
19
18
|
: overrideOptions?.cookieJar;
|
|
20
|
-
|
|
21
|
-
url: originRequest.url,
|
|
22
|
-
method: originRequest.method,
|
|
23
|
-
headers: originRequest.headers,
|
|
24
|
-
proxyUrl: session?.proxyInfo?.url,
|
|
25
|
-
sessionToken: session,
|
|
26
|
-
responseType: 'text',
|
|
27
|
-
...overrideOptions,
|
|
28
|
-
cookieJar,
|
|
29
|
-
});
|
|
30
|
-
// Fill in body as the last step - `processHttpRequestOptions` may use either `body`, `json` or `form` so we cannot override it beforehand
|
|
31
|
-
requestOptions.body ??= originRequest.payload;
|
|
32
|
-
return httpClient.sendRequest(requestOptions);
|
|
19
|
+
return httpClient.sendRequest(originRequest.intoFetchAPIRequest(), { session, cookieJar: cookieJar });
|
|
33
20
|
};
|
|
34
21
|
}
|
|
35
22
|
//# sourceMappingURL=send-request.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-request.js","sourceRoot":"","sources":["../../src/internals/send-request.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"send-request.js","sourceRoot":"","sources":["../../src/internals/send-request.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAA0B,EAAE,aAAsB,EAAE,OAA4B;IAC9G,OAAO,KAAK,EAAE,kBAA+C,EAAE,EAAqB,EAAE;QAClF,MAAM,SAAS,GAAG,OAAO;YACrB,CAAC,CAAC;gBACI,eAAe,EAAE,KAAK,EAAE,GAAW,EAAE,EAAE,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,CAAC;gBACpE,SAAS,EAAE,KAAK,EAAE,SAAiB,EAAE,GAAW,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,EAAE,GAAG,CAAC;gBACtF,GAAG,eAAe,EAAE,SAAS;aAChC;YACH,CAAC,CAAC,eAAe,EAAE,SAAS,CAAC;QAEjC,OAAO,UAAU,CAAC,WAAW,CAAC,aAAa,CAAC,mBAAmB,EAAE,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,SAAgB,EAAE,CAAC,CAAC;IACjH,CAAC,CAAC;AACN,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/basic",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.19",
|
|
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"
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@apify/log": "^2.5.18",
|
|
43
43
|
"@apify/timeout": "^0.3.2",
|
|
44
44
|
"@apify/utilities": "^2.15.5",
|
|
45
|
-
"@crawlee/core": "4.0.0-beta.
|
|
46
|
-
"@crawlee/types": "4.0.0-beta.
|
|
47
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
45
|
+
"@crawlee/core": "4.0.0-beta.19",
|
|
46
|
+
"@crawlee/types": "4.0.0-beta.19",
|
|
47
|
+
"@crawlee/utils": "4.0.0-beta.19",
|
|
48
48
|
"csv-stringify": "^6.5.2",
|
|
49
49
|
"fs-extra": "^11.3.0",
|
|
50
50
|
"got-scraping": "^4.1.1",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "690af03140bea34c9a8871d370607cd52339caa0"
|
|
64
64
|
}
|