rezo 1.0.28 → 1.0.29
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/adapters/entries/curl.d.ts +3 -4
- package/dist/adapters/entries/fetch.d.ts +3 -4
- package/dist/adapters/entries/http.d.ts +3 -4
- package/dist/adapters/entries/http2.d.ts +3 -4
- package/dist/adapters/entries/react-native.d.ts +3 -4
- package/dist/adapters/entries/xhr.d.ts +3 -4
- package/dist/adapters/fetch.cjs +0 -1
- package/dist/adapters/fetch.js +0 -1
- package/dist/adapters/index.cjs +6 -6
- package/dist/cache/index.cjs +13 -13
- package/dist/crawler.d.ts +3 -4
- package/dist/entries/crawler.cjs +5 -5
- package/dist/index.cjs +24 -24
- package/dist/index.d.ts +3 -4
- package/dist/platform/browser.d.ts +3 -4
- package/dist/platform/bun.d.ts +3 -4
- package/dist/platform/deno.d.ts +3 -4
- package/dist/platform/node.d.ts +3 -4
- package/dist/platform/react-native.d.ts +3 -4
- package/dist/platform/worker.d.ts +3 -4
- package/dist/plugin/index.cjs +36 -36
- package/dist/proxy/index.cjs +2 -2
- package/dist/queue/index.cjs +8 -8
- package/dist/utils/form-data.cjs +7 -5
- package/dist/utils/form-data.js +7 -5
- package/dist/utils/headers.cjs +2 -4
- package/dist/utils/headers.js +2 -4
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
package/dist/adapters/fetch.cjs
CHANGED
package/dist/adapters/fetch.js
CHANGED
package/dist/adapters/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.detectRuntime =
|
|
3
|
-
exports.getAdapterCapabilities =
|
|
4
|
-
exports.buildAdapterContext =
|
|
5
|
-
exports.getAvailableAdapters =
|
|
6
|
-
exports.selectAdapter =
|
|
1
|
+
const _mod_qxjloy = require('./picker.cjs');
|
|
2
|
+
exports.detectRuntime = _mod_qxjloy.detectRuntime;
|
|
3
|
+
exports.getAdapterCapabilities = _mod_qxjloy.getAdapterCapabilities;
|
|
4
|
+
exports.buildAdapterContext = _mod_qxjloy.buildAdapterContext;
|
|
5
|
+
exports.getAvailableAdapters = _mod_qxjloy.getAvailableAdapters;
|
|
6
|
+
exports.selectAdapter = _mod_qxjloy.selectAdapter;;
|
package/dist/cache/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.LRUCache =
|
|
3
|
-
const
|
|
4
|
-
exports.DNSCache =
|
|
5
|
-
exports.getGlobalDNSCache =
|
|
6
|
-
exports.resetGlobalDNSCache =
|
|
7
|
-
const
|
|
8
|
-
exports.ResponseCache =
|
|
9
|
-
exports.normalizeResponseCacheConfig =
|
|
10
|
-
const
|
|
11
|
-
exports.FileCacher =
|
|
12
|
-
const
|
|
13
|
-
exports.UrlStore =
|
|
1
|
+
const _mod_9ss1fi = require('./lru-cache.cjs');
|
|
2
|
+
exports.LRUCache = _mod_9ss1fi.LRUCache;;
|
|
3
|
+
const _mod_5jpjzg = require('./dns-cache.cjs');
|
|
4
|
+
exports.DNSCache = _mod_5jpjzg.DNSCache;
|
|
5
|
+
exports.getGlobalDNSCache = _mod_5jpjzg.getGlobalDNSCache;
|
|
6
|
+
exports.resetGlobalDNSCache = _mod_5jpjzg.resetGlobalDNSCache;;
|
|
7
|
+
const _mod_q250sz = require('./response-cache.cjs');
|
|
8
|
+
exports.ResponseCache = _mod_q250sz.ResponseCache;
|
|
9
|
+
exports.normalizeResponseCacheConfig = _mod_q250sz.normalizeResponseCacheConfig;;
|
|
10
|
+
const _mod_dri495 = require('./file-cacher.cjs');
|
|
11
|
+
exports.FileCacher = _mod_dri495.FileCacher;;
|
|
12
|
+
const _mod_2lvgyz = require('./url-store.cjs');
|
|
13
|
+
exports.UrlStore = _mod_2lvgyz.UrlStore;;
|
package/dist/crawler.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -363,7 +363,6 @@ declare class RezoHeaders extends Headers {
|
|
|
363
363
|
string,
|
|
364
364
|
string | string[]
|
|
365
365
|
]>;
|
|
366
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
367
366
|
get [Symbol.toStringTag](): string;
|
|
368
367
|
}
|
|
369
368
|
export interface SerializedCookie {
|
|
@@ -537,8 +536,8 @@ export interface ReadableOptions {
|
|
|
537
536
|
highWaterMark?: number;
|
|
538
537
|
encoding?: string;
|
|
539
538
|
objectMode?: boolean;
|
|
540
|
-
read?(this:
|
|
541
|
-
destroy?(this:
|
|
539
|
+
read?(this: ReadableType, size: number): void;
|
|
540
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
542
541
|
autoDestroy?: boolean;
|
|
543
542
|
}
|
|
544
543
|
export interface Options extends ReadableOptions {
|
package/dist/entries/crawler.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Crawler =
|
|
3
|
-
const
|
|
4
|
-
exports.CrawlerOptions =
|
|
5
|
-
exports.Domain =
|
|
1
|
+
const _mod_0xllqe = require('../plugin/crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_0xllqe.Crawler;;
|
|
3
|
+
const _mod_txr5mp = require('../plugin/crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_txr5mp.CrawlerOptions;
|
|
5
|
+
exports.Domain = _mod_txr5mp.Domain;;
|
package/dist/index.cjs
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Rezo =
|
|
3
|
-
exports.createRezoInstance =
|
|
4
|
-
exports.createDefaultInstance =
|
|
5
|
-
const
|
|
6
|
-
exports.RezoError =
|
|
7
|
-
exports.RezoErrorCode =
|
|
8
|
-
const
|
|
9
|
-
exports.RezoHeaders =
|
|
10
|
-
const
|
|
11
|
-
exports.RezoFormData =
|
|
12
|
-
const
|
|
13
|
-
exports.RezoCookieJar =
|
|
14
|
-
exports.Cookie =
|
|
15
|
-
const
|
|
16
|
-
exports.createDefaultHooks =
|
|
17
|
-
exports.mergeHooks =
|
|
18
|
-
const
|
|
19
|
-
exports.ProxyManager =
|
|
20
|
-
const
|
|
21
|
-
exports.RezoQueue =
|
|
22
|
-
exports.HttpQueue =
|
|
23
|
-
exports.Priority =
|
|
24
|
-
exports.HttpMethodPriority =
|
|
1
|
+
const _mod_96xj9i = require('./core/rezo.cjs');
|
|
2
|
+
exports.Rezo = _mod_96xj9i.Rezo;
|
|
3
|
+
exports.createRezoInstance = _mod_96xj9i.createRezoInstance;
|
|
4
|
+
exports.createDefaultInstance = _mod_96xj9i.createDefaultInstance;;
|
|
5
|
+
const _mod_3lqd9a = require('./errors/rezo-error.cjs');
|
|
6
|
+
exports.RezoError = _mod_3lqd9a.RezoError;
|
|
7
|
+
exports.RezoErrorCode = _mod_3lqd9a.RezoErrorCode;;
|
|
8
|
+
const _mod_59zgej = require('./utils/headers.cjs');
|
|
9
|
+
exports.RezoHeaders = _mod_59zgej.RezoHeaders;;
|
|
10
|
+
const _mod_skmrv6 = require('./utils/form-data.cjs');
|
|
11
|
+
exports.RezoFormData = _mod_skmrv6.RezoFormData;;
|
|
12
|
+
const _mod_4gufqx = require('./utils/cookies.cjs');
|
|
13
|
+
exports.RezoCookieJar = _mod_4gufqx.RezoCookieJar;
|
|
14
|
+
exports.Cookie = _mod_4gufqx.Cookie;;
|
|
15
|
+
const _mod_mdhx7m = require('./core/hooks.cjs');
|
|
16
|
+
exports.createDefaultHooks = _mod_mdhx7m.createDefaultHooks;
|
|
17
|
+
exports.mergeHooks = _mod_mdhx7m.mergeHooks;;
|
|
18
|
+
const _mod_kl23ha = require('./proxy/manager.cjs');
|
|
19
|
+
exports.ProxyManager = _mod_kl23ha.ProxyManager;;
|
|
20
|
+
const _mod_og1k7b = require('./queue/index.cjs');
|
|
21
|
+
exports.RezoQueue = _mod_og1k7b.RezoQueue;
|
|
22
|
+
exports.HttpQueue = _mod_og1k7b.HttpQueue;
|
|
23
|
+
exports.Priority = _mod_og1k7b.Priority;
|
|
24
|
+
exports.HttpMethodPriority = _mod_og1k7b.HttpMethodPriority;;
|
|
25
25
|
const { RezoError } = require('./errors/rezo-error.cjs');
|
|
26
26
|
const isRezoError = exports.isRezoError = RezoError.isRezoError;
|
|
27
27
|
const Cancel = exports.Cancel = RezoError;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
package/dist/platform/bun.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
package/dist/platform/deno.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
package/dist/platform/node.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
|
@@ -4,7 +4,7 @@ import { EventEmitter } from 'node:events';
|
|
|
4
4
|
import { Agent as HttpAgent, OutgoingHttpHeaders } from 'node:http';
|
|
5
5
|
import { Agent as HttpsAgent } from 'node:https';
|
|
6
6
|
import { Socket } from 'node:net';
|
|
7
|
-
import { Readable, Writable, WritableOptions } from 'node:stream';
|
|
7
|
+
import { Readable, Readable as ReadableType, Writable, WritableOptions } from 'node:stream';
|
|
8
8
|
import { SecureContext, TLSSocket } from 'node:tls';
|
|
9
9
|
import { Cookie as TouchCookie, CookieJar as TouchCookieJar, CreateCookieOptions } from 'tough-cookie';
|
|
10
10
|
|
|
@@ -140,7 +140,6 @@ export declare class RezoHeaders extends Headers {
|
|
|
140
140
|
string,
|
|
141
141
|
string | string[]
|
|
142
142
|
]>;
|
|
143
|
-
[util.inspect.custom](_depth: number, options: util.InspectOptionsStylized): string;
|
|
144
143
|
get [Symbol.toStringTag](): string;
|
|
145
144
|
}
|
|
146
145
|
export interface SerializedCookie {
|
|
@@ -314,8 +313,8 @@ export interface ReadableOptions {
|
|
|
314
313
|
highWaterMark?: number;
|
|
315
314
|
encoding?: string;
|
|
316
315
|
objectMode?: boolean;
|
|
317
|
-
read?(this:
|
|
318
|
-
destroy?(this:
|
|
316
|
+
read?(this: ReadableType, size: number): void;
|
|
317
|
+
destroy?(this: ReadableType, error: Error | null, callback: (error: Error | null) => void): void;
|
|
319
318
|
autoDestroy?: boolean;
|
|
320
319
|
}
|
|
321
320
|
export interface Options extends ReadableOptions {
|
package/dist/plugin/index.cjs
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Crawler =
|
|
3
|
-
const
|
|
4
|
-
exports.CrawlerOptions =
|
|
5
|
-
const
|
|
6
|
-
exports.FileCacher =
|
|
7
|
-
const
|
|
8
|
-
exports.UrlStore =
|
|
9
|
-
const
|
|
10
|
-
exports.Oxylabs =
|
|
11
|
-
const
|
|
12
|
-
exports.OXYLABS_BROWSER_TYPES =
|
|
13
|
-
exports.OXYLABS_COMMON_LOCALES =
|
|
14
|
-
exports.OXYLABS_COMMON_GEO_LOCATIONS =
|
|
15
|
-
exports.OXYLABS_US_STATES =
|
|
16
|
-
exports.OXYLABS_EUROPEAN_COUNTRIES =
|
|
17
|
-
exports.OXYLABS_ASIAN_COUNTRIES =
|
|
18
|
-
exports.getRandomOxylabsBrowserType =
|
|
19
|
-
exports.getRandomOxylabsLocale =
|
|
20
|
-
exports.getRandomOxylabsGeoLocation =
|
|
21
|
-
const
|
|
22
|
-
exports.Decodo =
|
|
23
|
-
const
|
|
24
|
-
exports.DECODO_DEVICE_TYPES =
|
|
25
|
-
exports.DECODO_HEADLESS_MODES =
|
|
26
|
-
exports.DECODO_COMMON_LOCALES =
|
|
27
|
-
exports.DECODO_COMMON_COUNTRIES =
|
|
28
|
-
exports.DECODO_EUROPEAN_COUNTRIES =
|
|
29
|
-
exports.DECODO_ASIAN_COUNTRIES =
|
|
30
|
-
exports.DECODO_US_STATES =
|
|
31
|
-
exports.DECODO_COMMON_CITIES =
|
|
32
|
-
exports.getRandomDecodoDeviceType =
|
|
33
|
-
exports.getRandomDecodoLocale =
|
|
34
|
-
exports.getRandomDecodoCountry =
|
|
35
|
-
exports.getRandomDecodoCity =
|
|
36
|
-
exports.generateDecodoSessionId =
|
|
1
|
+
const _mod_rss0b2 = require('./crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_rss0b2.Crawler;;
|
|
3
|
+
const _mod_0ywu4a = require('./crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_0ywu4a.CrawlerOptions;;
|
|
5
|
+
const _mod_r6tzca = require('../cache/file-cacher.cjs');
|
|
6
|
+
exports.FileCacher = _mod_r6tzca.FileCacher;;
|
|
7
|
+
const _mod_aw0pxt = require('../cache/url-store.cjs');
|
|
8
|
+
exports.UrlStore = _mod_aw0pxt.UrlStore;;
|
|
9
|
+
const _mod_6rsznf = require('./addon/oxylabs/index.cjs');
|
|
10
|
+
exports.Oxylabs = _mod_6rsznf.Oxylabs;;
|
|
11
|
+
const _mod_kgy3pf = require('./addon/oxylabs/options.cjs');
|
|
12
|
+
exports.OXYLABS_BROWSER_TYPES = _mod_kgy3pf.OXYLABS_BROWSER_TYPES;
|
|
13
|
+
exports.OXYLABS_COMMON_LOCALES = _mod_kgy3pf.OXYLABS_COMMON_LOCALES;
|
|
14
|
+
exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_kgy3pf.OXYLABS_COMMON_GEO_LOCATIONS;
|
|
15
|
+
exports.OXYLABS_US_STATES = _mod_kgy3pf.OXYLABS_US_STATES;
|
|
16
|
+
exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_kgy3pf.OXYLABS_EUROPEAN_COUNTRIES;
|
|
17
|
+
exports.OXYLABS_ASIAN_COUNTRIES = _mod_kgy3pf.OXYLABS_ASIAN_COUNTRIES;
|
|
18
|
+
exports.getRandomOxylabsBrowserType = _mod_kgy3pf.getRandomBrowserType;
|
|
19
|
+
exports.getRandomOxylabsLocale = _mod_kgy3pf.getRandomLocale;
|
|
20
|
+
exports.getRandomOxylabsGeoLocation = _mod_kgy3pf.getRandomGeoLocation;;
|
|
21
|
+
const _mod_4335qv = require('./addon/decodo/index.cjs');
|
|
22
|
+
exports.Decodo = _mod_4335qv.Decodo;;
|
|
23
|
+
const _mod_0ry06s = require('./addon/decodo/options.cjs');
|
|
24
|
+
exports.DECODO_DEVICE_TYPES = _mod_0ry06s.DECODO_DEVICE_TYPES;
|
|
25
|
+
exports.DECODO_HEADLESS_MODES = _mod_0ry06s.DECODO_HEADLESS_MODES;
|
|
26
|
+
exports.DECODO_COMMON_LOCALES = _mod_0ry06s.DECODO_COMMON_LOCALES;
|
|
27
|
+
exports.DECODO_COMMON_COUNTRIES = _mod_0ry06s.DECODO_COMMON_COUNTRIES;
|
|
28
|
+
exports.DECODO_EUROPEAN_COUNTRIES = _mod_0ry06s.DECODO_EUROPEAN_COUNTRIES;
|
|
29
|
+
exports.DECODO_ASIAN_COUNTRIES = _mod_0ry06s.DECODO_ASIAN_COUNTRIES;
|
|
30
|
+
exports.DECODO_US_STATES = _mod_0ry06s.DECODO_US_STATES;
|
|
31
|
+
exports.DECODO_COMMON_CITIES = _mod_0ry06s.DECODO_COMMON_CITIES;
|
|
32
|
+
exports.getRandomDecodoDeviceType = _mod_0ry06s.getRandomDeviceType;
|
|
33
|
+
exports.getRandomDecodoLocale = _mod_0ry06s.getRandomLocale;
|
|
34
|
+
exports.getRandomDecodoCountry = _mod_0ry06s.getRandomCountry;
|
|
35
|
+
exports.getRandomDecodoCity = _mod_0ry06s.getRandomCity;
|
|
36
|
+
exports.generateDecodoSessionId = _mod_0ry06s.generateSessionId;;
|
package/dist/proxy/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const { SocksProxyAgent: RezoSocksProxy } = require("socks-proxy-agent");
|
|
2
2
|
const { HttpsProxyAgent: RezoHttpsSocks } = require("https-proxy-agent");
|
|
3
3
|
const { HttpProxyAgent: RezoHttpSocks } = require("http-proxy-agent");
|
|
4
|
-
const
|
|
5
|
-
exports.ProxyManager =
|
|
4
|
+
const _mod_ejtoqv = require('./manager.cjs');
|
|
5
|
+
exports.ProxyManager = _mod_ejtoqv.ProxyManager;;
|
|
6
6
|
function createOptions(uri, opts) {
|
|
7
7
|
if (uri instanceof URL || typeof uri === "string") {
|
|
8
8
|
return {
|
package/dist/queue/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.RezoQueue =
|
|
3
|
-
const
|
|
4
|
-
exports.HttpQueue =
|
|
5
|
-
exports.extractDomain =
|
|
6
|
-
const
|
|
7
|
-
exports.Priority =
|
|
8
|
-
exports.HttpMethodPriority =
|
|
1
|
+
const _mod_12321u = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_12321u.RezoQueue;;
|
|
3
|
+
const _mod_qrk8sw = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_qrk8sw.HttpQueue;
|
|
5
|
+
exports.extractDomain = _mod_qrk8sw.extractDomain;;
|
|
6
|
+
const _mod_bamjlz = require('./types.cjs');
|
|
7
|
+
exports.Priority = _mod_bamjlz.Priority;
|
|
8
|
+
exports.HttpMethodPriority = _mod_bamjlz.HttpMethodPriority;;
|
package/dist/utils/form-data.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
const NodeFormData = require("form-data");
|
|
2
|
-
|
|
2
|
+
function isReadableStream(value) {
|
|
3
|
+
return value !== null && typeof value === "object" && typeof value.pipe === "function" && typeof value.read === "function" && typeof value.on === "function";
|
|
4
|
+
}
|
|
3
5
|
|
|
4
6
|
class RezoFormData extends NodeFormData {
|
|
5
7
|
constructor(options) {
|
|
@@ -22,7 +24,7 @@ class RezoFormData extends NodeFormData {
|
|
|
22
24
|
const formData = new FormData;
|
|
23
25
|
const entries = await this.getFieldEntries();
|
|
24
26
|
for (const [key, value] of entries) {
|
|
25
|
-
if (value
|
|
27
|
+
if (isReadableStream(value)) {
|
|
26
28
|
const chunks = [];
|
|
27
29
|
for await (const chunk of value) {
|
|
28
30
|
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
|
@@ -95,7 +97,7 @@ class RezoFormData extends NodeFormData {
|
|
|
95
97
|
});
|
|
96
98
|
return;
|
|
97
99
|
}
|
|
98
|
-
if (value
|
|
100
|
+
if (isReadableStream(value)) {
|
|
99
101
|
formData.append(key, value);
|
|
100
102
|
return;
|
|
101
103
|
}
|
|
@@ -152,7 +154,7 @@ class RezoFormData extends NodeFormData {
|
|
|
152
154
|
} else {
|
|
153
155
|
hasOmittedData = true;
|
|
154
156
|
}
|
|
155
|
-
} else if (value
|
|
157
|
+
} else if (isReadableStream(value) || typeof File !== "undefined" && value instanceof File || typeof Blob !== "undefined" && value instanceof Blob) {
|
|
156
158
|
if (convertBinaryToBase64 && value instanceof File) {
|
|
157
159
|
hasOmittedData = true;
|
|
158
160
|
} else {
|
|
@@ -190,7 +192,7 @@ class RezoFormData extends NodeFormData {
|
|
|
190
192
|
} else {
|
|
191
193
|
hasOmittedData = true;
|
|
192
194
|
}
|
|
193
|
-
} else if (value
|
|
195
|
+
} else if (isReadableStream(value) || typeof File !== "undefined" && value instanceof File || typeof Blob !== "undefined" && value instanceof Blob) {
|
|
194
196
|
if (convertBinaryToBase64 && value instanceof File) {
|
|
195
197
|
hasOmittedData = true;
|
|
196
198
|
} else {
|
package/dist/utils/form-data.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import NodeFormData from "form-data";
|
|
2
|
-
|
|
2
|
+
function isReadableStream(value) {
|
|
3
|
+
return value !== null && typeof value === "object" && typeof value.pipe === "function" && typeof value.read === "function" && typeof value.on === "function";
|
|
4
|
+
}
|
|
3
5
|
|
|
4
6
|
export class RezoFormData extends NodeFormData {
|
|
5
7
|
constructor(options) {
|
|
@@ -22,7 +24,7 @@ export class RezoFormData extends NodeFormData {
|
|
|
22
24
|
const formData = new FormData;
|
|
23
25
|
const entries = await this.getFieldEntries();
|
|
24
26
|
for (const [key, value] of entries) {
|
|
25
|
-
if (value
|
|
27
|
+
if (isReadableStream(value)) {
|
|
26
28
|
const chunks = [];
|
|
27
29
|
for await (const chunk of value) {
|
|
28
30
|
chunks.push(Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk));
|
|
@@ -95,7 +97,7 @@ export class RezoFormData extends NodeFormData {
|
|
|
95
97
|
});
|
|
96
98
|
return;
|
|
97
99
|
}
|
|
98
|
-
if (value
|
|
100
|
+
if (isReadableStream(value)) {
|
|
99
101
|
formData.append(key, value);
|
|
100
102
|
return;
|
|
101
103
|
}
|
|
@@ -152,7 +154,7 @@ export class RezoFormData extends NodeFormData {
|
|
|
152
154
|
} else {
|
|
153
155
|
hasOmittedData = true;
|
|
154
156
|
}
|
|
155
|
-
} else if (value
|
|
157
|
+
} else if (isReadableStream(value) || typeof File !== "undefined" && value instanceof File || typeof Blob !== "undefined" && value instanceof Blob) {
|
|
156
158
|
if (convertBinaryToBase64 && value instanceof File) {
|
|
157
159
|
hasOmittedData = true;
|
|
158
160
|
} else {
|
|
@@ -190,7 +192,7 @@ export class RezoFormData extends NodeFormData {
|
|
|
190
192
|
} else {
|
|
191
193
|
hasOmittedData = true;
|
|
192
194
|
}
|
|
193
|
-
} else if (value
|
|
195
|
+
} else if (isReadableStream(value) || typeof File !== "undefined" && value instanceof File || typeof Blob !== "undefined" && value instanceof Blob) {
|
|
194
196
|
if (convertBinaryToBase64 && value instanceof File) {
|
|
195
197
|
hasOmittedData = true;
|
|
196
198
|
} else {
|
package/dist/utils/headers.cjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
const util = require("node:util");
|
|
2
|
-
|
|
3
1
|
class RezoHeaders extends Headers {
|
|
4
2
|
constructor(init) {
|
|
5
3
|
if (init instanceof RezoHeaders) {
|
|
@@ -149,8 +147,8 @@ class RezoHeaders extends Headers {
|
|
|
149
147
|
[Symbol.iterator]() {
|
|
150
148
|
return Object.entries(this.toObject())[Symbol.iterator]();
|
|
151
149
|
}
|
|
152
|
-
[util.inspect.custom](
|
|
153
|
-
return `${this[Symbol.toStringTag]} ${
|
|
150
|
+
[Symbol.for("nodejs.util.inspect.custom")]() {
|
|
151
|
+
return `${this[Symbol.toStringTag]} ${JSON.stringify(this.toObject())}`;
|
|
154
152
|
}
|
|
155
153
|
get [Symbol.toStringTag]() {
|
|
156
154
|
return "RezoHeaders";
|
package/dist/utils/headers.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import util from "node:util";
|
|
2
|
-
|
|
3
1
|
class RezoHeaders extends Headers {
|
|
4
2
|
constructor(init) {
|
|
5
3
|
if (init instanceof RezoHeaders) {
|
|
@@ -149,8 +147,8 @@ class RezoHeaders extends Headers {
|
|
|
149
147
|
[Symbol.iterator]() {
|
|
150
148
|
return Object.entries(this.toObject())[Symbol.iterator]();
|
|
151
149
|
}
|
|
152
|
-
[util.inspect.custom](
|
|
153
|
-
return `${this[Symbol.toStringTag]} ${
|
|
150
|
+
[Symbol.for("nodejs.util.inspect.custom")]() {
|
|
151
|
+
return `${this[Symbol.toStringTag]} ${JSON.stringify(this.toObject())}`;
|
|
154
152
|
}
|
|
155
153
|
get [Symbol.toStringTag]() {
|
|
156
154
|
return "RezoHeaders";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rezo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"description": "Lightning-fast, enterprise-grade HTTP client for modern JavaScript. Full HTTP/2 support, intelligent cookie management, multiple adapters (HTTP, Fetch, cURL, XHR), streaming, proxy support (HTTP/HTTPS/SOCKS), and cross-environment compatibility.",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.js",
|