rezo 1.0.74 → 1.0.75
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 +4 -1
- package/dist/adapters/entries/fetch.d.ts +4 -1
- package/dist/adapters/entries/http.d.ts +4 -1
- package/dist/adapters/entries/http2.d.ts +4 -1
- package/dist/adapters/entries/react-native.d.ts +4 -1
- package/dist/adapters/entries/xhr.d.ts +4 -1
- package/dist/adapters/http.cjs +2 -1
- package/dist/adapters/http.js +2 -1
- package/dist/adapters/index.cjs +6 -6
- package/dist/cache/index.cjs +9 -9
- package/dist/crawler/crawler-options.cjs +1 -1
- package/dist/crawler/crawler-options.js +1 -1
- package/dist/crawler/crawler.cjs +72 -1
- package/dist/crawler/crawler.js +72 -1
- package/dist/crawler/index.cjs +40 -40
- package/dist/crawler/plugin/index.cjs +1 -1
- package/dist/crawler.d.ts +101 -0
- package/dist/entries/crawler.cjs +4 -4
- package/dist/index.cjs +30 -30
- package/dist/index.d.ts +4 -1
- package/dist/internal/agents/bun-socks-http.cjs +573 -0
- package/dist/internal/agents/bun-socks-http.js +570 -0
- package/dist/internal/agents/index.cjs +14 -10
- package/dist/internal/agents/index.js +1 -0
- package/dist/platform/browser.d.ts +4 -1
- package/dist/platform/bun.d.ts +4 -1
- package/dist/platform/deno.d.ts +4 -1
- package/dist/platform/node.d.ts +4 -1
- package/dist/platform/react-native.d.ts +4 -1
- package/dist/platform/worker.d.ts +4 -1
- package/dist/proxy/index.cjs +4 -4
- package/dist/queue/index.cjs +8 -8
- package/dist/queue/queue.cjs +3 -0
- package/dist/queue/queue.js +3 -0
- package/dist/responses/universal/index.cjs +11 -11
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/wget/index.cjs +49 -49
- package/dist/wget/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1997,6 +1997,8 @@ export declare class RezoError<T = any> extends Error {
|
|
|
1997
1997
|
* Queue configuration options
|
|
1998
1998
|
*/
|
|
1999
1999
|
export interface QueueConfig {
|
|
2000
|
+
/** Name of the queue - useful for debugging and logging */
|
|
2001
|
+
name?: string;
|
|
2000
2002
|
/** Maximum concurrent tasks (default: Infinity) */
|
|
2001
2003
|
concurrency?: number;
|
|
2002
2004
|
/** Auto-start processing when tasks are added (default: true) */
|
|
@@ -2127,6 +2129,7 @@ declare class RezoQueue<T = any> {
|
|
|
2127
2129
|
private isPausedFlag;
|
|
2128
2130
|
private intervalId?;
|
|
2129
2131
|
private intervalCount;
|
|
2132
|
+
readonly name: string;
|
|
2130
2133
|
private intervalStart;
|
|
2131
2134
|
private eventHandlers;
|
|
2132
2135
|
private statsData;
|
|
@@ -4579,7 +4582,7 @@ export interface RezoInstance extends Rezo {
|
|
|
4579
4582
|
*
|
|
4580
4583
|
* IMPORTANT: Update these values when bumping package version.
|
|
4581
4584
|
*/
|
|
4582
|
-
export declare const VERSION = "1.0.
|
|
4585
|
+
export declare const VERSION = "1.0.75";
|
|
4583
4586
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
4584
4587
|
export declare const Cancel: typeof RezoError;
|
|
4585
4588
|
export declare const CancelToken: {
|
|
@@ -1997,6 +1997,8 @@ export declare class RezoError<T = any> extends Error {
|
|
|
1997
1997
|
* Queue configuration options
|
|
1998
1998
|
*/
|
|
1999
1999
|
export interface QueueConfig {
|
|
2000
|
+
/** Name of the queue - useful for debugging and logging */
|
|
2001
|
+
name?: string;
|
|
2000
2002
|
/** Maximum concurrent tasks (default: Infinity) */
|
|
2001
2003
|
concurrency?: number;
|
|
2002
2004
|
/** Auto-start processing when tasks are added (default: true) */
|
|
@@ -2127,6 +2129,7 @@ declare class RezoQueue<T = any> {
|
|
|
2127
2129
|
private isPausedFlag;
|
|
2128
2130
|
private intervalId?;
|
|
2129
2131
|
private intervalCount;
|
|
2132
|
+
readonly name: string;
|
|
2130
2133
|
private intervalStart;
|
|
2131
2134
|
private eventHandlers;
|
|
2132
2135
|
private statsData;
|
|
@@ -4579,7 +4582,7 @@ export interface RezoInstance extends Rezo {
|
|
|
4579
4582
|
*
|
|
4580
4583
|
* IMPORTANT: Update these values when bumping package version.
|
|
4581
4584
|
*/
|
|
4582
|
-
export declare const VERSION = "1.0.
|
|
4585
|
+
export declare const VERSION = "1.0.75";
|
|
4583
4586
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
4584
4587
|
export declare const Cancel: typeof RezoError;
|
|
4585
4588
|
export declare const CancelToken: {
|
package/dist/proxy/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const { Agent, HttpProxyAgent, HttpsProxyAgent, SocksProxyAgent } = require('../internal/agents/index.cjs');
|
|
2
2
|
const { parseProxyString } = require('./parse.cjs');
|
|
3
|
-
const
|
|
4
|
-
exports.ProxyManager =
|
|
5
|
-
const
|
|
6
|
-
exports.parseProxyString =
|
|
3
|
+
const _mod_uo153k = require('./manager.cjs');
|
|
4
|
+
exports.ProxyManager = _mod_uo153k.ProxyManager;;
|
|
5
|
+
const _mod_xfjlaw = require('./parse.cjs');
|
|
6
|
+
exports.parseProxyString = _mod_xfjlaw.parseProxyString;;
|
|
7
7
|
function createOptions(uri, opts) {
|
|
8
8
|
if (uri instanceof URL || typeof uri === "string") {
|
|
9
9
|
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_w3qnh6 = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_w3qnh6.RezoQueue;;
|
|
3
|
+
const _mod_x203fi = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_x203fi.HttpQueue;
|
|
5
|
+
exports.extractDomain = _mod_x203fi.extractDomain;;
|
|
6
|
+
const _mod_img89y = require('./types.cjs');
|
|
7
|
+
exports.Priority = _mod_img89y.Priority;
|
|
8
|
+
exports.HttpMethodPriority = _mod_img89y.HttpMethodPriority;;
|
package/dist/queue/queue.cjs
CHANGED
|
@@ -8,6 +8,7 @@ class RezoQueue {
|
|
|
8
8
|
isPausedFlag = false;
|
|
9
9
|
intervalId;
|
|
10
10
|
intervalCount = 0;
|
|
11
|
+
name;
|
|
11
12
|
intervalStart = 0;
|
|
12
13
|
eventHandlers = new Map;
|
|
13
14
|
statsData = {
|
|
@@ -28,7 +29,9 @@ class RezoQueue {
|
|
|
28
29
|
hasEverBeenActive = false;
|
|
29
30
|
config;
|
|
30
31
|
constructor(config = {}) {
|
|
32
|
+
this.name = config.name ?? `queue-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 9)}`;
|
|
31
33
|
this.config = {
|
|
34
|
+
name: this.name,
|
|
32
35
|
concurrency: config.concurrency ?? 1 / 0,
|
|
33
36
|
autoStart: config.autoStart ?? true,
|
|
34
37
|
timeout: config.timeout ?? 0,
|
package/dist/queue/queue.js
CHANGED
|
@@ -8,6 +8,7 @@ export class RezoQueue {
|
|
|
8
8
|
isPausedFlag = false;
|
|
9
9
|
intervalId;
|
|
10
10
|
intervalCount = 0;
|
|
11
|
+
name;
|
|
11
12
|
intervalStart = 0;
|
|
12
13
|
eventHandlers = new Map;
|
|
13
14
|
statsData = {
|
|
@@ -28,7 +29,9 @@ export class RezoQueue {
|
|
|
28
29
|
hasEverBeenActive = false;
|
|
29
30
|
config;
|
|
30
31
|
constructor(config = {}) {
|
|
32
|
+
this.name = config.name ?? `queue-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 9)}`;
|
|
31
33
|
this.config = {
|
|
34
|
+
name: this.name,
|
|
32
35
|
concurrency: config.concurrency ?? 1 / 0,
|
|
33
36
|
autoStart: config.autoStart ?? true,
|
|
34
37
|
timeout: config.timeout ?? 0,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.UniversalEventEmitter =
|
|
3
|
-
const
|
|
4
|
-
exports.UniversalStreamResponse =
|
|
5
|
-
exports.StreamResponse =
|
|
6
|
-
const
|
|
7
|
-
exports.UniversalDownloadResponse =
|
|
8
|
-
exports.DownloadResponse =
|
|
9
|
-
const
|
|
10
|
-
exports.UniversalUploadResponse =
|
|
11
|
-
exports.UploadResponse =
|
|
1
|
+
const _mod_zdt3d3 = require('./event-emitter.cjs');
|
|
2
|
+
exports.UniversalEventEmitter = _mod_zdt3d3.UniversalEventEmitter;;
|
|
3
|
+
const _mod_jqm12n = require('./stream.cjs');
|
|
4
|
+
exports.UniversalStreamResponse = _mod_jqm12n.UniversalStreamResponse;
|
|
5
|
+
exports.StreamResponse = _mod_jqm12n.StreamResponse;;
|
|
6
|
+
const _mod_kj9otf = require('./download.cjs');
|
|
7
|
+
exports.UniversalDownloadResponse = _mod_kj9otf.UniversalDownloadResponse;
|
|
8
|
+
exports.DownloadResponse = _mod_kj9otf.DownloadResponse;;
|
|
9
|
+
const _mod_aqp3gl = require('./upload.cjs');
|
|
10
|
+
exports.UniversalUploadResponse = _mod_aqp3gl.UniversalUploadResponse;
|
|
11
|
+
exports.UploadResponse = _mod_aqp3gl.UploadResponse;;
|
package/dist/version.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const VERSION = exports.VERSION = "1.0.
|
|
1
|
+
const VERSION = exports.VERSION = "1.0.75";
|
|
2
2
|
const PACKAGE_NAME = exports.PACKAGE_NAME = "rezo";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "1.0.
|
|
1
|
+
export const VERSION = "1.0.75";
|
|
2
2
|
export const PACKAGE_NAME = "rezo";
|
package/dist/wget/index.cjs
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.WgetError =
|
|
3
|
-
const
|
|
4
|
-
exports.AssetExtractor =
|
|
5
|
-
const
|
|
6
|
-
exports.UrlFilter =
|
|
7
|
-
const
|
|
8
|
-
exports.FileWriter =
|
|
9
|
-
const
|
|
10
|
-
exports.RobotsHandler =
|
|
11
|
-
const
|
|
12
|
-
exports.ResumeHandler =
|
|
13
|
-
const
|
|
14
|
-
exports.ProgressReporter =
|
|
15
|
-
exports.ProgressTracker =
|
|
16
|
-
exports.parseSize =
|
|
17
|
-
const
|
|
18
|
-
exports.LinkConverter =
|
|
19
|
-
const
|
|
20
|
-
exports.Downloader =
|
|
21
|
-
const
|
|
22
|
-
exports.AssetOrganizer =
|
|
23
|
-
exports.DEFAULT_ASSET_FOLDERS =
|
|
24
|
-
const
|
|
25
|
-
exports.DownloadCache =
|
|
26
|
-
const
|
|
27
|
-
exports.EXECUTABLE_EXTENSIONS =
|
|
28
|
-
exports.ARCHIVE_EXTENSIONS =
|
|
29
|
-
exports.DOCUMENT_EXTENSIONS =
|
|
30
|
-
exports.IMAGE_EXTENSIONS =
|
|
31
|
-
exports.VIDEO_EXTENSIONS =
|
|
32
|
-
exports.AUDIO_EXTENSIONS =
|
|
33
|
-
exports.FONT_EXTENSIONS =
|
|
34
|
-
exports.WEB_ASSET_EXTENSIONS =
|
|
35
|
-
exports.DATA_EXTENSIONS =
|
|
36
|
-
exports.EXECUTABLE_MIME_TYPES =
|
|
37
|
-
exports.ARCHIVE_MIME_TYPES =
|
|
38
|
-
exports.DOCUMENT_MIME_TYPES =
|
|
39
|
-
exports.IMAGE_MIME_TYPES =
|
|
40
|
-
exports.VIDEO_MIME_TYPES =
|
|
41
|
-
exports.AUDIO_MIME_TYPES =
|
|
42
|
-
exports.FONT_MIME_TYPES =
|
|
43
|
-
exports.WEB_ASSET_MIME_TYPES =
|
|
44
|
-
exports.DATA_MIME_TYPES =
|
|
45
|
-
exports.SAFE_WEB_PRESET =
|
|
46
|
-
exports.DOCUMENTS_ONLY_PRESET =
|
|
47
|
-
exports.NO_MEDIA_PRESET =
|
|
48
|
-
exports.MINIMAL_MIRROR_PRESET =
|
|
49
|
-
exports.TEXT_ONLY_PRESET =
|
|
1
|
+
const _mod_ztixwb = require('./types.cjs');
|
|
2
|
+
exports.WgetError = _mod_ztixwb.WgetError;;
|
|
3
|
+
const _mod_ouxwai = require('./asset-extractor.cjs');
|
|
4
|
+
exports.AssetExtractor = _mod_ouxwai.AssetExtractor;;
|
|
5
|
+
const _mod_vud34h = require('./url-filter.cjs');
|
|
6
|
+
exports.UrlFilter = _mod_vud34h.UrlFilter;;
|
|
7
|
+
const _mod_uk7o0g = require('./file-writer.cjs');
|
|
8
|
+
exports.FileWriter = _mod_uk7o0g.FileWriter;;
|
|
9
|
+
const _mod_7740bo = require('./robots.cjs');
|
|
10
|
+
exports.RobotsHandler = _mod_7740bo.RobotsHandler;;
|
|
11
|
+
const _mod_cncezi = require('./resume.cjs');
|
|
12
|
+
exports.ResumeHandler = _mod_cncezi.ResumeHandler;;
|
|
13
|
+
const _mod_j5iw1v = require('./progress.cjs');
|
|
14
|
+
exports.ProgressReporter = _mod_j5iw1v.ProgressReporter;
|
|
15
|
+
exports.ProgressTracker = _mod_j5iw1v.ProgressTracker;
|
|
16
|
+
exports.parseSize = _mod_j5iw1v.parseSize;;
|
|
17
|
+
const _mod_9brr06 = require('./link-converter.cjs');
|
|
18
|
+
exports.LinkConverter = _mod_9brr06.LinkConverter;;
|
|
19
|
+
const _mod_hltp16 = require('./downloader.cjs');
|
|
20
|
+
exports.Downloader = _mod_hltp16.Downloader;;
|
|
21
|
+
const _mod_82n2w3 = require('./asset-organizer.cjs');
|
|
22
|
+
exports.AssetOrganizer = _mod_82n2w3.AssetOrganizer;
|
|
23
|
+
exports.DEFAULT_ASSET_FOLDERS = _mod_82n2w3.DEFAULT_ASSET_FOLDERS;;
|
|
24
|
+
const _mod_hxjv18 = require('./download-cache.cjs');
|
|
25
|
+
exports.DownloadCache = _mod_hxjv18.DownloadCache;;
|
|
26
|
+
const _mod_05idot = require('./filter-lists.cjs');
|
|
27
|
+
exports.EXECUTABLE_EXTENSIONS = _mod_05idot.EXECUTABLE_EXTENSIONS;
|
|
28
|
+
exports.ARCHIVE_EXTENSIONS = _mod_05idot.ARCHIVE_EXTENSIONS;
|
|
29
|
+
exports.DOCUMENT_EXTENSIONS = _mod_05idot.DOCUMENT_EXTENSIONS;
|
|
30
|
+
exports.IMAGE_EXTENSIONS = _mod_05idot.IMAGE_EXTENSIONS;
|
|
31
|
+
exports.VIDEO_EXTENSIONS = _mod_05idot.VIDEO_EXTENSIONS;
|
|
32
|
+
exports.AUDIO_EXTENSIONS = _mod_05idot.AUDIO_EXTENSIONS;
|
|
33
|
+
exports.FONT_EXTENSIONS = _mod_05idot.FONT_EXTENSIONS;
|
|
34
|
+
exports.WEB_ASSET_EXTENSIONS = _mod_05idot.WEB_ASSET_EXTENSIONS;
|
|
35
|
+
exports.DATA_EXTENSIONS = _mod_05idot.DATA_EXTENSIONS;
|
|
36
|
+
exports.EXECUTABLE_MIME_TYPES = _mod_05idot.EXECUTABLE_MIME_TYPES;
|
|
37
|
+
exports.ARCHIVE_MIME_TYPES = _mod_05idot.ARCHIVE_MIME_TYPES;
|
|
38
|
+
exports.DOCUMENT_MIME_TYPES = _mod_05idot.DOCUMENT_MIME_TYPES;
|
|
39
|
+
exports.IMAGE_MIME_TYPES = _mod_05idot.IMAGE_MIME_TYPES;
|
|
40
|
+
exports.VIDEO_MIME_TYPES = _mod_05idot.VIDEO_MIME_TYPES;
|
|
41
|
+
exports.AUDIO_MIME_TYPES = _mod_05idot.AUDIO_MIME_TYPES;
|
|
42
|
+
exports.FONT_MIME_TYPES = _mod_05idot.FONT_MIME_TYPES;
|
|
43
|
+
exports.WEB_ASSET_MIME_TYPES = _mod_05idot.WEB_ASSET_MIME_TYPES;
|
|
44
|
+
exports.DATA_MIME_TYPES = _mod_05idot.DATA_MIME_TYPES;
|
|
45
|
+
exports.SAFE_WEB_PRESET = _mod_05idot.SAFE_WEB_PRESET;
|
|
46
|
+
exports.DOCUMENTS_ONLY_PRESET = _mod_05idot.DOCUMENTS_ONLY_PRESET;
|
|
47
|
+
exports.NO_MEDIA_PRESET = _mod_05idot.NO_MEDIA_PRESET;
|
|
48
|
+
exports.MINIMAL_MIRROR_PRESET = _mod_05idot.MINIMAL_MIRROR_PRESET;
|
|
49
|
+
exports.TEXT_ONLY_PRESET = _mod_05idot.TEXT_ONLY_PRESET;;
|
|
50
50
|
const { Downloader } = require('./downloader.cjs');
|
|
51
51
|
const rezo = require('../index.cjs');
|
|
52
52
|
const { promises: fs } = require("node:fs");
|
package/dist/wget/index.d.ts
CHANGED
|
@@ -4704,6 +4704,8 @@ declare class RezoError<T = any> extends Error {
|
|
|
4704
4704
|
* Queue configuration options
|
|
4705
4705
|
*/
|
|
4706
4706
|
export interface QueueConfig {
|
|
4707
|
+
/** Name of the queue - useful for debugging and logging */
|
|
4708
|
+
name?: string;
|
|
4707
4709
|
/** Maximum concurrent tasks (default: Infinity) */
|
|
4708
4710
|
concurrency?: number;
|
|
4709
4711
|
/** Auto-start processing when tasks are added (default: true) */
|
|
@@ -4834,6 +4836,7 @@ declare class RezoQueue<T = any> {
|
|
|
4834
4836
|
private isPausedFlag;
|
|
4835
4837
|
private intervalId?;
|
|
4836
4838
|
private intervalCount;
|
|
4839
|
+
readonly name: string;
|
|
4837
4840
|
private intervalStart;
|
|
4838
4841
|
private eventHandlers;
|
|
4839
4842
|
private statsData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rezo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.75",
|
|
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",
|