node-api-dotnet 0.7.42 → 0.8.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.
- package/index.d.ts +11 -3
- package/linux-x64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/net472/Microsoft.JavaScript.NodeApi.DotNetHost.dll +0 -0
- package/net472/Microsoft.JavaScript.NodeApi.dll +0 -0
- package/net6.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll +0 -0
- package/net6.0/Microsoft.JavaScript.NodeApi.dll +0 -0
- package/net8.0/Microsoft.JavaScript.NodeApi.DotNetHost.dll +0 -0
- package/net8.0/Microsoft.JavaScript.NodeApi.dll +0 -0
- package/osx-arm64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/osx-x64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/package.json +1 -1
- package/win-arm64/Microsoft.JavaScript.NodeApi.node +0 -0
- package/win-x64/Microsoft.JavaScript.NodeApi.node +0 -0
package/index.d.ts
CHANGED
|
@@ -71,12 +71,20 @@ export function load(assemblyNameOrFilePath: string): void;
|
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
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
|
|
75
|
-
* to load the requested assembly file.
|
|
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.
|
|
76
78
|
*/
|
|
77
79
|
export function addListener(
|
|
78
80
|
event: 'resolving',
|
|
79
|
-
|
|
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,
|
|
80
88
|
): void;
|
|
81
89
|
|
|
82
90
|
/**
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|