import { ObjectFreeze } from "ext:core/primordials"; import { posixBase, win32Base } from "./lexical.js"; import { posixFromFileUrl, posixToFileUrl, win32FromFileUrl, win32ToFileUrl, } from "./urls.js"; // Both variant namespaces are built once here so every entry module shares // their identity; wrappers only re-export them and the chosen top-level names. const posix = ObjectFreeze({ ...posixBase, fromFileUrl: posixFromFileUrl, toFileUrl: posixToFileUrl, }); const win32 = ObjectFreeze({ ...win32Base, fromFileUrl: win32FromFileUrl, toFileUrl: win32ToFileUrl, }); export { posix, win32 };