@glassly/jspolyfill 0.4.3-dev.1270 → 0.4.3-dev.1273

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glassly/jspolyfill",
3
- "version": "0.4.3-dev.1270",
3
+ "version": "0.4.3-dev.1273",
4
4
  "description": "JSRuntime polyfill bundle — installed into each per-miniapp JSContext (iOS-JSC, Android-QuickJS) at spawn time. Provides browser-like globals (console, timers, fetch, WebSocket, localStorage, crypto.subtle) over a single __dispatch native bridge, plus the __deliver / signalReady plumbing the host runtime relies on.",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/startup.ts CHANGED
@@ -433,7 +433,8 @@ declare const __nativeClearTimer: (token: number) => void
433
433
  }
434
434
  if (env.kind === "ws-event") {
435
435
  const wsHook = (g as Record<string, unknown>).__deliverWebSocketEvent as
436
- ((sid: string, type: string, payload: Record<string, unknown>) => void) | undefined
436
+ | ((sid: string, type: string, payload: Record<string, unknown>) => void)
437
+ | undefined
437
438
  const sid = (env as {sid?: string}).sid
438
439
  const wsType = (env as {wsType?: string}).wsType
439
440
  if (typeof wsHook === "function" && typeof sid === "string" && typeof wsType === "string") {
package/src/types.ts CHANGED
@@ -35,7 +35,8 @@ export interface DispatchError {
35
35
  }
36
36
 
37
37
  export type DispatchResponse =
38
- {reqId: string; ok: true; result: unknown} | {reqId: string; ok: false; error: DispatchError}
38
+ | {reqId: string; ok: true; result: unknown}
39
+ | {reqId: string; ok: false; error: DispatchError}
39
40
 
40
41
  export type DeliverEnvelope =
41
42
  | {kind: "init"; sessionId: string}