apify-client 3.0.0-beta.112 → 3.0.0-beta.114

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/utils.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import type { Readable } from 'node:stream';
2
- import type { TypedArray } from 'type-fest';
3
2
  import { z } from 'zod';
4
3
  import type { ApifyApiError } from './apify_api_error.js';
5
4
  import { parseArgument } from '@apify/validations';
@@ -240,3 +239,23 @@ export declare function toPath(path: string | string[]): string;
240
239
  * @internal
241
240
  */
242
241
  export declare function sleep(millis: number, signal?: AbortSignal): Promise<void>;
242
+ /** Any string, written so that a union with string literals keeps suggesting the literals. */
243
+ export type AnyString = string & {};
244
+ /** Any valid JSON value. */
245
+ export type JsonValue = string | number | boolean | null | {
246
+ [Key in string]: JsonValue;
247
+ } | JsonValue[] | readonly JsonValue[];
248
+ /**
249
+ * Any JSON object.
250
+ * @internal
251
+ */
252
+ export type JsonObject = {
253
+ [Key in string]: JsonValue;
254
+ };
255
+ /**
256
+ * Any JSON array.
257
+ * @internal
258
+ */
259
+ export type JsonArray = JsonValue[] | readonly JsonValue[];
260
+ /** Any typed array, such as `Uint8Array` or `Float64Array`. */
261
+ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apify-client",
3
- "version": "3.0.0-beta.112",
3
+ "version": "3.0.0-beta.114",
4
4
  "description": "Apify API client for JavaScript",
5
5
  "engines": {
6
6
  "node": ">=22.15.0"
@@ -19,6 +19,10 @@
19
19
  "exports": {
20
20
  "./package.json": "./package.json",
21
21
  "./browser": "./dist/bundle.js",
22
+ "./axios": {
23
+ "types": "./dist/axios.d.ts",
24
+ "default": "./dist/axios.js"
25
+ },
22
26
  ".": {
23
27
  "types": "./dist/index.d.ts",
24
28
  "browser": "./dist/bundle.js",
@@ -68,13 +72,18 @@
68
72
  "@apify/utilities": "^3.1.1",
69
73
  "@apify/validations": "^1.1.4",
70
74
  "ansi-colors": "^4.1.3",
71
- "axios": "^1.21.1",
72
75
  "content-type": "^3.1.1",
73
- "proxy-agent": "^8.0.3",
74
76
  "tslib": "^2.9.1",
75
- "type-fest": "^5.10.0",
76
77
  "zod": "^4.6.7"
77
78
  },
79
+ "peerDependencies": {
80
+ "axios": "^1.21.1"
81
+ },
82
+ "peerDependenciesMeta": {
83
+ "axios": {
84
+ "optional": true
85
+ }
86
+ },
78
87
  "devDependencies": {
79
88
  "@apify/oxlint-config": "^0.4.1",
80
89
  "@apify/tsconfig": "^0.2.0",
@@ -87,6 +96,7 @@
87
96
  "@types/express": "^5.0.6",
88
97
  "@types/node": "^26.6.6",
89
98
  "ajv": "^8.20.0",
99
+ "axios": "^1.21.1",
90
100
  "body-parser": "^2.4.0",
91
101
  "compression": "^1.8.2",
92
102
  "esbuild": "0.28.2",
@@ -114,6 +124,7 @@
114
124
  "build": "pnpm clean && pnpm build:node && pnpm build:browser",
115
125
  "clean": "rimraf dist tsconfig.tsbuildinfo",
116
126
  "test": "pnpm build && vitest run --project unit",
127
+ "test:axios": "pnpm build && vitest run --project unit-axios",
117
128
  "test:integration": "vitest run --project integration",
118
129
  "test:all": "pnpm build && vitest run",
119
130
  "test:bundling": "pnpm build && pnpm --prefix=./test/bundling run bundle:all",