sparkbun 0.1.3 → 0.1.4

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": "sparkbun",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Build fast, lightweight, cross-platform desktop apps with TypeScript and Bun.",
5
5
  "license": "MIT",
6
6
  "author": "SparkBun Contributors",
@@ -2595,7 +2595,10 @@ export const Session = {
2595
2595
 
2596
2596
  // Stub: native side accepts this parameter but never calls it.
2597
2597
  // Remove when native wrappers are recompiled without it.
2598
- const webviewDecideNavigation = null;
2598
+ const webviewDecideNavigation = new JSCallback(
2599
+ () => 1,
2600
+ { args: [FFIType.u32, FFIType.cstring], returns: FFIType.u32 },
2601
+ );
2599
2602
 
2600
2603
  const webviewEventHandler = (id: number, eventName: string, detail: string) => {
2601
2604
  BrowserView.ensureWrapped(id);