apify-client 2.25.1-beta.18 → 2.25.1-beta.19
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 +16 -16
- package/package.json +7 -7
package/dist/bundle.js
CHANGED
|
@@ -12817,8 +12817,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
12817
12817
|
428(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
12818
12818
|
"use strict";
|
|
12819
12819
|
__webpack_require__.r(__webpack_exports__);
|
|
12820
|
-
/* import */ var
|
|
12821
|
-
/* import */ var
|
|
12820
|
+
/* import */ var content_type__rspack_import_1 = __webpack_require__(8597);
|
|
12821
|
+
/* import */ var _utils__rspack_import_0 = __webpack_require__(1931);
|
|
12822
12822
|
/* provided dependency */ var Buffer = __webpack_require__(8287).Buffer;
|
|
12823
12823
|
|
|
12824
12824
|
|
|
@@ -12841,7 +12841,7 @@ const STRINGIFIABLE_CONTENT_TYPE_RXS = [
|
|
|
12841
12841
|
let contentType;
|
|
12842
12842
|
let charset;
|
|
12843
12843
|
try {
|
|
12844
|
-
const result =
|
|
12844
|
+
const result = content_type__rspack_import_1.parse(contentTypeHeader);
|
|
12845
12845
|
contentType = result.type;
|
|
12846
12846
|
charset = result.parameters.charset;
|
|
12847
12847
|
} catch {
|
|
@@ -12864,7 +12864,7 @@ function isomorphicBufferToString(buffer, encoding) {
|
|
|
12864
12864
|
}
|
|
12865
12865
|
function isCharsetStringifiable(charset) {
|
|
12866
12866
|
if (!charset) return true; // hope that it's utf-8
|
|
12867
|
-
if ((0,
|
|
12867
|
+
if ((0,_utils__rspack_import_0.isNode)()) return Buffer.isEncoding(charset);
|
|
12868
12868
|
const normalizedCharset = charset.toLowerCase().replace('-', '');
|
|
12869
12869
|
// Browsers only support decoding utf-8 buffers.
|
|
12870
12870
|
return normalizedCharset === 'utf8';
|
|
@@ -13161,10 +13161,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13161
13161
|
5408(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
|
|
13162
13162
|
"use strict";
|
|
13163
13163
|
__webpack_require__.r(__webpack_exports__);
|
|
13164
|
-
/* import */ var
|
|
13165
|
-
/* import */ var
|
|
13166
|
-
/* import */ var
|
|
13167
|
-
/* import */ var
|
|
13164
|
+
/* import */ var axios__rspack_import_2 = __webpack_require__(3110);
|
|
13165
|
+
/* import */ var content_type__rspack_import_3 = __webpack_require__(8597);
|
|
13166
|
+
/* import */ var _body_parser__rspack_import_0 = __webpack_require__(428);
|
|
13167
|
+
/* import */ var _utils__rspack_import_1 = __webpack_require__(1931);
|
|
13168
13168
|
|
|
13169
13169
|
|
|
13170
13170
|
|
|
@@ -13187,7 +13187,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13187
13187
|
}
|
|
13188
13188
|
}
|
|
13189
13189
|
function serializeRequest(config) {
|
|
13190
|
-
const [defaultTransform] =
|
|
13190
|
+
const [defaultTransform] = axios__rspack_import_2["default"].defaults.transformRequest;
|
|
13191
13191
|
// The function not only serializes data, but it also adds correct headers.
|
|
13192
13192
|
const data = defaultTransform(config.data, config.headers);
|
|
13193
13193
|
// Actor inputs can include functions and we don't want to omit those,
|
|
@@ -13198,7 +13198,7 @@ function serializeRequest(config) {
|
|
|
13198
13198
|
if (config.stringifyFunctions) {
|
|
13199
13199
|
const contentTypeHeader = config.headers?.['Content-Type'] || config.headers?.['content-type'];
|
|
13200
13200
|
try {
|
|
13201
|
-
const { type } =
|
|
13201
|
+
const { type } = content_type__rspack_import_3.parse(contentTypeHeader);
|
|
13202
13202
|
if (type === 'application/json' && typeof config.data === 'object') {
|
|
13203
13203
|
config.data = stringifyWithFunctions(config.data);
|
|
13204
13204
|
} else {
|
|
@@ -13213,8 +13213,8 @@ function serializeRequest(config) {
|
|
|
13213
13213
|
return config;
|
|
13214
13214
|
}
|
|
13215
13215
|
function ensureHeadersPrototype(config) {
|
|
13216
|
-
if (config.headers && !(config.headers instanceof
|
|
13217
|
-
Object.setPrototypeOf(config.headers,
|
|
13216
|
+
if (config.headers && !(config.headers instanceof axios__rspack_import_2.AxiosHeaders)) {
|
|
13217
|
+
Object.setPrototypeOf(config.headers, axios__rspack_import_2.AxiosHeaders.prototype);
|
|
13218
13218
|
}
|
|
13219
13219
|
return config;
|
|
13220
13220
|
}
|
|
@@ -13228,7 +13228,7 @@ function ensureHeadersPrototype(config) {
|
|
|
13228
13228
|
}
|
|
13229
13229
|
async function maybeCompressRequest(config) {
|
|
13230
13230
|
if (config.headers?.['content-encoding']) return config;
|
|
13231
|
-
const maybeCompressed = await (0,
|
|
13231
|
+
const maybeCompressed = await (0,_utils__rspack_import_1.maybeCompressValue)(config.data);
|
|
13232
13232
|
if (maybeCompressed) {
|
|
13233
13233
|
config.headers ??= {};
|
|
13234
13234
|
config.headers['content-encoding'] = maybeCompressed.encoding;
|
|
@@ -13243,7 +13243,7 @@ function parseResponseData(response) {
|
|
|
13243
13243
|
) {
|
|
13244
13244
|
return response;
|
|
13245
13245
|
}
|
|
13246
|
-
const isBufferEmpty = (0,
|
|
13246
|
+
const isBufferEmpty = (0,_utils__rspack_import_1.isNode)() ? !response.data.length : !response.data.byteLength;
|
|
13247
13247
|
if (isBufferEmpty) {
|
|
13248
13248
|
// undefined is better than an empty buffer
|
|
13249
13249
|
response.data = undefined;
|
|
@@ -13251,7 +13251,7 @@ function parseResponseData(response) {
|
|
|
13251
13251
|
}
|
|
13252
13252
|
const contentTypeHeader = response.headers['content-type'];
|
|
13253
13253
|
try {
|
|
13254
|
-
response.data = (0,
|
|
13254
|
+
response.data = (0,_body_parser__rspack_import_0.maybeParseBody)(response.data, contentTypeHeader);
|
|
13255
13255
|
} catch (err) {
|
|
13256
13256
|
throw new InvalidResponseBodyError(response, err);
|
|
13257
13257
|
}
|
|
@@ -18195,7 +18195,7 @@ function isStream(value) {
|
|
|
18195
18195
|
function getVersionData() {
|
|
18196
18196
|
if (true) {
|
|
18197
18197
|
return {
|
|
18198
|
-
version: "2.25.1-beta.
|
|
18198
|
+
version: "2.25.1-beta.19"
|
|
18199
18199
|
};
|
|
18200
18200
|
}
|
|
18201
18201
|
// eslint-disable-next-line
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apify-client",
|
|
3
|
-
"version": "2.25.1-beta.
|
|
3
|
+
"version": "2.25.1-beta.19",
|
|
4
4
|
"description": "Apify API client for JavaScript",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
"@apify/oxlint-config": "^0.3.0",
|
|
67
67
|
"@apify/tsconfig": "^0.2.0",
|
|
68
68
|
"@crawlee/puppeteer": "^3.18.1",
|
|
69
|
-
"@rsbuild/core": "^2.2.
|
|
69
|
+
"@rsbuild/core": "^2.2.5",
|
|
70
70
|
"@rsbuild/plugin-node-polyfill": "^1.4.6",
|
|
71
|
-
"@rspack/cli": "^2.2.
|
|
72
|
-
"@rspack/core": "^2.2.
|
|
71
|
+
"@rspack/cli": "^2.2.3",
|
|
72
|
+
"@rspack/core": "^2.2.3",
|
|
73
73
|
"@types/async-retry": "^1.4.9",
|
|
74
74
|
"@types/compression": "^1.8.1",
|
|
75
75
|
"@types/content-type": "^1.1.9",
|
|
76
76
|
"@types/express": "^5.0.6",
|
|
77
|
-
"@types/node": "^24.13.
|
|
77
|
+
"@types/node": "^24.13.4",
|
|
78
78
|
"ajv": "^8.20.0",
|
|
79
79
|
"body-parser": "^2.3.0",
|
|
80
|
-
"compression": "^1.8.
|
|
80
|
+
"compression": "^1.8.2",
|
|
81
81
|
"esbuild": "0.28.2",
|
|
82
82
|
"express": "^5.2.1",
|
|
83
83
|
"gen-esm-wrapper": "^1.1.3",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"oxlint-tsgolint": "7.0.2001",
|
|
87
87
|
"puppeteer": "^25.10.0",
|
|
88
88
|
"rimraf": "^6.1.3",
|
|
89
|
-
"rolldown": "^1.2.
|
|
89
|
+
"rolldown": "^1.2.8",
|
|
90
90
|
"typescript": "^6.0.3",
|
|
91
91
|
"vitest": "^5.0.0",
|
|
92
92
|
"webpack": "^5.110.3",
|