@stacksjs/mobile 0.75.528 → 0.75.535

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/dist/bridge.d.ts CHANGED
@@ -24,7 +24,7 @@ export declare function bridgePending(): boolean;
24
24
  * Not whenNativeMobile(), which answers `true` as soon as the phone shell is
25
25
  * recognisable, before the bridge exists and before anything can be asked of it.
26
26
  */
27
- export declare function whenBridgeReady(timeoutMs?: unknown): Promise<boolean>;
27
+ export declare function whenBridgeReady(timeoutMs?: number): Promise<boolean>;
28
28
  /**
29
29
  * The bridge function at `path` (`'dialog.confirm'`), or null when this host
30
30
  * has none. Synchronous: no waiting for a bridge still on its way.
@@ -3,20 +3,6 @@ import type { Breadcrumb, BugHQConfig } from '@bughq/sdk';
3
3
  /** Whether a breadcrumb is worth keeping: a failed request, or anything not a request. */
4
4
  export declare function keepBreadcrumb(crumb: Breadcrumb): boolean;
5
5
  declare let client: BugHQClient | null;
6
- /**
7
- * @defaultValue
8
- * ```ts
9
- * {
10
- * start: (options?: CrashReportingOptions) => BugHQClient | null,
11
- * setUser: (id: string | number | null | undefined) => Promise<void>,
12
- * capture: (error: unknown, extra?: Record<string, unknown>) => void,
13
- * addBreadcrumb: (crumb: Breadcrumb) => void,
14
- * flush: () => Promise<void>,
15
- * client: () => BugHQClient | null,
16
- * stop: () => void
17
- * }
18
- * ```
19
- */
20
6
  export declare const crashReporting: {
21
7
  /**
22
8
  * Start reporting this page's errors. Inside the app no key is needed: the
package/dist/index.d.ts CHANGED
@@ -146,7 +146,7 @@ declare function bridgePending(): boolean;
146
146
  * Not whenNativeMobile(), which answers `true` as soon as the phone shell is
147
147
  * recognisable, before the bridge exists and before anything can be asked of it.
148
148
  */
149
- declare function whenBridgeReady(timeoutMs?: unknown): Promise<boolean>;
149
+ declare function whenBridgeReady(timeoutMs?: number): Promise<boolean>;
150
150
  /**
151
151
  * The bridge function at `path` (`'dialog.confirm'`), or null when this host
152
152
  * has none. Synchronous: no waiting for a bridge still on its way.
@@ -258,20 +258,6 @@ declare interface SegmentScrubOptions {
258
258
  /** Whether a breadcrumb is worth keeping: a failed request, or anything not a request. */
259
259
  declare function keepBreadcrumb(crumb: Breadcrumb): boolean;
260
260
  declare let client: BugHQClient | null;
261
- /**
262
- * @defaultValue
263
- * ```ts
264
- * {
265
- * start: (options?: CrashReportingOptions) => BugHQClient | null,
266
- * setUser: (id: string | number | null | undefined) => Promise<void>,
267
- * capture: (error: unknown, extra?: Record<string, unknown>) => void,
268
- * addBreadcrumb: (crumb: Breadcrumb) => void,
269
- * flush: () => Promise<void>,
270
- * client: () => BugHQClient | null,
271
- * stop: () => void
272
- * }
273
- * ```
274
- */
275
261
  declare const crashReporting: {
276
262
  /**
277
263
  * Start reporting this page's errors. Inside the app no key is needed: the
@@ -536,7 +522,7 @@ declare const ROUTE_GAP_S: 30;
536
522
  /** Past this many fixes (an hour at one a second), a whole-recording read is spaced out. */
537
523
  declare const ROUTE_FULL_READ_FIXES: 3600;
538
524
  /** The longest a whole-recording read is spaced to, ms. */
539
- declare const ROUTE_FULL_READ_MAX_MS: unknown;
525
+ declare const ROUTE_FULL_READ_MAX_MS: 30000;
540
526
  /** A fix as Craft records it. */
541
527
  declare interface RouteFix extends Location {
542
528
  altitudeAccuracy?: number
package/dist/route.d.ts CHANGED
@@ -47,7 +47,7 @@ export declare const ROUTE_GAP_S: 30;
47
47
  /** Past this many fixes (an hour at one a second), a whole-recording read is spaced out. */
48
48
  export declare const ROUTE_FULL_READ_FIXES: 3600;
49
49
  /** The longest a whole-recording read is spaced to, ms. */
50
- export declare const ROUTE_FULL_READ_MAX_MS: unknown;
50
+ export declare const ROUTE_FULL_READ_MAX_MS: 30000;
51
51
  /** A fix as Craft records it. */
52
52
  export declare interface RouteFix extends Location {
53
53
  altitudeAccuracy?: number
package/dist/testing.d.ts CHANGED
@@ -128,7 +128,7 @@ declare function bridgePending(): boolean;
128
128
  * Not whenNativeMobile(), which answers `true` as soon as the phone shell is
129
129
  * recognisable, before the bridge exists and before anything can be asked of it.
130
130
  */
131
- declare function whenBridgeReady(timeoutMs?: unknown): Promise<boolean>;
131
+ declare function whenBridgeReady(timeoutMs?: number): Promise<boolean>;
132
132
  /**
133
133
  * The bridge function at `path` (`'dialog.confirm'`), or null when this host
134
134
  * has none. Synchronous: no waiting for a bridge still on its way.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/mobile",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.528",
5
+ "version": "0.75.535",
6
6
  "description": "Craft-powered native mobile runtime for Stacks and STX applications",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -39,11 +39,11 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@bughq/sdk": "^0.3.0",
42
- "@stacksjs/types": "0.75.528",
43
- "craft-native": ">=0.0.443"
42
+ "@stacksjs/types": "0.75.535",
43
+ "craft-native": ">=0.0.491"
44
44
  },
45
45
  "devDependencies": {
46
- "@stacksjs/build": "0.75.528",
46
+ "@stacksjs/build": "0.75.535",
47
47
  "better-dx": "^0.2.24"
48
48
  }
49
49
  }