Initial commit
This commit is contained in:
18
node_modules/serialport/dist/serialport.js
generated
vendored
Normal file
18
node_modules/serialport/dist/serialport.js
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SerialPort = void 0;
|
||||
const stream_1 = require("@serialport/stream");
|
||||
const bindings_cpp_1 = require("@serialport/bindings-cpp");
|
||||
const DetectedBinding = (0, bindings_cpp_1.autoDetect)();
|
||||
class SerialPort extends stream_1.SerialPortStream {
|
||||
static list = DetectedBinding.list;
|
||||
static binding = DetectedBinding;
|
||||
constructor(options, openCallback) {
|
||||
const opts = {
|
||||
binding: DetectedBinding,
|
||||
...options,
|
||||
};
|
||||
super(opts, openCallback);
|
||||
}
|
||||
}
|
||||
exports.SerialPort = SerialPort;
|
||||
Reference in New Issue
Block a user