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 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 must call `load()`
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
- listener: (assemblyName: string, assemblyVersion: string) => void,
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
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-api-dotnet",
3
- "version": "0.7.42",
3
+ "version": "0.8.1",
4
4
  "description": "Node-API bindings for .Net",
5
5
  "license": "MIT",
6
6
  "author": "Microsoft",