win_webview2 1.0.4 → 1.0.5

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,13 +1,18 @@
1
1
  {
2
2
  "name": "win_webview2",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/nnttoo/win_webview2"
7
7
  },
8
8
  "description": "",
9
9
  "main": "index.js",
10
- "exports": "./winWebview2.mjs",
10
+ "exports":{
11
+ ".": {
12
+ "import": "./winWebview2.mjs",
13
+ "types": "./winWebview2.d.ts"
14
+ }
15
+ },
11
16
  "bin": {
12
17
  "win_webview2": "./ww2_builder.mjs"
13
18
  },
@@ -18,5 +23,8 @@
18
23
  "rcedit": "^4.0.1",
19
24
  "sharp": "^0.33.5",
20
25
  "sharp-ico": "^0.1.5"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "^25.5.0"
21
29
  }
22
30
  }
@@ -0,0 +1,18 @@
1
+ import { OpenDialogFileArg, OpenWebArg } from "./argtype";
2
+
3
+
4
+ /**
5
+ * Open WebView window via IPC
6
+ */
7
+ export function openWeb(arg: OpenWebArg): void;
8
+
9
+ /**
10
+ * Open file dialog and return selected file path
11
+ */
12
+ export function openDialogFile(arg: OpenDialogFileArg): Promise<string>;
13
+
14
+ /**
15
+ * Open folder dialog and return selected folder path
16
+ */
17
+ export function openDialogFolder(): Promise<string>;
18
+
package/winWebview2.mjs CHANGED
@@ -1,5 +1,4 @@
1
- // @ts-check
2
-
1
+
3
2
  import net from "net"
4
3
  let isOncloseSetted = false;
5
4
  const prefixWebview = "WINWEBVIEW_";
@@ -53,6 +52,8 @@ async function createPipe() {
53
52
  console.log('Anak terhubung ke Named Pipe!');
54
53
  });
55
54
 
55
+
56
+
56
57
  client.on('data', (buff) => {
57
58
  let data = buff.toString();
58
59
 
Binary file
Binary file
package/ww2_builder.mjs CHANGED
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env node
2
-
3
- // @ts-check
2
+
4
3
 
5
4
  import prompts from "prompts";
6
5
  import fs from 'fs'
@@ -0,0 +1,3 @@
1
+ export class WW2Deploy {
2
+ static startDeploy(): Promise<void>;
3
+ }