apify 4.0.0-beta.34 → 4.0.0-beta.35
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/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +14 -3
- package/package.json +1 -1
package/dist/configuration.d.ts
CHANGED
|
@@ -9,9 +9,6 @@ export declare const apifyConfigFields: {
|
|
|
9
9
|
persistStorage: ConfigField<z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
10
10
|
storageDir: ConfigField<z.ZodDefault<z.ZodString>>;
|
|
11
11
|
containerized: ConfigField<z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
12
|
-
defaultDatasetId: ConfigField<z.ZodDefault<z.ZodString>>;
|
|
13
|
-
defaultKeyValueStoreId: ConfigField<z.ZodDefault<z.ZodString>>;
|
|
14
|
-
defaultRequestQueueId: ConfigField<z.ZodDefault<z.ZodString>>;
|
|
15
12
|
inputKey: ConfigField<z.ZodDefault<z.ZodString>>;
|
|
16
13
|
memoryMbytes: ConfigField<z.ZodOptional<z.ZodPreprocess<z.ZodNumber, unknown>>>;
|
|
17
14
|
availableMemoryRatio: ConfigField<z.ZodDefault<z.ZodPreprocess<z.ZodNumber, unknown>>>;
|
|
@@ -22,6 +19,9 @@ export declare const apifyConfigFields: {
|
|
|
22
19
|
chromeExecutablePath: ConfigField<z.ZodOptional<z.ZodString>>;
|
|
23
20
|
defaultBrowserPath: ConfigField<z.ZodOptional<z.ZodString>>;
|
|
24
21
|
purgeOnStart: ConfigField<z.ZodDefault<z.ZodPreprocess<z.ZodBoolean, unknown>>>;
|
|
22
|
+
defaultDatasetId: ConfigField<z.ZodDefault<z.ZodString>>;
|
|
23
|
+
defaultKeyValueStoreId: ConfigField<z.ZodDefault<z.ZodString>>;
|
|
24
|
+
defaultRequestQueueId: ConfigField<z.ZodDefault<z.ZodString>>;
|
|
25
25
|
metamorphAfterSleepMillis: ConfigField<z.ZodDefault<z.ZodPreprocess<z.ZodNumber, unknown>>>;
|
|
26
26
|
actorEventsWsUrl: ConfigField<z.ZodOptional<z.ZodString>>;
|
|
27
27
|
token: ConfigField<z.ZodOptional<z.ZodString>>;
|
package/dist/configuration.js
CHANGED
|
@@ -20,9 +20,6 @@ export const apifyConfigFields = {
|
|
|
20
20
|
// take precedence; crawlee's own CRAWLEE_* var is reused as the fallback,
|
|
21
21
|
// never re-typed). A schema is passed only where the SDK needs a different
|
|
22
22
|
// default than crawlee's.
|
|
23
|
-
defaultDatasetId: withApifyEnv(crawleeConfigFields.defaultDatasetId, [ACTOR_ENV_VARS.DEFAULT_DATASET_ID, APIFY_ENV_VARS.DEFAULT_DATASET_ID], z.string().default(LOCAL_ACTOR_ENV_VARS[ACTOR_ENV_VARS.DEFAULT_DATASET_ID])),
|
|
24
|
-
defaultKeyValueStoreId: withApifyEnv(crawleeConfigFields.defaultKeyValueStoreId, [ACTOR_ENV_VARS.DEFAULT_KEY_VALUE_STORE_ID, APIFY_ENV_VARS.DEFAULT_KEY_VALUE_STORE_ID], z.string().default(LOCAL_ACTOR_ENV_VARS[ACTOR_ENV_VARS.DEFAULT_KEY_VALUE_STORE_ID])),
|
|
25
|
-
defaultRequestQueueId: withApifyEnv(crawleeConfigFields.defaultRequestQueueId, [ACTOR_ENV_VARS.DEFAULT_REQUEST_QUEUE_ID, APIFY_ENV_VARS.DEFAULT_REQUEST_QUEUE_ID], z.string().default(LOCAL_ACTOR_ENV_VARS[ACTOR_ENV_VARS.DEFAULT_REQUEST_QUEUE_ID])),
|
|
26
23
|
inputKey: withApifyEnv(crawleeConfigFields.inputKey, [ACTOR_ENV_VARS.INPUT_KEY, APIFY_ENV_VARS.INPUT_KEY]),
|
|
27
24
|
memoryMbytes: withApifyEnv(crawleeConfigFields.memoryMbytes, [
|
|
28
25
|
ACTOR_ENV_VARS.MEMORY_MBYTES,
|
|
@@ -39,6 +36,20 @@ export const apifyConfigFields = {
|
|
|
39
36
|
chromeExecutablePath: withApifyEnv(crawleeConfigFields.chromeExecutablePath, APIFY_ENV_VARS.CHROME_EXECUTABLE_PATH),
|
|
40
37
|
defaultBrowserPath: withApifyEnv(crawleeConfigFields.defaultBrowserPath, 'APIFY_DEFAULT_BROWSER_PATH'),
|
|
41
38
|
purgeOnStart: withApifyEnv(crawleeConfigFields.purgeOnStart, APIFY_ENV_VARS.PURGE_ON_START),
|
|
39
|
+
// Crawlee addresses the default storage by a reserved alias; on the platform
|
|
40
|
+
// each run gets real storage IDs, which the API calls need.
|
|
41
|
+
defaultDatasetId: field(z.string().default(LOCAL_ACTOR_ENV_VARS[ACTOR_ENV_VARS.DEFAULT_DATASET_ID]), [
|
|
42
|
+
ACTOR_ENV_VARS.DEFAULT_DATASET_ID,
|
|
43
|
+
APIFY_ENV_VARS.DEFAULT_DATASET_ID,
|
|
44
|
+
]),
|
|
45
|
+
defaultKeyValueStoreId: field(z.string().default(LOCAL_ACTOR_ENV_VARS[ACTOR_ENV_VARS.DEFAULT_KEY_VALUE_STORE_ID]), [
|
|
46
|
+
ACTOR_ENV_VARS.DEFAULT_KEY_VALUE_STORE_ID,
|
|
47
|
+
APIFY_ENV_VARS.DEFAULT_KEY_VALUE_STORE_ID,
|
|
48
|
+
]),
|
|
49
|
+
defaultRequestQueueId: field(z.string().default(LOCAL_ACTOR_ENV_VARS[ACTOR_ENV_VARS.DEFAULT_REQUEST_QUEUE_ID]), [
|
|
50
|
+
ACTOR_ENV_VARS.DEFAULT_REQUEST_QUEUE_ID,
|
|
51
|
+
APIFY_ENV_VARS.DEFAULT_REQUEST_QUEUE_ID,
|
|
52
|
+
]),
|
|
42
53
|
// Apify-specific fields
|
|
43
54
|
metamorphAfterSleepMillis: field(coerceNumber.default(300_000), APIFY_ENV_VARS.METAMORPH_AFTER_SLEEP_MILLIS),
|
|
44
55
|
actorEventsWsUrl: field(z.string().optional(), [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.35",
|
|
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"
|