UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

12 lines (11 loc) • 646 B
//#region src/modules/vc/jsonld/nativeDocumentLoader.ts async function getNativeDocumentLoader() { const loader = await import("@digitalcredentials/jsonld/lib/documentLoaders/node.js"); if (!loader) throw new Error("Could not load node document loader. Module did not contain a loader function"); if (typeof loader === "function") return loader; if (typeof loader === "object" && typeof loader.default === "function") return loader.default; throw new Error("Could not load node document loader. Module did not contain a loader function."); } //#endregion export { getNativeDocumentLoader }; //# sourceMappingURL=nativeDocumentLoader.mjs.map