react-native-electron-platform 0.0.9 → 0.0.10

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": "react-native-electron-platform",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "A boilerplate and utilities for running React Native applications in Electron",
5
5
  "main": "index.mjs",
6
6
  "scripts": {
package/src/main.mjs CHANGED
@@ -489,7 +489,7 @@ function createWindow() {
489
489
  const { x, y, width, height } = primaryDisplay.bounds;
490
490
 
491
491
  const iconPath = path.join(app.getAppPath(), "electron/icon.ico");
492
- const preloadPath = path.join(__dirname, "preload.js");
492
+ const preloadPath = path.join(__dirname, "preload.mjs");
493
493
 
494
494
  mainWindow = new BrowserWindow({
495
495
  x,
@@ -659,4 +659,4 @@ if (!gotTheLock) {
659
659
  }
660
660
  }
661
661
  });
662
- }
662
+ }
package/src/preload.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const { contextBridge, ipcRenderer } = require("electron");
1
+ import { contextBridge, ipcRenderer } from "electron";
2
2
 
3
3
  /**
4
4
  * Enhanced Electron API with comprehensive features