node-api-dotnet-generator 0.7.19 → 0.7.26
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
CHANGED
|
@@ -110,7 +110,7 @@ dotnet.ExampleNamespace.ExampleClass.ExampleMethod(...args); // This call is typ
|
|
|
110
110
|
|
|
111
111
|
(CommonJS modules must use `require()` instead of `import`.)
|
|
112
112
|
|
|
113
|
-
For reference, there is a [list of C# type projections to TypeScript](/
|
|
113
|
+
For reference, there is a [list of C# type projections to TypeScript](/docs/typescript.md).
|
|
114
114
|
|
|
115
115
|
### Full async support
|
|
116
116
|
JavaScript code can `await` a call to a .NET method that returns a `Task`. The marshaller
|
|
@@ -282,12 +282,12 @@ For details, see [Using .NET Generics in JavaScript](./docs/generics.md).
|
|
|
282
282
|
|
|
283
283
|
#### Instructions
|
|
284
284
|
For calling .NET from JS, choose between one of the following scenarios:
|
|
285
|
-
- [Dynamically invoke .NET APIs from JavaScript](./
|
|
285
|
+
- [Dynamically invoke .NET APIs from JavaScript](./docs/dynamic-invoke.md)<br/>
|
|
286
286
|
Dynamic invocation is simpler to set up: all you need is the `node-api-dotnet` npm package and
|
|
287
287
|
the path to a .NET assembly you want to call. But it has some limitations (not all kinds of APIs
|
|
288
288
|
are supported), and is not quite as fast as a C# module, because marshalling code must be
|
|
289
289
|
generated at runtime.
|
|
290
|
-
- [Develop a Node module in C#](./
|
|
290
|
+
- [Develop a Node module in C#](./docs/node-module.md)<br/>
|
|
291
291
|
A C# Node module is appropriate for an application that has more advanced interop needs. It can
|
|
292
292
|
be faster because marshalling code can be generated at compile time, and the shape of the APIs
|
|
293
293
|
exposed to JavaScript can be adapted with JS interop in mind.
|
|
@@ -330,4 +330,4 @@ third-party's policies.
|
|
|
330
330
|
<br/>
|
|
331
331
|
<br/>
|
|
332
332
|
|
|
333
|
-

|
package/index.js
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-api-dotnet-generator",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.26",
|
|
4
4
|
"description": "Node-API for .Net code generator",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": "index.js",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "Microsoft",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"node-api-dotnet": "0.7.
|
|
10
|
+
"node-api-dotnet": "0.7.26"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"Node-API",
|