create-request 0.0.1-beta.21 → 0.0.1-beta.23

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.
@@ -1,8 +1,8 @@
1
- import { type HttpMethod, type RedirectMode, type RequestMode, type RequestPriority, CredentialsPolicy } from "./enums";
2
- import type { RequestOptions, RetryCallback, CookiesRecord, CookieOptions } from "./types";
3
- import { type ResponsePromise } from "./ResponseWrapper";
4
- import type { CacheOptions } from "./types/cache";
5
- import { CacheManager } from "./utils/CacheManager";
1
+ import { type HttpMethod, type RedirectMode, type RequestMode, type RequestPriority, CredentialsPolicy } from "./enums.js";
2
+ import type { RequestOptions, RetryCallback, CookiesRecord, CookieOptions } from "./types.js";
3
+ import { type ResponsePromise } from "./ResponseWrapper.js";
4
+ import type { CacheOptions } from "./types/cache.js";
5
+ import { CacheManager } from "./utils/CacheManager.js";
6
6
  /**
7
7
  * Base class with common functionality for all request types
8
8
  * Provides the core request building and execution capabilities.
@@ -1,5 +1,5 @@
1
- import { BaseRequest } from "./BaseRequest";
2
- import type { Body } from "./types";
1
+ import { BaseRequest } from "./BaseRequest.js";
2
+ import type { Body } from "./types.js";
3
3
  /**
4
4
  * Base class for requests that can have a body (POST, PUT, PATCH)
5
5
  */
@@ -1,15 +1,15 @@
1
- import { get, put, head, post, patch, del, options } from "./requestFactories";
2
- import { Config } from "./utils/Config";
3
- export { HttpMethod, RequestPriority, CredentialsPolicy, RequestMode, RedirectMode, CacheMode, SameSitePolicy, ReferrerPolicy } from "./enums";
4
- export type { RetryCallback, RequestOptions, CookiesRecord, CookieOptions } from "./types";
5
- export type { StorageProvider } from "./utils/StorageProvider";
6
- export type { CacheOptions } from "./types/cache";
7
- export { ResponseWrapper } from "./ResponseWrapper";
8
- export { CookieUtils } from "./utils/CookieUtils";
9
- export { RequestError } from "./RequestError";
10
- export { GetRequest, PostRequest, PutRequest, DeleteRequest, PatchRequest, HeadRequest, OptionsRequest } from "./requestMethods";
11
- export { createMemoryStorage, createLocalStorageStorage, createSessionStorageStorage } from "./utils/CacheStorage";
12
- export { CacheManager } from "./utils/CacheManager";
1
+ import { get, put, head, post, patch, del, options } from "./requestFactories.js";
2
+ import { Config } from "./utils/Config.js";
3
+ export { HttpMethod, RequestPriority, CredentialsPolicy, RequestMode, RedirectMode, CacheMode, SameSitePolicy, ReferrerPolicy } from "./enums.js";
4
+ export type { RetryCallback, RequestOptions, CookiesRecord, CookieOptions } from "./types.js";
5
+ export type { StorageProvider } from "./utils/StorageProvider.js";
6
+ export type { CacheOptions } from "./types/cache.js";
7
+ export { ResponseWrapper } from "./ResponseWrapper.js";
8
+ export { CookieUtils } from "./utils/CookieUtils.js";
9
+ export { RequestError } from "./RequestError.js";
10
+ export { GetRequest, PostRequest, PutRequest, DeleteRequest, PatchRequest, HeadRequest, OptionsRequest } from "./requestMethods.js";
11
+ export { createMemoryStorage, createLocalStorageStorage, createSessionStorageStorage } from "./utils/CacheStorage.js";
12
+ export { CacheManager } from "./utils/CacheManager.js";
13
13
  /**
14
14
  * Main API object for creating HTTP requests
15
15
  * Provides factory methods for all HTTP methods and access to global configuration.