Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iconnectivity-js

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iconnectivity-js - npm Package Compare versions

Comparing version 1.1.5 to 1.2.0

12

lib/index.js

@@ -78,2 +78,5 @@ "use strict";

try {
// Explicitly try to open the device's MIDI ports
await input.open();
await output.open();
const device = new connection_1.Connection(input, output);

@@ -91,2 +94,11 @@ const deviceInfo = await (0, get_device_1.getDevice)({ device });

const devices = (0, uniqBy_1.default)(answers.filter(array_1.isTruthy), (d) => d.serialNumberString);
// Close MIDI ports of unused devices
for (const output of this.midiAccess.outputs.values()) {
const input = inputs.find((input) => input.name === output.name);
if (!input || devices.some((d) => d.output.id === output.id)) {
continue;
}
await input.close();
await output.close();
}
return devices;

@@ -93,0 +105,0 @@ }

2

package.json
{
"name": "iconnectivity-js",
"version": "1.1.5",
"version": "1.2.0",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

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