apify-client 2.17.1-beta.0 → 2.17.1-beta.1

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 CHANGED
@@ -69026,7 +69026,7 @@ function isStream(value) {
69026
69026
  function getVersionData() {
69027
69027
  if (true) {
69028
69028
  return {
69029
- version: "2.17.1-beta.0"
69029
+ version: "2.17.1-beta.1"
69030
69030
  };
69031
69031
  }
69032
69032
  // eslint-disable-next-line
@@ -70310,6 +70310,7 @@ __webpack_require__.d(__webpack_exports__, {
70310
70310
  concatStreamToBuffer: () => (concatStreamToBuffer),
70311
70311
  configureLogger: () => (configureLogger),
70312
70312
  createHmacSignature: () => (createHmacSignature),
70313
+ createInjectableRegExp: () => (createInjectableRegExp),
70313
70314
  createStorageContentSignature: () => (createStorageContentSignature),
70314
70315
  cryptoRandomObjectId: () => (cryptoRandomObjectId),
70315
70316
  dateToString: () => (dateToString),
@@ -70391,13 +70392,13 @@ function parseDateFromJson(date) {
70391
70392
  }
70392
70393
  __name(parseDateFromJson, "parseDateFromJson");
70393
70394
  async function delayPromise(millis) {
70394
- return new Promise((resolve) => {
70395
+ return new Promise(((resolve) => {
70395
70396
  if (millis > 0) {
70396
70397
  setTimeout(() => resolve(), millis);
70397
70398
  } else {
70398
70399
  resolve();
70399
70400
  }
70400
- });
70401
+ }));
70401
70402
  }
70402
70403
  __name(delayPromise, "delayPromise");
70403
70404
  function removeFromArray(array, element) {
@@ -71373,6 +71374,10 @@ async function timeoutPromise(promise, timeoutMillis, errorMessage = "Promise ha
71373
71374
  });
71374
71375
  }
71375
71376
  __name(timeoutPromise, "timeoutPromise");
71377
+ function createInjectableRegExp(regex) {
71378
+ return new RegExp(regex.source.replace(/^\^|\$$/g, ""));
71379
+ }
71380
+ __name(createInjectableRegExp, "createInjectableRegExp");
71376
71381
 
71377
71382
  // src/utilities.client.ts
71378
71383
 
@@ -71460,9 +71465,9 @@ function parseUrl(str) {
71460
71465
  });
71461
71466
  uri.fragmentKey = {};
71462
71467
  if (uri.fragment) {
71463
- uri.fragment.replace(o.q.parser, ($0, $1, $2) => {
71468
+ uri.fragment.replace(o.q.parser, (($0, $1, $2) => {
71464
71469
  if ($1) uri.fragmentKey[$1] = $2;
71465
- });
71470
+ }));
71466
71471
  }
71467
71472
  return uri;
71468
71473
  }
@@ -72444,9 +72449,9 @@ const DEFAULT_CHUNK_SIZE = 64 * 1024;
72444
72449
 
72445
72450
  const {isFunction} = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"];
72446
72451
 
72447
- const globalFetchAPI = (({fetch, Request, Response}) => ({
72448
- fetch, Request, Response
72449
- }))(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].global);
72452
+ const globalFetchAPI = (({Request, Response}) => ({
72453
+ Request, Response
72454
+ }))(_utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].global);
72450
72455
 
