apify-client 2.22.0 → 2.22.1-beta.0
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/bundle.js +172 -179
- package/dist/bundle.js.map +1 -1
- package/dist/resource_clients/dataset_collection.d.ts +3 -0
- package/dist/resource_clients/dataset_collection.d.ts.map +1 -1
- package/dist/resource_clients/dataset_collection.js +2 -0
- package/dist/resource_clients/dataset_collection.js.map +1 -1
- package/dist/resource_clients/key_value_store_collection.d.ts +3 -0
- package/dist/resource_clients/key_value_store_collection.d.ts.map +1 -1
- package/dist/resource_clients/key_value_store_collection.js +2 -0
- package/dist/resource_clients/key_value_store_collection.js.map +1 -1
- package/dist/resource_clients/request_queue_collection.d.ts +3 -0
- package/dist/resource_clients/request_queue_collection.d.ts.map +1 -1
- package/dist/resource_clients/request_queue_collection.js +2 -0
- package/dist/resource_clients/request_queue_collection.js.map +1 -1
- package/package.json +103 -103
package/dist/bundle.js
CHANGED
|
@@ -14929,9 +14929,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14929
14929
|
__webpack_require__.d(__webpack_exports__, {
|
|
14930
14930
|
DatasetCollectionClient: () => (DatasetCollectionClient)
|
|
14931
14931
|
});
|
|
14932
|
-
/* import */ var
|
|
14933
|
-
/* import */ var
|
|
14934
|
-
/* import */ var
|
|
14932
|
+
/* import */ var ow__rspack_import_2 = __webpack_require__("./node_modules/ow/dist/index.js");
|
|
14933
|
+
/* import */ var ow__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(ow__rspack_import_2);
|
|
14934
|
+
/* import */ var _apify_consts__rspack_import_0 = __webpack_require__("./node_modules/@apify/consts/esm/index.mjs");
|
|
14935
|
+
/* import */ var _base_resource_collection_client__rspack_import_1 = __webpack_require__("./src/base/resource_collection_client.ts");
|
|
14936
|
+
|
|
14935
14937
|
|
|
14936
14938
|
|
|
14937
14939
|
/**
|
|
@@ -14953,7 +14955,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14953
14955
|
* ```
|
|
14954
14956
|
*
|
|
14955
14957
|
* @see https://docs.apify.com/platform/storage/dataset
|
|
14956
|
-
*/ class DatasetCollectionClient extends
|
|
14958
|
+
*/ class DatasetCollectionClient extends _base_resource_collection_client__rspack_import_1.ResourceCollectionClient {
|
|
14957
14959
|
/**
|
|
14958
14960
|
* Lists all Datasets.
|
|
14959
14961
|
*
|
|
@@ -14975,11 +14977,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14975
14977
|
* @see https://docs.apify.com/api/v2/datasets-get
|
|
14976
14978
|
*/ list() {
|
|
14977
14979
|
let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
14978
|
-
|
|
14979
|
-
unnamed: (
|
|
14980
|
-
limit: (
|
|
14981
|
-
offset: (
|
|
14982
|
-
desc: (
|
|
14980
|
+
ow__rspack_import_2_default()(options, ow__rspack_import_2_default().object.exactShape({
|
|
14981
|
+
unnamed: (ow__rspack_import_2_default().optional.boolean),
|
|
14982
|
+
limit: (ow__rspack_import_2_default().optional.number.not.negative),
|
|
14983
|
+
offset: (ow__rspack_import_2_default().optional.number.not.negative),
|
|
14984
|
+
desc: (ow__rspack_import_2_default().optional.boolean),
|
|
14985
|
+
ownership: ow__rspack_import_2_default().optional.string.oneOf(Object.values(_apify_consts__rspack_import_0.STORAGE_OWNERSHIP_FILTER))
|
|
14983
14986
|
}));
|
|
14984
14987
|
return this._listPaginated(options);
|
|
14985
14988
|
}
|
|
@@ -14991,8 +14994,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14991
14994
|
* @returns The dataset object.
|
|
14992
14995
|
* @see https://docs.apify.com/api/v2/datasets-post
|
|
14993
14996
|
*/ async getOrCreate(name, options) {
|
|
14994
|
-
|
|
14995
|
-
|
|
14997
|
+
ow__rspack_import_2_default()(name, (ow__rspack_import_2_default().optional.string));
|
|
14998
|
+
ow__rspack_import_2_default()(options === null || options === void 0 ? void 0 : options.schema, (ow__rspack_import_2_default().optional.object)); // TODO: Add schema validatioon
|
|
14996
14999
|
return this._getOrCreate(name, options);
|
|
14997
15000
|
}
|
|
14998
15001
|
/**
|
|
@@ -15424,9 +15427,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15424
15427
|
__webpack_require__.d(__webpack_exports__, {
|
|
15425
15428
|
KeyValueStoreCollectionClient: () => (KeyValueStoreCollectionClient)
|
|
15426
15429
|
});
|
|
15427
|
-
/* import */ var
|
|
15428
|
-
/* import */ var
|
|
15429
|
-
/* import */ var
|
|
15430
|
+
/* import */ var ow__rspack_import_2 = __webpack_require__("./node_modules/ow/dist/index.js");
|
|
15431
|
+
/* import */ var ow__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(ow__rspack_import_2);
|
|
15432
|
+
/* import */ var _apify_consts__rspack_import_0 = __webpack_require__("./node_modules/@apify/consts/esm/index.mjs");
|
|
15433
|
+
/* import */ var _base_resource_collection_client__rspack_import_1 = __webpack_require__("./src/base/resource_collection_client.ts");
|
|
15434
|
+
|
|
15430
15435
|
|
|
15431
15436
|
|
|
15432
15437
|
/**
|
|
@@ -15448,7 +15453,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
15448
15453
|
* ```
|
|
15449
15454
|
*
|
|
15450
15455
|
* @see https://docs.apify.com/platform/storage/key-value-store
|
|
15451
|
-
*/ class KeyValueStoreCollectionClient extends
|
|
15456
|
+
*/ class KeyValueStoreCollectionClient extends _base_resource_collection_client__rspack_import_1.ResourceCollectionClient {
|
|
15452
15457
|
/**
|
|
15453
15458
|
* Lists all Key-value stores.
|
|
15454
15459
|
*
|
|
@@ -15470,11 +15475,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
15470
15475
|
* @see https://docs.apify.com/api/v2/key-value-stores-get
|
|
15471
15476
|
*/ list() {
|
|
15472
15477
|
let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
15473
|
-
|
|
15474
|
-
unnamed: (
|
|
15475
|
-
limit: (
|
|
15476
|
-
offset: (
|
|
15477
|
-
desc: (
|
|
15478
|
+
ow__rspack_import_2_default()(options, ow__rspack_import_2_default().object.exactShape({
|
|
15479
|
+
unnamed: (ow__rspack_import_2_default().optional.boolean),
|
|
15480
|
+
limit: (ow__rspack_import_2_default().optional.number.not.negative),
|
|
15481
|
+
offset: (ow__rspack_import_2_default().optional.number.not.negative),
|
|
15482
|
+
desc: (ow__rspack_import_2_default().optional.boolean),
|
|
15483
|
+
ownership: ow__rspack_import_2_default().optional.string.oneOf(Object.values(_apify_consts__rspack_import_0.STORAGE_OWNERSHIP_FILTER))
|
|
15478
15484
|
}));
|
|
15479
15485
|
return this._listPaginated(options);
|
|
15480
15486
|
}
|
|
@@ -15486,8 +15492,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
15486
15492
|
* @returns The key-value store object.
|
|
15487
15493
|
* @see https://docs.apify.com/api/v2/key-value-stores-post
|
|
15488
15494
|
*/ async getOrCreate(name, options) {
|
|
15489
|
-
|
|
15490
|
-
|
|
15495
|
+
ow__rspack_import_2_default()(name, (ow__rspack_import_2_default().optional.string));
|
|
15496
|
+
ow__rspack_import_2_default()(options === null || options === void 0 ? void 0 : options.schema, (ow__rspack_import_2_default().optional.object)); // TODO: Add schema validatioon
|
|
15491
15497
|
return this._getOrCreate(name, options);
|
|
15492
15498
|
}
|
|
15493
15499
|
/**
|
|
@@ -16403,9 +16409,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16403
16409
|
__webpack_require__.d(__webpack_exports__, {
|
|
16404
16410
|
RequestQueueCollectionClient: () => (RequestQueueCollectionClient)
|
|
16405
16411
|
});
|
|
16406
|
-
/* import */ var
|
|
16407
|
-
/* import */ var
|
|
16408
|
-
/* import */ var
|
|
16412
|
+
/* import */ var ow__rspack_import_2 = __webpack_require__("./node_modules/ow/dist/index.js");
|
|
16413
|
+
/* import */ var ow__rspack_import_2_default = /*#__PURE__*/__webpack_require__.n(ow__rspack_import_2);
|
|
16414
|
+
/* import */ var _apify_consts__rspack_import_0 = __webpack_require__("./node_modules/@apify/consts/esm/index.mjs");
|
|
16415
|
+
/* import */ var _base_resource_collection_client__rspack_import_1 = __webpack_require__("./src/base/resource_collection_client.ts");
|
|
16416
|
+
|
|
16409
16417
|
|
|
16410
16418
|
|
|
16411
16419
|
/**
|
|
@@ -16427,7 +16435,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
16427
16435
|
* ```
|
|
16428
16436
|
*
|
|
16429
16437
|
* @see https://docs.apify.com/platform/storage/request-queue
|
|
16430
|
-
*/ class RequestQueueCollectionClient extends
|
|
16438
|
+
*/ class RequestQueueCollectionClient extends _base_resource_collection_client__rspack_import_1.ResourceCollectionClient {
|
|
16431
16439
|
/**
|
|
16432
16440
|
* Lists all Request queues.
|
|
16433
16441
|
*
|
|
@@ -16449,11 +16457,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
16449
16457
|
* @see https://docs.apify.com/api/v2/request-queues-get
|
|
16450
16458
|
*/ list() {
|
|
16451
16459
|
let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
16452
|
-
|
|
16453
|
-
unnamed: (
|
|
16454
|
-
limit: (
|
|
16455
|
-
offset: (
|
|
16456
|
-
desc: (
|
|
16460
|
+
ow__rspack_import_2_default()(options, ow__rspack_import_2_default().object.exactShape({
|
|
16461
|
+
unnamed: (ow__rspack_import_2_default().optional.boolean),
|
|
16462
|
+
limit: (ow__rspack_import_2_default().optional.number.not.negative),
|
|
16463
|
+
offset: (ow__rspack_import_2_default().optional.number.not.negative),
|
|
16464
|
+
desc: (ow__rspack_import_2_default().optional.boolean),
|
|
16465
|
+
ownership: ow__rspack_import_2_default().optional.string.oneOf(Object.values(_apify_consts__rspack_import_0.STORAGE_OWNERSHIP_FILTER))
|
|
16457
16466
|
}));
|
|
16458
16467
|
return this._listPaginated(options);
|
|
16459
16468
|
}
|
|
@@ -16464,7 +16473,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
16464
16473
|
* @returns The Request queue object.
|
|
16465
16474
|
* @see https://docs.apify.com/api/v2/request-queues-post
|
|
16466
16475
|
*/ async getOrCreate(name) {
|
|
16467
|
-
|
|
16476
|
+
ow__rspack_import_2_default()(name, (ow__rspack_import_2_default().optional.string));
|
|
16468
16477
|
return this._getOrCreate(name);
|
|
16469
16478
|
}
|
|
16470
16479
|
/**
|
|
@@ -18201,7 +18210,7 @@ function isStream(value) {
|
|
|
18201
18210
|
function getVersionData() {
|
|
18202
18211
|
if (true) {
|
|
18203
18212
|
return {
|
|
18204
|
-
version: "2.22.0"
|
|
18213
|
+
version: "2.22.1-beta.0"
|
|
18205
18214
|
};
|
|
18206
18215
|
}
|
|
18207
18216
|
// eslint-disable-next-line
|
|
@@ -18356,6 +18365,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
18356
18365
|
INTEGER_ENV_VARS: () => (INTEGER_ENV_VARS),
|
|
18357
18366
|
ISSUES_STATUS_ALL: () => (ISSUES_STATUS_ALL),
|
|
18358
18367
|
ISSUES_STATUS_TYPES: () => (ISSUES_STATUS_TYPES),
|
|
18368
|
+
JSON_ENCODED_ENV_VARS: () => (JSON_ENCODED_ENV_VARS),
|
|
18359
18369
|
KEY_VALUE_STORE_KEYS: () => (KEY_VALUE_STORE_KEYS),
|
|
18360
18370
|
KEY_VALUE_STORE_KEY_REGEX: () => (KEY_VALUE_STORE_KEY_REGEX),
|
|
18361
18371
|
LINKEDIN_PROFILE_REGEX: () => (LINKEDIN_PROFILE_REGEX),
|
|
@@ -18379,6 +18389,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
18379
18389
|
SOURCE_FILE_FORMATS: () => (SOURCE_FILE_FORMATS),
|
|
18380
18390
|
SPLIT_PATH_REGEX: () => (SPLIT_PATH_REGEX),
|
|
18381
18391
|
STORAGE_GENERAL_ACCESS: () => (STORAGE_GENERAL_ACCESS),
|
|
18392
|
+
STORAGE_OWNERSHIP_FILTER: () => (STORAGE_OWNERSHIP_FILTER),
|
|
18382
18393
|
TWITTER_REGEX: () => (TWITTER_REGEX),
|
|
18383
18394
|
URL_REGEX: () => (URL_REGEX),
|
|
18384
18395
|
USERNAME: () => (USERNAME),
|
|
@@ -18440,8 +18451,7 @@ var ACTOR_EVENT_NAMES = {
|
|
|
18440
18451
|
SYSTEM_INFO: "systemInfo",
|
|
18441
18452
|
MIGRATING: "migrating",
|
|
18442
18453
|
PERSIST_STATE: "persistState",
|
|
18443
|
-
ABORTING: "aborting"
|
|
18444
|
-
TIMING_OUT: "timingOut"
|
|
18454
|
+
ABORTING: "aborting"
|
|
18445
18455
|
};
|
|
18446
18456
|
var ACTOR_JOB_STATUSES = {
|
|
18447
18457
|
READY: "READY",
|
|
@@ -18656,6 +18666,7 @@ var ACTOR_ENV_VARS = {
|
|
|
18656
18666
|
DEFAULT_DATASET_ID: "ACTOR_DEFAULT_DATASET_ID",
|
|
18657
18667
|
DEFAULT_KEY_VALUE_STORE_ID: "ACTOR_DEFAULT_KEY_VALUE_STORE_ID",
|
|
18658
18668
|
DEFAULT_REQUEST_QUEUE_ID: "ACTOR_DEFAULT_REQUEST_QUEUE_ID",
|
|
18669
|
+
STORAGE_IDS: "ACTOR_STORAGE_IDS",
|
|
18659
18670
|
EVENTS_WEBSOCKET_URL: "ACTOR_EVENTS_WEBSOCKET_URL",
|
|
18660
18671
|
FULL_NAME: "ACTOR_FULL_NAME",
|
|
18661
18672
|
ID: "ACTOR_ID",
|
|
@@ -18693,6 +18704,9 @@ var INTEGER_ENV_VARS = [
|
|
|
18693
18704
|
var COMMA_SEPARATED_LIST_ENV_VARS = [
|
|
18694
18705
|
ACTOR_ENV_VARS.BUILD_TAGS
|
|
18695
18706
|
];
|
|
18707
|
+
var JSON_ENCODED_ENV_VARS = [
|
|
18708
|
+
ACTOR_ENV_VARS.STORAGE_IDS
|
|
18709
|
+
];
|
|
18696
18710
|
var ACTOR_BUILD_ARGS = {
|
|
18697
18711
|
ACTOR_PATH_IN_DOCKER_CONTEXT: "ACTOR_PATH_IN_DOCKER_CONTEXT"
|
|
18698
18712
|
};
|
|
@@ -18911,6 +18925,12 @@ var ACTOR_PERMISSION_LEVEL = {
|
|
|
18911
18925
|
*/
|
|
18912
18926
|
LIMITED_PERMISSIONS: "LIMITED_PERMISSIONS"
|
|
18913
18927
|
};
|
|
18928
|
+
var STORAGE_OWNERSHIP_FILTER = {
|
|
18929
|
+
/** Return only storages owned by the user. */
|
|
18930
|
+
OWNED_BY_ME: "ownedByMe",
|
|
18931
|
+
/** Return only storages shared with the user. */
|
|
18932
|
+
SHARED_WITH_ME: "sharedWithMe"
|
|
18933
|
+
};
|
|
18914
18934
|
|
|
18915
18935
|
//# sourceMappingURL=index.mjs.map
|
|
18916
18936
|
|
|
@@ -22601,31 +22621,27 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
22601
22621
|
"default": () => (__rspack_default_export)
|
|
22602
22622
|
});
|
|
22603
22623
|
/* import */ var _core_AxiosError_js__rspack_import_0 = __webpack_require__("./node_modules/axios/lib/core/AxiosError.js");
|
|
22604
|
-
/* import */ var _utils_js__rspack_import_1 = __webpack_require__("./node_modules/axios/lib/utils.js");
|
|
22605
|
-
|
|
22606
22624
|
|
|
22607
22625
|
|
|
22608
22626
|
|
|
22609
22627
|
|
|
22610
|
-
|
|
22611
|
-
|
|
22612
|
-
|
|
22613
|
-
|
|
22614
|
-
|
|
22615
|
-
|
|
22616
|
-
|
|
22617
|
-
|
|
22618
|
-
|
|
22619
|
-
|
|
22620
|
-
|
|
22621
|
-
|
|
22622
|
-
|
|
22628
|
+
class CanceledError extends _core_AxiosError_js__rspack_import_0["default"] {
|
|
22629
|
+
/**
|
|
22630
|
+
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
22631
|
+
*
|
|
22632
|
+
* @param {string=} message The message.
|
|
22633
|
+
* @param {Object=} config The config.
|
|
22634
|
+
* @param {Object=} request The request.
|
|
22635
|
+
*
|
|
22636
|
+
* @returns {CanceledError} The created error.
|
|
22637
|
+
*/
|
|
22638
|
+
constructor(message, config, request) {
|
|
22639
|
+
super(message == null ? 'canceled' : message, _core_AxiosError_js__rspack_import_0["default"].ERR_CANCELED, config, request);
|
|
22640
|
+
this.name = 'CanceledError';
|
|
22641
|
+
this.__CANCEL__ = true;
|
|
22642
|
+
}
|
|
22623
22643
|
}
|
|
22624
22644
|
|
|
22625
|
-
_utils_js__rspack_import_1["default"].inherits(CanceledError, _core_AxiosError_js__rspack_import_0["default"], {
|
|
22626
|
-
__CANCEL__: true
|
|
22627
|
-
});
|
|
22628
|
-
|
|
22629
22645
|
/* export default */ const __rspack_default_export = (CanceledError);
|
|
22630
22646
|
|
|
22631
22647
|
|
|
@@ -22912,110 +22928,73 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
22912
22928
|
|
|
22913
22929
|
|
|
22914
22930
|
|
|
22915
|
-
|
|
22916
|
-
|
|
22917
|
-
|
|
22918
|
-
|
|
22919
|
-
|
|
22920
|
-
|
|
22921
|
-
|
|
22922
|
-
|
|
22923
|
-
*
|
|
22924
|
-
* @returns {Error} The created error.
|
|
22925
|
-
*/
|
|
22926
|
-
function AxiosError(message, code, config, request, response) {
|
|
22927
|
-
Error.call(this);
|
|
22931
|
+
class AxiosError extends Error {
|
|
22932
|
+
static from(error, code, config, request, response, customProps) {
|
|
22933
|
+
const axiosError = new AxiosError(error.message, code || error.code, config, request, response);
|
|
22934
|
+
axiosError.cause = error;
|
|
22935
|
+
axiosError.name = error.name;
|
|
22936
|
+
customProps && Object.assign(axiosError, customProps);
|
|
22937
|
+
return axiosError;
|
|
22938
|
+
}
|
|
22928
22939
|
|
|
22929
|
-
|
|
22930
|
-
|
|
22931
|
-
|
|
22932
|
-
|
|
22933
|
-
|
|
22940
|
+
/**
|
|
22941
|
+
* Create an Error with the specified message, config, error code, request and response.
|
|
22942
|
+
*
|
|
22943
|
+
* @param {string} message The error message.
|
|
22944
|
+
* @param {string} [code] The error code (for example, 'ECONNABORTED').
|
|
22945
|
+
* @param {Object} [config] The config.
|
|
22946
|
+
* @param {Object} [request] The request.
|
|
22947
|
+
* @param {Object} [response] The response.
|
|
22948
|
+
*
|
|
22949
|
+
* @returns {Error} The created error.
|
|
22950
|
+
*/
|
|
22951
|
+
constructor(message, code, config, request, response) {
|
|
22952
|
+
super(message);
|
|
22953
|
+
this.name = 'AxiosError';
|
|
22954
|
+
this.isAxiosError = true;
|
|
22955
|
+
code && (this.code = code);
|
|
22956
|
+
config && (this.config = config);
|
|
22957
|
+
request && (this.request = request);
|
|
22958
|
+
if (response) {
|
|
22959
|
+
this.response = response;
|
|
22960
|
+
this.status = response.status;
|
|
22961
|
+
}
|
|
22962
|
+
}
|
|
22934
22963
|
|
|
22935
|
-
|
|
22936
|
-
|
|
22937
|
-
|
|
22938
|
-
|
|
22939
|
-
|
|
22940
|
-
|
|
22941
|
-
|
|
22942
|
-
|
|
22943
|
-
|
|
22964
|
+
toJSON() {
|
|
22965
|
+
return {
|
|
22966
|
+
// Standard
|
|
22967
|
+
message: this.message,
|
|
22968
|
+
name: this.name,
|
|
22969
|
+
// Microsoft
|
|
22970
|
+
description: this.description,
|
|
22971
|
+
number: this.number,
|
|
22972
|
+
// Mozilla
|
|
22973
|
+
fileName: this.fileName,
|
|
22974
|
+
lineNumber: this.lineNumber,
|
|
22975
|
+
columnNumber: this.columnNumber,
|
|
22976
|
+
stack: this.stack,
|
|
22977
|
+
// Axios
|
|
22978
|
+
config: _utils_js__rspack_import_0["default"].toJSONObject(this.config),
|
|
22979
|
+
code: this.code,
|
|
22980
|
+
status: this.status,
|
|
22981
|
+
};
|
|
22982
|
+
}
|
|
22944
22983
|
}
|
|
22945
22984
|
|
|
22946
|
-
|
|
22947
|
-
|
|
22948
|
-
|
|
22949
|
-
|
|
22950
|
-
|
|
22951
|
-
|
|
22952
|
-
|
|
22953
|
-
|
|
22954
|
-
|
|
22955
|
-
|
|
22956
|
-
|
|
22957
|
-
|
|
22958
|
-
|
|
22959
|
-
stack: this.stack,
|
|
22960
|
-
// Axios
|
|
22961
|
-
config: _utils_js__rspack_import_0["default"].toJSONObject(this.config),
|
|
22962
|
-
code: this.code,
|
|
22963
|
-
status: this.status
|
|
22964
|
-
};
|
|
22965
|
-
}
|
|
22966
|
-
});
|
|
22967
|
-
|
|
22968
|
-
const prototype = AxiosError.prototype;
|
|
22969
|
-
const descriptors = {};
|
|
22970
|
-
|
|
22971
|
-
[
|
|
22972
|
-
'ERR_BAD_OPTION_VALUE',
|
|
22973
|
-
'ERR_BAD_OPTION',
|
|
22974
|
-
'ECONNABORTED',
|
|
22975
|
-
'ETIMEDOUT',
|
|
22976
|
-
'ERR_NETWORK',
|
|
22977
|
-
'ERR_FR_TOO_MANY_REDIRECTS',
|
|
22978
|
-
'ERR_DEPRECATED',
|
|
22979
|
-
'ERR_BAD_RESPONSE',
|
|
22980
|
-
'ERR_BAD_REQUEST',
|
|
22981
|
-
'ERR_CANCELED',
|
|
22982
|
-
'ERR_NOT_SUPPORT',
|
|
22983
|
-
'ERR_INVALID_URL'
|
|
22984
|
-
// eslint-disable-next-line func-names
|
|
22985
|
-
].forEach(code => {
|
|
22986
|
-
descriptors[code] = {value: code};
|
|
22987
|
-
});
|
|
22988
|
-
|
|
22989
|
-
Object.defineProperties(AxiosError, descriptors);
|
|
22990
|
-
Object.defineProperty(prototype, 'isAxiosError', {value: true});
|
|
22991
|
-
|
|
22992
|
-
// eslint-disable-next-line func-names
|
|
22993
|
-
AxiosError.from = (error, code, config, request, response, customProps) => {
|
|
22994
|
-
const axiosError = Object.create(prototype);
|
|
22995
|
-
|
|
22996
|
-
_utils_js__rspack_import_0["default"].toFlatObject(error, axiosError, function filter(obj) {
|
|
22997
|
-
return obj !== Error.prototype;
|
|
22998
|
-
}, prop => {
|
|
22999
|
-
return prop !== 'isAxiosError';
|
|
23000
|
-
});
|
|
23001
|
-
|
|
23002
|
-
const msg = error && error.message ? error.message : 'Error';
|
|
23003
|
-
|
|
23004
|
-
// Prefer explicit code; otherwise copy the low-level error's code (e.g. ECONNREFUSED)
|
|
23005
|
-
const errCode = code == null && error ? error.code : code;
|
|
23006
|
-
AxiosError.call(axiosError, msg, errCode, config, request, response);
|
|
23007
|
-
|
|
23008
|
-
// Chain the original error on the standard field; non-enumerable to avoid JSON noise
|
|
23009
|
-
if (error && axiosError.cause == null) {
|
|
23010
|
-
Object.defineProperty(axiosError, 'cause', { value: error, configurable: true });
|
|
23011
|
-
}
|
|
23012
|
-
|
|
23013
|
-
axiosError.name = (error && error.name) || 'Error';
|
|
23014
|
-
|
|
23015
|
-
customProps && Object.assign(axiosError, customProps);
|
|
23016
|
-
|
|
23017
|
-
return axiosError;
|
|
23018
|
-
};
|
|
22985
|
+
// This can be changed to static properties as soon as the parser options in .eslint.cjs are updated.
|
|
22986
|
+
AxiosError.ERR_BAD_OPTION_VALUE = 'ERR_BAD_OPTION_VALUE';
|
|
22987
|
+
AxiosError.ERR_BAD_OPTION = 'ERR_BAD_OPTION';
|
|
22988
|
+
AxiosError.ECONNABORTED = 'ECONNABORTED';
|
|
22989
|
+
AxiosError.ETIMEDOUT = 'ETIMEDOUT';
|
|
22990
|
+
AxiosError.ERR_NETWORK = 'ERR_NETWORK';
|
|
22991
|
+
AxiosError.ERR_FR_TOO_MANY_REDIRECTS = 'ERR_FR_TOO_MANY_REDIRECTS';
|
|
22992
|
+
AxiosError.ERR_DEPRECATED = 'ERR_DEPRECATED';
|
|
22993
|
+
AxiosError.ERR_BAD_RESPONSE = 'ERR_BAD_RESPONSE';
|
|
22994
|
+
AxiosError.ERR_BAD_REQUEST = 'ERR_BAD_REQUEST';
|
|
22995
|
+
AxiosError.ERR_CANCELED = 'ERR_CANCELED';
|
|
22996
|
+
AxiosError.ERR_NOT_SUPPORT = 'ERR_NOT_SUPPORT';
|
|
22997
|
+
AxiosError.ERR_INVALID_URL = 'ERR_INVALID_URL';
|
|
23019
22998
|
|
|
23020
22999
|
/* export default */ const __rspack_default_export = (AxiosError);
|
|
23021
23000
|
|
|
@@ -23367,6 +23346,7 @@ class InterceptorManager {
|
|
|
23367
23346
|
*
|
|
23368
23347
|
* @param {Function} fulfilled The function to handle `then` for a `Promise`
|
|
23369
23348
|
* @param {Function} rejected The function to handle `reject` for a `Promise`
|
|
23349
|
+
* @param {Object} options The options for the interceptor, synchronous and runWhen
|
|
23370
23350
|
*
|
|
23371
23351
|
* @return {Number} An ID used to remove interceptor later
|
|
23372
23352
|
*/
|
|
@@ -23587,7 +23567,7 @@ function mergeConfig(config1, config2) {
|
|
|
23587
23567
|
|
|
23588
23568
|
function getMergedValue(target, source, prop, caseless) {
|
|
23589
23569
|
if (_utils_js__rspack_import_1["default"].isPlainObject(target) && _utils_js__rspack_import_1["default"].isPlainObject(source)) {
|
|
23590
|
-
return _utils_js__rspack_import_1["default"].merge.call({caseless}, target, source);
|
|
23570
|
+
return _utils_js__rspack_import_1["default"].merge.call({ caseless }, target, source);
|
|
23591
23571
|
} else if (_utils_js__rspack_import_1["default"].isPlainObject(source)) {
|
|
23592
23572
|
return _utils_js__rspack_import_1["default"].merge({}, source);
|
|
23593
23573
|
} else if (_utils_js__rspack_import_1["default"].isArray(source)) {
|
|
@@ -23596,7 +23576,6 @@ function mergeConfig(config1, config2) {
|
|
|
23596
23576
|
return source;
|
|
23597
23577
|
}
|
|
23598
23578
|
|
|
23599
|
-
// eslint-disable-next-line consistent-return
|
|
23600
23579
|
function mergeDeepProperties(a, b, prop, caseless) {
|
|
23601
23580
|
if (!_utils_js__rspack_import_1["default"].isUndefined(b)) {
|
|
23602
23581
|
return getMergedValue(a, b, prop, caseless);
|
|
@@ -23662,7 +23641,7 @@ function mergeConfig(config1, config2) {
|
|
|
23662
23641
|
headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
|
|
23663
23642
|
};
|
|
23664
23643
|
|
|
23665
|
-
_utils_js__rspack_import_1["default"].forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
|
|
23644
|
+
_utils_js__rspack_import_1["default"].forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
|
|
23666
23645
|
const merge = mergeMap[prop] || mergeDeepProperties;
|
|
23667
23646
|
const configValue = merge(config1[prop], config2[prop], prop);
|
|
23668
23647
|
(_utils_js__rspack_import_1["default"].isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
|
|
@@ -23949,7 +23928,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23949
23928
|
__webpack_require__.d(__webpack_exports__, {
|
|
23950
23929
|
VERSION: () => (VERSION)
|
|
23951
23930
|
});
|
|
23952
|
-
const VERSION = "1.13.
|
|
23931
|
+
const VERSION = "1.13.4";
|
|
23953
23932
|
|
|
23954
23933
|
},
|
|
23955
23934
|
"./node_modules/axios/lib/helpers/AxiosURLSearchParams.js"(__unused_rspack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
@@ -24168,29 +24147,26 @@ function encode(val) {
|
|
|
24168
24147
|
* @returns {string} The formatted url
|
|
24169
24148
|
*/
|
|
24170
24149
|
function buildURL(url, params, options) {
|
|
24171
|
-
/*eslint no-param-reassign:0*/
|
|
24172
24150
|
if (!params) {
|
|
24173
24151
|
return url;
|
|
24174
24152
|
}
|
|
24175
|
-
|
|
24153
|
+
|
|
24176
24154
|
const _encode = options && options.encode || encode;
|
|
24177
24155
|
|
|
24178
|
-
|
|
24179
|
-
options
|
|
24180
|
-
|
|
24181
|
-
};
|
|
24182
|
-
}
|
|
24156
|
+
const _options = _utils_js__rspack_import_0["default"].isFunction(options) ? {
|
|
24157
|
+
serialize: options
|
|
24158
|
+
} : options;
|
|
24183
24159
|
|
|
24184
|
-
const serializeFn =
|
|
24160
|
+
const serializeFn = _options && _options.serialize;
|
|
24185
24161
|
|
|
24186
24162
|
let serializedParams;
|
|
24187
24163
|
|
|
24188
24164
|
if (serializeFn) {
|
|
24189
|
-
serializedParams = serializeFn(params,
|
|
24165
|
+
serializedParams = serializeFn(params, _options);
|
|
24190
24166
|
} else {
|
|
24191
24167
|
serializedParams = _utils_js__rspack_import_0["default"].isURLSearchParams(params) ?
|
|
24192
24168
|
params.toString() :
|
|
24193
|
-
new _helpers_AxiosURLSearchParams_js__rspack_import_1["default"](params,
|
|
24169
|
+
new _helpers_AxiosURLSearchParams_js__rspack_import_1["default"](params, _options).toString(_encode);
|
|
24194
24170
|
}
|
|
24195
24171
|
|
|
24196
24172
|
if (serializedParams) {
|
|
@@ -24263,7 +24239,7 @@ const composeSignals = (signals, timeout) => {
|
|
|
24263
24239
|
|
|
24264
24240
|
let timer = timeout && setTimeout(() => {
|
|
24265
24241
|
timer = null;
|
|
24266
|
-
onabort(new _core_AxiosError_js__rspack_import_0["default"](`timeout ${timeout}
|
|
24242
|
+
onabort(new _core_AxiosError_js__rspack_import_0["default"](`timeout of ${timeout}ms exceeded`, _core_AxiosError_js__rspack_import_0["default"].ETIMEDOUT))
|
|
24267
24243
|
}, timeout)
|
|
24268
24244
|
|
|
24269
24245
|
const unsubscribe = () => {
|
|
@@ -24838,7 +24814,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
24838
24814
|
*
|
|
24839
24815
|
* ```js
|
|
24840
24816
|
* function f(x, y, z) {}
|
|
24841
|
-
*
|
|
24817
|
+
* const args = [1, 2, 3];
|
|
24842
24818
|
* f.apply(null, args);
|
|
24843
24819
|
* ```
|
|
24844
24820
|
*
|
|
@@ -25789,10 +25765,11 @@ const trim = (str) => str.trim ?
|
|
|
25789
25765
|
* If 'obj' is an Object callback will be called passing
|
|
25790
25766
|
* the value, key, and complete object for each property.
|
|
25791
25767
|
*
|
|
25792
|
-
* @param {Object|Array} obj The object to iterate
|
|
25768
|
+
* @param {Object|Array<unknown>} obj The object to iterate
|
|
25793
25769
|
* @param {Function} fn The callback to invoke for each item
|
|
25794
25770
|
*
|
|
25795
|
-
* @param {
|
|
25771
|
+
* @param {Object} [options]
|
|
25772
|
+
* @param {Boolean} [options.allOwnKeys = false]
|
|
25796
25773
|
* @returns {any}
|
|
25797
25774
|
*/
|
|
25798
25775
|
function forEach(obj, fn, {allOwnKeys = false} = {}) {
|
|
@@ -25869,7 +25846,7 @@ const isContextDefined = (context) => !isUndefined(context) && context !== _glob
|
|
|
25869
25846
|
* Example:
|
|
25870
25847
|
*
|
|
25871
25848
|
* ```js
|
|
25872
|
-
*
|
|
25849
|
+
* const result = merge({foo: 123}, {foo: 456});
|
|
25873
25850
|
* console.log(result.foo); // outputs 456
|
|
25874
25851
|
* ```
|
|
25875
25852
|
*
|
|
@@ -25906,15 +25883,26 @@ function merge(/* obj1, obj2, obj3, ... */) {
|
|
|
25906
25883
|
* @param {Object} b The object to copy properties from
|
|
25907
25884
|
* @param {Object} thisArg The object to bind function to
|
|
25908
25885
|
*
|
|
25909
|
-
* @param {
|
|
25886
|
+
* @param {Object} [options]
|
|
25887
|
+
* @param {Boolean} [options.allOwnKeys]
|
|
25910
25888
|
* @returns {Object} The resulting value of object a
|
|
25911
25889
|
*/
|
|
25912
25890
|
const extend = (a, b, thisArg, {allOwnKeys}= {}) => {
|
|
25913
25891
|
forEach(b, (val, key) => {
|
|
25914
25892
|
if (thisArg && isFunction(val)) {
|
|
25915
|
-
a
|
|
25893
|
+
Object.defineProperty(a, key, {
|
|
25894
|
+
value: (0,_helpers_bind_js__rspack_import_0["default"])(val, thisArg),
|
|
25895
|
+
writable: true,
|
|
25896
|
+
enumerable: true,
|
|
25897
|
+
configurable: true
|
|
25898
|
+
});
|
|
25916
25899
|
} else {
|
|
25917
|
-
a
|
|
25900
|
+
Object.defineProperty(a, key, {
|
|
25901
|
+
value: val,
|
|
25902
|
+
writable: true,
|
|
25903
|
+
enumerable: true,
|
|
25904
|
+
configurable: true
|
|
25905
|
+
});
|
|
25918
25906
|
}
|
|
25919
25907
|
}, {allOwnKeys});
|
|
25920
25908
|
return a;
|
|
@@ -25945,7 +25933,12 @@ const stripBOM = (content) => {
|
|
|
25945
25933
|
*/
|
|
25946
25934
|
const inherits = (constructor, superConstructor, props, descriptors) => {
|
|
25947
25935
|
constructor.prototype = Object.create(superConstructor.prototype, descriptors);
|
|
25948
|
-
constructor.prototype
|
|
25936
|
+
Object.defineProperty(constructor.prototype, 'constructor', {
|
|
25937
|
+
value: constructor,
|
|
25938
|
+
writable: true,
|
|
25939
|
+
enumerable: false,
|
|
25940
|
+
configurable: true
|
|
25941
|
+
});
|
|
25949
25942
|
Object.defineProperty(constructor, 'super', {
|
|
25950
25943
|
value: superConstructor.prototype
|
|
25951
25944
|
});
|
|
@@ -26322,7 +26315,7 @@ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
|
|
|
26322
26315
|
},
|
|
26323
26316
|
"./package.json"(module) {
|
|
26324
26317
|
"use strict";
|
|
26325
|
-
module.exports = JSON.parse('{"name":"apify-client","version":"2.22.0","description":"Apify API client for JavaScript","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","browser":"dist/bundle.js","unpkg":"dist/bundle.js","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.mjs","require":"./dist/index.js","types":"./dist/index.d.ts","browser":"./dist/bundle.js"}},"keywords":["apify","api","apifier","crawler","scraper"],"author":{"name":"Apify","email":"support@apify.com","url":"https://apify.com"},"contributors":["Jan Curn <jan@apify.com>","Marek Trunkát <marek@apify.com>","Ondra Urban <ondra@apify.com>","Jakub Drobník <jakub.drobnik@apify.com>"],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/apify/apify-client-js"},"bugs":{"url":"https://github.com/apify/apify-client-js/issues"},"homepage":"https://docs.apify.com/api/client/js/","files":["dist","!dist/*.tsbuildinfo"],"scripts":{"build":"npm run clean && npm run build:node && npm run build:browser","postbuild":"gen-esm-wrapper dist/index.js dist/index.mjs","prepublishOnly":"(test $CI || (echo \\"Publishing is reserved to CI!\\"; exit 1))","clean":"rimraf dist","test":"npm run build && vitest run","lint":"eslint","lint:fix":"eslint --fix","tsc-check-tests":"tsc --noEmit --project test/tsconfig.json","format":"prettier --write .","format:check":"prettier --check .","build:node":"tsc","build:browser":"rsbuild build"},"dependencies":{"@apify/consts":"^2.
|
|
26318
|
+
module.exports = JSON.parse('{"name":"apify-client","version":"2.22.1-beta.0","description":"Apify API client for JavaScript","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","browser":"dist/bundle.js","unpkg":"dist/bundle.js","exports":{"./package.json":"./package.json",".":{"import":"./dist/index.mjs","require":"./dist/index.js","types":"./dist/index.d.ts","browser":"./dist/bundle.js"}},"keywords":["apify","api","apifier","crawler","scraper"],"author":{"name":"Apify","email":"support@apify.com","url":"https://apify.com"},"contributors":["Jan Curn <jan@apify.com>","Marek Trunkát <marek@apify.com>","Ondra Urban <ondra@apify.com>","Jakub Drobník <jakub.drobnik@apify.com>"],"license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/apify/apify-client-js"},"bugs":{"url":"https://github.com/apify/apify-client-js/issues"},"homepage":"https://docs.apify.com/api/client/js/","files":["dist","!dist/*.tsbuildinfo"],"scripts":{"build":"npm run clean && npm run build:node && npm run build:browser","postbuild":"gen-esm-wrapper dist/index.js dist/index.mjs","prepublishOnly":"(test $CI || (echo \\"Publishing is reserved to CI!\\"; exit 1))","clean":"rimraf dist","test":"npm run build && vitest run","lint":"eslint","lint:fix":"eslint --fix","tsc-check-tests":"tsc --noEmit --project test/tsconfig.json","format":"prettier --write .","format:check":"prettier --check .","build:node":"tsc","build:browser":"rsbuild build"},"dependencies":{"@apify/consts":"^2.50.0","@apify/log":"^2.2.6","@apify/utilities":"^2.23.2","@crawlee/types":"^3.3.0","ansi-colors":"^4.1.1","async-retry":"^1.3.3","axios":"^1.6.7","content-type":"^1.0.5","ow":"^0.28.2","proxy-agent":"^6.5.0","tslib":"^2.5.0","type-fest":"^4.0.0"},"devDependencies":{"@apify/eslint-config":"^1.0.0","@apify/tsconfig":"^0.1.1","@crawlee/puppeteer":"^3.2.2","@rsbuild/core":"^1.3.6","@rsbuild/plugin-node-polyfill":"^1.3.0","@stylistic/eslint-plugin-ts":"^4.2.0","@types/async-retry":"^1.4.5","@types/compression":"^1.8.1","@types/content-type":"^1.1.5","@types/express":"^5.0.0","@types/node":"^24.0.0","body-parser":"^1.20.3","compression":"^1.7.4","eslint":"^9.24.0","eslint-config-prettier":"^10.1.2","express":"^5.0.0","gen-esm-wrapper":"^1.1.2","globals":"^17.0.0","prettier":"^3.5.3","puppeteer":"^24.0.0","rimraf":"^6.0.0","typescript":"^5.8.3","typescript-eslint":"^8.29.1","vitest":"^4.0.16"},"packageManager":"npm@10.9.2"}')
|
|
26326
26319
|
|
|
26327
26320
|
},
|
|
26328
26321
|
|
|
@@ -26445,7 +26438,7 @@ __webpack_require__.hu = (chunkId) => ('' + chunkId + '.' + __webpack_require__.
|
|
|
26445
26438
|
})();
|
|
26446
26439
|
// webpack/runtime/get_full_hash
|
|
26447
26440
|
(() => {
|
|
26448
|
-
__webpack_require__.h = () => ("
|
|
26441
|
+
__webpack_require__.h = () => ("580669c4779a3576")
|
|
26449
26442
|
})();
|
|
26450
26443
|
// webpack/runtime/get_main_filename/update manifest
|
|
26451
26444
|
(() => {
|