Socket
Socket
Sign inDemoInstall

@httptoolkit/dbus-native

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@httptoolkit/dbus-native - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

12

lib/bus.js

@@ -159,3 +159,13 @@ const EventEmitter = require('events').EventEmitter;

} else {
handler.call(props, args); // body as first argument
// Turn single-string error response into proper error instance:
if (args.length === 1 && typeof args[0] === 'string') {
const errMessage = args[0];
const errName = msg.errorName ?? 'DbusError';
args = Object.assign(
new Error(`${errName}: ${errMessage}`, {
name: errName
})
);
}
handler.call(props, args); // body as first (error) argument
}

@@ -162,0 +172,0 @@ }

2

package.json
{
"name": "@httptoolkit/dbus-native",
"author": "Tim Perry <tim@httptoolkit.com>",
"version": "0.1.1",
"version": "0.1.2",
"keywords": [

@@ -6,0 +6,0 @@ "dbus",

@@ -24,2 +24,3 @@ # @httptoolkit/dbus-native [![Build Status](https://github.com/httptoolkit/dbus-native/workflows/CI/badge.svg)](https://github.com/httptoolkit/dbus-native/actions)

* Throws an explicit error when sending a message to a closed stream, instead of silently never responding
* Turn D-Bus error responses into proper error instances where possible (rather than throwing arrays of strings)

@@ -26,0 +27,0 @@ Installation

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