rezo 1.0.70 → 1.0.72
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.cjs +3 -2
- package/dist/adapters/entries/curl.d.ts +8 -1
- package/dist/adapters/entries/curl.js +3 -2
- package/dist/adapters/entries/fetch.cjs +3 -2
- package/dist/adapters/entries/fetch.d.ts +8 -1
- package/dist/adapters/entries/fetch.js +3 -2
- package/dist/adapters/entries/http.cjs +3 -2
- package/dist/adapters/entries/http.d.ts +8 -4
- package/dist/adapters/entries/http.js +3 -2
- package/dist/adapters/entries/http2.cjs +3 -2
- package/dist/adapters/entries/http2.d.ts +8 -1
- package/dist/adapters/entries/http2.js +3 -2
- package/dist/adapters/entries/react-native.cjs +3 -2
- package/dist/adapters/entries/react-native.d.ts +8 -1
- package/dist/adapters/entries/react-native.js +3 -2
- package/dist/adapters/entries/xhr.cjs +3 -2
- package/dist/adapters/entries/xhr.d.ts +8 -1
- package/dist/adapters/entries/xhr.js +3 -2
- package/dist/adapters/index.cjs +6 -6
- package/dist/cache/index.cjs +9 -9
- package/dist/core/rezo.cjs +2 -2
- package/dist/core/rezo.js +2 -2
- package/dist/crawler/index.cjs +40 -40
- package/dist/entries/crawler.cjs +4 -4
- package/dist/index.cjs +30 -29
- package/dist/index.d.ts +9 -1
- package/dist/index.js +1 -2
- package/dist/internal/agents/index.cjs +10 -10
- package/dist/platform/browser.cjs +3 -2
- package/dist/platform/browser.d.ts +8 -1
- package/dist/platform/browser.js +3 -2
- package/dist/platform/bun.cjs +3 -2
- package/dist/platform/bun.d.ts +8 -1
- package/dist/platform/bun.js +3 -2
- package/dist/platform/deno.cjs +3 -2
- package/dist/platform/deno.d.ts +8 -1
- package/dist/platform/deno.js +3 -2
- package/dist/platform/node.cjs +3 -2
- package/dist/platform/node.d.ts +8 -1
- package/dist/platform/node.js +3 -2
- package/dist/platform/react-native.cjs +3 -2
- package/dist/platform/react-native.d.ts +8 -1
- package/dist/platform/react-native.js +3 -2
- package/dist/platform/worker.cjs +3 -2
- package/dist/platform/worker.d.ts +8 -1
- package/dist/platform/worker.js +3 -2
- package/dist/proxy/index.cjs +4 -4
- package/dist/queue/index.cjs +8 -8
- package/dist/responses/universal/index.cjs +11 -11
- package/dist/utils/compression.cjs +6 -6
- package/dist/utils/compression.js +6 -6
- package/dist/version.cjs +2 -0
- package/dist/version.js +2 -0
- package/dist/wget/index.cjs +49 -49
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4865,6 +4865,15 @@ export declare class HttpQueue extends RezoQueue<any> {
|
|
|
4865
4865
|
*/
|
|
4866
4866
|
private emitHttp;
|
|
4867
4867
|
}
|
|
4868
|
+
/**
|
|
4869
|
+
* Package version and name constants
|
|
4870
|
+
* These are maintained here to avoid importing package.json,
|
|
4871
|
+
* which causes issues in Deno and other runtimes.
|
|
4872
|
+
*
|
|
4873
|
+
* IMPORTANT: Update these values when bumping package version.
|
|
4874
|
+
*/
|
|
4875
|
+
export declare const VERSION = "1.0.72";
|
|
4876
|
+
export declare const PACKAGE_NAME = "rezo";
|
|
4868
4877
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
4869
4878
|
export declare const Cancel: typeof RezoError;
|
|
4870
4879
|
export declare const CancelToken: {
|
|
@@ -4880,7 +4889,6 @@ export declare const all: {
|
|
|
4880
4889
|
}>;
|
|
4881
4890
|
};
|
|
4882
4891
|
export declare const spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4883
|
-
export declare const VERSION: string;
|
|
4884
4892
|
declare const rezo: RezoInstance;
|
|
4885
4893
|
|
|
4886
4894
|
export {
|
package/dist/index.js
CHANGED
|
@@ -20,8 +20,7 @@ export const isCancel = (error) => {
|
|
|
20
20
|
};
|
|
21
21
|
export const all = Promise.all.bind(Promise);
|
|
22
22
|
export const spread = (callback) => (array) => callback(...array);
|
|
23
|
-
|
|
24
|
-
export const VERSION = packageJson.version;
|
|
23
|
+
export { VERSION, PACKAGE_NAME } from './version.js';
|
|
25
24
|
import { executeRequest } from './adapters/http.js';
|
|
26
25
|
import { setGlobalAdapter, createRezoInstance } from './core/rezo.js';
|
|
27
26
|
setGlobalAdapter(executeRequest);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Agent =
|
|
3
|
-
const
|
|
4
|
-
exports.HttpProxyAgent =
|
|
5
|
-
const
|
|
6
|
-
exports.HttpsProxyAgent =
|
|
7
|
-
const
|
|
8
|
-
exports.SocksProxyAgent =
|
|
9
|
-
const
|
|
10
|
-
exports.SocksClient =
|
|
1
|
+
const _mod_qwaec6 = require('./base.cjs');
|
|
2
|
+
exports.Agent = _mod_qwaec6.Agent;;
|
|
3
|
+
const _mod_lrn2yu = require('./http-proxy.cjs');
|
|
4
|
+
exports.HttpProxyAgent = _mod_lrn2yu.HttpProxyAgent;;
|
|
5
|
+
const _mod_jyfvy6 = require('./https-proxy.cjs');
|
|
6
|
+
exports.HttpsProxyAgent = _mod_jyfvy6.HttpsProxyAgent;;
|
|
7
|
+
const _mod_frfunk = require('./socks-proxy.cjs');
|
|
8
|
+
exports.SocksProxyAgent = _mod_frfunk.SocksProxyAgent;;
|
|
9
|
+
const _mod_zcnfo4 = require('./socks-client.cjs');
|
|
10
|
+
exports.SocksClient = _mod_zcnfo4.SocksClient;;
|
|
@@ -5,7 +5,7 @@ const { RezoHeaders } = require('../utils/headers.cjs');
|
|
|
5
5
|
const { RezoFormData } = require('../utils/form-data.cjs');
|
|
6
6
|
const { RezoCookieJar, Cookie } = require('../utils/cookies.cjs');
|
|
7
7
|
const { createDefaultHooks, mergeHooks } = require('../core/hooks.cjs');
|
|
8
|
-
const
|
|
8
|
+
const { VERSION } = require('../version.cjs');
|
|
9
9
|
|
|
10
10
|
exports.Rezo = Rezo;
|
|
11
11
|
exports.RezoError = RezoError;
|
|
@@ -24,7 +24,8 @@ const isCancel = exports.isCancel = (error) => {
|
|
|
24
24
|
};
|
|
25
25
|
const all = exports.all = Promise.all.bind(Promise);
|
|
26
26
|
const spread = exports.spread = (callback) => (array) => callback(...array);
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
exports.VERSION = VERSION;
|
|
28
29
|
setGlobalAdapter(executeRequest);
|
|
29
30
|
const rezo = createRezoInstance(executeRequest);
|
|
30
31
|
|
|
@@ -4561,6 +4561,14 @@ export interface RezoInstance extends Rezo {
|
|
|
4561
4561
|
/** Spread array arguments to callback function (Axios compatibility) */
|
|
4562
4562
|
spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4563
4563
|
}
|
|
4564
|
+
/**
|
|
4565
|
+
* Package version and name constants
|
|
4566
|
+
* These are maintained here to avoid importing package.json,
|
|
4567
|
+
* which causes issues in Deno and other runtimes.
|
|
4568
|
+
*
|
|
4569
|
+
* IMPORTANT: Update these values when bumping package version.
|
|
4570
|
+
*/
|
|
4571
|
+
export declare const VERSION = "1.0.72";
|
|
4564
4572
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
4565
4573
|
export declare const Cancel: typeof RezoError;
|
|
4566
4574
|
export declare const CancelToken: {
|
|
@@ -4576,7 +4584,6 @@ export declare const all: {
|
|
|
4576
4584
|
}>;
|
|
4577
4585
|
};
|
|
4578
4586
|
export declare const spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4579
|
-
export declare const VERSION: string;
|
|
4580
4587
|
declare const rezo: RezoInstance;
|
|
4581
4588
|
|
|
4582
4589
|
export {
|
package/dist/platform/browser.js
CHANGED
|
@@ -5,7 +5,7 @@ import { RezoHeaders } from '../utils/headers.js';
|
|
|
5
5
|
import { RezoFormData } from '../utils/form-data.js';
|
|
6
6
|
import { RezoCookieJar, Cookie } from '../utils/cookies.js';
|
|
7
7
|
import { createDefaultHooks, mergeHooks } from '../core/hooks.js';
|
|
8
|
-
import
|
|
8
|
+
import { VERSION } from '../version.js';
|
|
9
9
|
|
|
10
10
|
export { Rezo };
|
|
11
11
|
export { RezoError };
|
|
@@ -23,7 +23,8 @@ export const isCancel = (error) => {
|
|
|
23
23
|
};
|
|
24
24
|
export const all = Promise.all.bind(Promise);
|
|
25
25
|
export const spread = (callback) => (array) => callback(...array);
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
export { VERSION };
|
|
27
28
|
setGlobalAdapter(executeRequest);
|
|
28
29
|
const rezo = createRezoInstance(executeRequest);
|
|
29
30
|
export default rezo;
|
package/dist/platform/bun.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const { RezoHeaders } = require('../utils/headers.cjs');
|
|
|
5
5
|
const { RezoFormData } = require('../utils/form-data.cjs');
|
|
6
6
|
const { RezoCookieJar, Cookie } = require('../utils/cookies.cjs');
|
|
7
7
|
const { createDefaultHooks, mergeHooks } = require('../core/hooks.cjs');
|
|
8
|
-
const
|
|
8
|
+
const { VERSION } = require('../version.cjs');
|
|
9
9
|
|
|
10
10
|
exports.Rezo = Rezo;
|
|
11
11
|
exports.RezoError = RezoError;
|
|
@@ -24,7 +24,8 @@ const isCancel = exports.isCancel = (error) => {
|
|
|
24
24
|
};
|
|
25
25
|
const all = exports.all = Promise.all.bind(Promise);
|
|
26
26
|
const spread = exports.spread = (callback) => (array) => callback(...array);
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
exports.VERSION = VERSION;
|
|
28
29
|
setGlobalAdapter(executeRequest);
|
|
29
30
|
const rezo = createRezoInstance(executeRequest);
|
|
30
31
|
|
package/dist/platform/bun.d.ts
CHANGED
|
@@ -4561,6 +4561,14 @@ export interface RezoInstance extends Rezo {
|
|
|
4561
4561
|
/** Spread array arguments to callback function (Axios compatibility) */
|
|
4562
4562
|
spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4563
4563
|
}
|
|
4564
|
+
/**
|
|
4565
|
+
* Package version and name constants
|
|
4566
|
+
* These are maintained here to avoid importing package.json,
|
|
4567
|
+
* which causes issues in Deno and other runtimes.
|
|
4568
|
+
*
|
|
4569
|
+
* IMPORTANT: Update these values when bumping package version.
|
|
4570
|
+
*/
|
|
4571
|
+
export declare const VERSION = "1.0.72";
|
|
4564
4572
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
4565
4573
|
export declare const Cancel: typeof RezoError;
|
|
4566
4574
|
export declare const CancelToken: {
|
|
@@ -4576,7 +4584,6 @@ export declare const all: {
|
|
|
4576
4584
|
}>;
|
|
4577
4585
|
};
|
|
4578
4586
|
export declare const spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4579
|
-
export declare const VERSION: string;
|
|
4580
4587
|
declare const rezo: RezoInstance;
|
|
4581
4588
|
|
|
4582
4589
|
export {
|
package/dist/platform/bun.js
CHANGED
|
@@ -5,7 +5,7 @@ import { RezoHeaders } from '../utils/headers.js';
|
|
|
5
5
|
import { RezoFormData } from '../utils/form-data.js';
|
|
6
6
|
import { RezoCookieJar, Cookie } from '../utils/cookies.js';
|
|
7
7
|
import { createDefaultHooks, mergeHooks } from '../core/hooks.js';
|
|
8
|
-
import
|
|
8
|
+
import { VERSION } from '../version.js';
|
|
9
9
|
|
|
10
10
|
export { Rezo };
|
|
11
11
|
export { RezoError };
|
|
@@ -23,7 +23,8 @@ export const isCancel = (error) => {
|
|
|
23
23
|
};
|
|
24
24
|
export const all = Promise.all.bind(Promise);
|
|
25
25
|
export const spread = (callback) => (array) => callback(...array);
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
export { VERSION };
|
|
27
28
|
setGlobalAdapter(executeRequest);
|
|
28
29
|
const rezo = createRezoInstance(executeRequest);
|
|
29
30
|
export default rezo;
|
package/dist/platform/deno.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const { RezoHeaders } = require('../utils/headers.cjs');
|
|
|
5
5
|
const { RezoFormData } = require('../utils/form-data.cjs');
|
|
6
6
|
const { RezoCookieJar, Cookie } = require('../utils/cookies.cjs');
|
|
7
7
|
const { createDefaultHooks, mergeHooks } = require('../core/hooks.cjs');
|
|
8
|
-
const
|
|
8
|
+
const { VERSION } = require('../version.cjs');
|
|
9
9
|
|
|
10
10
|
exports.Rezo = Rezo;
|
|
11
11
|
exports.RezoError = RezoError;
|
|
@@ -24,7 +24,8 @@ const isCancel = exports.isCancel = (error) => {
|
|
|
24
24
|
};
|
|
25
25
|
const all = exports.all = Promise.all.bind(Promise);
|
|
26
26
|
const spread = exports.spread = (callback) => (array) => callback(...array);
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
exports.VERSION = VERSION;
|
|
28
29
|
setGlobalAdapter(executeRequest);
|
|
29
30
|
const rezo = createRezoInstance(executeRequest);
|
|
30
31
|
|
package/dist/platform/deno.d.ts
CHANGED
|
@@ -4561,6 +4561,14 @@ export interface RezoInstance extends Rezo {
|
|
|
4561
4561
|
/** Spread array arguments to callback function (Axios compatibility) */
|
|
4562
4562
|
spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4563
4563
|
}
|
|
4564
|
+
/**
|
|
4565
|
+
* Package version and name constants
|
|
4566
|
+
* These are maintained here to avoid importing package.json,
|
|
4567
|
+
* which causes issues in Deno and other runtimes.
|
|
4568
|
+
*
|
|
4569
|
+
* IMPORTANT: Update these values when bumping package version.
|
|
4570
|
+
*/
|
|
4571
|
+
export declare const VERSION = "1.0.72";
|
|
4564
4572
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
4565
4573
|
export declare const Cancel: typeof RezoError;
|
|
4566
4574
|
export declare const CancelToken: {
|
|
@@ -4576,7 +4584,6 @@ export declare const all: {
|
|
|
4576
4584
|
}>;
|
|
4577
4585
|
};
|
|
4578
4586
|
export declare const spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4579
|
-
export declare const VERSION: string;
|
|
4580
4587
|
declare const rezo: RezoInstance;
|
|
4581
4588
|
|
|
4582
4589
|
export {
|
package/dist/platform/deno.js
CHANGED
|
@@ -5,7 +5,7 @@ import { RezoHeaders } from '../utils/headers.js';
|
|
|
5
5
|
import { RezoFormData } from '../utils/form-data.js';
|
|
6
6
|
import { RezoCookieJar, Cookie } from '../utils/cookies.js';
|
|
7
7
|
import { createDefaultHooks, mergeHooks } from '../core/hooks.js';
|
|
8
|
-
import
|
|
8
|
+
import { VERSION } from '../version.js';
|
|
9
9
|
|
|
10
10
|
export { Rezo };
|
|
11
11
|
export { RezoError };
|
|
@@ -23,7 +23,8 @@ export const isCancel = (error) => {
|
|
|
23
23
|
};
|
|
24
24
|
export const all = Promise.all.bind(Promise);
|
|
25
25
|
export const spread = (callback) => (array) => callback(...array);
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
export { VERSION };
|
|
27
28
|
setGlobalAdapter(executeRequest);
|
|
28
29
|
const rezo = createRezoInstance(executeRequest);
|
|
29
30
|
export default rezo;
|
package/dist/platform/node.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const { RezoHeaders } = require('../utils/headers.cjs');
|
|
|
5
5
|
const { RezoFormData } = require('../utils/form-data.cjs');
|
|
6
6
|
const { RezoCookieJar, Cookie } = require('../utils/cookies.cjs');
|
|
7
7
|
const { createDefaultHooks, mergeHooks } = require('../core/hooks.cjs');
|
|
8
|
-
const
|
|
8
|
+
const { VERSION } = require('../version.cjs');
|
|
9
9
|
|
|
10
10
|
exports.Rezo = Rezo;
|
|
11
11
|
exports.RezoError = RezoError;
|
|
@@ -24,7 +24,8 @@ const isCancel = exports.isCancel = (error) => {
|
|
|
24
24
|
};
|
|
25
25
|
const all = exports.all = Promise.all.bind(Promise);
|
|
26
26
|
const spread = exports.spread = (callback) => (array) => callback(...array);
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
exports.VERSION = VERSION;
|
|
28
29
|
setGlobalAdapter(executeRequest);
|
|
29
30
|
const rezo = createRezoInstance(executeRequest);
|
|
30
31
|
|
package/dist/platform/node.d.ts
CHANGED
|
@@ -4561,6 +4561,14 @@ export interface RezoInstance extends Rezo {
|
|
|
4561
4561
|
/** Spread array arguments to callback function (Axios compatibility) */
|
|
4562
4562
|
spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4563
4563
|
}
|
|
4564
|
+
/**
|
|
4565
|
+
* Package version and name constants
|
|
4566
|
+
* These are maintained here to avoid importing package.json,
|
|
4567
|
+
* which causes issues in Deno and other runtimes.
|
|
4568
|
+
*
|
|
4569
|
+
* IMPORTANT: Update these values when bumping package version.
|
|
4570
|
+
*/
|
|
4571
|
+
export declare const VERSION = "1.0.72";
|
|
4564
4572
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
4565
4573
|
export declare const Cancel: typeof RezoError;
|
|
4566
4574
|
export declare const CancelToken: {
|
|
@@ -4576,7 +4584,6 @@ export declare const all: {
|
|
|
4576
4584
|
}>;
|
|
4577
4585
|
};
|
|
4578
4586
|
export declare const spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4579
|
-
export declare const VERSION: string;
|
|
4580
4587
|
declare const rezo: RezoInstance;
|
|
4581
4588
|
|
|
4582
4589
|
export {
|
package/dist/platform/node.js
CHANGED
|
@@ -5,7 +5,7 @@ import { RezoHeaders } from '../utils/headers.js';
|
|
|
5
5
|
import { RezoFormData } from '../utils/form-data.js';
|
|
6
6
|
import { RezoCookieJar, Cookie } from '../utils/cookies.js';
|
|
7
7
|
import { createDefaultHooks, mergeHooks } from '../core/hooks.js';
|
|
8
|
-
import
|
|
8
|
+
import { VERSION } from '../version.js';
|
|
9
9
|
|
|
10
10
|
export { Rezo };
|
|
11
11
|
export { RezoError };
|
|
@@ -23,7 +23,8 @@ export const isCancel = (error) => {
|
|
|
23
23
|
};
|
|
24
24
|
export const all = Promise.all.bind(Promise);
|
|
25
25
|
export const spread = (callback) => (array) => callback(...array);
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
export { VERSION };
|
|
27
28
|
setGlobalAdapter(executeRequest);
|
|
28
29
|
const rezo = createRezoInstance(executeRequest);
|
|
29
30
|
export default rezo;
|
|
@@ -5,7 +5,7 @@ const { RezoHeaders } = require('../utils/headers.cjs');
|
|
|
5
5
|
const { RezoFormData } = require('../utils/form-data.cjs');
|
|
6
6
|
const { RezoCookieJar, Cookie } = require('../utils/cookies.cjs');
|
|
7
7
|
const { createDefaultHooks, mergeHooks } = require('../core/hooks.cjs');
|
|
8
|
-
const
|
|
8
|
+
const { VERSION } = require('../version.cjs');
|
|
9
9
|
|
|
10
10
|
exports.Rezo = Rezo;
|
|
11
11
|
exports.RezoError = RezoError;
|
|
@@ -24,7 +24,8 @@ const isCancel = exports.isCancel = (error) => {
|
|
|
24
24
|
};
|
|
25
25
|
const all = exports.all = Promise.all.bind(Promise);
|
|
26
26
|
const spread = exports.spread = (callback) => (array) => callback(...array);
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
exports.VERSION = VERSION;
|
|
28
29
|
setGlobalAdapter(executeRequest);
|
|
29
30
|
const rezo = createRezoInstance(executeRequest);
|
|
30
31
|
|
|
@@ -4561,6 +4561,14 @@ export interface RezoInstance extends Rezo {
|
|
|
4561
4561
|
/** Spread array arguments to callback function (Axios compatibility) */
|
|
4562
4562
|
spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4563
4563
|
}
|
|
4564
|
+
/**
|
|
4565
|
+
* Package version and name constants
|
|
4566
|
+
* These are maintained here to avoid importing package.json,
|
|
4567
|
+
* which causes issues in Deno and other runtimes.
|
|
4568
|
+
*
|
|
4569
|
+
* IMPORTANT: Update these values when bumping package version.
|
|
4570
|
+
*/
|
|
4571
|
+
export declare const VERSION = "1.0.72";
|
|
4564
4572
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
4565
4573
|
export declare const Cancel: typeof RezoError;
|
|
4566
4574
|
export declare const CancelToken: {
|
|
@@ -4576,7 +4584,6 @@ export declare const all: {
|
|
|
4576
4584
|
}>;
|
|
4577
4585
|
};
|
|
4578
4586
|
export declare const spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4579
|
-
export declare const VERSION: string;
|
|
4580
4587
|
declare const rezo: RezoInstance;
|
|
4581
4588
|
|
|
4582
4589
|
export {
|
|
@@ -5,7 +5,7 @@ import { RezoHeaders } from '../utils/headers.js';
|
|
|
5
5
|
import { RezoFormData } from '../utils/form-data.js';
|
|
6
6
|
import { RezoCookieJar, Cookie } from '../utils/cookies.js';
|
|
7
7
|
import { createDefaultHooks, mergeHooks } from '../core/hooks.js';
|
|
8
|
-
import
|
|
8
|
+
import { VERSION } from '../version.js';
|
|
9
9
|
|
|
10
10
|
export { Rezo };
|
|
11
11
|
export { RezoError };
|
|
@@ -23,7 +23,8 @@ export const isCancel = (error) => {
|
|
|
23
23
|
};
|
|
24
24
|
export const all = Promise.all.bind(Promise);
|
|
25
25
|
export const spread = (callback) => (array) => callback(...array);
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
export { VERSION };
|
|
27
28
|
setGlobalAdapter(executeRequest);
|
|
28
29
|
const rezo = createRezoInstance(executeRequest);
|
|
29
30
|
export default rezo;
|
package/dist/platform/worker.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const { RezoHeaders } = require('../utils/headers.cjs');
|
|
|
5
5
|
const { RezoFormData } = require('../utils/form-data.cjs');
|
|
6
6
|
const { RezoCookieJar, Cookie } = require('../utils/cookies.cjs');
|
|
7
7
|
const { createDefaultHooks, mergeHooks } = require('../core/hooks.cjs');
|
|
8
|
-
const
|
|
8
|
+
const { VERSION } = require('../version.cjs');
|
|
9
9
|
|
|
10
10
|
exports.Rezo = Rezo;
|
|
11
11
|
exports.RezoError = RezoError;
|
|
@@ -24,7 +24,8 @@ const isCancel = exports.isCancel = (error) => {
|
|
|
24
24
|
};
|
|
25
25
|
const all = exports.all = Promise.all.bind(Promise);
|
|
26
26
|
const spread = exports.spread = (callback) => (array) => callback(...array);
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
exports.VERSION = VERSION;
|
|
28
29
|
setGlobalAdapter(executeRequest);
|
|
29
30
|
const rezo = createRezoInstance(executeRequest);
|
|
30
31
|
|
|
@@ -4561,6 +4561,14 @@ export interface RezoInstance extends Rezo {
|
|
|
4561
4561
|
/** Spread array arguments to callback function (Axios compatibility) */
|
|
4562
4562
|
spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4563
4563
|
}
|
|
4564
|
+
/**
|
|
4565
|
+
* Package version and name constants
|
|
4566
|
+
* These are maintained here to avoid importing package.json,
|
|
4567
|
+
* which causes issues in Deno and other runtimes.
|
|
4568
|
+
*
|
|
4569
|
+
* IMPORTANT: Update these values when bumping package version.
|
|
4570
|
+
*/
|
|
4571
|
+
export declare const VERSION = "1.0.72";
|
|
4564
4572
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
4565
4573
|
export declare const Cancel: typeof RezoError;
|
|
4566
4574
|
export declare const CancelToken: {
|
|
@@ -4576,7 +4584,6 @@ export declare const all: {
|
|
|
4576
4584
|
}>;
|
|
4577
4585
|
};
|
|
4578
4586
|
export declare const spread: <T extends unknown[], R>(callback: (...args: T) => R) => (array: T) => R;
|
|
4579
|
-
export declare const VERSION: string;
|
|
4580
4587
|
declare const rezo: RezoInstance;
|
|
4581
4588
|
|
|
4582
4589
|
export {
|
package/dist/platform/worker.js
CHANGED
|
@@ -5,7 +5,7 @@ import { RezoHeaders } from '../utils/headers.js';
|
|
|
5
5
|
import { RezoFormData } from '../utils/form-data.js';
|
|
6
6
|
import { RezoCookieJar, Cookie } from '../utils/cookies.js';
|
|
7
7
|
import { createDefaultHooks, mergeHooks } from '../core/hooks.js';
|
|
8
|
-
import
|
|
8
|
+
import { VERSION } from '../version.js';
|
|
9
9
|
|
|
10
10
|
export { Rezo };
|
|
11
11
|
export { RezoError };
|
|
@@ -23,7 +23,8 @@ export const isCancel = (error) => {
|
|
|
23
23
|
};
|
|
24
24
|
export const all = Promise.all.bind(Promise);
|
|
25
25
|
export const spread = (callback) => (array) => callback(...array);
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
export { VERSION };
|
|
27
28
|
setGlobalAdapter(executeRequest);
|
|
28
29
|
const rezo = createRezoInstance(executeRequest);
|
|
29
30
|
export default rezo;
|
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_dhkq71 = require('./manager.cjs');
|
|
4
|
+
exports.ProxyManager = _mod_dhkq71.ProxyManager;;
|
|
5
|
+
const _mod_sjocqd = require('./parse.cjs');
|
|
6
|
+
exports.parseProxyString = _mod_sjocqd.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_k08mox = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_k08mox.RezoQueue;;
|
|
3
|
+
const _mod_5a8nxs = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_5a8nxs.HttpQueue;
|
|
5
|
+
exports.extractDomain = _mod_5a8nxs.extractDomain;;
|
|
6
|
+
const _mod_52jpz8 = require('./types.cjs');
|
|
7
|
+
exports.Priority = _mod_52jpz8.Priority;
|
|
8
|
+
exports.HttpMethodPriority = _mod_52jpz8.HttpMethodPriority;;
|
|
@@ -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_m90fpv = require('./event-emitter.cjs');
|
|
2
|
+
exports.UniversalEventEmitter = _mod_m90fpv.UniversalEventEmitter;;
|
|
3
|
+
const _mod_5fo6sb = require('./stream.cjs');
|
|
4
|
+
exports.UniversalStreamResponse = _mod_5fo6sb.UniversalStreamResponse;
|
|
5
|
+
exports.StreamResponse = _mod_5fo6sb.StreamResponse;;
|
|
6
|
+
const _mod_6q1yrr = require('./download.cjs');
|
|
7
|
+
exports.UniversalDownloadResponse = _mod_6q1yrr.UniversalDownloadResponse;
|
|
8
|
+
exports.DownloadResponse = _mod_6q1yrr.DownloadResponse;;
|
|
9
|
+
const _mod_6z1knl = require('./upload.cjs');
|
|
10
|
+
exports.UniversalUploadResponse = _mod_6z1knl.UniversalUploadResponse;
|
|
11
|
+
exports.UploadResponse = _mod_6z1knl.UploadResponse;;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const zlib = require("node:zlib");
|
|
2
2
|
|
|
3
3
|
class CompressionUtil {
|
|
4
4
|
static decompressStream(response, contentEncoding, config) {
|
|
@@ -12,17 +12,17 @@ class CompressionUtil {
|
|
|
12
12
|
switch (encoding) {
|
|
13
13
|
case "gzip":
|
|
14
14
|
case "x-gzip":
|
|
15
|
-
return response.pipe(createGunzip());
|
|
15
|
+
return response.pipe(zlib.createGunzip());
|
|
16
16
|
case "deflate":
|
|
17
17
|
case "x-deflate":
|
|
18
|
-
return response.pipe(createInflate());
|
|
18
|
+
return response.pipe(zlib.createInflate());
|
|
19
19
|
case "gzip-raw":
|
|
20
|
-
return response.pipe(createInflate({ windowBits: 15 }));
|
|
20
|
+
return response.pipe(zlib.createInflate({ windowBits: 15 }));
|
|
21
21
|
case "br":
|
|
22
22
|
case "brotli":
|
|
23
|
-
return response.pipe(createBrotliDecompress());
|
|
23
|
+
return response.pipe(zlib.createBrotliDecompress());
|
|
24
24
|
case "zstd":
|
|
25
|
-
return response.pipe(createZstdDecompress());
|
|
25
|
+
return response.pipe(zlib.createZstdDecompress());
|
|
26
26
|
default:
|
|
27
27
|
return response;
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as zlib from "node:zlib";
|
|
2
2
|
|
|
3
3
|
export class CompressionUtil {
|
|
4
4
|
static decompressStream(response, contentEncoding, config) {
|
|
@@ -12,17 +12,17 @@ export class CompressionUtil {
|
|
|
12
12
|
switch (encoding) {
|
|
13
13
|
case "gzip":
|
|
14
14
|
case "x-gzip":
|
|
15
|
-
return response.pipe(createGunzip());
|
|
15
|
+
return response.pipe(zlib.createGunzip());
|
|
16
16
|
case "deflate":
|
|
17
17
|
case "x-deflate":
|
|
18
|
-
return response.pipe(createInflate());
|
|
18
|
+
return response.pipe(zlib.createInflate());
|
|
19
19
|
case "gzip-raw":
|
|
20
|
-
return response.pipe(createInflate({ windowBits: 15 }));
|
|
20
|
+
return response.pipe(zlib.createInflate({ windowBits: 15 }));
|
|
21
21
|
case "br":
|
|
22
22
|
case "brotli":
|
|
23
|
-
return response.pipe(createBrotliDecompress());
|
|
23
|
+
return response.pipe(zlib.createBrotliDecompress());
|
|
24
24
|
case "zstd":
|
|
25
|
-
return response.pipe(createZstdDecompress());
|
|
25
|
+
return response.pipe(zlib.createZstdDecompress());
|
|
26
26
|
default:
|
|
27
27
|
return response;
|
|
28
28
|
}
|
package/dist/version.cjs
ADDED
package/dist/version.js
ADDED