@apify/consts
Advanced tools
Comparing version 2.19.0 to 2.20.0
161
consts.d.ts
@@ -196,15 +196,21 @@ export declare const FREE_SUBSCRIPTION_PLAN_CODE = "DEV"; | ||
/** | ||
* Dictionary of APIFY_XXX environment variable names. | ||
* Dictionary of environment variable names prefixed with "APIFY_". | ||
*/ | ||
export declare const APIFY_ENV_VARS: { | ||
readonly API_BASE_URL: "APIFY_API_BASE_URL"; | ||
readonly API_PUBLIC_BASE_URL: "APIFY_API_PUBLIC_BASE_URL"; | ||
readonly CHROME_EXECUTABLE_PATH: "APIFY_CHROME_EXECUTABLE_PATH"; | ||
readonly DEDICATED_CPUS: "APIFY_DEDICATED_CPUS"; | ||
readonly DISABLE_OUTDATED_WARNING: "APIFY_DISABLE_OUTDATED_WARNING"; | ||
readonly FACT: "APIFY_FACT"; | ||
readonly HEADLESS: "APIFY_HEADLESS"; | ||
readonly INPUT_SECRETS_PRIVATE_KEY_FILE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_FILE"; | ||
readonly INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE"; | ||
readonly IS_AT_HOME: "APIFY_IS_AT_HOME"; | ||
readonly ACTOR_ID: "APIFY_ACTOR_ID"; | ||
readonly ACTOR_RUN_ID: "APIFY_ACTOR_RUN_ID"; | ||
readonly ACTOR_TASK_ID: "APIFY_ACTOR_TASK_ID"; | ||
readonly ACTOR_BUILD_ID: "APIFY_ACTOR_BUILD_ID"; | ||
readonly ACTOR_BUILD_NUMBER: "APIFY_ACTOR_BUILD_NUMBER"; | ||
readonly ACTOR_MAX_PAID_DATASET_ITEMS: "ACTOR_MAX_PAID_DATASET_ITEMS"; | ||
readonly INPUT_KEY: "APIFY_INPUT_KEY"; | ||
readonly USER_ID: "APIFY_USER_ID"; | ||
readonly TOKEN: "APIFY_TOKEN"; | ||
readonly LOCAL_STORAGE_DIR: "APIFY_LOCAL_STORAGE_DIR"; | ||
readonly LOG_LEVEL: "APIFY_LOG_LEVEL"; | ||
readonly LOG_FORMAT: "APIFY_LOG_FORMAT"; | ||
readonly META_ORIGIN: "APIFY_META_ORIGIN"; | ||
readonly METAMORPH_AFTER_SLEEP_MILLIS: "APIFY_METAMORPH_AFTER_SLEEP_MILLIS"; | ||
readonly PERSIST_STATE_INTERVAL_MILLIS: "APIFY_PERSIST_STATE_INTERVAL_MILLIS"; | ||
readonly PROXY_PASSWORD: "APIFY_PROXY_PASSWORD"; | ||
@@ -214,27 +220,25 @@ readonly PROXY_HOSTNAME: "APIFY_PROXY_HOSTNAME"; | ||
readonly PROXY_STATUS_URL: "APIFY_PROXY_STATUS_URL"; | ||
readonly STARTED_AT: "APIFY_STARTED_AT"; | ||
readonly TIMEOUT_AT: "APIFY_TIMEOUT_AT"; | ||
readonly DEFAULT_KEY_VALUE_STORE_ID: "APIFY_DEFAULT_KEY_VALUE_STORE_ID"; | ||
readonly DEFAULT_DATASET_ID: "APIFY_DEFAULT_DATASET_ID"; | ||
readonly DEFAULT_REQUEST_QUEUE_ID: "APIFY_DEFAULT_REQUEST_QUEUE_ID"; | ||
readonly LOCAL_STORAGE_DIR: "APIFY_LOCAL_STORAGE_DIR"; | ||
readonly API_BASE_URL: "APIFY_API_BASE_URL"; | ||
readonly API_PUBLIC_BASE_URL: "APIFY_API_PUBLIC_BASE_URL"; | ||
readonly HEADLESS: "APIFY_HEADLESS"; | ||
readonly PURGE_ON_START: "APIFY_PURGE_ON_START"; | ||
readonly SDK_LATEST_VERSION: "APIFY_SDK_LATEST_VERSION"; | ||
readonly SYSTEM_INFO_INTERVAL_MILLIS: "APIFY_SYSTEM_INFO_INTERVAL_MILLIS"; | ||
readonly TOKEN: "APIFY_TOKEN"; | ||
readonly USER_ID: "APIFY_USER_ID"; | ||
readonly WORKFLOW_KEY: "APIFY_WORKFLOW_KEY"; | ||
readonly XVFB: "APIFY_XVFB"; | ||
readonly MEMORY_MBYTES: "APIFY_MEMORY_MBYTES"; | ||
readonly LOG_LEVEL: "APIFY_LOG_LEVEL"; | ||
readonly LOG_FORMAT: "APIFY_LOG_FORMAT"; | ||
readonly ACTOR_BUILD_ID: "APIFY_ACTOR_BUILD_ID"; | ||
readonly ACTOR_BUILD_NUMBER: "APIFY_ACTOR_BUILD_NUMBER"; | ||
readonly ACTOR_EVENTS_WS_URL: "APIFY_ACTOR_EVENTS_WS_URL"; | ||
readonly CHROME_EXECUTABLE_PATH: "APIFY_CHROME_EXECUTABLE_PATH"; | ||
readonly ACTOR_ID: "APIFY_ACTOR_ID"; | ||
readonly ACTOR_MAX_PAID_DATASET_ITEMS: "ACTOR_MAX_PAID_DATASET_ITEMS"; | ||
readonly ACTOR_RUN_ID: "APIFY_ACTOR_RUN_ID"; | ||
readonly ACTOR_TASK_ID: "APIFY_ACTOR_TASK_ID"; | ||
readonly CONTAINER_PORT: "APIFY_CONTAINER_PORT"; | ||
readonly CONTAINER_URL: "APIFY_CONTAINER_URL"; | ||
readonly META_ORIGIN: "APIFY_META_ORIGIN"; | ||
readonly FACT: "APIFY_FACT"; | ||
readonly DEDICATED_CPUS: "APIFY_DEDICATED_CPUS"; | ||
readonly SDK_LATEST_VERSION: "APIFY_SDK_LATEST_VERSION"; | ||
readonly DISABLE_OUTDATED_WARNING: "APIFY_DISABLE_OUTDATED_WARNING"; | ||
readonly WORKFLOW_KEY: "APIFY_WORKFLOW_KEY"; | ||
readonly INPUT_SECRETS_PRIVATE_KEY_FILE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_FILE"; | ||
readonly INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE"; | ||
readonly DEFAULT_DATASET_ID: "APIFY_DEFAULT_DATASET_ID"; | ||
readonly DEFAULT_KEY_VALUE_STORE_ID: "APIFY_DEFAULT_KEY_VALUE_STORE_ID"; | ||
readonly DEFAULT_REQUEST_QUEUE_ID: "APIFY_DEFAULT_REQUEST_QUEUE_ID"; | ||
readonly INPUT_KEY: "APIFY_INPUT_KEY"; | ||
readonly MEMORY_MBYTES: "APIFY_MEMORY_MBYTES"; | ||
readonly STARTED_AT: "APIFY_STARTED_AT"; | ||
readonly TIMEOUT_AT: "APIFY_TIMEOUT_AT"; | ||
readonly ACT_ID: "APIFY_ACT_ID"; | ||
@@ -247,12 +251,18 @@ readonly ACT_RUN_ID: "APIFY_ACT_RUN_ID"; | ||
export declare const ENV_VARS: { | ||
readonly API_BASE_URL: "APIFY_API_BASE_URL"; | ||
readonly API_PUBLIC_BASE_URL: "APIFY_API_PUBLIC_BASE_URL"; | ||
readonly CHROME_EXECUTABLE_PATH: "APIFY_CHROME_EXECUTABLE_PATH"; | ||
readonly DEDICATED_CPUS: "APIFY_DEDICATED_CPUS"; | ||
readonly DISABLE_OUTDATED_WARNING: "APIFY_DISABLE_OUTDATED_WARNING"; | ||
readonly FACT: "APIFY_FACT"; | ||
readonly HEADLESS: "APIFY_HEADLESS"; | ||
readonly INPUT_SECRETS_PRIVATE_KEY_FILE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_FILE"; | ||
readonly INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE"; | ||
readonly IS_AT_HOME: "APIFY_IS_AT_HOME"; | ||
readonly ACTOR_ID: "APIFY_ACTOR_ID"; | ||
readonly ACTOR_RUN_ID: "APIFY_ACTOR_RUN_ID"; | ||
readonly ACTOR_TASK_ID: "APIFY_ACTOR_TASK_ID"; | ||
readonly ACTOR_BUILD_ID: "APIFY_ACTOR_BUILD_ID"; | ||
readonly ACTOR_BUILD_NUMBER: "APIFY_ACTOR_BUILD_NUMBER"; | ||
readonly ACTOR_MAX_PAID_DATASET_ITEMS: "ACTOR_MAX_PAID_DATASET_ITEMS"; | ||
readonly INPUT_KEY: "APIFY_INPUT_KEY"; | ||
readonly USER_ID: "APIFY_USER_ID"; | ||
readonly TOKEN: "APIFY_TOKEN"; | ||
readonly LOCAL_STORAGE_DIR: "APIFY_LOCAL_STORAGE_DIR"; | ||
readonly LOG_LEVEL: "APIFY_LOG_LEVEL"; | ||
readonly LOG_FORMAT: "APIFY_LOG_FORMAT"; | ||
readonly META_ORIGIN: "APIFY_META_ORIGIN"; | ||
readonly METAMORPH_AFTER_SLEEP_MILLIS: "APIFY_METAMORPH_AFTER_SLEEP_MILLIS"; | ||
readonly PERSIST_STATE_INTERVAL_MILLIS: "APIFY_PERSIST_STATE_INTERVAL_MILLIS"; | ||
readonly PROXY_PASSWORD: "APIFY_PROXY_PASSWORD"; | ||
@@ -262,27 +272,25 @@ readonly PROXY_HOSTNAME: "APIFY_PROXY_HOSTNAME"; | ||
readonly PROXY_STATUS_URL: "APIFY_PROXY_STATUS_URL"; | ||
readonly STARTED_AT: "APIFY_STARTED_AT"; | ||
readonly TIMEOUT_AT: "APIFY_TIMEOUT_AT"; | ||
readonly DEFAULT_KEY_VALUE_STORE_ID: "APIFY_DEFAULT_KEY_VALUE_STORE_ID"; | ||
readonly DEFAULT_DATASET_ID: "APIFY_DEFAULT_DATASET_ID"; | ||
readonly DEFAULT_REQUEST_QUEUE_ID: "APIFY_DEFAULT_REQUEST_QUEUE_ID"; | ||
readonly LOCAL_STORAGE_DIR: "APIFY_LOCAL_STORAGE_DIR"; | ||
readonly API_BASE_URL: "APIFY_API_BASE_URL"; | ||
readonly API_PUBLIC_BASE_URL: "APIFY_API_PUBLIC_BASE_URL"; | ||
readonly HEADLESS: "APIFY_HEADLESS"; | ||
readonly PURGE_ON_START: "APIFY_PURGE_ON_START"; | ||
readonly SDK_LATEST_VERSION: "APIFY_SDK_LATEST_VERSION"; | ||
readonly SYSTEM_INFO_INTERVAL_MILLIS: "APIFY_SYSTEM_INFO_INTERVAL_MILLIS"; | ||
readonly TOKEN: "APIFY_TOKEN"; | ||
readonly USER_ID: "APIFY_USER_ID"; | ||
readonly WORKFLOW_KEY: "APIFY_WORKFLOW_KEY"; | ||
readonly XVFB: "APIFY_XVFB"; | ||
readonly MEMORY_MBYTES: "APIFY_MEMORY_MBYTES"; | ||
readonly LOG_LEVEL: "APIFY_LOG_LEVEL"; | ||
readonly LOG_FORMAT: "APIFY_LOG_FORMAT"; | ||
readonly ACTOR_BUILD_ID: "APIFY_ACTOR_BUILD_ID"; | ||
readonly ACTOR_BUILD_NUMBER: "APIFY_ACTOR_BUILD_NUMBER"; | ||
readonly ACTOR_EVENTS_WS_URL: "APIFY_ACTOR_EVENTS_WS_URL"; | ||
readonly CHROME_EXECUTABLE_PATH: "APIFY_CHROME_EXECUTABLE_PATH"; | ||
readonly ACTOR_ID: "APIFY_ACTOR_ID"; | ||
readonly ACTOR_MAX_PAID_DATASET_ITEMS: "ACTOR_MAX_PAID_DATASET_ITEMS"; | ||
readonly ACTOR_RUN_ID: "APIFY_ACTOR_RUN_ID"; | ||
readonly ACTOR_TASK_ID: "APIFY_ACTOR_TASK_ID"; | ||
readonly CONTAINER_PORT: "APIFY_CONTAINER_PORT"; | ||
readonly CONTAINER_URL: "APIFY_CONTAINER_URL"; | ||
readonly META_ORIGIN: "APIFY_META_ORIGIN"; | ||
readonly FACT: "APIFY_FACT"; | ||
readonly DEDICATED_CPUS: "APIFY_DEDICATED_CPUS"; | ||
readonly SDK_LATEST_VERSION: "APIFY_SDK_LATEST_VERSION"; | ||
readonly DISABLE_OUTDATED_WARNING: "APIFY_DISABLE_OUTDATED_WARNING"; | ||
readonly WORKFLOW_KEY: "APIFY_WORKFLOW_KEY"; | ||
readonly INPUT_SECRETS_PRIVATE_KEY_FILE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_FILE"; | ||
readonly INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE"; | ||
readonly DEFAULT_DATASET_ID: "APIFY_DEFAULT_DATASET_ID"; | ||
readonly DEFAULT_KEY_VALUE_STORE_ID: "APIFY_DEFAULT_KEY_VALUE_STORE_ID"; | ||
readonly DEFAULT_REQUEST_QUEUE_ID: "APIFY_DEFAULT_REQUEST_QUEUE_ID"; | ||
readonly INPUT_KEY: "APIFY_INPUT_KEY"; | ||
readonly MEMORY_MBYTES: "APIFY_MEMORY_MBYTES"; | ||
readonly STARTED_AT: "APIFY_STARTED_AT"; | ||
readonly TIMEOUT_AT: "APIFY_TIMEOUT_AT"; | ||
readonly ACT_ID: "APIFY_ACT_ID"; | ||
@@ -313,3 +321,3 @@ readonly ACT_RUN_ID: "APIFY_ACT_RUN_ID"; | ||
}; | ||
export declare const INTEGER_ENV_VARS: readonly ["APIFY_PROXY_PORT", "APIFY_MEMORY_MBYTES", "APIFY_CONTAINER_PORT"]; | ||
export declare const INTEGER_ENV_VARS: readonly ["ACTOR_MAX_PAID_DATASET_ITEMS", "ACTOR_MEMORY_MBYTES", "ACTOR_WEB_SERVER_PORT", "ACTOR_MAX_PAID_DATASET_ITEMS", "APIFY_CONTAINER_PORT", "APIFY_DEDICATED_CPUS", "APIFY_MEMORY_MBYTES", "APIFY_METAMORPH_AFTER_SLEEP_MILLIS", "APIFY_PERSIST_STATE_INTERVAL_MILLIS", "APIFY_PROXY_PORT", "APIFY_SYSTEM_INFO_INTERVAL_MILLIS"]; | ||
/** | ||
@@ -334,13 +342,36 @@ * Dictionary of names of build-time variables passed to the Actor's Docker build process. | ||
/** | ||
* Local defaults for of some of the environment variables. | ||
* Local defaults for of some of the Actor environment variables. | ||
* These are being preset in Apify SDK when it's running out of the Apify platform. | ||
*/ | ||
export declare const LOCAL_ENV_VARS: { | ||
export declare const LOCAL_ACTOR_ENV_VARS: { | ||
ACTOR_DEFAULT_DATASET_ID: string; | ||
ACTOR_DEFAULT_KEY_VALUE_STORE_ID: string; | ||
ACTOR_DEFAULT_REQUEST_QUEUE_ID: string; | ||
ACTOR_WEB_SERVER_PORT: string; | ||
ACTOR_WEB_SERVER_URL: string; | ||
}; | ||
/** | ||
* Local defaults for of some of the Apify environment variables. | ||
* These are being preset in Apify SDK when it's running out of the Apify platform. | ||
*/ | ||
export declare const LOCAL_APIFY_ENV_VARS: { | ||
APIFY_CONTAINER_PORT: string; | ||
APIFY_CONTAINER_URL: string; | ||
APIFY_DEFAULT_DATASET_ID: string; | ||
APIFY_DEFAULT_KEY_VALUE_STORE_ID: string; | ||
APIFY_DEFAULT_DATASET_ID: string; | ||
APIFY_DEFAULT_REQUEST_QUEUE_ID: string; | ||
APIFY_PROXY_HOSTNAME: string; | ||
APIFY_PROXY_PORT: string; | ||
}; | ||
/** | ||
* @deprecated `LOCAL_ENV_VARS` were replaced by `LOCAL_APIFY_ENV_VARS`. We currently keep this for backwards compatibility. | ||
*/ | ||
export declare const LOCAL_ENV_VARS: { | ||
APIFY_CONTAINER_PORT: string; | ||
APIFY_CONTAINER_URL: string; | ||
APIFY_DEFAULT_DATASET_ID: string; | ||
APIFY_DEFAULT_KEY_VALUE_STORE_ID: string; | ||
APIFY_DEFAULT_REQUEST_QUEUE_ID: string; | ||
APIFY_PROXY_HOSTNAME: string; | ||
APIFY_PROXY_PORT: string; | ||
}; | ||
@@ -347,0 +378,0 @@ /** |
109
index.js
@@ -70,2 +70,4 @@ "use strict"; | ||
KEY_VALUE_STORE_KEY_REGEX: () => KEY_VALUE_STORE_KEY_REGEX, | ||
LOCAL_ACTOR_ENV_VARS: () => LOCAL_ACTOR_ENV_VARS, | ||
LOCAL_APIFY_ENV_VARS: () => LOCAL_APIFY_ENV_VARS, | ||
LOCAL_ENV_VARS: () => LOCAL_ENV_VARS, | ||
@@ -289,12 +291,18 @@ LOCAL_STORAGE_SUBDIRS: () => LOCAL_STORAGE_SUBDIRS, | ||
var APIFY_ENV_VARS = { | ||
API_BASE_URL: "APIFY_API_BASE_URL", | ||
API_PUBLIC_BASE_URL: "APIFY_API_PUBLIC_BASE_URL", | ||
CHROME_EXECUTABLE_PATH: "APIFY_CHROME_EXECUTABLE_PATH", | ||
DEDICATED_CPUS: "APIFY_DEDICATED_CPUS", | ||
DISABLE_OUTDATED_WARNING: "APIFY_DISABLE_OUTDATED_WARNING", | ||
FACT: "APIFY_FACT", | ||
HEADLESS: "APIFY_HEADLESS", | ||
INPUT_SECRETS_PRIVATE_KEY_FILE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_FILE", | ||
INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE", | ||
IS_AT_HOME: "APIFY_IS_AT_HOME", | ||
ACTOR_ID: "APIFY_ACTOR_ID", | ||
ACTOR_RUN_ID: "APIFY_ACTOR_RUN_ID", | ||
ACTOR_TASK_ID: "APIFY_ACTOR_TASK_ID", | ||
ACTOR_BUILD_ID: "APIFY_ACTOR_BUILD_ID", | ||
ACTOR_BUILD_NUMBER: "APIFY_ACTOR_BUILD_NUMBER", | ||
ACTOR_MAX_PAID_DATASET_ITEMS: "ACTOR_MAX_PAID_DATASET_ITEMS", | ||
INPUT_KEY: "APIFY_INPUT_KEY", | ||
USER_ID: "APIFY_USER_ID", | ||
TOKEN: "APIFY_TOKEN", | ||
LOCAL_STORAGE_DIR: "APIFY_LOCAL_STORAGE_DIR", | ||
LOG_LEVEL: "APIFY_LOG_LEVEL", | ||
LOG_FORMAT: "APIFY_LOG_FORMAT", | ||
META_ORIGIN: "APIFY_META_ORIGIN", | ||
METAMORPH_AFTER_SLEEP_MILLIS: "APIFY_METAMORPH_AFTER_SLEEP_MILLIS", | ||
PERSIST_STATE_INTERVAL_MILLIS: "APIFY_PERSIST_STATE_INTERVAL_MILLIS", | ||
PROXY_PASSWORD: "APIFY_PROXY_PASSWORD", | ||
@@ -304,27 +312,26 @@ PROXY_HOSTNAME: "APIFY_PROXY_HOSTNAME", | ||
PROXY_STATUS_URL: "APIFY_PROXY_STATUS_URL", | ||
STARTED_AT: "APIFY_STARTED_AT", | ||
TIMEOUT_AT: "APIFY_TIMEOUT_AT", | ||
DEFAULT_KEY_VALUE_STORE_ID: "APIFY_DEFAULT_KEY_VALUE_STORE_ID", | ||
DEFAULT_DATASET_ID: "APIFY_DEFAULT_DATASET_ID", | ||
DEFAULT_REQUEST_QUEUE_ID: "APIFY_DEFAULT_REQUEST_QUEUE_ID", | ||
LOCAL_STORAGE_DIR: "APIFY_LOCAL_STORAGE_DIR", | ||
API_BASE_URL: "APIFY_API_BASE_URL", | ||
API_PUBLIC_BASE_URL: "APIFY_API_PUBLIC_BASE_URL", | ||
HEADLESS: "APIFY_HEADLESS", | ||
PURGE_ON_START: "APIFY_PURGE_ON_START", | ||
SDK_LATEST_VERSION: "APIFY_SDK_LATEST_VERSION", | ||
SYSTEM_INFO_INTERVAL_MILLIS: "APIFY_SYSTEM_INFO_INTERVAL_MILLIS", | ||
TOKEN: "APIFY_TOKEN", | ||
USER_ID: "APIFY_USER_ID", | ||
WORKFLOW_KEY: "APIFY_WORKFLOW_KEY", | ||
XVFB: "APIFY_XVFB", | ||
MEMORY_MBYTES: "APIFY_MEMORY_MBYTES", | ||
LOG_LEVEL: "APIFY_LOG_LEVEL", | ||
LOG_FORMAT: "APIFY_LOG_FORMAT", | ||
// Replaced by ACTOR_ENV_VARS, kept for backward compatibility: | ||
ACTOR_BUILD_ID: "APIFY_ACTOR_BUILD_ID", | ||
ACTOR_BUILD_NUMBER: "APIFY_ACTOR_BUILD_NUMBER", | ||
ACTOR_EVENTS_WS_URL: "APIFY_ACTOR_EVENTS_WS_URL", | ||
CHROME_EXECUTABLE_PATH: "APIFY_CHROME_EXECUTABLE_PATH", | ||
ACTOR_ID: "APIFY_ACTOR_ID", | ||
ACTOR_MAX_PAID_DATASET_ITEMS: "ACTOR_MAX_PAID_DATASET_ITEMS", | ||
ACTOR_RUN_ID: "APIFY_ACTOR_RUN_ID", | ||
ACTOR_TASK_ID: "APIFY_ACTOR_TASK_ID", | ||
CONTAINER_PORT: "APIFY_CONTAINER_PORT", | ||
CONTAINER_URL: "APIFY_CONTAINER_URL", | ||
META_ORIGIN: "APIFY_META_ORIGIN", | ||
FACT: "APIFY_FACT", | ||
DEDICATED_CPUS: "APIFY_DEDICATED_CPUS", | ||
SDK_LATEST_VERSION: "APIFY_SDK_LATEST_VERSION", | ||
DISABLE_OUTDATED_WARNING: "APIFY_DISABLE_OUTDATED_WARNING", | ||
WORKFLOW_KEY: "APIFY_WORKFLOW_KEY", | ||
INPUT_SECRETS_PRIVATE_KEY_FILE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_FILE", | ||
INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE: "APIFY_INPUT_SECRETS_PRIVATE_KEY_PASSPHRASE", | ||
DEFAULT_DATASET_ID: "APIFY_DEFAULT_DATASET_ID", | ||
DEFAULT_KEY_VALUE_STORE_ID: "APIFY_DEFAULT_KEY_VALUE_STORE_ID", | ||
DEFAULT_REQUEST_QUEUE_ID: "APIFY_DEFAULT_REQUEST_QUEUE_ID", | ||
INPUT_KEY: "APIFY_INPUT_KEY", | ||
MEMORY_MBYTES: "APIFY_MEMORY_MBYTES", | ||
STARTED_AT: "APIFY_STARTED_AT", | ||
TIMEOUT_AT: "APIFY_TIMEOUT_AT", | ||
// Deprecated, keep them for backward compatibility: | ||
@@ -354,5 +361,15 @@ ACT_ID: "APIFY_ACT_ID", | ||
var INTEGER_ENV_VARS = [ | ||
ENV_VARS.PROXY_PORT, | ||
ENV_VARS.MEMORY_MBYTES, | ||
ENV_VARS.CONTAINER_PORT | ||
// Actor env vars | ||
ACTOR_ENV_VARS.MAX_PAID_DATASET_ITEMS, | ||
ACTOR_ENV_VARS.MEMORY_MBYTES, | ||
ACTOR_ENV_VARS.WEB_SERVER_PORT, | ||
// Apify env vars | ||
APIFY_ENV_VARS.ACTOR_MAX_PAID_DATASET_ITEMS, | ||
APIFY_ENV_VARS.CONTAINER_PORT, | ||
APIFY_ENV_VARS.DEDICATED_CPUS, | ||
APIFY_ENV_VARS.MEMORY_MBYTES, | ||
APIFY_ENV_VARS.METAMORPH_AFTER_SLEEP_MILLIS, | ||
APIFY_ENV_VARS.PERSIST_STATE_INTERVAL_MILLIS, | ||
APIFY_ENV_VARS.PROXY_PORT, | ||
APIFY_ENV_VARS.SYSTEM_INFO_INTERVAL_MILLIS | ||
]; | ||
@@ -368,12 +385,20 @@ var ACTOR_BUILD_ARGS = { | ||
}; | ||
var LOCAL_ENV_VARS = { | ||
[ENV_VARS.DEFAULT_KEY_VALUE_STORE_ID]: "default", | ||
[ENV_VARS.DEFAULT_DATASET_ID]: "default", | ||
[ENV_VARS.DEFAULT_REQUEST_QUEUE_ID]: "default", | ||
[ENV_VARS.PROXY_HOSTNAME]: "proxy.apify.com", | ||
[ENV_VARS.PROXY_PORT]: 8e3.toString(), | ||
[ENV_VARS.CONTAINER_PORT]: DEFAULT_CONTAINER_PORT.toString(), | ||
[ENV_VARS.CONTAINER_URL]: `http://localhost:${DEFAULT_CONTAINER_PORT}` | ||
var LOCAL_ACTOR_ENV_VARS = { | ||
[ACTOR_ENV_VARS.DEFAULT_DATASET_ID]: "default", | ||
[ACTOR_ENV_VARS.DEFAULT_KEY_VALUE_STORE_ID]: "default", | ||
[ACTOR_ENV_VARS.DEFAULT_REQUEST_QUEUE_ID]: "default", | ||
[ACTOR_ENV_VARS.WEB_SERVER_PORT]: DEFAULT_CONTAINER_PORT.toString(), | ||
[ACTOR_ENV_VARS.WEB_SERVER_URL]: `http://localhost:${DEFAULT_CONTAINER_PORT}` | ||
// Must match port line above! | ||
}; | ||
var LOCAL_APIFY_ENV_VARS = { | ||
[APIFY_ENV_VARS.CONTAINER_PORT]: LOCAL_ACTOR_ENV_VARS.ACTOR_WEB_SERVER_PORT, | ||
[APIFY_ENV_VARS.CONTAINER_URL]: LOCAL_ACTOR_ENV_VARS.ACTOR_WEB_SERVER_URL, | ||
[APIFY_ENV_VARS.DEFAULT_DATASET_ID]: LOCAL_ACTOR_ENV_VARS.ACTOR_DEFAULT_DATASET_ID, | ||
[APIFY_ENV_VARS.DEFAULT_KEY_VALUE_STORE_ID]: LOCAL_ACTOR_ENV_VARS.ACTOR_DEFAULT_KEY_VALUE_STORE_ID, | ||
[APIFY_ENV_VARS.DEFAULT_REQUEST_QUEUE_ID]: LOCAL_ACTOR_ENV_VARS.ACTOR_DEFAULT_REQUEST_QUEUE_ID, | ||
[APIFY_ENV_VARS.PROXY_HOSTNAME]: "proxy.apify.com", | ||
[APIFY_ENV_VARS.PROXY_PORT]: 8e3.toString() | ||
}; | ||
var LOCAL_ENV_VARS = LOCAL_APIFY_ENV_VARS; | ||
var KEY_VALUE_STORE_KEYS = { | ||
@@ -573,2 +598,4 @@ INPUT: "INPUT", | ||
KEY_VALUE_STORE_KEY_REGEX, | ||
LOCAL_ACTOR_ENV_VARS, | ||
LOCAL_APIFY_ENV_VARS, | ||
LOCAL_ENV_VARS, | ||
@@ -575,0 +602,0 @@ LOCAL_STORAGE_SUBDIRS, |
{ | ||
"name": "@apify/consts", | ||
"version": "2.19.0", | ||
"version": "2.20.0", | ||
"description": "Tools and constants shared across Apify projects.", | ||
@@ -45,3 +45,3 @@ "main": "./index.js", | ||
}, | ||
"gitHead": "4d0b489b5e77d1d4597dc999602e43f7ee9507c6" | ||
"gitHead": "19e16689c264ff481ce0bfc77e6a8a49bb1e551f" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
143141
1711