node-api-dotnet 0.2.15 → 0.2.16

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
@@ -27,8 +27,26 @@ export declare function require(dotnetAssemblyFilePath: string): any;
27
27
  /**
28
28
  * Loads an arbitrary .NET assembly that isn't necessarily designed as a JS module,
29
29
  * enabling dynamic invocation of any APIs in the assembly.
30
- * @param dotnetAssemblyFilePath Path to the .NET assembly DLL file.
30
+ * @param dotnetAssemblyFilePath Path to the .NET assembly DLL file to load.
31
31
  * @returns A JS object that represents the loaded assembly; each property of the object
32
32
  * is a public type in the assembly.
33
33
  */
34
34
  export declare function load(dotnetAssemblyFilePath: string): Assembly | undefined;
35
+
36
+ /**
37
+ * Adds a listener for the `resolving` event, which is raised when a .NET assembly requires
38
+ * an additional dependent assembly to be resolved and loaded. The listener must call `load()`
39
+ * to load the requested assembly file.
40
+ */
41
+ export declare function addListener(
42
+ event: 'resolving',
43
+ listener: (assemblyName: string, assemblyVersion: string) => void,
44
+ ): this;
45
+
46
+ /**
47
+ * Removes a listener for the `resolving` event.
48
+ */
49
+ export declare function removeListener(
50
+ event: 'resolving',
51
+ listener: (assemblyName: string, assemblyVersion: string) => void,
52
+ ): this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-api-dotnet",
3
- "version": "0.2.15",
3
+ "version": "0.2.16",
4
4
  "description": "Node-API bindings for .Net",
5
5
  "main": "index.js",
6
6
  "license": "MIT",