@crawlee/basic 4.0.0-beta.120 → 4.0.0-beta.121
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.
|
@@ -277,7 +277,11 @@ export class BasicCrawler {
|
|
|
277
277
|
eventManager ||
|
|
278
278
|
logger ||
|
|
279
279
|
(configuration !== undefined && configuration !== serviceLocator.getConfiguration())) {
|
|
280
|
-
|
|
280
|
+
// Inherit the ambient locator's already-set services for anything not explicitly
|
|
281
|
+
// provided - e.g. only passing a `logger` must not detach the crawler from a globally
|
|
282
|
+
// configured storage backend.
|
|
283
|
+
const ambientServices = serviceLocator.getServicesIfSet();
|
|
284
|
+
const scopedServiceLocator = new ServiceLocator(configuration ?? ambientServices.configuration, eventManager ?? ambientServices.eventManager, storageBackend ?? ambientServices.storageBackend, logger ?? ambientServices.logger);
|
|
281
285
|
serviceLocatorScope = bindMethodsToServiceLocator(scopedServiceLocator, this);
|
|
282
286
|
}
|
|
283
287
|
try {
|
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.121",
|
|
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,10 +42,10 @@
|
|
|
42
42
|
"@apify/datastructures": "^2.0.0",
|
|
43
43
|
"@apify/timeout": "^0.4.4",
|
|
44
44
|
"@apify/utilities": "^2.15.5",
|
|
45
|
-
"@crawlee/core": "4.0.0-beta.
|
|
46
|
-
"@crawlee/http-client": "4.0.0-beta.
|
|
47
|
-
"@crawlee/types": "4.0.0-beta.
|
|
48
|
-
"@crawlee/utils": "4.0.0-beta.
|
|
45
|
+
"@crawlee/core": "4.0.0-beta.121",
|
|
46
|
+
"@crawlee/http-client": "4.0.0-beta.121",
|
|
47
|
+
"@crawlee/types": "4.0.0-beta.121",
|
|
48
|
+
"@crawlee/utils": "4.0.0-beta.121",
|
|
49
49
|
"csv-stringify": "^6.5.2",
|
|
50
50
|
"ow": "^2.0.0",
|
|
51
51
|
"tldts": "^7.0.6",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"type-fest": "^4.41.0"
|
|
54
54
|
},
|
|
55
55
|
"optionalDependencies": {
|
|
56
|
-
"@crawlee/impit-client": "^4.0.0-beta.
|
|
56
|
+
"@crawlee/impit-client": "^4.0.0-beta.121"
|
|
57
57
|
},
|
|
58
58
|
"lerna": {
|
|
59
59
|
"command": {
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "5027317de626f5ba6de5047ae9341a898258cc5a"
|
|
66
66
|
}
|