rezo 1.0.86 → 1.0.87
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 +7 -4
- package/dist/adapters/entries/fetch.d.ts +7 -4
- package/dist/adapters/entries/http.d.ts +7 -4
- package/dist/adapters/entries/http2.d.ts +7 -4
- package/dist/adapters/entries/react-native.d.ts +7 -4
- package/dist/adapters/entries/xhr.d.ts +7 -4
- package/dist/adapters/index.cjs +6 -6
- package/dist/cache/index.cjs +9 -9
- package/dist/crawler/index.cjs +42 -42
- package/dist/crawler/plugin/index.cjs +1 -1
- package/dist/crawler.d.ts +6 -3
- package/dist/entries/crawler.cjs +6 -6
- package/dist/index.cjs +31 -31
- package/dist/index.d.ts +7 -4
- package/dist/internal/agents/index.cjs +14 -14
- package/dist/platform/browser.d.ts +7 -4
- package/dist/platform/bun.d.ts +7 -4
- package/dist/platform/deno.d.ts +7 -4
- package/dist/platform/node.d.ts +7 -4
- package/dist/platform/react-native.d.ts +7 -4
- package/dist/platform/worker.d.ts +7 -4
- package/dist/proxy/index.cjs +4 -4
- package/dist/queue/index.cjs +9 -9
- package/dist/responses/universal/index.cjs +11 -11
- package/dist/utils/form-data.cjs +16 -7
- package/dist/utils/form-data.js +16 -7
- package/dist/version.cjs +1 -1
- package/dist/version.js +1 -1
- package/dist/wget/index.cjs +51 -51
- package/dist/wget/index.d.ts +6 -3
- package/package.json +1 -1
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
/**
|
|
5065
5068
|
* cURL Options Configuration
|
|
5066
5069
|
*
|
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5065
5068
|
export declare const Cancel: typeof RezoError;
|
|
5066
5069
|
export declare const CancelToken: {
|
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
/**
|
|
5065
5068
|
* Type guard to check if an error is a RezoError instance.
|
|
5066
5069
|
*/
|
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5065
5068
|
export declare const Cancel: typeof RezoError;
|
|
5066
5069
|
export declare const CancelToken: {
|
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5065
5068
|
export declare const Cancel: typeof RezoError;
|
|
5066
5069
|
export declare const CancelToken: {
|
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5065
5068
|
export declare const Cancel: typeof RezoError;
|
|
5066
5069
|
export declare const CancelToken: {
|
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_lnjmrl = require('./picker.cjs');
|
|
2
|
+
exports.detectRuntime = _mod_lnjmrl.detectRuntime;
|
|
3
|
+
exports.getAdapterCapabilities = _mod_lnjmrl.getAdapterCapabilities;
|
|
4
|
+
exports.buildAdapterContext = _mod_lnjmrl.buildAdapterContext;
|
|
5
|
+
exports.getAvailableAdapters = _mod_lnjmrl.getAvailableAdapters;
|
|
6
|
+
exports.selectAdapter = _mod_lnjmrl.selectAdapter;;
|
package/dist/cache/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.LRUCache =
|
|
3
|
-
const
|
|
4
|
-
exports.DNSCache =
|
|
5
|
-
exports.getGlobalDNSCache =
|
|
6
|
-
exports.resetGlobalDNSCache =
|
|
7
|
-
const
|
|
8
|
-
exports.ResponseCache =
|
|
9
|
-
exports.normalizeResponseCacheConfig =
|
|
1
|
+
const _mod_yxyjd1 = require('./lru-cache.cjs');
|
|
2
|
+
exports.LRUCache = _mod_yxyjd1.LRUCache;;
|
|
3
|
+
const _mod_mjqq7m = require('./dns-cache.cjs');
|
|
4
|
+
exports.DNSCache = _mod_mjqq7m.DNSCache;
|
|
5
|
+
exports.getGlobalDNSCache = _mod_mjqq7m.getGlobalDNSCache;
|
|
6
|
+
exports.resetGlobalDNSCache = _mod_mjqq7m.resetGlobalDNSCache;;
|
|
7
|
+
const _mod_kivn6x = require('./response-cache.cjs');
|
|
8
|
+
exports.ResponseCache = _mod_kivn6x.ResponseCache;
|
|
9
|
+
exports.normalizeResponseCacheConfig = _mod_kivn6x.normalizeResponseCacheConfig;;
|
package/dist/crawler/index.cjs
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Crawler =
|
|
3
|
-
const
|
|
4
|
-
exports.CrawlerOptions =
|
|
5
|
-
const
|
|
6
|
-
exports.RobotsTxt =
|
|
7
|
-
const
|
|
8
|
-
exports.FileCacher =
|
|
9
|
-
const
|
|
10
|
-
exports.UrlStore =
|
|
11
|
-
const
|
|
12
|
-
exports.NavigationHistory =
|
|
13
|
-
const
|
|
14
|
-
exports.Oxylabs =
|
|
15
|
-
const
|
|
16
|
-
exports.OXYLABS_BROWSER_TYPES =
|
|
17
|
-
exports.OXYLABS_COMMON_LOCALES =
|
|
18
|
-
exports.OXYLABS_COMMON_GEO_LOCATIONS =
|
|
19
|
-
exports.OXYLABS_US_STATES =
|
|
20
|
-
exports.OXYLABS_EUROPEAN_COUNTRIES =
|
|
21
|
-
exports.OXYLABS_ASIAN_COUNTRIES =
|
|
22
|
-
exports.getRandomOxylabsBrowserType =
|
|
23
|
-
exports.getRandomOxylabsLocale =
|
|
24
|
-
exports.getRandomOxylabsGeoLocation =
|
|
25
|
-
const
|
|
26
|
-
exports.isRestrictedDomain =
|
|
27
|
-
const
|
|
28
|
-
exports.Decodo =
|
|
29
|
-
const
|
|
30
|
-
exports.DECODO_DEVICE_TYPES =
|
|
31
|
-
exports.DECODO_HEADLESS_MODES =
|
|
32
|
-
exports.DECODO_COMMON_LOCALES =
|
|
33
|
-
exports.DECODO_COMMON_COUNTRIES =
|
|
34
|
-
exports.DECODO_EUROPEAN_COUNTRIES =
|
|
35
|
-
exports.DECODO_ASIAN_COUNTRIES =
|
|
36
|
-
exports.DECODO_US_STATES =
|
|
37
|
-
exports.DECODO_COMMON_CITIES =
|
|
38
|
-
exports.getRandomDecodoDeviceType =
|
|
39
|
-
exports.getRandomDecodoLocale =
|
|
40
|
-
exports.getRandomDecodoCountry =
|
|
41
|
-
exports.getRandomDecodoCity =
|
|
42
|
-
exports.generateDecodoSessionId =
|
|
1
|
+
const _mod_jp0y3o = require('./crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_jp0y3o.Crawler;;
|
|
3
|
+
const _mod_wuds61 = require('./crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_wuds61.CrawlerOptions;;
|
|
5
|
+
const _mod_uyr8tn = require('./plugin/robots-txt.cjs');
|
|
6
|
+
exports.RobotsTxt = _mod_uyr8tn.RobotsTxt;;
|
|
7
|
+
const _mod_6ekwro = require('./plugin/file-cacher.cjs');
|
|
8
|
+
exports.FileCacher = _mod_6ekwro.FileCacher;;
|
|
9
|
+
const _mod_oid3vg = require('./plugin/url-store.cjs');
|
|
10
|
+
exports.UrlStore = _mod_oid3vg.UrlStore;;
|
|
11
|
+
const _mod_4ztn27 = require('./plugin/navigation-history.cjs');
|
|
12
|
+
exports.NavigationHistory = _mod_4ztn27.NavigationHistory;;
|
|
13
|
+
const _mod_xqhnix = require('./addon/oxylabs/index.cjs');
|
|
14
|
+
exports.Oxylabs = _mod_xqhnix.Oxylabs;;
|
|
15
|
+
const _mod_vbrdt8 = require('./addon/oxylabs/options.cjs');
|
|
16
|
+
exports.OXYLABS_BROWSER_TYPES = _mod_vbrdt8.OXYLABS_BROWSER_TYPES;
|
|
17
|
+
exports.OXYLABS_COMMON_LOCALES = _mod_vbrdt8.OXYLABS_COMMON_LOCALES;
|
|
18
|
+
exports.OXYLABS_COMMON_GEO_LOCATIONS = _mod_vbrdt8.OXYLABS_COMMON_GEO_LOCATIONS;
|
|
19
|
+
exports.OXYLABS_US_STATES = _mod_vbrdt8.OXYLABS_US_STATES;
|
|
20
|
+
exports.OXYLABS_EUROPEAN_COUNTRIES = _mod_vbrdt8.OXYLABS_EUROPEAN_COUNTRIES;
|
|
21
|
+
exports.OXYLABS_ASIAN_COUNTRIES = _mod_vbrdt8.OXYLABS_ASIAN_COUNTRIES;
|
|
22
|
+
exports.getRandomOxylabsBrowserType = _mod_vbrdt8.getRandomBrowserType;
|
|
23
|
+
exports.getRandomOxylabsLocale = _mod_vbrdt8.getRandomLocale;
|
|
24
|
+
exports.getRandomOxylabsGeoLocation = _mod_vbrdt8.getRandomGeoLocation;;
|
|
25
|
+
const _mod_tsxq0y = require('./scraper.cjs');
|
|
26
|
+
exports.isRestrictedDomain = _mod_tsxq0y.isRestrictedDomain;;
|
|
27
|
+
const _mod_mkayne = require('./addon/decodo/index.cjs');
|
|
28
|
+
exports.Decodo = _mod_mkayne.Decodo;;
|
|
29
|
+
const _mod_d7gd2a = require('./addon/decodo/options.cjs');
|
|
30
|
+
exports.DECODO_DEVICE_TYPES = _mod_d7gd2a.DECODO_DEVICE_TYPES;
|
|
31
|
+
exports.DECODO_HEADLESS_MODES = _mod_d7gd2a.DECODO_HEADLESS_MODES;
|
|
32
|
+
exports.DECODO_COMMON_LOCALES = _mod_d7gd2a.DECODO_COMMON_LOCALES;
|
|
33
|
+
exports.DECODO_COMMON_COUNTRIES = _mod_d7gd2a.DECODO_COMMON_COUNTRIES;
|
|
34
|
+
exports.DECODO_EUROPEAN_COUNTRIES = _mod_d7gd2a.DECODO_EUROPEAN_COUNTRIES;
|
|
35
|
+
exports.DECODO_ASIAN_COUNTRIES = _mod_d7gd2a.DECODO_ASIAN_COUNTRIES;
|
|
36
|
+
exports.DECODO_US_STATES = _mod_d7gd2a.DECODO_US_STATES;
|
|
37
|
+
exports.DECODO_COMMON_CITIES = _mod_d7gd2a.DECODO_COMMON_CITIES;
|
|
38
|
+
exports.getRandomDecodoDeviceType = _mod_d7gd2a.getRandomDeviceType;
|
|
39
|
+
exports.getRandomDecodoLocale = _mod_d7gd2a.getRandomLocale;
|
|
40
|
+
exports.getRandomDecodoCountry = _mod_d7gd2a.getRandomCountry;
|
|
41
|
+
exports.getRandomDecodoCity = _mod_d7gd2a.getRandomCity;
|
|
42
|
+
exports.generateDecodoSessionId = _mod_d7gd2a.generateSessionId;;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=require("./file-cacher.cjs");exports.FileCacher=e.FileCacher;var r=require("./url-store.cjs");exports.UrlStore=r.UrlStore;var o=require("./result-stream.cjs");exports.ResultStream=o.ResultStream;var t=require("./memory-monitor.cjs");exports.MemoryMonitor=t.MemoryMonitor;var a=require("./health-metrics.cjs");exports.HealthMetrics=a.HealthMetrics;var
|
|
1
|
+
var e=require("./file-cacher.cjs");exports.FileCacher=e.FileCacher;var r=require("./url-store.cjs");exports.UrlStore=r.UrlStore;var o=require("./result-stream.cjs");exports.ResultStream=o.ResultStream;var t=require("./memory-monitor.cjs");exports.MemoryMonitor=t.MemoryMonitor;var a=require("./health-metrics.cjs");exports.HealthMetrics=a.HealthMetrics;var m=require("./capped-map.cjs");exports.CappedMap=m.CappedMap;var c=require("./capped-array.cjs");exports.CappedArray=c.CappedArray;
|
package/dist/crawler.d.ts
CHANGED
|
@@ -551,10 +551,13 @@ declare class RezoFormData {
|
|
|
551
551
|
*/
|
|
552
552
|
toUint8Array(): Promise<Uint8Array>;
|
|
553
553
|
/**
|
|
554
|
-
* Create RezoFormData from object
|
|
555
|
-
*
|
|
554
|
+
* Create RezoFormData from object.
|
|
555
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
556
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
556
557
|
*/
|
|
557
|
-
static fromObject(obj: Record<string, unknown
|
|
558
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
559
|
+
nestedKeys?: boolean;
|
|
560
|
+
}): RezoFormData;
|
|
558
561
|
/**
|
|
559
562
|
* Create RezoFormData from native FormData
|
|
560
563
|
*/
|
package/dist/entries/crawler.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.Crawler =
|
|
3
|
-
const
|
|
4
|
-
exports.CrawlerOptions =
|
|
5
|
-
const
|
|
6
|
-
exports.isRestrictedDomain =
|
|
1
|
+
const _mod_q0izw2 = require('../crawler/crawler.cjs');
|
|
2
|
+
exports.Crawler = _mod_q0izw2.Crawler;;
|
|
3
|
+
const _mod_jm14tg = require('../crawler/crawler-options.cjs');
|
|
4
|
+
exports.CrawlerOptions = _mod_jm14tg.CrawlerOptions;;
|
|
5
|
+
const _mod_5ljis4 = require('../crawler/scraper.cjs');
|
|
6
|
+
exports.isRestrictedDomain = _mod_5ljis4.isRestrictedDomain;;
|
package/dist/index.cjs
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
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.toCurl =
|
|
17
|
-
exports.fromCurl =
|
|
18
|
-
const
|
|
19
|
-
exports.createDefaultHooks =
|
|
20
|
-
exports.mergeHooks =
|
|
21
|
-
const
|
|
22
|
-
exports.ProxyManager =
|
|
23
|
-
const
|
|
24
|
-
exports.RezoQueue =
|
|
25
|
-
exports.HttpQueue =
|
|
26
|
-
exports.RezoHttpQueue =
|
|
27
|
-
exports.Priority =
|
|
28
|
-
exports.HttpMethodPriority =
|
|
1
|
+
const _mod_h6tlc9 = require('./core/rezo.cjs');
|
|
2
|
+
exports.Rezo = _mod_h6tlc9.Rezo;
|
|
3
|
+
exports.createRezoInstance = _mod_h6tlc9.createRezoInstance;
|
|
4
|
+
exports.createDefaultInstance = _mod_h6tlc9.createDefaultInstance;;
|
|
5
|
+
const _mod_nuc5zt = require('./errors/rezo-error.cjs');
|
|
6
|
+
exports.RezoError = _mod_nuc5zt.RezoError;
|
|
7
|
+
exports.RezoErrorCode = _mod_nuc5zt.RezoErrorCode;;
|
|
8
|
+
const _mod_61pwfg = require('./utils/headers.cjs');
|
|
9
|
+
exports.RezoHeaders = _mod_61pwfg.RezoHeaders;;
|
|
10
|
+
const _mod_71hpot = require('./utils/form-data.cjs');
|
|
11
|
+
exports.RezoFormData = _mod_71hpot.RezoFormData;;
|
|
12
|
+
const _mod_vcb5yw = require('./utils/cookies.cjs');
|
|
13
|
+
exports.RezoCookieJar = _mod_vcb5yw.RezoCookieJar;
|
|
14
|
+
exports.Cookie = _mod_vcb5yw.Cookie;;
|
|
15
|
+
const _mod_wfw4c8 = require('./utils/curl.cjs');
|
|
16
|
+
exports.toCurl = _mod_wfw4c8.toCurl;
|
|
17
|
+
exports.fromCurl = _mod_wfw4c8.fromCurl;;
|
|
18
|
+
const _mod_ptq2ft = require('./core/hooks.cjs');
|
|
19
|
+
exports.createDefaultHooks = _mod_ptq2ft.createDefaultHooks;
|
|
20
|
+
exports.mergeHooks = _mod_ptq2ft.mergeHooks;;
|
|
21
|
+
const _mod_taedhh = require('./proxy/manager.cjs');
|
|
22
|
+
exports.ProxyManager = _mod_taedhh.ProxyManager;;
|
|
23
|
+
const _mod_ad4u7m = require('./queue/index.cjs');
|
|
24
|
+
exports.RezoQueue = _mod_ad4u7m.RezoQueue;
|
|
25
|
+
exports.HttpQueue = _mod_ad4u7m.HttpQueue;
|
|
26
|
+
exports.RezoHttpQueue = _mod_ad4u7m.RezoHttpQueue;
|
|
27
|
+
exports.Priority = _mod_ad4u7m.Priority;
|
|
28
|
+
exports.HttpMethodPriority = _mod_ad4u7m.HttpMethodPriority;;
|
|
29
29
|
const { RezoError } = require('./errors/rezo-error.cjs');
|
|
30
30
|
const isRezoError = exports.isRezoError = RezoError.isRezoError;
|
|
31
31
|
const Cancel = exports.Cancel = RezoError;
|
|
@@ -35,9 +35,9 @@ const isCancel = exports.isCancel = (error) => {
|
|
|
35
35
|
};
|
|
36
36
|
const all = exports.all = Promise.all.bind(Promise);
|
|
37
37
|
const spread = exports.spread = (callback) => (array) => callback(...array);
|
|
38
|
-
const
|
|
39
|
-
exports.VERSION =
|
|
40
|
-
exports.PACKAGE_NAME =
|
|
38
|
+
const _mod_rioui9 = require('./version.cjs');
|
|
39
|
+
exports.VERSION = _mod_rioui9.VERSION;
|
|
40
|
+
exports.PACKAGE_NAME = _mod_rioui9.PACKAGE_NAME;;
|
|
41
41
|
const { executeRequest } = require('./adapters/http.cjs');
|
|
42
42
|
const { setGlobalAdapter, createRezoInstance } = require('./core/rezo.cjs');
|
|
43
43
|
setGlobalAdapter(executeRequest);
|
package/dist/index.d.ts
CHANGED
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5189,7 +5192,7 @@ export declare function createDefaultInstance(config?: RezoDefaultOptions): Rezo
|
|
|
5189
5192
|
*
|
|
5190
5193
|
* IMPORTANT: Update these values when bumping package version.
|
|
5191
5194
|
*/
|
|
5192
|
-
export declare const VERSION = "1.0.
|
|
5195
|
+
export declare const VERSION = "1.0.87";
|
|
5193
5196
|
export declare const PACKAGE_NAME = "rezo";
|
|
5194
5197
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5195
5198
|
export declare const Cancel: typeof RezoError;
|
|
@@ -1,14 +1,14 @@
|
|
|
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 =
|
|
11
|
-
const
|
|
12
|
-
exports.bunHttp =
|
|
13
|
-
exports.isBunRuntime =
|
|
14
|
-
exports.isBunSocksRequest =
|
|
1
|
+
const _mod_82lmdz = require('./base.cjs');
|
|
2
|
+
exports.Agent = _mod_82lmdz.Agent;;
|
|
3
|
+
const _mod_a8m5lr = require('./http-proxy.cjs');
|
|
4
|
+
exports.HttpProxyAgent = _mod_a8m5lr.HttpProxyAgent;;
|
|
5
|
+
const _mod_3fqrdx = require('./https-proxy.cjs');
|
|
6
|
+
exports.HttpsProxyAgent = _mod_3fqrdx.HttpsProxyAgent;;
|
|
7
|
+
const _mod_4lxyh4 = require('./socks-proxy.cjs');
|
|
8
|
+
exports.SocksProxyAgent = _mod_4lxyh4.SocksProxyAgent;;
|
|
9
|
+
const _mod_ilx3g9 = require('./socks-client.cjs');
|
|
10
|
+
exports.SocksClient = _mod_ilx3g9.SocksClient;;
|
|
11
|
+
const _mod_tfvoyf = require('./bun-socks-http.cjs');
|
|
12
|
+
exports.bunHttp = _mod_tfvoyf.bunHttp;
|
|
13
|
+
exports.isBunRuntime = _mod_tfvoyf.isBunRuntime;
|
|
14
|
+
exports.isBunSocksRequest = _mod_tfvoyf.isBunSocksRequest;;
|
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5065
5068
|
export declare const Cancel: typeof RezoError;
|
|
5066
5069
|
export declare const CancelToken: {
|
package/dist/platform/bun.d.ts
CHANGED
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5065
5068
|
export declare const Cancel: typeof RezoError;
|
|
5066
5069
|
export declare const CancelToken: {
|
package/dist/platform/deno.d.ts
CHANGED
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5065
5068
|
export declare const Cancel: typeof RezoError;
|
|
5066
5069
|
export declare const CancelToken: {
|
package/dist/platform/node.d.ts
CHANGED
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5065
5068
|
export declare const Cancel: typeof RezoError;
|
|
5066
5069
|
export declare const CancelToken: {
|
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5065
5068
|
export declare const Cancel: typeof RezoError;
|
|
5066
5069
|
export declare const CancelToken: {
|
|
@@ -423,10 +423,13 @@ export declare class RezoFormData {
|
|
|
423
423
|
*/
|
|
424
424
|
toUint8Array(): Promise<Uint8Array>;
|
|
425
425
|
/**
|
|
426
|
-
* Create RezoFormData from object
|
|
427
|
-
*
|
|
426
|
+
* Create RezoFormData from object.
|
|
427
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
428
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
428
429
|
*/
|
|
429
|
-
static fromObject(obj: Record<string, unknown
|
|
430
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
431
|
+
nestedKeys?: boolean;
|
|
432
|
+
}): RezoFormData;
|
|
430
433
|
/**
|
|
431
434
|
* Create RezoFormData from native FormData
|
|
432
435
|
*/
|
|
@@ -5060,7 +5063,7 @@ export interface RezoInstance extends Rezo, RezoCallable {
|
|
|
5060
5063
|
*
|
|
5061
5064
|
* IMPORTANT: Update these values when bumping package version.
|
|
5062
5065
|
*/
|
|
5063
|
-
export declare const VERSION = "1.0.
|
|
5066
|
+
export declare const VERSION = "1.0.87";
|
|
5064
5067
|
export declare const isRezoError: typeof RezoError.isRezoError;
|
|
5065
5068
|
export declare const Cancel: typeof RezoError;
|
|
5066
5069
|
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_gyrrrw = require('./manager.cjs');
|
|
4
|
+
exports.ProxyManager = _mod_gyrrrw.ProxyManager;;
|
|
5
|
+
const _mod_gv35rs = require('./parse.cjs');
|
|
6
|
+
exports.parseProxyString = _mod_gv35rs.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,9 +1,9 @@
|
|
|
1
|
-
const
|
|
2
|
-
exports.RezoQueue =
|
|
3
|
-
const
|
|
4
|
-
exports.HttpQueue =
|
|
5
|
-
exports.RezoHttpQueue =
|
|
6
|
-
exports.extractDomain =
|
|
7
|
-
const
|
|
8
|
-
exports.Priority =
|
|
9
|
-
exports.HttpMethodPriority =
|
|
1
|
+
const _mod_a5wg8o = require('./queue.cjs');
|
|
2
|
+
exports.RezoQueue = _mod_a5wg8o.RezoQueue;;
|
|
3
|
+
const _mod_3uzjnx = require('./http-queue.cjs');
|
|
4
|
+
exports.HttpQueue = _mod_3uzjnx.HttpQueue;
|
|
5
|
+
exports.RezoHttpQueue = _mod_3uzjnx.HttpQueue;
|
|
6
|
+
exports.extractDomain = _mod_3uzjnx.extractDomain;;
|
|
7
|
+
const _mod_3s9hif = require('./types.cjs');
|
|
8
|
+
exports.Priority = _mod_3s9hif.Priority;
|
|
9
|
+
exports.HttpMethodPriority = _mod_3s9hif.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_ci1eid = require('./event-emitter.cjs');
|
|
2
|
+
exports.UniversalEventEmitter = _mod_ci1eid.UniversalEventEmitter;;
|
|
3
|
+
const _mod_kzbboc = require('./stream.cjs');
|
|
4
|
+
exports.UniversalStreamResponse = _mod_kzbboc.UniversalStreamResponse;
|
|
5
|
+
exports.StreamResponse = _mod_kzbboc.StreamResponse;;
|
|
6
|
+
const _mod_usmv75 = require('./download.cjs');
|
|
7
|
+
exports.UniversalDownloadResponse = _mod_usmv75.UniversalDownloadResponse;
|
|
8
|
+
exports.DownloadResponse = _mod_usmv75.DownloadResponse;;
|
|
9
|
+
const _mod_gp36b6 = require('./upload.cjs');
|
|
10
|
+
exports.UniversalUploadResponse = _mod_gp36b6.UniversalUploadResponse;
|
|
11
|
+
exports.UploadResponse = _mod_gp36b6.UploadResponse;;
|
package/dist/utils/form-data.cjs
CHANGED
|
@@ -144,9 +144,10 @@ class RezoFormData {
|
|
|
144
144
|
await this._buildResponse();
|
|
145
145
|
return new Uint8Array(this._cachedBuffer);
|
|
146
146
|
}
|
|
147
|
-
static fromObject(obj) {
|
|
147
|
+
static fromObject(obj, options) {
|
|
148
148
|
const fd = new RezoFormData;
|
|
149
|
-
const
|
|
149
|
+
const useNestedKeys = options?.nestedKeys || false;
|
|
150
|
+
const appendValue = (key, value, isNested) => {
|
|
150
151
|
if (value === null || value === undefined) {
|
|
151
152
|
return;
|
|
152
153
|
}
|
|
@@ -176,8 +177,12 @@ class RezoFormData {
|
|
|
176
177
|
return;
|
|
177
178
|
}
|
|
178
179
|
if (Array.isArray(value)) {
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
if (useNestedKeys) {
|
|
181
|
+
for (let i = 0;i < value.length; i++) {
|
|
182
|
+
appendValue(`${key}[${i}]`, value[i], true);
|
|
183
|
+
}
|
|
184
|
+
} else {
|
|
185
|
+
fd.append(key, JSON.stringify(value));
|
|
181
186
|
}
|
|
182
187
|
return;
|
|
183
188
|
}
|
|
@@ -197,15 +202,19 @@ class RezoFormData {
|
|
|
197
202
|
}
|
|
198
203
|
return;
|
|
199
204
|
}
|
|
200
|
-
|
|
201
|
-
|
|
205
|
+
if (useNestedKeys) {
|
|
206
|
+
for (const [subKey, subValue] of Object.entries(value)) {
|
|
207
|
+
appendValue(`${key}[${subKey}]`, subValue, true);
|
|
208
|
+
}
|
|
209
|
+
} else {
|
|
210
|
+
fd.append(key, JSON.stringify(value));
|
|
202
211
|
}
|
|
203
212
|
return;
|
|
204
213
|
}
|
|
205
214
|
fd.append(key, String(value));
|
|
206
215
|
};
|
|
207
216
|
for (const [key, value] of Object.entries(obj)) {
|
|
208
|
-
appendValue(key, value);
|
|
217
|
+
appendValue(key, value, false);
|
|
209
218
|
}
|
|
210
219
|
return fd;
|
|
211
220
|
}
|
package/dist/utils/form-data.js
CHANGED
|
@@ -144,9 +144,10 @@ export class RezoFormData {
|
|
|
144
144
|
await this._buildResponse();
|
|
145
145
|
return new Uint8Array(this._cachedBuffer);
|
|
146
146
|
}
|
|
147
|
-
static fromObject(obj) {
|
|
147
|
+
static fromObject(obj, options) {
|
|
148
148
|
const fd = new RezoFormData;
|
|
149
|
-
const
|
|
149
|
+
const useNestedKeys = options?.nestedKeys || false;
|
|
150
|
+
const appendValue = (key, value, isNested) => {
|
|
150
151
|
if (value === null || value === undefined) {
|
|
151
152
|
return;
|
|
152
153
|
}
|
|
@@ -176,8 +177,12 @@ export class RezoFormData {
|
|
|
176
177
|
return;
|
|
177
178
|
}
|
|
178
179
|
if (Array.isArray(value)) {
|
|
179
|
-
|
|
180
|
-
|
|
180
|
+
if (useNestedKeys) {
|
|
181
|
+
for (let i = 0;i < value.length; i++) {
|
|
182
|
+
appendValue(`${key}[${i}]`, value[i], true);
|
|
183
|
+
}
|
|
184
|
+
} else {
|
|
185
|
+
fd.append(key, JSON.stringify(value));
|
|
181
186
|
}
|
|
182
187
|
return;
|
|
183
188
|
}
|
|
@@ -197,15 +202,19 @@ export class RezoFormData {
|
|
|
197
202
|
}
|
|
198
203
|
return;
|
|
199
204
|
}
|
|
200
|
-
|
|
201
|
-
|
|
205
|
+
if (useNestedKeys) {
|
|
206
|
+
for (const [subKey, subValue] of Object.entries(value)) {
|
|
207
|
+
appendValue(`${key}[${subKey}]`, subValue, true);
|
|
208
|
+
}
|
|
209
|
+
} else {
|
|
210
|
+
fd.append(key, JSON.stringify(value));
|
|
202
211
|
}
|
|
203
212
|
return;
|
|
204
213
|
}
|
|
205
214
|
fd.append(key, String(value));
|
|
206
215
|
};
|
|
207
216
|
for (const [key, value] of Object.entries(obj)) {
|
|
208
|
-
appendValue(key, value);
|
|
217
|
+
appendValue(key, value, false);
|
|
209
218
|
}
|
|
210
219
|
return fd;
|
|
211
220
|
}
|
package/dist/version.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const VERSION = exports.VERSION = "1.0.
|
|
1
|
+
const VERSION = exports.VERSION = "1.0.87";
|
|
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.87";
|
|
2
2
|
export const PACKAGE_NAME = "rezo";
|
package/dist/wget/index.cjs
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
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.StyleExtractor =
|
|
21
|
-
const
|
|
22
|
-
exports.Downloader =
|
|
23
|
-
const
|
|
24
|
-
exports.AssetOrganizer =
|
|
25
|
-
exports.DEFAULT_ASSET_FOLDERS =
|
|
26
|
-
const
|
|
27
|
-
exports.DownloadCache =
|
|
28
|
-
const
|
|
29
|
-
exports.EXECUTABLE_EXTENSIONS =
|
|
30
|
-
exports.ARCHIVE_EXTENSIONS =
|
|
31
|
-
exports.DOCUMENT_EXTENSIONS =
|
|
32
|
-
exports.IMAGE_EXTENSIONS =
|
|
33
|
-
exports.VIDEO_EXTENSIONS =
|
|
34
|
-
exports.AUDIO_EXTENSIONS =
|
|
35
|
-
exports.FONT_EXTENSIONS =
|
|
36
|
-
exports.WEB_ASSET_EXTENSIONS =
|
|
37
|
-
exports.DATA_EXTENSIONS =
|
|
38
|
-
exports.EXECUTABLE_MIME_TYPES =
|
|
39
|
-
exports.ARCHIVE_MIME_TYPES =
|
|
40
|
-
exports.DOCUMENT_MIME_TYPES =
|
|
41
|
-
exports.IMAGE_MIME_TYPES =
|
|
42
|
-
exports.VIDEO_MIME_TYPES =
|
|
43
|
-
exports.AUDIO_MIME_TYPES =
|
|
44
|
-
exports.FONT_MIME_TYPES =
|
|
45
|
-
exports.WEB_ASSET_MIME_TYPES =
|
|
46
|
-
exports.DATA_MIME_TYPES =
|
|
47
|
-
exports.SAFE_WEB_PRESET =
|
|
48
|
-
exports.DOCUMENTS_ONLY_PRESET =
|
|
49
|
-
exports.NO_MEDIA_PRESET =
|
|
50
|
-
exports.MINIMAL_MIRROR_PRESET =
|
|
51
|
-
exports.TEXT_ONLY_PRESET =
|
|
1
|
+
const _mod_un5ym7 = require('./types.cjs');
|
|
2
|
+
exports.WgetError = _mod_un5ym7.WgetError;;
|
|
3
|
+
const _mod_c2i6o6 = require('./asset-extractor.cjs');
|
|
4
|
+
exports.AssetExtractor = _mod_c2i6o6.AssetExtractor;;
|
|
5
|
+
const _mod_1t2zzq = require('./url-filter.cjs');
|
|
6
|
+
exports.UrlFilter = _mod_1t2zzq.UrlFilter;;
|
|
7
|
+
const _mod_x26gzn = require('./file-writer.cjs');
|
|
8
|
+
exports.FileWriter = _mod_x26gzn.FileWriter;;
|
|
9
|
+
const _mod_65zdc7 = require('./robots.cjs');
|
|
10
|
+
exports.RobotsHandler = _mod_65zdc7.RobotsHandler;;
|
|
11
|
+
const _mod_3fxwlf = require('./resume.cjs');
|
|
12
|
+
exports.ResumeHandler = _mod_3fxwlf.ResumeHandler;;
|
|
13
|
+
const _mod_v2os3g = require('./progress.cjs');
|
|
14
|
+
exports.ProgressReporter = _mod_v2os3g.ProgressReporter;
|
|
15
|
+
exports.ProgressTracker = _mod_v2os3g.ProgressTracker;
|
|
16
|
+
exports.parseSize = _mod_v2os3g.parseSize;;
|
|
17
|
+
const _mod_wcn4y0 = require('./link-converter.cjs');
|
|
18
|
+
exports.LinkConverter = _mod_wcn4y0.LinkConverter;;
|
|
19
|
+
const _mod_eq97ul = require('./style-extractor.cjs');
|
|
20
|
+
exports.StyleExtractor = _mod_eq97ul.StyleExtractor;;
|
|
21
|
+
const _mod_ak72dr = require('./downloader.cjs');
|
|
22
|
+
exports.Downloader = _mod_ak72dr.Downloader;;
|
|
23
|
+
const _mod_k1uk6x = require('./asset-organizer.cjs');
|
|
24
|
+
exports.AssetOrganizer = _mod_k1uk6x.AssetOrganizer;
|
|
25
|
+
exports.DEFAULT_ASSET_FOLDERS = _mod_k1uk6x.DEFAULT_ASSET_FOLDERS;;
|
|
26
|
+
const _mod_g5aq7o = require('./download-cache.cjs');
|
|
27
|
+
exports.DownloadCache = _mod_g5aq7o.DownloadCache;;
|
|
28
|
+
const _mod_q9l6i9 = require('./filter-lists.cjs');
|
|
29
|
+
exports.EXECUTABLE_EXTENSIONS = _mod_q9l6i9.EXECUTABLE_EXTENSIONS;
|
|
30
|
+
exports.ARCHIVE_EXTENSIONS = _mod_q9l6i9.ARCHIVE_EXTENSIONS;
|
|
31
|
+
exports.DOCUMENT_EXTENSIONS = _mod_q9l6i9.DOCUMENT_EXTENSIONS;
|
|
32
|
+
exports.IMAGE_EXTENSIONS = _mod_q9l6i9.IMAGE_EXTENSIONS;
|
|
33
|
+
exports.VIDEO_EXTENSIONS = _mod_q9l6i9.VIDEO_EXTENSIONS;
|
|
34
|
+
exports.AUDIO_EXTENSIONS = _mod_q9l6i9.AUDIO_EXTENSIONS;
|
|
35
|
+
exports.FONT_EXTENSIONS = _mod_q9l6i9.FONT_EXTENSIONS;
|
|
36
|
+
exports.WEB_ASSET_EXTENSIONS = _mod_q9l6i9.WEB_ASSET_EXTENSIONS;
|
|
37
|
+
exports.DATA_EXTENSIONS = _mod_q9l6i9.DATA_EXTENSIONS;
|
|
38
|
+
exports.EXECUTABLE_MIME_TYPES = _mod_q9l6i9.EXECUTABLE_MIME_TYPES;
|
|
39
|
+
exports.ARCHIVE_MIME_TYPES = _mod_q9l6i9.ARCHIVE_MIME_TYPES;
|
|
40
|
+
exports.DOCUMENT_MIME_TYPES = _mod_q9l6i9.DOCUMENT_MIME_TYPES;
|
|
41
|
+
exports.IMAGE_MIME_TYPES = _mod_q9l6i9.IMAGE_MIME_TYPES;
|
|
42
|
+
exports.VIDEO_MIME_TYPES = _mod_q9l6i9.VIDEO_MIME_TYPES;
|
|
43
|
+
exports.AUDIO_MIME_TYPES = _mod_q9l6i9.AUDIO_MIME_TYPES;
|
|
44
|
+
exports.FONT_MIME_TYPES = _mod_q9l6i9.FONT_MIME_TYPES;
|
|
45
|
+
exports.WEB_ASSET_MIME_TYPES = _mod_q9l6i9.WEB_ASSET_MIME_TYPES;
|
|
46
|
+
exports.DATA_MIME_TYPES = _mod_q9l6i9.DATA_MIME_TYPES;
|
|
47
|
+
exports.SAFE_WEB_PRESET = _mod_q9l6i9.SAFE_WEB_PRESET;
|
|
48
|
+
exports.DOCUMENTS_ONLY_PRESET = _mod_q9l6i9.DOCUMENTS_ONLY_PRESET;
|
|
49
|
+
exports.NO_MEDIA_PRESET = _mod_q9l6i9.NO_MEDIA_PRESET;
|
|
50
|
+
exports.MINIMAL_MIRROR_PRESET = _mod_q9l6i9.MINIMAL_MIRROR_PRESET;
|
|
51
|
+
exports.TEXT_ONLY_PRESET = _mod_q9l6i9.TEXT_ONLY_PRESET;;
|
|
52
52
|
const { Downloader } = require('./downloader.cjs');
|
|
53
53
|
const rezo = require('../index.cjs');
|
|
54
54
|
const { promises: fs } = require("node:fs");
|
package/dist/wget/index.d.ts
CHANGED
|
@@ -3336,10 +3336,13 @@ declare class RezoFormData {
|
|
|
3336
3336
|
*/
|
|
3337
3337
|
toUint8Array(): Promise<Uint8Array>;
|
|
3338
3338
|
/**
|
|
3339
|
-
* Create RezoFormData from object
|
|
3340
|
-
*
|
|
3339
|
+
* Create RezoFormData from object.
|
|
3340
|
+
* By default, nested objects/arrays are JSON-encoded as string values.
|
|
3341
|
+
* Pass `nestedKeys: true` to flatten with bracket notation instead.
|
|
3341
3342
|
*/
|
|
3342
|
-
static fromObject(obj: Record<string, unknown
|
|
3343
|
+
static fromObject(obj: Record<string, unknown>, options?: {
|
|
3344
|
+
nestedKeys?: boolean;
|
|
3345
|
+
}): RezoFormData;
|
|
3343
3346
|
/**
|
|
3344
3347
|
* Create RezoFormData from native FormData
|
|
3345
3348
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rezo",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.87",
|
|
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",
|