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.37 kB
{"version":3,"file":"SdJwtVcModule.mjs","names":[],"sources":["../../../src/modules/sd-jwt-vc/SdJwtVcModule.ts"],"sourcesContent":["import type { DependencyManager, Module } from '../../plugins'\nimport { SdJwtVcRepository } from './repository'\nimport { SdJwtVcApi } from './SdJwtVcApi'\nimport { SdJwtVcModuleConfig, type SdJwtVcModuleConfigOptions } from './SdJwtVcModuleConfig'\nimport { SdJwtVcService } from './SdJwtVcService'\n\n/**\n * @public\n */\nexport class SdJwtVcModule implements Module {\n public readonly config: SdJwtVcModuleConfig\n\n public readonly api = SdJwtVcApi\n\n public constructor(options?: SdJwtVcModuleConfigOptions) {\n this.config = new SdJwtVcModuleConfig(options)\n }\n\n /**\n * Registers the dependencies of the sd-jwt-vc module on the dependency manager.\n */\n public register(dependencyManager: DependencyManager) {\n // Config\n dependencyManager.registerInstance(SdJwtVcModuleConfig, this.config)\n\n // Services\n dependencyManager.registerSingleton(SdJwtVcService)\n\n // Repositories\n dependencyManager.registerSingleton(SdJwtVcRepository)\n }\n}\n"],"mappings":";;;;;;;;;AASA,IAAa,gBAAb,MAA6C;CAK3C,YAAmB,SAAsC;EAFzD,KAAgB,MAAM;EAGpB,KAAK,SAAS,IAAI,oBAAoB,OAAO;CAC/C;;;;CAKA,SAAgB,mBAAsC;EAEpD,kBAAkB,iBAAiB,qBAAqB,KAAK,MAAM;EAGnE,kBAAkB,kBAAkB,cAAc;EAGlD,kBAAkB,kBAAkB,iBAAiB;CACvD;AACF"}