72451
72456
  const {
72452
72457
  ReadableStream, TextEncoder
@@ -72462,8 +72467,12 @@ const test = (fn, ...args) => {
72462
72467
  }
72463
72468
 
72464
72469
  const factory = (env) => {
72465
- const {fetch, Request, Response} = Object.assign({}, globalFetchAPI, env);
72466
- const isFetchSupported = isFunction(fetch);
72470
+ env = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({
72471
+ skipUndefined: true
72472
+ }, globalFetchAPI, env);
72473
+
72474
+ const {fetch: envFetch, Request, Response} = env;
72475
+ const isFetchSupported = envFetch ? isFunction(envFetch) : typeof fetch === 'function';
72467
72476
  const isRequestSupported = isFunction(Request);
72468
72477
  const isResponseSupported = isFunction(Response);
72469
72478
 
@@ -72566,6 +72575,8 @@ const factory = (env) => {
72566
72575
  fetchOptions
72567
72576
  } = (0,_helpers_resolveConfig_js__WEBPACK_IMPORTED_MODULE_3__["default"])(config);
72568
72577
 
72578
+ let _fetch = envFetch || fetch;
72579
+
72569
72580
  responseType = responseType ? (responseType + '').toLowerCase() : 'text';
72570
72581
 
72571
72582
  let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -72625,7 +72636,7 @@ const factory = (env) => {
72625
72636
 
72626
72637
  request = isRequestSupported && new Request(url, resolvedOptions);
72627
72638
 
72628
- let response = await (isRequestSupported ? fetch(request, fetchOptions) : fetch(url, resolvedOptions));
72639
+ let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url, resolvedOptions));
72629
72640
 
72630
72641
  const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
72631
72642
 
@@ -72688,12 +72699,8 @@ const factory = (env) => {
72688
72699
  const seedCache = new Map();
72689
72700
 
72690
72701
  const getFetch = (config) => {
72691
- let env = _utils_js__WEBPACK_IMPORTED_MODULE_0__["default"].merge.call({
72692
- skipUndefined: true
72693
- }, globalFetchAPI, config ? config.env : null);
72694
-
72702
+ let env = config ? config.env : {};
72695
72703
  const {fetch, Request, Response} = env;
72696
-
72697
72704
  const seeds = [
72698
72705
  Request, Response, fetch
72699
72706
  ];
@@ -73434,8 +73441,6 @@ class Axios {
73434
73441
 
73435
73442
  let newConfig = config;
73436
73443
 
73437
- i = 0;
73438
-
73439
73444
  while (i < len) {
73440
73445
  const onFulfilled = requestInterceptorChain[i++];
73441
73446
  const onRejected = requestInterceptorChain[i++];
@@ -74555,7 +74560,7 @@ __webpack_require__.r(__webpack_exports__);
74555
74560
  __webpack_require__.d(__webpack_exports__, {
74556
74561
  VERSION: () => (VERSION)
74557
74562
  });
74558
- const VERSION = "1.12.0";
74563
+ const VERSION = "1.12.2";
74559
74564
 
74560
74565
  }),
74561
74566
  "./node_modules/axios/lib/helpers/AxiosURLSearchParams.js": (function (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
@@ -76470,10 +76475,8 @@ function merge(/* obj1, obj2, obj3, ... */) {
76470
76475
  result[targetKey] = merge({}, val);
76471
76476
  } else if (isArray(val)) {
76472
76477
  result[targetKey] = val.slice();
76473
- } else {
76474
- if (!skipUndefined || !isUndefined(val)) {
76475
- result[targetKey] = val;
76476
- }
76478
+ } else if (!skipUndefined || !isUndefined(val)) {
76479
+ result[targetKey] = val;
76477
76480
  }
76478
76481
  }
76479
76482
 
@@ -76936,7 +76939,7 @@ module.exports = JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1
76936
76939
  }),
76937
76940
  "./package.json": (function (module) {
76938
76941
  "use strict";
76939
- module.exports = JSON.parse('{"name":"apify-client","version":"2.17.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 && jest","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.42.0","@apify/log":"^2.2.6","@apify/utilities":"^2.18.0","@crawlee/types":"^3.3.0","agentkeepalive":"^4.2.1","async-retry":"^1.3.3","axios":"^1.6.7","content-type":"^1.0.5","ow":"^0.28.2","tslib":"^2.5.0","type-fest":"^4.0.0"},"devDependencies":{"@apify/eslint-config":"^1.0.0","@apify/tsconfig":"^0.1.1","@babel/cli":"^7.21.0","@babel/core":"^7.21.0","@babel/preset-env":"^7.20.2","@babel/register":"^7.21.0","@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/content-type":"^1.1.5","@types/express":"^4.17.17","@types/fs-extra":"^11.0.1","@types/jest":"^29.4.0","@types/node":"^22.0.0","ajv":"^8.17.1","babel-loader":"^10.0.0","body-parser":"^1.20.3","compression":"^1.7.4","eslint":"^9.24.0","eslint-config-prettier":"^10.1.2","express":"^4.21.1","fs-extra":"^11.1.0","gen-esm-wrapper":"^1.1.2","globals":"^16.0.0","jest":"^29.4.3","prettier":"^3.5.3","process":"^0.11.10","puppeteer":"^24.0.0","rimraf":"^6.0.0","source-map-support":"^0.5.21","ts-jest":"^29.0.5","ts-loader":"^9.4.2","ts-node":"^10.9.1","typescript":"^5.8.3","typescript-eslint":"^8.29.1"},"packageManager":"npm@10.9.2"}')
76942
+ module.exports = JSON.parse('{"name":"apify-client","version":"2.17.1-beta.1","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 && jest","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.42.0","@apify/log":"^2.2.6","@apify/utilities":"^2.18.0","@crawlee/types":"^3.3.0","agentkeepalive":"^4.2.1","async-retry":"^1.3.3","axios":"^1.6.7","content-type":"^1.0.5","ow":"^0.28.2","tslib":"^2.5.0","type-fest":"^4.0.0"},"devDependencies":{"@apify/eslint-config":"^1.0.0","@apify/tsconfig":"^0.1.1","@babel/cli":"^7.21.0","@babel/core":"^7.21.0","@babel/preset-env":"^7.20.2","@babel/register":"^7.21.0","@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/content-type":"^1.1.5","@types/express":"^4.17.17","@types/fs-extra":"^11.0.1","@types/jest":"^29.4.0","@types/node":"^22.0.0","ajv":"^8.17.1","babel-loader":"^10.0.0","body-parser":"^1.20.3","compression":"^1.7.4","eslint":"^9.24.0","eslint-config-prettier":"^10.1.2","express":"^4.21.1","fs-extra":"^11.1.0","gen-esm-wrapper":"^1.1.2","globals":"^16.0.0","jest":"^29.4.3","prettier":"^3.5.3","process":"^0.11.10","puppeteer":"^24.0.0","rimraf":"^6.0.0","source-map-support":"^0.5.21","ts-jest":"^29.0.5","ts-loader":"^9.4.2","ts-node":"^10.9.1","typescript":"^5.8.3","typescript-eslint":"^8.29.1"},"packageManager":"npm@10.9.2"}')
76940
76943
 
76941
76944
  }),
76942
76945
 
@@ -77030,7 +77033,7 @@ __webpack_require__.hu = (chunkId) => ('' + chunkId + '.' + __webpack_require__.
77030
77033
  })();
77031
77034
  // webpack/runtime/get_full_hash
77032
77035
  (() => {
77033
- __webpack_require__.h = () => ("5b7a7001798a765a")
77036
+ __webpack_require__.h = () => ("8f2ab4c9e033a751")
77034
77037
  })();
77035
77038
  // webpack/runtime/get_main_filename/update manifest
77036
77039
  (() => {