fix(sdk): restore native ESM imports and action exports
This commit is contained in:
33 files changed
+482
-81
No files matched your search
+12
-10
@@ -1,7 +1,9 @@
|
||||
export { SnowLumaApiClient } from './client/api-client';
|
||||
export { createHttpClient, SnowLumaHttpClient } from './client/http-client';
|
||||
export type { SnowLumaHttpClientOptions } from './client/http-client';
|
||||
export { createWebSocketClient, SnowLumaWebSocketClient } from './client/websocket-client';
|
||||
export { SNOWLUMA_ACTIONS, isSnowLumaAction } from './actions.js';
|
||||
export type { SnowLumaKnownAction } from './actions.js';
|
||||
export { SnowLumaApiClient } from './client/api-client.js';
|
||||
export { createHttpClient, SnowLumaHttpClient } from './client/http-client.js';
|
||||
export type { SnowLumaHttpClientOptions } from './client/http-client.js';
|
||||
export { createWebSocketClient, SnowLumaWebSocketClient } from './client/websocket-client.js';
|
||||
export {
|
||||
createSnowLumaApiError,
|
||||
SnowLumaAbortError,
|
||||
@@ -12,7 +14,7 @@ export {
|
||||
SnowLumaParseError,
|
||||
SnowLumaTimeoutError,
|
||||
SnowLumaTransportError,
|
||||
} from './errors';
|
||||
} from './errors.js';
|
||||
export {
|
||||
createEventContext,
|
||||
isBotStatusEvent,
|
||||
@@ -25,7 +27,7 @@ export {
|
||||
matchCommand,
|
||||
noticeType,
|
||||
requestType,
|
||||
} from './events/index';
|
||||
} from './events/index.js';
|
||||
export {
|
||||
at,
|
||||
atAll,
|
||||
@@ -55,7 +57,7 @@ export {
|
||||
toCQString,
|
||||
video,
|
||||
xml,
|
||||
} from './messages/index';
|
||||
} from './messages/index.js';
|
||||
|
||||
export type {
|
||||
ReconnectOptions,
|
||||
@@ -63,7 +65,7 @@ export type {
|
||||
SnowLumaWebSocketEvents,
|
||||
WebSocketCloseInfo,
|
||||
WebSocketConstructor,
|
||||
} from './client/websocket-client';
|
||||
} from './client/websocket-client.js';
|
||||
|
||||
export type {
|
||||
CommandHandler,
|
||||
@@ -76,6 +78,6 @@ export type {
|
||||
MaybePromise,
|
||||
RequestDecisionOptions,
|
||||
SnowLumaEventContext,
|
||||
} from './events/index';
|
||||
} from './events/index.js';
|
||||
|
||||
export type * from './types/index';
|
||||
export type * from './types/index.js';
|
||||
Reference in new issue
Block a user