apify-client 2.12.4-beta.3 → 2.12.4-beta.4

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
@@ -25890,13 +25890,19 @@ class KeyValueStoreClient extends _base_resource_client__WEBPACK_IMPORTED_MODULE
25890
25890
  *
25891
25891
  * https://docs.apify.com/api/v2#/reference/key-value-stores/record/put-record
25892
25892
  */ async setRecord(record) {
25893
+ let options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
25893
25894
  ow__WEBPACK_IMPORTED_MODULE_3___default()(record, ow__WEBPACK_IMPORTED_MODULE_3___default().object.exactShape({
25894
25895
  key: (ow__WEBPACK_IMPORTED_MODULE_3___default().string),
25895
25896
  value: ow__WEBPACK_IMPORTED_MODULE_3___default().any((ow__WEBPACK_IMPORTED_MODULE_3___default()["null"]), (ow__WEBPACK_IMPORTED_MODULE_3___default().string), (ow__WEBPACK_IMPORTED_MODULE_3___default().number), (ow__WEBPACK_IMPORTED_MODULE_3___default().object), (ow__WEBPACK_IMPORTED_MODULE_3___default().boolean)),
25896
25897
  contentType: (ow__WEBPACK_IMPORTED_MODULE_3___default().optional.string.nonEmpty)
25897
25898
  }));
25899
+ ow__WEBPACK_IMPORTED_MODULE_3___default()(options, ow__WEBPACK_IMPORTED_MODULE_3___default().object.exactShape({
25900
+ timeoutSecs: (ow__WEBPACK_IMPORTED_MODULE_3___default().optional.number),
25901
+ doNotRetryTimeouts: (ow__WEBPACK_IMPORTED_MODULE_3___default().optional.boolean)
25902
+ }));
25898
25903
  const { key } = record;
25899
25904
  let { value, contentType } = record;
25905
+ const { timeoutSecs, doNotRetryTimeouts } = options;
25900
25906
  const isValueStreamOrBuffer = (0,_utils__WEBPACK_IMPORTED_MODULE_2__.isStream)(value) || (0,_utils__WEBPACK_IMPORTED_MODULE_2__.isBuffer)(value);
25901
25907
  // To allow saving Objects to JSON without providing content type
25902
25908
  if (!contentType) {
@@ -25920,8 +25926,12 @@ class KeyValueStoreClient extends _base_resource_client__WEBPACK_IMPORTED_MODULE
25920
25926
  data: value,
25921
25927
  headers: contentType ? {
25922
25928
  'content-type': contentType
25923
- } : undefined
25929
+ } : undefined,
25930
+ doNotRetryTimeouts
25924
25931
  };
25932
+ if (timeoutSecs != null) {
25933
+ uploadOpts.timeout = timeoutSecs * 1000;
25934
+ }
25925
25935
  await this.httpClient.call(uploadOpts);
25926
25936
  }
25927
25937
  /**
@@ -27563,7 +27573,7 @@ function isStream(value) {
27563
27573
  function getVersionData() {
27564
27574
  if (true) {
27565
27575
  return {
27566
- version: "2.12.4-beta.3"
27576
+ version: "2.12.4-beta.4"
27567
27577
  };
27568
27578
  }
27569
27579
  // eslint-disable-next-line
@@ -33281,7 +33291,7 @@ const isIterable = (thing) => thing != null && isFunction(thing[iterator]);
33281
33291
  }),
33282
33292
  "./package.json": (function (module) {
33283
33293
  "use strict";
33284
- module.exports = JSON.parse('{"name":"apify-client","version":"2.12.4-beta.3","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.25.0","@apify/log":"^2.2.6","@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","prettier":"^3.5.3","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","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"}')
33294
+ module.exports = JSON.parse('{"name":"apify-client","version":"2.12.4-beta.4","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.25.0","@apify/log":"^2.2.6","@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","prettier":"^3.5.3","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","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"}')
33285
33295
 
33286
33296
  }),
33287
33297
 
@@ -33375,7 +33385,7 @@ __webpack_require__.hu = (chunkId) => ('' + chunkId + '.' + __webpack_require__.
33375
33385
  })();
33376
33386
  // webpack/runtime/get_full_hash
33377
33387
  (() => {
33378
- __webpack_require__.h = () => ("00207438815a8da4")
33388
+ __webpack_require__.h = () => ("60b45e8fa8d372dc")
33379
33389
  })();
33380
33390
  // webpack/runtime/get_main_filename/update manifest
33381
33391
  (() => {