@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.03 kB
Source Map (JSON)
{"version":3,"file":"nativeDocumentLoader.mjs","names":[],"sources":["../../../../../src/modules/vc/data-integrity/libraries/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;AAE5B,KAAI,CAAC,OAAQ,OAAM,IAAI,MAAM,gFAAgF;AAC7G,KAAI,OAAO,WAAW,WAAY,QAAO;AACzC,KAAI,OAAO,WAAW,YAAY,OAAO,OAAO,YAAY,WAAY,QAAO,OAAO;AAEtF,OAAM,IAAI,MAAM,iFAAiF"}