@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.
@@ -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 { type QueueDropReason 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, validatePagePath as V, waitForSocket as W, type ErrorParam as X, type ErrorResponseInput as Y, type NormalizedErrorResponse as Z, INVALID_ERROR_RESPONSE_CODE as _, type LoggerContext as a, type ServiceRouteParseError as a0, type ServiceRouteParseResult as a1, type ServiceRouteParseSuccess as a2, type TransportRouteParseError as a3, type TransportRouteParseResult as a4, type TransportRouteParseSuccess as a5, createDevLogger as a6, defaultHttpStatusForResponse as a7, isErrorParamArray as a8, isLoggerRegistered as a9, parseTransportRouteName as aa, resetLoggerForTests as ab, 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 };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luckystack/core",
3
- "version": "0.7.1",
3
+ "version": "0.7.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public",