Dia antes primera install
This commit is contained in:
17
node_modules/serialport/dist/serialport-mock.js
generated
vendored
Normal file
17
node_modules/serialport/dist/serialport-mock.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SerialPortMock = void 0;
|
||||
const stream_1 = require("@serialport/stream");
|
||||
const binding_mock_1 = require("@serialport/binding-mock");
|
||||
class SerialPortMock extends stream_1.SerialPortStream {
|
||||
static list = binding_mock_1.MockBinding.list;
|
||||
static binding = binding_mock_1.MockBinding;
|
||||
constructor(options, openCallback) {
|
||||
const opts = {
|
||||
binding: binding_mock_1.MockBinding,
|
||||
...options,
|
||||
};
|
||||
super(opts, openCallback);
|
||||
}
|
||||
}
|
||||
exports.SerialPortMock = SerialPortMock;
|
||||
Reference in New Issue
Block a user