apify 4.0.0-beta.89 → 4.0.0-beta.91
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.
|
@@ -61,6 +61,7 @@ export class ProxyConfiguration extends CoreProxyConfiguration {
|
|
|
61
61
|
#hostname;
|
|
62
62
|
#port;
|
|
63
63
|
#usesApifyProxy;
|
|
64
|
+
#checkAccess;
|
|
64
65
|
log = defaultLog.child({ prefix: 'ProxyConfiguration' });
|
|
65
66
|
/**
|
|
66
67
|
* @internal
|
|
@@ -82,6 +83,7 @@ export class ProxyConfiguration extends CoreProxyConfiguration {
|
|
|
82
83
|
subdivisionCode: z.string().regex(SUBDIVISION_CODE_REGEX).optional(),
|
|
83
84
|
apifyProxySubdivision: z.string().regex(SUBDIVISION_CODE_REGEX).optional(),
|
|
84
85
|
password: z.string().optional(),
|
|
86
|
+
checkAccess: z.boolean().optional(),
|
|
85
87
|
})
|
|
86
88
|
.strict());
|
|
87
89
|
const { groups = [], apifyProxyGroups = [], countryCode, apifyProxyCountry, subdivisionCode, apifyProxySubdivision, password = configuration.proxyPassword, } = options;
|
|
@@ -106,6 +108,7 @@ export class ProxyConfiguration extends CoreProxyConfiguration {
|
|
|
106
108
|
this.#hostname = hostname;
|
|
107
109
|
this.#port = port;
|
|
108
110
|
this.#usesApifyProxy = !proxyUrls && !newUrlFunction;
|
|
111
|
+
this.#checkAccess = options.checkAccess;
|
|
109
112
|
if (proxyUrls && proxyUrls.some((url) => url?.includes('apify.com'))) {
|
|
110
113
|
this.log.warning('Some Apify proxy features may work incorrectly. Please consider setting up Apify properties instead of `proxyUrls`.\n' +
|
|
111
114
|
'See https://docs.apify.com/sdk/js/docs/concepts/proxy-management#apify-proxy-configuration');
|
|
@@ -137,7 +140,7 @@ export class ProxyConfiguration extends CoreProxyConfiguration {
|
|
|
137
140
|
`so that the SDK can fetch the proxy password from Apify API, when ${APIFY_ENV_VARS.PROXY_PASSWORD} is not defined`);
|
|
138
141
|
}
|
|
139
142
|
}
|
|
140
|
-
if (options?.checkAccess !== false) {
|
|
143
|
+
if ((options?.checkAccess ?? this.#checkAccess) !== false) {
|
|
141
144
|
return this.checkAccess();
|
|
142
145
|
}
|
|
143
146
|
}
|
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.91",
|
|
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.13.0"
|
|
@@ -55,18 +55,18 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@apify/consts": "^3.0.1",
|
|
57
57
|
"@apify/datastructures": "^3.0.1",
|
|
58
|
-
"@apify/input_secrets": "^2.0.
|
|
58
|
+
"@apify/input_secrets": "^2.0.8",
|
|
59
59
|
"@apify/log": "^3.0.1",
|
|
60
60
|
"@apify/pseudo_url": "^3.0.1",
|
|
61
61
|
"@apify/timeout": "^1.0.1",
|
|
62
62
|
"@apify/utilities": "^3.1.0",
|
|
63
|
-
"@apify/validations": "^1.1.
|
|
63
|
+
"@apify/validations": "^1.1.4",
|
|
64
64
|
"@crawlee/core": "4.0.0-rc.1",
|
|
65
65
|
"@crawlee/fs-storage": "4.0.0-rc.1",
|
|
66
66
|
"@crawlee/types": "4.0.0-rc.1",
|
|
67
67
|
"@crawlee/utils": "4.0.0-rc.1",
|
|
68
68
|
"apify-client": "^3.0.0-rc.0",
|
|
69
|
-
"minimatch": "^11.0.
|
|
69
|
+
"minimatch": "^11.0.5",
|
|
70
70
|
"tslib": "^2.9.1",
|
|
71
71
|
"ws": "^8.22.1",
|
|
72
72
|
"zod": "^4.6.7"
|
|
@@ -75,17 +75,17 @@
|
|
|
75
75
|
"@apify/oxlint-config": "^0.3.0",
|
|
76
76
|
"@apify/tsconfig": "^0.2.0",
|
|
77
77
|
"@commitlint/config-conventional": "^21.2.4",
|
|
78
|
-
"@playwright/browser-chromium": "^1.
|
|
78
|
+
"@playwright/browser-chromium": "^1.65.0",
|
|
79
79
|
"@types/node": "^26.6.6",
|
|
80
80
|
"@types/ws": "^8.18.2",
|
|
81
81
|
"commitlint": "^21.2.4",
|
|
82
82
|
"crawlee": "4.0.0-rc.1",
|
|
83
83
|
"husky": "^9.1.7",
|
|
84
84
|
"lint-staged": "^17.6.0",
|
|
85
|
-
"oxfmt": "0.
|
|
85
|
+
"oxfmt": "0.77.0",
|
|
86
86
|
"oxlint": "1.91.0",
|
|
87
|
-
"oxlint-tsgolint": "7.0.
|
|
88
|
-
"playwright": "^1.
|
|
87
|
+
"oxlint-tsgolint": "7.0.2006",
|
|
88
|
+
"playwright": "^1.65.0",
|
|
89
89
|
"puppeteer": "^25.16.0",
|
|
90
90
|
"rimraf": "^6.1.4",
|
|
91
91
|
"tsx": "^4.23.15",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"devEngines": {
|
|
96
96
|
"packageManager": {
|
|
97
97
|
"name": "pnpm",
|
|
98
|
-
"version": "12.
|
|
98
|
+
"version": "12.18.0",
|
|
99
99
|
"onFail": "warn"
|
|
100
100
|
}
|
|
101
101
|
},
|