@serialport/stream
Advanced tools
Comparing version 10.5.0 to 11.0.0
/// <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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29404
+ Addeddebug@4.3.4(transitive)
+ Addedms@2.1.2(transitive)
- Removeddebug@4.3.7(transitive)
- Removedms@2.1.3(transitive)
Updateddebug@4.3.4