Socket
Socket
Sign inDemoInstall

node-api-dotnet

Package Overview
Dependencies
Maintainers
5
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-api-dotnet - npm Package Compare versions

Comparing version 0.2.14 to 0.2.15

2

package.json
{
"name": "node-api-dotnet",
"version": "0.2.14",
"version": "0.2.15",
"description": "Node-API bindings for .Net",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -131,5 +131,15 @@ # Node API for .NET: JavaScript + .NET Interop

Exceptions/errors thrown in .NET or JS are propagated across the boundary with stack traces.
An unhandled .NET exception is thrown back to a JS caller as an `Error` with a stack trace that
includes both .NET and JS frames, and source line numbers if symbols are available. For example:
```
Error: Test error thrown by JS.
at Microsoft.JavaScript.NodeApi.TestCases.Errors.ThrowDotnetError(String message) in D:\node-api-dotnet\test\TestCases\Errors.cs:line 13
at Microsoft.JavaScript.NodeApi.Generated.Module.Errors_ThrowDotnetError(JSCallbackArgs __args) in napi-dotnet.NodeApi.g.cs:line 357
at Microsoft.JavaScript.NodeApi.JSNativeApi.InvokeCallback[TDescriptor](napi_env env, napi_callback_info callbackInfo, JSValueScopeType scopeType, Func`2 getCallbackDescriptor) in JSNativeApi.cs:line 1070
at catchDotnetError (D:\node-api-dotnet\test\TestCases\errors.js:14:12)
at Object.<anonymous> (D:\node-api-dotnet\test\TestCases\errors.js:41:1)
```
Similarly, an unhandled JS `Error` is thrown back to a .NET caller as a `JSException` with a
combined stack trace.
_Under development. More to be written..._
### Develop Node.js addons with C#

@@ -136,0 +146,0 @@ A C# class library project can use the `[JSExport]` attribute to tag (and rename) APIs that are

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc