ewvjs 1.0.8 → 1.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/README.md +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -52
- package/dist/platforms/windows.d.ts.map +1 -1
- package/dist/platforms/windows.js +9 -41
- package/dist/types.js +1 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +44 -10
- package/dist/webview.d.ts +6 -2
- package/dist/webview.d.ts.map +1 -1
- package/dist/webview.js +139 -47
- package/dist/window.d.ts +7 -13
- package/dist/window.d.ts.map +1 -1
- package/dist/window.js +187 -250
- package/native/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
- package/native/Microsoft.Web.WebView2.WinForms.dll +0 -0
- package/native/Microsoft.Web.WebView2.Wpf.dll +0 -0
- package/native/System.Buffers.dll +0 -0
- package/native/System.Collections.Immutable.dll +0 -0
- package/native/System.Memory.dll +0 -0
- package/native/System.Numerics.Vectors.dll +0 -0
- package/native/System.Reflection.Metadata.dll +0 -0
- package/native/System.Reflection.MetadataLoadContext.dll +0 -0
- package/native/System.Runtime.CompilerServices.Unsafe.dll +0 -0
- package/native/System.Text.Encoding.CodePages.dll +0 -0
- package/native/System.Text.Encodings.Web.dll +0 -0
- package/native/System.Text.Json.dll +0 -0
- package/native/System.Threading.Tasks.Extensions.dll +0 -0
- package/native/System.ValueTuple.dll +0 -0
- package/native/WebView.cjs +1 -1
- package/native/WebView.deps.json +117 -101
- package/native/WebView.dll +0 -0
- package/native/WebView.mjs +1 -1
- package/package.json +56 -55
- package/native/node_modules/node-api-dotnet/README.md +0 -80
- package/native/node_modules/node-api-dotnet/index.d.ts +0 -98
- package/native/node_modules/node-api-dotnet/linux-arm64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/native/node_modules/node-api-dotnet/linux-x64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/native/node_modules/node-api-dotnet/net10.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll +0 -0
- package/native/node_modules/node-api-dotnet/net10.0/Microsoft.JavaScript.NodeApi.dll +0 -0
- package/native/node_modules/node-api-dotnet/net10.0/Microsoft.JavaScript.NodeApi.runtimeconfig.json +0 -14
- package/native/node_modules/node-api-dotnet/net10.0.js +0 -2
- package/native/node_modules/node-api-dotnet/net472.d.ts +0 -2
- package/native/node_modules/node-api-dotnet/net8.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll +0 -0
- package/native/node_modules/node-api-dotnet/net8.0/Microsoft.JavaScript.NodeApi.dll +0 -0
- package/native/node_modules/node-api-dotnet/net8.0/Microsoft.JavaScript.NodeApi.runtimeconfig.json +0 -14
- package/native/node_modules/node-api-dotnet/net8.0.d.ts +0 -2
- package/native/node_modules/node-api-dotnet/net8.0.js +0 -2
- package/native/node_modules/node-api-dotnet/net9.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll +0 -0
- package/native/node_modules/node-api-dotnet/net9.0/Microsoft.JavaScript.NodeApi.dll +0 -0
- package/native/node_modules/node-api-dotnet/net9.0/Microsoft.JavaScript.NodeApi.runtimeconfig.json +0 -14
- package/native/node_modules/node-api-dotnet/net9.0.d.ts +0 -2
- package/native/node_modules/node-api-dotnet/net9.0.js +0 -2
- package/native/node_modules/node-api-dotnet/osx-arm64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/native/node_modules/node-api-dotnet/osx-x64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/native/node_modules/node-api-dotnet/package.json +0 -27
- package/src/README.md +0 -125
- package/src/csharp/bin/Release/net10.0-windows/Microsoft.Web.WebView2.Core.dll +0 -0
- package/src/csharp/bin/Release/net10.0-windows/Microsoft.Web.WebView2.Core.xml +0 -6817
- package/src/csharp/bin/Release/net10.0-windows/Microsoft.Web.WebView2.WinForms.dll +0 -0
- package/src/csharp/bin/Release/net10.0-windows/Microsoft.Web.WebView2.WinForms.xml +0 -510
- package/src/csharp/bin/Release/net10.0-windows/Microsoft.Web.WebView2.Wpf.dll +0 -0
- package/src/csharp/bin/Release/net10.0-windows/Microsoft.Web.WebView2.Wpf.xml +0 -1902
- package/src/csharp/bin/Release/net10.0-windows/WebView.cjs +0 -26
- package/src/csharp/bin/Release/net10.0-windows/WebView.d.ts +0 -8
- package/src/csharp/bin/Release/net10.0-windows/WebView.deps.json +0 -260
- package/src/csharp/bin/Release/net10.0-windows/WebView.dll +0 -0
- package/src/csharp/bin/Release/net10.0-windows/WebView.mjs +0 -31
- package/src/csharp/bin/Release/net10.0-windows/WebView.pdb +0 -0
- package/src/csharp/bin/Release/net10.0-windows/import.cjs +0 -3
- package/src/csharp/bin/Release/net10.0-windows/runtimes/win-arm64/native/WebView2Loader.dll +0 -0
- package/src/csharp/bin/Release/net10.0-windows/runtimes/win-x64/native/WebView2Loader.dll +0 -0
- package/src/csharp/bin/Release/net10.0-windows/runtimes/win-x86/native/WebView2Loader.dll +0 -0
package/native/WebView.deps.json
CHANGED
|
@@ -1,69 +1,73 @@
|
|
|
1
1
|
{
|
|
2
2
|
"runtimeTarget": {
|
|
3
|
-
"name": ".
|
|
3
|
+
"name": ".NETFramework,Version=v4.7.2/",
|
|
4
4
|
"signature": ""
|
|
5
5
|
},
|
|
6
6
|
"compilationOptions": {},
|
|
7
7
|
"targets": {
|
|
8
|
-
".
|
|
8
|
+
".NETFramework,Version=v4.7.2": {},
|
|
9
|
+
".NETFramework,Version=v4.7.2/": {
|
|
9
10
|
"WebView/1.0.0": {
|
|
10
11
|
"dependencies": {
|
|
11
12
|
"Microsoft.JavaScript.NodeApi": "0.9.19",
|
|
12
13
|
"Microsoft.JavaScript.NodeApi.Generator": "0.9.19",
|
|
13
14
|
"Microsoft.Web.WebView2": "1.0.3719.77",
|
|
14
|
-
"
|
|
15
|
-
"Microsoft.Web.WebView2.WinForms": "1.0.3719.77",
|
|
16
|
-
"Microsoft.Web.WebView2.Wpf": "1.0.3719.77"
|
|
15
|
+
"System.Text.Json": "8.0.5"
|
|
17
16
|
},
|
|
18
17
|
"runtime": {
|
|
19
18
|
"WebView.dll": {}
|
|
20
19
|
}
|
|
21
20
|
},
|
|
21
|
+
"Microsoft.Bcl.AsyncInterfaces/8.0.0": {
|
|
22
|
+
"runtime": {
|
|
23
|
+
"lib/net462/Microsoft.Bcl.AsyncInterfaces.dll": {}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
22
26
|
"Microsoft.CodeAnalysis.Common/4.1.0": {
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"System.Text.Encoding.CodePages": "4.5.1"
|
|
29
|
+
},
|
|
23
30
|
"runtime": {
|
|
24
|
-
"lib/
|
|
25
|
-
"assemblyVersion": "4.1.0.0",
|
|
26
|
-
"fileVersion": "4.100.22.11411"
|
|
27
|
-
}
|
|
31
|
+
"lib/netstandard2.0/Microsoft.CodeAnalysis.dll": {}
|
|
28
32
|
},
|
|
29
33
|
"resources": {
|
|
30
|
-
"lib/
|
|
34
|
+
"lib/netstandard2.0/cs/Microsoft.CodeAnalysis.resources.dll": {
|
|
31
35
|
"locale": "cs"
|
|
32
36
|
},
|
|
33
|
-
"lib/
|
|
37
|
+
"lib/netstandard2.0/de/Microsoft.CodeAnalysis.resources.dll": {
|
|
34
38
|
"locale": "de"
|
|
35
39
|
},
|
|
36
|
-
"lib/
|
|
40
|
+
"lib/netstandard2.0/es/Microsoft.CodeAnalysis.resources.dll": {
|
|
37
41
|
"locale": "es"
|
|
38
42
|
},
|
|
39
|
-
"lib/
|
|
43
|
+
"lib/netstandard2.0/fr/Microsoft.CodeAnalysis.resources.dll": {
|
|
40
44
|
"locale": "fr"
|
|
41
45
|
},
|
|
42
|
-
"lib/
|
|
46
|
+
"lib/netstandard2.0/it/Microsoft.CodeAnalysis.resources.dll": {
|
|
43
47
|
"locale": "it"
|
|
44
48
|
},
|
|
45
|
-
"lib/
|
|
49
|
+
"lib/netstandard2.0/ja/Microsoft.CodeAnalysis.resources.dll": {
|
|
46
50
|
"locale": "ja"
|
|
47
51
|
},
|
|
48
|
-
"lib/
|
|
52
|
+
"lib/netstandard2.0/ko/Microsoft.CodeAnalysis.resources.dll": {
|
|
49
53
|
"locale": "ko"
|
|
50
54
|
},
|
|
51
|
-
"lib/
|
|
55
|
+
"lib/netstandard2.0/pl/Microsoft.CodeAnalysis.resources.dll": {
|
|
52
56
|
"locale": "pl"
|
|
53
57
|
},
|
|
54
|
-
"lib/
|
|
58
|
+
"lib/netstandard2.0/pt-BR/Microsoft.CodeAnalysis.resources.dll": {
|
|
55
59
|
"locale": "pt-BR"
|
|
56
60
|
},
|
|
57
|
-
"lib/
|
|
61
|
+
"lib/netstandard2.0/ru/Microsoft.CodeAnalysis.resources.dll": {
|
|
58
62
|
"locale": "ru"
|
|
59
63
|
},
|
|
60
|
-
"lib/
|
|
64
|
+
"lib/netstandard2.0/tr/Microsoft.CodeAnalysis.resources.dll": {
|
|
61
65
|
"locale": "tr"
|
|
62
66
|
},
|
|
63
|
-
"lib/
|
|
67
|
+
"lib/netstandard2.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll": {
|
|
64
68
|
"locale": "zh-Hans"
|
|
65
69
|
},
|
|
66
|
-
"lib/
|
|
70
|
+
"lib/netstandard2.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll": {
|
|
67
71
|
"locale": "zh-Hant"
|
|
68
72
|
}
|
|
69
73
|
}
|
|
@@ -73,122 +77,114 @@
|
|
|
73
77
|
"Microsoft.CodeAnalysis.Common": "4.1.0"
|
|
74
78
|
},
|
|
75
79
|
"runtime": {
|
|
76
|
-
"lib/
|
|
77
|
-
"assemblyVersion": "4.1.0.0",
|
|
78
|
-
"fileVersion": "4.100.22.11411"
|
|
79
|
-
}
|
|
80
|
+
"lib/netstandard2.0/Microsoft.CodeAnalysis.CSharp.dll": {}
|
|
80
81
|
},
|
|
81
82
|
"resources": {
|
|
82
|
-
"lib/
|
|
83
|
+
"lib/netstandard2.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
83
84
|
"locale": "cs"
|
|
84
85
|
},
|
|
85
|
-
"lib/
|
|
86
|
+
"lib/netstandard2.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
86
87
|
"locale": "de"
|
|
87
88
|
},
|
|
88
|
-
"lib/
|
|
89
|
+
"lib/netstandard2.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
89
90
|
"locale": "es"
|
|
90
91
|
},
|
|
91
|
-
"lib/
|
|
92
|
+
"lib/netstandard2.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
92
93
|
"locale": "fr"
|
|
93
94
|
},
|
|
94
|
-
"lib/
|
|
95
|
+
"lib/netstandard2.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
95
96
|
"locale": "it"
|
|
96
97
|
},
|
|
97
|
-
"lib/
|
|
98
|
+
"lib/netstandard2.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
98
99
|
"locale": "ja"
|
|
99
100
|
},
|
|
100
|
-
"lib/
|
|
101
|
+
"lib/netstandard2.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
101
102
|
"locale": "ko"
|
|
102
103
|
},
|
|
103
|
-
"lib/
|
|
104
|
+
"lib/netstandard2.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
104
105
|
"locale": "pl"
|
|
105
106
|
},
|
|
106
|
-
"lib/
|
|
107
|
+
"lib/netstandard2.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
107
108
|
"locale": "pt-BR"
|
|
108
109
|
},
|
|
109
|
-
"lib/
|
|
110
|
+
"lib/netstandard2.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
110
111
|
"locale": "ru"
|
|
111
112
|
},
|
|
112
|
-
"lib/
|
|
113
|
+
"lib/netstandard2.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
113
114
|
"locale": "tr"
|
|
114
115
|
},
|
|
115
|
-
"lib/
|
|
116
|
+
"lib/netstandard2.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
116
117
|
"locale": "zh-Hans"
|
|
117
118
|
},
|
|
118
|
-
"lib/
|
|
119
|
+
"lib/netstandard2.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll": {
|
|
119
120
|
"locale": "zh-Hant"
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
},
|
|
123
124
|
"Microsoft.JavaScript.NodeApi/0.9.19": {
|
|
125
|
+
"dependencies": {
|
|
126
|
+
"Microsoft.Bcl.AsyncInterfaces": "8.0.0"
|
|
127
|
+
},
|
|
124
128
|
"runtime": {
|
|
125
|
-
"lib/
|
|
126
|
-
"assemblyVersion": "0.9.0.0",
|
|
127
|
-
"fileVersion": "0.9.19.35779"
|
|
128
|
-
}
|
|
129
|
+
"lib/net472/Microsoft.JavaScript.NodeApi.dll": {}
|
|
129
130
|
}
|
|
130
131
|
},
|
|
131
132
|
"Microsoft.JavaScript.NodeApi.Generator/0.9.19": {
|
|
132
133
|
"dependencies": {
|
|
133
|
-
"Microsoft.
|
|
134
|
-
"
|
|
134
|
+
"Microsoft.Bcl.AsyncInterfaces": "8.0.0",
|
|
135
|
+
"Microsoft.CodeAnalysis.CSharp": "4.1.0"
|
|
135
136
|
},
|
|
136
137
|
"runtime": {
|
|
137
|
-
"lib/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
138
|
+
"lib/net472/Microsoft.JavaScript.NodeApi.DotNetHost.dll": {},
|
|
139
|
+
"lib/net472/Microsoft.JavaScript.NodeApi.Generator.exe": {},
|
|
140
|
+
"lib/net472/System.Collections.Immutable.dll": {},
|
|
141
|
+
"lib/net472/System.Memory.dll": {},
|
|
142
|
+
"lib/net472/System.Numerics.Vectors.dll": {},
|
|
143
|
+
"lib/net472/System.Reflection.Metadata.dll": {},
|
|
144
|
+
"lib/net472/System.Reflection.MetadataLoadContext.dll": {},
|
|
145
|
+
"lib/net472/System.Runtime.CompilerServices.Unsafe.dll": {},
|
|
146
|
+
"lib/net472/System.Threading.Tasks.Extensions.dll": {}
|
|
141
147
|
}
|
|
142
148
|
},
|
|
143
149
|
"Microsoft.Web.WebView2/1.0.3719.77": {
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
"fileVersion": "1.0.3719.77"
|
|
149
|
-
},
|
|
150
|
-
"runtimes/win-x64/native/WebView2Loader.dll": {
|
|
151
|
-
"rid": "win-x64",
|
|
152
|
-
"assetType": "native",
|
|
153
|
-
"fileVersion": "1.0.3719.77"
|
|
154
|
-
},
|
|
155
|
-
"runtimes/win-x86/native/WebView2Loader.dll": {
|
|
156
|
-
"rid": "win-x86",
|
|
157
|
-
"assetType": "native",
|
|
158
|
-
"fileVersion": "1.0.3719.77"
|
|
159
|
-
}
|
|
150
|
+
"runtime": {
|
|
151
|
+
"lib/net462/Microsoft.Web.WebView2.Core.dll": {},
|
|
152
|
+
"lib/net462/Microsoft.Web.WebView2.WinForms.dll": {},
|
|
153
|
+
"lib/net462/Microsoft.Web.WebView2.Wpf.dll": {}
|
|
160
154
|
}
|
|
161
155
|
},
|
|
162
|
-
"System.
|
|
156
|
+
"System.Buffers/4.5.1": {
|
|
163
157
|
"runtime": {
|
|
164
|
-
"lib/
|
|
165
|
-
"assemblyVersion": "6.0.0.0",
|
|
166
|
-
"fileVersion": "6.0.21.52210"
|
|
167
|
-
}
|
|
158
|
+
"lib/net461/System.Buffers.dll": {}
|
|
168
159
|
}
|
|
169
160
|
},
|
|
170
|
-
"
|
|
161
|
+
"System.Text.Encoding.CodePages/4.5.1": {
|
|
171
162
|
"runtime": {
|
|
172
|
-
"
|
|
173
|
-
"assemblyVersion": "1.0.3719.77",
|
|
174
|
-
"fileVersion": "1.0.3719.77"
|
|
175
|
-
}
|
|
163
|
+
"lib/net461/System.Text.Encoding.CodePages.dll": {}
|
|
176
164
|
}
|
|
177
165
|
},
|
|
178
|
-
"
|
|
166
|
+
"System.Text.Encodings.Web/8.0.0": {
|
|
167
|
+
"dependencies": {
|
|
168
|
+
"System.Buffers": "4.5.1"
|
|
169
|
+
},
|
|
179
170
|
"runtime": {
|
|
180
|
-
"
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
171
|
+
"lib/net462/System.Text.Encodings.Web.dll": {}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"System.Text.Json/8.0.5": {
|
|
175
|
+
"dependencies": {
|
|
176
|
+
"Microsoft.Bcl.AsyncInterfaces": "8.0.0",
|
|
177
|
+
"System.Buffers": "4.5.1",
|
|
178
|
+
"System.Text.Encodings.Web": "8.0.0",
|
|
179
|
+
"System.ValueTuple": "4.5.0"
|
|
180
|
+
},
|
|
181
|
+
"runtime": {
|
|
182
|
+
"lib/net462/System.Text.Json.dll": {}
|
|
184
183
|
}
|
|
185
184
|
},
|
|
186
|
-
"
|
|
185
|
+
"System.ValueTuple/4.5.0": {
|
|
187
186
|
"runtime": {
|
|
188
|
-
"
|
|
189
|
-
"assemblyVersion": "1.0.3719.77",
|
|
190
|
-
"fileVersion": "1.0.3719.77"
|
|
191
|
-
}
|
|
187
|
+
"lib/net47/System.ValueTuple.dll": {}
|
|
192
188
|
}
|
|
193
189
|
}
|
|
194
190
|
}
|
|
@@ -199,6 +195,13 @@
|
|
|
199
195
|
"serviceable": false,
|
|
200
196
|
"sha512": ""
|
|
201
197
|
},
|
|
198
|
+
"Microsoft.Bcl.AsyncInterfaces/8.0.0": {
|
|
199
|
+
"type": "package",
|
|
200
|
+
"serviceable": true,
|
|
201
|
+
"sha512": "sha512-3WA9q9yVqJp222P3x1wYIGDAkpjAku0TMUaaQV22g6L67AI0LdOIrVS7Ht2vJfLHGSPVuqN94vIr15qn+HEkHw==",
|
|
202
|
+
"path": "microsoft.bcl.asyncinterfaces/8.0.0",
|
|
203
|
+
"hashPath": "microsoft.bcl.asyncinterfaces.8.0.0.nupkg.sha512"
|
|
204
|
+
},
|
|
202
205
|
"Microsoft.CodeAnalysis.Common/4.1.0": {
|
|
203
206
|
"type": "package",
|
|
204
207
|
"serviceable": true,
|
|
@@ -234,27 +237,40 @@
|
|
|
234
237
|
"path": "microsoft.web.webview2/1.0.3719.77",
|
|
235
238
|
"hashPath": "microsoft.web.webview2.1.0.3719.77.nupkg.sha512"
|
|
236
239
|
},
|
|
237
|
-
"System.
|
|
240
|
+
"System.Buffers/4.5.1": {
|
|
238
241
|
"type": "package",
|
|
239
242
|
"serviceable": true,
|
|
240
|
-
"sha512": "sha512-
|
|
241
|
-
"path": "system.
|
|
242
|
-
"hashPath": "system.
|
|
243
|
+
"sha512": "sha512-Rw7ijyl1qqRS0YQD/WycNst8hUUMgrMH4FCn1nNm27M4VxchZ1js3fVjQaANHO5f3sN4isvP4a+Met9Y4YomAg==",
|
|
244
|
+
"path": "system.buffers/4.5.1",
|
|
245
|
+
"hashPath": "system.buffers.4.5.1.nupkg.sha512"
|
|
243
246
|
},
|
|
244
|
-
"
|
|
245
|
-
"type": "
|
|
246
|
-
"serviceable":
|
|
247
|
-
"sha512": ""
|
|
247
|
+
"System.Text.Encoding.CodePages/4.5.1": {
|
|
248
|
+
"type": "package",
|
|
249
|
+
"serviceable": true,
|
|
250
|
+
"sha512": "sha512-4J2JQXbftjPMppIHJ7IC+VXQ9XfEagN92vZZNoG12i+zReYlim5dMoXFC1Zzg7tsnKDM7JPo5bYfFK4Jheq44w==",
|
|
251
|
+
"path": "system.text.encoding.codepages/4.5.1",
|
|
252
|
+
"hashPath": "system.text.encoding.codepages.4.5.1.nupkg.sha512"
|
|
248
253
|
},
|
|
249
|
-
"
|
|
250
|
-
"type": "
|
|
251
|
-
"serviceable":
|
|
252
|
-
"sha512": ""
|
|
254
|
+
"System.Text.Encodings.Web/8.0.0": {
|
|
255
|
+
"type": "package",
|
|
256
|
+
"serviceable": true,
|
|
257
|
+
"sha512": "sha512-yev/k9GHAEGx2Rg3/tU6MQh4HGBXJs70y7j1LaM1i/ER9po+6nnQ6RRqTJn1E7Xu0fbIFK80Nh5EoODxrbxwBQ==",
|
|
258
|
+
"path": "system.text.encodings.web/8.0.0",
|
|
259
|
+
"hashPath": "system.text.encodings.web.8.0.0.nupkg.sha512"
|
|
253
260
|
},
|
|
254
|
-
"
|
|
255
|
-
"type": "
|
|
256
|
-
"serviceable":
|
|
257
|
-
"sha512": ""
|
|
261
|
+
"System.Text.Json/8.0.5": {
|
|
262
|
+
"type": "package",
|
|
263
|
+
"serviceable": true,
|
|
264
|
+
"sha512": "sha512-0f1B50Ss7rqxXiaBJyzUu9bWFOO2/zSlifZ/UNMdiIpDYe4cY4LQQicP4nirK1OS31I43rn062UIJ1Q9bpmHpg==",
|
|
265
|
+
"path": "system.text.json/8.0.5",
|
|
266
|
+
"hashPath": "system.text.json.8.0.5.nupkg.sha512"
|
|
267
|
+
},
|
|
268
|
+
"System.ValueTuple/4.5.0": {
|
|
269
|
+
"type": "package",
|
|
270
|
+
"serviceable": true,
|
|
271
|
+
"sha512": "sha512-okurQJO6NRE/apDIP23ajJ0hpiNmJ+f0BwOlB/cSqTLQlw5upkf+5+96+iG2Jw40G1fCVCyPz/FhIABUjMR+RQ==",
|
|
272
|
+
"path": "system.valuetuple/4.5.0",
|
|
273
|
+
"hashPath": "system.valuetuple.4.5.0.nupkg.sha512"
|
|
258
274
|
}
|
|
259
275
|
}
|
|
260
276
|
}
|
package/native/WebView.dll
CHANGED
|
Binary file
|
package/native/WebView.mjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Generated by: Microsoft.JavaScript.NodeApi.Generator 0.9.0.0
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
|
|
5
|
-
import dotnet from 'node-api-dotnet/
|
|
5
|
+
import dotnet from 'node-api-dotnet/net472';
|
|
6
6
|
import * as path from 'node:path';
|
|
7
7
|
import { fileURLToPath } from 'node:url';
|
|
8
8
|
// @ts-ignore - https://github.com/DefinitelyTyped/DefinitelyTyped/discussions/65252
|
package/package.json
CHANGED
|
@@ -1,55 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ewvjs",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Embedded WebView for JavaScript - Edge WebView2 bindings for Node.js",
|
|
5
|
-
"workspaces": [
|
|
6
|
-
"packages/*"
|
|
7
|
-
],
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"README.md",
|
|
21
|
-
"LICENSE"
|
|
22
|
-
],
|
|
23
|
-
"scripts": {
|
|
24
|
-
"prebuild": "node scripts/copy-native.js",
|
|
25
|
-
"build": "
|
|
26
|
-
"build:webview": "dotnet build src/csharp/WebView.csproj -c Release"
|
|
27
|
-
},
|
|
28
|
-
"keywords": [
|
|
29
|
-
"webview",
|
|
30
|
-
"webview2",
|
|
31
|
-
"windows",
|
|
32
|
-
"electron-alternative",
|
|
33
|
-
"gui",
|
|
34
|
-
"native",
|
|
35
|
-
"packaging",
|
|
36
|
-
"cli"
|
|
37
|
-
],
|
|
38
|
-
"author": "miukyo",
|
|
39
|
-
"license": "MIT",
|
|
40
|
-
"repository": {
|
|
41
|
-
"type": "git",
|
|
42
|
-
"url": "https://github.com/miukyo/ewvjs"
|
|
43
|
-
},
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"@types/node": "^25.2.0",
|
|
50
|
-
"typescript": "^5.9.3"
|
|
51
|
-
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "ewvjs",
|
|
3
|
+
"version": "1.0.10",
|
|
4
|
+
"description": "Embedded WebView for JavaScript - Edge WebView2 bindings for Node.js",
|
|
5
|
+
"workspaces": [
|
|
6
|
+
"packages/*"
|
|
7
|
+
],
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist/**/*",
|
|
19
|
+
"native/**/*",
|
|
20
|
+
"README.md",
|
|
21
|
+
"LICENSE"
|
|
22
|
+
],
|
|
23
|
+
"scripts": {
|
|
24
|
+
"prebuild": "node scripts/copy-native.js",
|
|
25
|
+
"build": "tsc",
|
|
26
|
+
"build:webview": "dotnet build src/csharp/WebView.csproj -c Release"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"webview",
|
|
30
|
+
"webview2",
|
|
31
|
+
"windows",
|
|
32
|
+
"electron-alternative",
|
|
33
|
+
"gui",
|
|
34
|
+
"native",
|
|
35
|
+
"packaging",
|
|
36
|
+
"cli"
|
|
37
|
+
],
|
|
38
|
+
"author": "miukyo",
|
|
39
|
+
"license": "MIT",
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "https://github.com/miukyo/ewvjs"
|
|
43
|
+
},
|
|
44
|
+
"os": [
|
|
45
|
+
"win32"
|
|
46
|
+
],
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/mime-types": "^3.0.1",
|
|
49
|
+
"@types/node": "^25.2.0",
|
|
50
|
+
"typescript": "^5.9.3"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"mime-types": "^3.0.2",
|
|
54
|
+
"node-api-dotnet": "^0.9.19"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
# Node API for .NET: JavaScript + .NET Interop
|
|
2
|
-
|
|
3
|
-
This project enables advanced interoperability between .NET and JavaScript in the same process.
|
|
4
|
-
|
|
5
|
-
- Load .NET assemblies and call .NET APIs in-proc from a JavaScript application.
|
|
6
|
-
- Load JavaScript packages and call JS APIs in-proc from a .NET application.
|
|
7
|
-
|
|
8
|
-
Interop is high-performance and supports TypeScript type-definitions generation, async
|
|
9
|
-
(tasks/promises), streams, and more. It uses [Node API](https://nodejs.org/api/n-api.html) so
|
|
10
|
-
it is compatible with any Node.js version (without recompiling) or other JavaScript runtime that
|
|
11
|
-
supports Node API.
|
|
12
|
-
|
|
13
|
-
:warning: _**Status: Public Preview** - Most functionality works well, though there are some known
|
|
14
|
-
limitations around the edges, and there may still be minor breaking API changes._
|
|
15
|
-
|
|
16
|
-
### Documentation
|
|
17
|
-
|
|
18
|
-
Getting-started guidance, feature details, and API reference documentation are published at
|
|
19
|
-
https://microsoft.github.io/node-api-dotnet
|
|
20
|
-
|
|
21
|
-
### Minimal example - JS calling .NET
|
|
22
|
-
```JavaScript
|
|
23
|
-
// JavaScript
|
|
24
|
-
const Console = require('node-api-dotnet').System.Console;
|
|
25
|
-
Console.WriteLine('Hello from .NET!'); // JS writes to the .NET console API
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
### Minimal example - .NET calling JS
|
|
29
|
-
```C#
|
|
30
|
-
// C#
|
|
31
|
-
interface IConsole { void Log(string message); }
|
|
32
|
-
|
|
33
|
-
var nodejs = new NodejsPlatform(libnodePath).CreateEnvironment();
|
|
34
|
-
nodejs.Run(() =>
|
|
35
|
-
{
|
|
36
|
-
var console = nodejs.Import<IConsole>("global", "console");
|
|
37
|
-
console.Log("Hello from JS!"); // C# writes to the JS console API
|
|
38
|
-
});
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Packages
|
|
42
|
-
|
|
43
|
-
Depending on the [scenario](https://microsoft.github.io/node-api-dotnet/scenarios/),
|
|
44
|
-
either NPM or NuGet packages may be used:
|
|
45
|
-
- NPM: [`node-api-dotnet`](https://www.npmjs.com/package/node-api-dotnet)
|
|
46
|
-
- NuGet: [`Microsoft.JavaScript.NodeApi`](https://www.nuget.org/packages/Microsoft.JavaScript.NodeApi/)
|
|
47
|
-
|
|
48
|
-
See [Packages & Releases](https://microsoft.github.io/node-api-dotnet/reference/packages-releases.html)
|
|
49
|
-
for details.
|
|
50
|
-
|
|
51
|
-
## Development
|
|
52
|
-
|
|
53
|
-
For information about building, testing, and debugging this project, see
|
|
54
|
-
[README-DEV.md](./README-DEV.md).
|
|
55
|
-
|
|
56
|
-
Contributions require agreement to the
|
|
57
|
-
[Contributor License Agreement](https://microsoft.github.io/node-api-dotnet/contributing.html#contributor-license-agreement).
|
|
58
|
-
|
|
59
|
-
## Code of Conduct
|
|
60
|
-
|
|
61
|
-
This project has adopted the
|
|
62
|
-
[Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
|
|
63
|
-
For more information see the
|
|
64
|
-
[Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
|
|
65
|
-
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or
|
|
66
|
-
comments.
|
|
67
|
-
|
|
68
|
-
## Trademarks
|
|
69
|
-
|
|
70
|
-
This project may contain trademarks or logos for projects, products, or services. Authorized use of
|
|
71
|
-
Microsoft trademarks or logos is subject to and must follow
|
|
72
|
-
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
|
|
73
|
-
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion
|
|
74
|
-
or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those
|
|
75
|
-
third-party's policies.
|
|
76
|
-
|
|
77
|
-
<br/>
|
|
78
|
-
<br/>
|
|
79
|
-
|
|
80
|
-

|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Use the `node-api-dotnet` package to load .NET assemblies into a Node.js application and
|
|
6
|
-
* call public APIs defined in the assemblies.
|
|
7
|
-
* ::: code-group
|
|
8
|
-
* ```JavaScript [ES (TS or JS)]
|
|
9
|
-
* import dotnet from 'node-api-dotnet';
|
|
10
|
-
* ```
|
|
11
|
-
* ```TypeScript [CommonJS (TS)]
|
|
12
|
-
* import * as dotnet from 'node-api-dotnet';
|
|
13
|
-
* ```
|
|
14
|
-
* ```JavaScript [CommonJS (JS)]
|
|
15
|
-
* const dotnet = require('node-api-dotnet');
|
|
16
|
-
* ```
|
|
17
|
-
* :::
|
|
18
|
-
* To load a specific version of .NET, append the target framework moniker to the package name:
|
|
19
|
-
* ::: code-group
|
|
20
|
-
* ```JavaScript [ES (TS or JS)]
|
|
21
|
-
* import dotnet from 'node-api-dotnet/net8.0';
|
|
22
|
-
* ```
|
|
23
|
-
* ```TypeScript [CommonJS (TS)]
|
|
24
|
-
* import * as dotnet from 'node-api-dotnet/net8.0';
|
|
25
|
-
* ```
|
|
26
|
-
* ```JavaScript [CommonJS (JS)]
|
|
27
|
-
* const dotnet = require('node-api-dotnet/net8.0');
|
|
28
|
-
* ```
|
|
29
|
-
* :::
|
|
30
|
-
* Currently the supported target frameworks are `net472`, `net8.0`, and `net9.0`.
|
|
31
|
-
* @module node-api-dotnet
|
|
32
|
-
*/
|
|
33
|
-
declare module 'node-api-dotnet' {
|
|
34
|
-
// APIs defined here are implemented by Microsoft.JavaScript.NodeApi.DotNetHost.
|
|
35
|
-
// The explicit module declaration enables module members to be merged with imported namespaces.
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Gets the current .NET runtime version, for example "8.0.1".
|
|
39
|
-
*/
|
|
40
|
-
export const runtimeVersion: string;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Gets the framework monikier corresponding to the current .NET runtime version,
|
|
44
|
-
* for example "net8.0" or "net472".
|
|
45
|
-
*/
|
|
46
|
-
export const frameworkMoniker: string;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Loads a .NET assembly that was built to be a Node API module, using static binding to
|
|
50
|
-
* the APIs the module specifically exports to JS.
|
|
51
|
-
* @param dotnetAssemblyFilePath Path to the .NET assembly DLL file.
|
|
52
|
-
* @returns The JavaScript module exported by the assembly. (Type information for the module
|
|
53
|
-
* may be available in a separate generated type-definitions file.)
|
|
54
|
-
* @description The .NET assembly must use `[JSExport]` attributes to export selected types
|
|
55
|
-
* and/or members to JavaScript. These exports _do not_ use .NET namespaces.
|
|
56
|
-
*/
|
|
57
|
-
export function require(dotnetAssemblyFilePath: string): any;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Loads an arbitrary .NET assembly that isn't necessarily designed as a JS module, enabling
|
|
61
|
-
* dynamic invocation of any APIs in the assembly. After loading, types from the assembly are
|
|
62
|
-
* available via namespaces on the main dotnet module.
|
|
63
|
-
* @param assemblyNameOrFilePath Path to the .NET assembly DLL file, or name of a system assembly.
|
|
64
|
-
* @description After loading an assembly, types in the assembly are merged into the .NET
|
|
65
|
-
* namespace hierarchy, with top-level namespaces available as properties on the .NET module.
|
|
66
|
-
* For example, if the assembly defines a type `Contoso.Business.Component`, it can be accessed as
|
|
67
|
-
* `dotnet.Contoso.Business.Component`. (.NET core library types can be accessed the same way, for
|
|
68
|
-
* example `dotnet.System.Console`.)
|
|
69
|
-
*/
|
|
70
|
-
export function load(assemblyNameOrFilePath: string): void;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* Adds a listener for the `resolving` event, which is raised when a .NET assembly requires
|
|
74
|
-
* an additional dependent assembly to be resolved and loaded. The listener may call `resolve()`
|
|
75
|
-
* to load the requested assembly from a resolved file path. If the listener does not call
|
|
76
|
-
* `resolve()`, the runtime will then attempt to resolve the assembly by searching in the same
|
|
77
|
-
* application directory as other already-loaded assemblies, if there were any.
|
|
78
|
-
*/
|
|
79
|
-
export function addListener(
|
|
80
|
-
event: 'resolving',
|
|
81
|
-
/**
|
|
82
|
-
* Resolving event listener funciton to be invokved when a .NET assembly is being resolved.
|
|
83
|
-
* @param assemblyName Name of the assembly to be resolved.
|
|
84
|
-
* @param assemblyVersion Version of the assembly to be resolved.
|
|
85
|
-
* @param resolve Callback to invoke with the full path to the resolved assembly file.
|
|
86
|
-
*/
|
|
87
|
-
listener: (assemblyName: string, assemblyVersion: string, resolve: (string) => void) => void,
|
|
88
|
-
): void;
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* Removes a listener for the `resolving` event.
|
|
92
|
-
*/
|
|
93
|
-
export function removeListener(
|
|
94
|
-
event: 'resolving',
|
|
95
|
-
listener: (assemblyName: string, assemblyVersion: string) => void,
|
|
96
|
-
): void;
|
|
97
|
-
|
|
98
|
-
}
|
|
Binary file
|
|
Binary file
|