chore(js-sdk): Compatible with nodenext (#1667)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { Client, Config, RequestOptions } from "./types"
|
||||
import type { Client, Config, RequestOptions } from "./types.js"
|
||||
import {
|
||||
buildUrl,
|
||||
createConfig,
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
mergeConfigs,
|
||||
mergeHeaders,
|
||||
setAuthParams,
|
||||
} from "./utils"
|
||||
} from "./utils.js"
|
||||
|
||||
type ReqInit = Omit<RequestInit, "body" | "headers"> & {
|
||||
body?: any
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
export type { Auth } from "../core/auth"
|
||||
export type { QuerySerializerOptions } from "../core/bodySerializer"
|
||||
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer } from "../core/bodySerializer"
|
||||
export { buildClientParams } from "../core/params"
|
||||
export { createClient } from "./client"
|
||||
export type { Auth } from "../core/auth.js"
|
||||
export type { QuerySerializerOptions } from "../core/bodySerializer.js"
|
||||
export { formDataBodySerializer, jsonBodySerializer, urlSearchParamsBodySerializer } from "../core/bodySerializer.js"
|
||||
export { buildClientParams } from "../core/params.js"
|
||||
export { createClient } from "./client.js"
|
||||
export type {
|
||||
Client,
|
||||
ClientOptions,
|
||||
@@ -14,5 +14,5 @@ export type {
|
||||
RequestResult,
|
||||
ResponseStyle,
|
||||
TDataShape,
|
||||
} from "./types"
|
||||
export { createConfig, mergeHeaders } from "./utils"
|
||||
} from "./types.js"
|
||||
export { createConfig, mergeHeaders } from "./utils.js"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { Auth } from "../core/auth"
|
||||
import type { Client as CoreClient, Config as CoreConfig } from "../core/types"
|
||||
import type { Middleware } from "./utils"
|
||||
import type { Auth } from "../core/auth.js"
|
||||
import type { Client as CoreClient, Config as CoreConfig } from "../core/types.js"
|
||||
import type { Middleware } from "./utils.js"
|
||||
|
||||
export type ResponseStyle = "data" | "fields"
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { getAuthToken } from "../core/auth"
|
||||
import type { QuerySerializer, QuerySerializerOptions } from "../core/bodySerializer"
|
||||
import { jsonBodySerializer } from "../core/bodySerializer"
|
||||
import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam } from "../core/pathSerializer"
|
||||
import type { Client, ClientOptions, Config, RequestOptions } from "./types"
|
||||
import { getAuthToken } from "../core/auth.js"
|
||||
import type { QuerySerializer, QuerySerializerOptions } from "../core/bodySerializer.js"
|
||||
import { jsonBodySerializer } from "../core/bodySerializer.js"
|
||||
import { serializeArrayParam, serializeObjectParam, serializePrimitiveParam } from "../core/pathSerializer.js"
|
||||
import type { Client, ClientOptions, Config, RequestOptions } from "./types.js"
|
||||
|
||||
interface PathSerializer {
|
||||
path: Record<string, unknown>
|
||||
|
||||
Reference in New Issue
Block a user