@luckystack/core 0.7.1 → 0.7.3
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/CHANGELOG.md +41 -0
- package/CLAUDE.md +2 -0
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -0
- package/dist/index.d.ts +4 -5
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -1
- package/dist/{pageRouteValidation-sJJCX-YV.d.ts → pageRouteValidation-CWkPqPW3.d.ts} +3 -1
- package/package.json +1 -1
|
@@ -2,6 +2,8 @@ import { Socket } from 'socket.io-client';
|
|
|
2
2
|
|
|
3
3
|
declare function sleep(ms: number): Promise<void>;
|
|
4
4
|
|
|
5
|
+
declare function tryCatchSync<T, P = void>(func: (values: P) => T, params?: P): [Error | null, T | null];
|
|
6
|
+
|
|
5
7
|
interface NotifyParam {
|
|
6
8
|
key: string;
|
|
7
9
|
value: string | number | boolean;
|
|
@@ -267,4 +269,4 @@ interface PagePathValidationResult {
|
|
|
267
269
|
*/
|
|
268
270
|
declare const validatePagePath: (srcRelativePath: string, rules?: PageRouteRules) => PagePathValidationResult;
|
|
269
271
|
|
|
270
|
-
export {
|
|
272
|
+
export { INVALID_ERROR_RESPONSE_CODE as $, type ApiMethodMap as A, normalizeErrorResponseCore as B, notify as C, DEFAULT_PAGE_ROUTE_RULES as D, parseServiceRouteName as E, registerApiMethodMap as F, registerLogger as G, type HttpMethodLiteral as H, registerNotifier as I, removeApiQueueItem as J, removeApiQueueItemsByKey as K, type Logger as L, removeSyncQueueItem as M, type Notifier as N, setSocket as O, type PagePathValidationResult as P, sleep as Q, socket as R, type SOCKETSTATUS as S, socketEventNames as T, type statusContent as U, tryCatchSync as V, validatePagePath as W, waitForSocket as X, type ErrorParam as Y, type ErrorResponseInput as Z, type NormalizedErrorResponse as _, type LoggerContext as a, type QueueDropReason as a0, type ServiceRouteParseError as a1, type ServiceRouteParseResult as a2, type ServiceRouteParseSuccess as a3, type TransportRouteParseError as a4, type TransportRouteParseResult as a5, type TransportRouteParseSuccess as a6, createDevLogger as a7, defaultHttpStatusForResponse as a8, isErrorParamArray as a9, isLoggerRegistered as aa, parseTransportRouteName as ab, resetLoggerForTests as ac, type NotifyInput as b, type NotifyParam as c, type PageRouteRules as d, buildApiResponseEventName as e, buildApiStreamEventName as f, buildGetJoinedRoomsResponseEventName as g, buildJoinRoomResponseEventName as h, buildLeaveRoomResponseEventName as i, buildSyncProgressEventName as j, buildSyncResponseEventName as k, clearCsrfToken as l, enqueueApiRequest as m, enqueueSyncRequest as n, flushApiQueue as o, flushSyncQueue as p, getApiQueueSize as q, getCsrfToken as r, getLogger as s, getNotifier as t, getRegisteredApiMethod as u, getSyncQueueSize as v, httpFetch as w, incrementResponseIndex as x, isApiMethodMapRegistered as y, isOnline as z };
|