serialport
Advanced tools
Comparing version 10.5.0 to 11.0.0
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k; |
import { ErrorCallback, OpenOptions, SerialPortStream } from '@serialport/stream'; | ||
import { MockBindingInterface } from '@serialport/binding-mock'; | ||
export declare type SerialPortMockOpenOptions = Omit<OpenOptions<MockBindingInterface>, 'binding'>; | ||
export type SerialPortMockOpenOptions = Omit<OpenOptions<MockBindingInterface>, 'binding'>; | ||
export declare class SerialPortMock extends SerialPortStream<MockBindingInterface> { | ||
@@ -5,0 +5,0 @@ static list: () => Promise<import("@serialport/bindings-cpp").PortInfo[]>; |
@@ -15,4 +15,4 @@ "use strict"; | ||
} | ||
exports.SerialPortMock = SerialPortMock; | ||
SerialPortMock.list = binding_mock_1.MockBinding.list; | ||
SerialPortMock.binding = binding_mock_1.MockBinding; | ||
exports.SerialPortMock = SerialPortMock; |
import { ErrorCallback, SerialPortStream, StreamOptions } from '@serialport/stream'; | ||
import { AutoDetectTypes, OpenOptionsFromBinding } from '@serialport/bindings-cpp'; | ||
export declare type SerialPortOpenOptions<T extends AutoDetectTypes> = Omit<StreamOptions<T>, 'binding'> & OpenOptionsFromBinding<T>; | ||
export type SerialPortOpenOptions<T extends AutoDetectTypes> = Omit<StreamOptions<T>, 'binding'> & OpenOptionsFromBinding<T>; | ||
export declare class SerialPort<T extends AutoDetectTypes = AutoDetectTypes> extends SerialPortStream<T> { | ||
@@ -5,0 +5,0 @@ static list: () => Promise<import("@serialport/bindings-cpp").PortInfo[]>; |
@@ -16,4 +16,4 @@ "use strict"; | ||
} | ||
exports.SerialPort = SerialPort; | ||
SerialPort.list = DetectedBinding.list; | ||
SerialPort.binding = DetectedBinding; | ||
exports.SerialPort = SerialPort; |
{ | ||
"name": "serialport", | ||
"version": "10.5.0", | ||
"version": "11.0.0", | ||
"description": "Node.js package to access serial ports. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!", | ||
@@ -54,15 +54,15 @@ "main": "./dist/index.js", | ||
"@serialport/binding-mock": "10.2.2", | ||
"@serialport/bindings-cpp": "10.8.0", | ||
"@serialport/parser-byte-length": "10.5.0", | ||
"@serialport/parser-cctalk": "10.5.0", | ||
"@serialport/parser-delimiter": "10.5.0", | ||
"@serialport/parser-inter-byte-timeout": "10.5.0", | ||
"@serialport/parser-packet-length": "10.5.0", | ||
"@serialport/parser-readline": "10.5.0", | ||
"@serialport/parser-ready": "10.5.0", | ||
"@serialport/parser-regex": "10.5.0", | ||
"@serialport/parser-slip-encoder": "10.5.0", | ||
"@serialport/parser-spacepacket": "10.5.0", | ||
"@serialport/stream": "10.5.0", | ||
"debug": "^4.3.3" | ||
"@serialport/bindings-cpp": "11.0.1", | ||
"@serialport/parser-byte-length": "11.0.0", | ||
"@serialport/parser-cctalk": "11.0.0", | ||
"@serialport/parser-delimiter": "11.0.0", | ||
"@serialport/parser-inter-byte-timeout": "11.0.0", | ||
"@serialport/parser-packet-length": "11.0.0", | ||
"@serialport/parser-readline": "11.0.0", | ||
"@serialport/parser-ready": "11.0.0", | ||
"@serialport/parser-regex": "11.0.0", | ||
"@serialport/parser-slip-encoder": "11.0.0", | ||
"@serialport/parser-spacepacket": "11.0.0", | ||
"@serialport/stream": "11.0.0", | ||
"debug": "4.3.4" | ||
}, | ||
@@ -76,5 +76,5 @@ "engines": { | ||
"devDependencies": { | ||
"typescript": "^4.5.5" | ||
"typescript": "5.0.4" | ||
}, | ||
"gitHead": "d8330a3d2b287230eabe92ae6b9bf44bc8c06f56" | ||
"gitHead": "6a8202cd947c87ac70c9f3c84d60fe4b5f5d70a9" | ||
} |
@@ -20,3 +20,3 @@ # serialport | ||
- [`@serialport/bindings-cpp`](https://serialport.io/docs/api-bindings) bindings for Linux, Mac and Windows | ||
- [`@serialport/bindings-cpp`](https://serialport.io/docs/api-bindings-cpp) bindings for Linux, Mac and Windows | ||
- [`@serialport/bindings-interface`](https://serialport.io/docs/api-bindings-interface) a typescript interface to use if you're making your own bindings | ||
@@ -23,0 +23,0 @@ - [`@serialport/binding-mock`](https://serialport.io/docs/api-binding-mock) for a mock binding package for testing |
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
12263
91
+ Added@serialport/bindings-cpp@11.0.1(transitive)
+ Added@serialport/parser-byte-length@11.0.0(transitive)
+ Added@serialport/parser-cctalk@11.0.0(transitive)
+ Added@serialport/parser-delimiter@11.0.0(transitive)
+ Added@serialport/parser-inter-byte-timeout@11.0.0(transitive)
+ Added@serialport/parser-packet-length@11.0.0(transitive)
+ Added@serialport/parser-readline@11.0.0(transitive)
+ Added@serialport/parser-ready@11.0.0(transitive)
+ Added@serialport/parser-regex@11.0.0(transitive)
+ Added@serialport/parser-slip-encoder@11.0.0(transitive)
+ Added@serialport/parser-spacepacket@11.0.0(transitive)
+ Added@serialport/stream@11.0.0(transitive)
+ Addeddebug@4.3.4(transitive)
+ Addedms@2.1.2(transitive)
+ Addednode-addon-api@6.1.0(transitive)
+ Addednode-gyp-build@4.6.0(transitive)
- Removed@serialport/bindings-cpp@10.8.0(transitive)
- Removed@serialport/parser-byte-length@10.5.0(transitive)
- Removed@serialport/parser-cctalk@10.5.0(transitive)
- Removed@serialport/parser-inter-byte-timeout@10.5.0(transitive)
- Removed@serialport/parser-packet-length@10.5.0(transitive)
- Removed@serialport/parser-ready@10.5.0(transitive)
- Removed@serialport/parser-regex@10.5.0(transitive)
- Removed@serialport/parser-slip-encoder@10.5.0(transitive)
- Removed@serialport/parser-spacepacket@10.5.0(transitive)
- Removed@serialport/stream@10.5.0(transitive)
- Removeddebug@4.3.7(transitive)
- Removedms@2.1.3(transitive)
- Removednode-addon-api@5.1.0(transitive)
- Removednode-gyp-build@4.8.2(transitive)
Updated@serialport/stream@11.0.0
Updateddebug@4.3.4