Socket
Socket
Sign inDemoInstall

@serialport/stream

Package Overview
Dependencies
Maintainers
3
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@serialport/stream - npm Package Compare versions

Comparing version 10.5.0 to 11.0.0

7

dist/index.d.ts
/// <reference types="node" />
/// <reference types="node" />
import { Duplex } from 'stream';

@@ -17,4 +18,4 @@ import { SetOptions, BindingInterface, PortInterfaceFromBinding, OpenOptionsFromBinding } from '@serialport/bindings-interface';

*/
export declare type ErrorCallback = (err: Error | null) => void;
export declare type ModemBitsCallback = (err: Error | null, options?: {
export type ErrorCallback = (err: Error | null) => void;
export type ModemBitsCallback = (err: Error | null, options?: {
cts: boolean;

@@ -24,3 +25,3 @@ dsr: boolean;

}) => void;
export declare type OpenOptions<T extends BindingInterface = BindingInterface> = StreamOptions<T> & OpenOptionsFromBinding<T>;
export type OpenOptions<T extends BindingInterface = BindingInterface> = StreamOptions<T> & OpenOptionsFromBinding<T>;
/**

@@ -27,0 +28,0 @@ * Options to open a port

@@ -71,4 +71,3 @@ "use strict";

get isOpen() {
var _a, _b;
return ((_b = (_a = this.port) === null || _a === void 0 ? void 0 : _a.isOpen) !== null && _b !== void 0 ? _b : false) && !this.closing;
return (this.port?.isOpen ?? false) && !this.closing;
}

@@ -75,0 +74,0 @@ _error(error, callback) {

{
"name": "@serialport/stream",
"version": "10.5.0",
"version": "11.0.0",
"main": "./dist/index.js",

@@ -11,7 +11,7 @@ "types": "./dist/index.d.ts",

"@serialport/bindings-interface": "1.2.2",
"debug": "^4.3.2"
"debug": "4.3.4"
},
"devDependencies": {
"@serialport/binding-mock": "^10.2.2",
"typescript": "^4.5.5"
"typescript": "5.0.4"
},

@@ -30,3 +30,3 @@ "engines": {

"funding": "https://opencollective.com/serialport/donate",
"gitHead": "d8330a3d2b287230eabe92ae6b9bf44bc8c06f56"
"gitHead": "6a8202cd947c87ac70c9f3c84d60fe4b5f5d70a9"
}
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