Initial commit

This commit is contained in:
Marcelo
2025-11-20 15:27:34 -06:00
commit cc72c9fc5d
3221 changed files with 737477 additions and 0 deletions

12
node_modules/serialport/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,12 @@
export * from '@serialport/parser-byte-length';
export * from '@serialport/parser-cctalk';
export * from '@serialport/parser-delimiter';
export * from '@serialport/parser-inter-byte-timeout';
export * from '@serialport/parser-packet-length';
export * from '@serialport/parser-readline';
export * from '@serialport/parser-ready';
export * from '@serialport/parser-regex';
export * from '@serialport/parser-slip-encoder';
export * from '@serialport/parser-spacepacket';
export * from './serialport-mock';
export * from './serialport';

28
node_modules/serialport/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,28 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = 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) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("@serialport/parser-byte-length"), exports);
__exportStar(require("@serialport/parser-cctalk"), exports);
__exportStar(require("@serialport/parser-delimiter"), exports);
__exportStar(require("@serialport/parser-inter-byte-timeout"), exports);
__exportStar(require("@serialport/parser-packet-length"), exports);
__exportStar(require("@serialport/parser-readline"), exports);
__exportStar(require("@serialport/parser-ready"), exports);
__exportStar(require("@serialport/parser-regex"), exports);
__exportStar(require("@serialport/parser-slip-encoder"), exports);
__exportStar(require("@serialport/parser-spacepacket"), exports);
__exportStar(require("./serialport-mock"), exports);
__exportStar(require("./serialport"), exports);

8
node_modules/serialport/dist/serialport-mock.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
import { ErrorCallback, OpenOptions, SerialPortStream } from '@serialport/stream';
import { MockBindingInterface } from '@serialport/binding-mock';
export type SerialPortMockOpenOptions = Omit<OpenOptions<MockBindingInterface>, 'binding'>;
export declare class SerialPortMock extends SerialPortStream<MockBindingInterface> {
static list: () => Promise<import("@serialport/bindings-interface").PortInfo[]>;
static readonly binding: MockBindingInterface;
constructor(options: SerialPortMockOpenOptions, openCallback?: ErrorCallback);
}

17
node_modules/serialport/dist/serialport-mock.js generated vendored Normal file
View 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;

8
node_modules/serialport/dist/serialport.d.ts generated vendored Normal file
View File

@@ -0,0 +1,8 @@
import { ErrorCallback, SerialPortStream, StreamOptions } from '@serialport/stream';
import { AutoDetectTypes, OpenOptionsFromBinding } from '@serialport/bindings-cpp';
export type SerialPortOpenOptions<T extends AutoDetectTypes> = Omit<StreamOptions<T>, 'binding'> & OpenOptionsFromBinding<T>;
export declare class SerialPort<T extends AutoDetectTypes = AutoDetectTypes> extends SerialPortStream<T> {
static list: () => Promise<import("@serialport/bindings-interface").PortInfo[]>;
static readonly binding: AutoDetectTypes;
constructor(options: SerialPortOpenOptions<T>, openCallback?: ErrorCallback);
}

18
node_modules/serialport/dist/serialport.js generated vendored Normal file
View 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;