Use workspace meshtastic packages (#749)
* refactor: updated web package.json to use workspace * formatting fixes
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export * as Protobuf from "@meshtastic/protobufs";
|
||||
export { Constants } from "./src/constants.ts";
|
||||
export { MeshDevice } from "./src/meshDevice.ts";
|
||||
export * as Protobuf from "@meshtastic/protobufs";
|
||||
export * as Types from "./src/types.ts";
|
||||
export * as Utils from "./src/utils/mod.ts";
|
||||
|
||||
@@ -202,7 +202,7 @@ export class MeshDevice {
|
||||
});
|
||||
|
||||
if (echoResponse) {
|
||||
meshPacket.rxTime = Math.trunc(new Date().getTime() / 1000);
|
||||
meshPacket.rxTime = Math.trunc(Date.now() / 1000);
|
||||
this.handleMeshPacket(meshPacket);
|
||||
}
|
||||
return await this.sendRaw(
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type * as Protobuf from "@meshtastic/protobufs";
|
||||
import { SimpleEventDispatcher } from "ste-simple-events";
|
||||
import type { PacketMetadata } from "../types.ts";
|
||||
import type * as Types from "../types.ts";
|
||||
import type { PacketMetadata } from "../types.ts";
|
||||
|
||||
export class EventSystem {
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export { EventSystem } from "./eventSystem.ts";
|
||||
export { Queue } from "./queue.ts";
|
||||
export { Xmodem } from "./xmodem.ts";
|
||||
export { toDeviceStream } from "./transform/toDevice.ts";
|
||||
export { fromDeviceStream } from "./transform/fromDevice.ts";
|
||||
export { toDeviceStream } from "./transform/toDevice.ts";
|
||||
export { Xmodem } from "./xmodem.ts";
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { fromBinary } from "@bufbuild/protobuf";
|
||||
import { Constants, Protobuf, Types } from "../../../mod.ts";
|
||||
import type { MeshDevice } from "../../../mod.ts";
|
||||
import { Constants, Protobuf, Types } from "../../../mod.ts";
|
||||
import type { DeviceOutput } from "../../types.ts";
|
||||
|
||||
export const decodePacket = (device: MeshDevice) =>
|
||||
|
||||
Reference in New Issue
Block a user