Socket
Socket
Sign inDemoInstall

@serialport/bindings-interface

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serialport/bindings-interface - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

16

dist/index.d.ts

@@ -81,12 +81,18 @@ /// <reference types="node" />

export declare interface BindingsErrorInterface extends Error {
canceled?: boolean;
}
export declare interface OpenOptions {
/** The path of the port */
/** The system path of the serial port you want to open. For example, `/dev/tty.XXX` on Mac/Linux, or `COM1` on Windows */
path: string;
/** The baud rate of the port to be opened. This should match one of the commonly available baud rates, such as 110, 300, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, or 115200. Custom rates are supported best effort per platform. The device connected to the serial port is not guaranteed to support the requested baud rate, even if the port itself supports that baud rate. */
/**
* The baud rate of the port to be opened. This should match one of the commonly available baud rates, such as 110, 300, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, or 115200. Custom rates are supported best effort per platform. The device connected to the serial port is not guaranteed to support the requested baud rate, even if the port itself supports that baud rate.
*/
baudRate: number;
/** Must be one of these: 8, 7, 6, or 5 defaults to 8 */
dataBits?: 8 | 7 | 6 | 5;
/** Must be one of these: 5, 6, 7, or 8 defaults to 8 */
dataBits?: 5 | 6 | 7 | 8;
/** Prevent other processes from opening the port. Windows does not currently support `false`. Defaults to true */
lock?: boolean;
/** defaults to 1 - TODO should be a string */
/** defaults to 1 - TODO should be a string because the numbers are misleading and "fixing" them would break code */
stopBits?: 1 | 2 | 3;

@@ -93,0 +99,0 @@ parity?: string;

{
"name": "@serialport/bindings-interface",
"version": "1.1.0",
"version": "1.2.0",
"description": "SerialPort Bindings Typescript Types",

@@ -36,5 +36,5 @@ "types": "dist/index.d.ts",

"@types/node": "17.0.8",
"@typescript-eslint/eslint-plugin": "4.33.0",
"@typescript-eslint/parser": "4.33.0",
"esbuild": "0.14.14",
"@typescript-eslint/eslint-plugin": "5.10.2",
"@typescript-eslint/parser": "5.10.2",
"esbuild": "0.14.15",
"esbuild-register": "3.3.2",

@@ -44,5 +44,5 @@ "eslint": "7.32.0",

"rollup-plugin-node-resolve": "5.2.0",
"semantic-release": "18.0.1",
"semantic-release": "19.0.2",
"typescript": "4.5.5"
}
}
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