UNPKG

@danidoble/webserial

Version:
68 lines (67 loc) 1.62 kB
import { s as a } from "./webserial-core-Bn6Ker2l.js"; class r extends a { constructor() { super(), r.registerType("boardroid"), r.registerType("hopper"), r.registerType("jofemar"), r.registerType("locker"), r.registerType("pinpad"), r.registerType("pinpax"), r.registerType("relay"), r.registerType("jsd"); } static addCustom(t, e) { r.registerType(t), r.add(e); } /** * @deprecated use get instead * */ static getCustomByUuid(t, e) { return r.get(t, e); } static getJofemarByUuid(t) { return r.get("jofemar", t); } static getLockerByUuid(t) { return r.get("locker", t); } static getRelayByUuid(t) { return r.get("relay", t); } static getBoardroidByUuid(t) { return r.get("boardroid", t); } static getPinPadByUuid(t) { return r.get("pinpad", t); } static getPinPaxByUuid(t) { return r.get("pinpax", t); } static getHopperByUuid(t) { return r.get("hopper", t); } static getJsdByUuid(t) { return r.get("jsd", t); } static getJofemar(t = 1) { return r.getByNumber("jofemar", t); } static getBoardroid(t = 1) { return r.getByNumber("boardroid", t); } static getLocker(t = 1) { return r.getByNumber("locker", t); } static getRelay(t = 1) { return r.getByNumber("relay", t); } static getPinPad(t = 1) { return r.getByNumber("pinpad", t); } static getPinPax(t = 1) { return r.getByNumber("pinpax", t); } static getHopper(t = 1) { return r.getByNumber("hopper", t); } static getJsd(t = 1) { return r.getByNumber("jsd", t); } } r.instance = new r(); export { r as D };