diff --git a/packages/nvmedit/src/index_browser.ts b/packages/nvmedit/src/index_browser.ts index de14cca81711..88c2cc2ada4c 100644 --- a/packages/nvmedit/src/index_browser.ts +++ b/packages/nvmedit/src/index_browser.ts @@ -2,17 +2,6 @@ import "reflect-metadata"; -export type { - NVMJSON, - NVMJSONController, - NVMJSONControllerRFConfig, - NVMJSONNode, - NVMJSONNodeWithInfo, - NVMJSONVirtualNode, -} from "./convert.js"; -// FIXME: This transitively imports `semver`, which is fine to have in the browser -// Decide whether we want to add semver as a general exception to the forbidden imports rule -// eslint-disable-next-line @zwave-js/no-forbidden-imports export { json500To700, json700To500, @@ -22,8 +11,20 @@ export { nvm500ToJSON, nvmToJSON, } from "./convert.js"; -export type { NVM3EraseOptions, NVM3Meta } from "./lib/NVM3.js"; -export type { NVM500EraseOptions, NVM500Info } from "./lib/NVM500.js"; +export type { + NVMJSON, + NVMJSONController, + NVMJSONControllerRFConfig, + NVMJSONNode, + NVMJSONNodeWithInfo, + NVMJSONVirtualNode, +} from "./convert.js"; +export { NVM3, type NVM3EraseOptions, type NVM3Meta } from "./lib/NVM3.js"; +export { + NVM500, + type NVM500EraseOptions, + type NVM500Info, +} from "./lib/NVM500.js"; export { NVMAccess } from "./lib/common/definitions.js"; export type { ControllerNVMProperty, @@ -39,14 +40,17 @@ export type { NodeNVMPropertyToDataType, } from "./lib/common/definitions.js"; export { BufferedNVMReader } from "./lib/io/BufferedNVMReader.js"; +export { NVM3Adapter } from "./lib/nvm3/adapter.js"; export { FragmentType, ObjectType, PageStatus, PageWriteSize, } from "./lib/nvm3/consts.js"; +export * from "./lib/nvm3/files/index.js"; export type { NVM3Object } from "./lib/nvm3/object.js"; export type { NVM3Page, NVM3PageHeader } from "./lib/nvm3/page.js"; +export { NVM500Adapter } from "./lib/nvm500/adapter.js"; export type { NVM500JSON, NVM500JSONController,