add modern version of request construction
This commit is contained in:
22
ts/index.ts
22
ts/index.ts
@@ -1,8 +1,16 @@
|
||||
export { request, safeGet } from './smartrequest.request.js';
|
||||
export type { IExtendedIncomingMessage } from './smartrequest.request.js';
|
||||
export type { ISmartRequestOptions } from './smartrequest.interfaces.js';
|
||||
// Legacy API exports (for backward compatibility)
|
||||
export { request, safeGet } from './legacy/smartrequest.request.js';
|
||||
export type { IExtendedIncomingMessage } from './legacy/smartrequest.request.js';
|
||||
export type { ISmartRequestOptions } from './legacy/smartrequest.interfaces.js';
|
||||
|
||||
export * from './smartrequest.jsonrest.js';
|
||||
export * from './smartrequest.binaryrest.js';
|
||||
export * from './smartrequest.formdata.js';
|
||||
export * from './smartrequest.stream.js';
|
||||
export * from './legacy/smartrequest.jsonrest.js';
|
||||
export * from './legacy/smartrequest.binaryrest.js';
|
||||
export * from './legacy/smartrequest.formdata.js';
|
||||
export * from './legacy/smartrequest.stream.js';
|
||||
|
||||
// Modern API exports
|
||||
export * from './modern/index.js';
|
||||
import { SmartRequestClient } from './modern/smartrequestclient.js';
|
||||
|
||||
// Default export for easier importing
|
||||
export default SmartRequestClient;
|
Reference in New Issue
Block a user