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

1 lines • 1.02 kB
{"version":3,"file":"nativeDocumentLoader.mjs","names":[],"sources":["../../../../src/modules/vc/jsonld/nativeDocumentLoader.ts"],"sourcesContent":["import type { DocumentLoader } from './jsonld.js'\n\nexport async function getNativeDocumentLoader(): Promise<() => DocumentLoader> {\n // @ts-expect-error package doesn't have types\n const loader = await import('@digitalcredentials/jsonld/lib/documentLoaders/node.js')\n\n if (!loader) throw new Error('Could not load node document loader. Module did not contain a loader function')\n if (typeof loader === 'function') return loader\n if (typeof loader === 'object' && typeof loader.default === 'function') return loader.default\n\n throw new Error('Could not load node document loader. Module did not contain a loader function.')\n}\n"],"mappings":";AAEA,eAAsB,0BAAyD;CAE7E,MAAM,SAAS,MAAM,OAAO;CAE5B,IAAI,CAAC,QAAQ,MAAM,IAAI,MAAM,+EAA+E;CAC5G,IAAI,OAAO,WAAW,YAAY,OAAO;CACzC,IAAI,OAAO,WAAW,YAAY,OAAO,OAAO,YAAY,YAAY,OAAO,OAAO;CAEtF,MAAM,IAAI,MAAM,gFAAgF;AAClG"}