@nemigo/electron 1.5.1 → 2.0.1

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.
@@ -26,8 +26,8 @@ export declare class NetworkSecurity {
26
26
  *
27
27
  * ```typescript
28
28
  * app.on("web-contents-created", (_, contents) => {
29
- * contents.on("will-navigate", "..."); // __handleNavigation
30
- * contents.setWindowOpenHandler("..."); // __handleWindowOpen
29
+ * contents.on("will-navigate", () => ...); // __handleNavigation
30
+ * contents.setWindowOpenHandler(() => ...); // __handleWindowOpen
31
31
  * });
32
32
  * ```
33
33
  */
package/dist/security.js CHANGED
@@ -32,8 +32,8 @@ export class NetworkSecurity {
32
32
  *
33
33
  * ```typescript
34
34
  * app.on("web-contents-created", (_, contents) => {
35
- * contents.on("will-navigate", "..."); // __handleNavigation
36
- * contents.setWindowOpenHandler("..."); // __handleWindowOpen
35
+ * contents.on("will-navigate", () => ...); // __handleNavigation
36
+ * contents.setWindowOpenHandler(() => ...); // __handleWindowOpen
37
37
  * });
38
38
  * ```
39
39
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nemigo/electron",
3
- "version": "1.5.1",
3
+ "version": "2.0.1",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "Vlad Logvin",
@@ -13,9 +13,13 @@
13
13
  },
14
14
  "scripts": {
15
15
  "build": "svelte-package && rimraf .svelte-kit",
16
- "check": "tsc --noemit",
17
- "lint": "eslint ./",
18
- "format": "prettier --write ./"
16
+ "check": "bunx --bun tsc --noemit",
17
+ "eslint": "bunx --bun eslint ./",
18
+ "eslint:fix": "bunx --bun eslint --fix ./",
19
+ "lint": "biome lint",
20
+ "lint:fix": "biome lint --fix --unsafe",
21
+ "lint:fix:unsafe": "biome lint --fix --unsafe",
22
+ "format": "biome check --write --linter-enabled=false"
19
23
  },
20
24
  "exports": {
21
25
  "./security": {
@@ -24,11 +28,12 @@
24
28
  }
25
29
  },
26
30
  "peerDependencies": {
27
- "@nemigo/helpers": ">=1.5.0",
31
+ "@nemigo/helpers": ">=2.0.0",
28
32
  "electron": ">=32.0.0"
29
33
  },
30
34
  "devDependencies": {
31
- "@nemigo/configs": "workspace:*",
32
- "@nemigo/helpers": "workspace:*"
35
+ "@nemigo/configs": "2.1.0",
36
+ "@nemigo/helpers": "2.0.0",
37
+ "electron": "39.2.0"
33
38
  }
34
39
  }