apify-client 2.16.1-beta.1 → 2.16.1-beta.2

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
@@ -69010,7 +69010,7 @@ function isStream(value) {
69010
69010
  function getVersionData() {
69011
69011
  if (true) {
69012
69012
  return {
69013
- version: "2.16.1-beta.1"
69013
+ version: "2.16.1-beta.2"
69014
69014
  };
69015
69015
  }
69016
69016
  // eslint-disable-next-line
@@ -69377,9 +69377,10 @@ var ANONYMOUS_USERNAME = "anonymous";
69377
69377
  var USERNAME = {
69378
69378
  MIN_LENGTH: 3,
69379
69379
  MAX_LENGTH: 30,
69380
- // Regex matching a potentially allowed username. The numbers must match MIN and MAX!
69380
+ // Regexes matching a potentially allowed username. The numbers must match MIN and MAX!
69381
69381
  // Note that username must also pass isForbiddenUser() test to be allowed!
69382
- REGEX: /^[a-zA-Z0-9_.-]{3,30}$/
69382
+ REGEX: /^[a-z0-9_.-]{3,30}$/i,
69383
+ RESTRICTED_REGEX: /^(?!.*apify)[a-z0-9_.-]{3,30}$/i
69383
69384
  };
69384
69385
  var EMAIL = {
69385
69386
  MAX_LENGTH: 254,
@@ -76843,7 +76844,7 @@ module.exports = JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1
76843
76844
  }),
76844
76845
  "./package.json": (function (module) {
76845
76846
  "use strict";
76846
- module.exports = JSON.parse('{"name":"apify-client","version":"2.16.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.25.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"}')
76847
+ module.exports = JSON.parse('{"name":"apify-client","version":"2.16.1-beta.2","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","@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"}')
76847
76848
 
76848
76849
  }),
76849
76850
 
@@ -76937,7 +76938,7 @@ __webpack_require__.hu = (chunkId) => ('' + chunkId + '.' + __webpack_require__.
76937
76938
  })();
76938
76939
  // webpack/runtime/get_full_hash
76939
76940
  (() => {
76940
- __webpack_require__.h = () => ("66ae611b3d8ff579")
76941
+ __webpack_require__.h = () => ("29e75be6b4ac7b7b")
76941
76942
  })();
76942
76943
  // webpack/runtime/get_main_filename/update manifest
76943
76944
  (() => {
@@ -77458,6 +77459,9 @@ var findStylesheet = function (href, fullhref) {
77458
77459
  for (var i = 0; i < existingLinkTags.length; i++) {
77459
77460
  var tag = existingLinkTags[i];
77460
77461
  var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");
77462
+ if (dataHref) {
77463
+ dataHref = dataHref.split('?')[0]
77464
+ }
77461
77465
  if (tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return tag;
77462
77466
  }
77463
77467
 
@@ -77506,7 +77510,12 @@ __webpack_require__.hmrC.miniCss = function (chunkIds, removedChunks, removedMod
77506
77510
  promises.push(new Promise(function (resolve, reject) {
77507
77511
  var tag = createStylesheet(
77508
77512
  chunkId,
77509
- fullhref,
77513
+
77514
+ /**
77515
+ If dynamically add link tag through dom API and there is already a loaded style link, browsers sometimes treats the new link tag as the same link, and won't fetch the new style.
77516
+ Use query to avoid browser cache the link tag, force to re-fetch new style, this is the same strategy as updateCss API, this can happen during lazy compilation
77517
+ */
77518
+ `${fullhref}?${Date.now()}`,
77510
77519
  oldTag,
77511
77520
  function () {
77512
77521
  tag.as = "style";