From 8fd0b06682ee88fcac6420ab6df7f323e2f2b9f4 Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Mon, 26 Aug 2024 21:49:10 -0400 Subject: [PATCH] lint --- packages/agent/src/agent-did-resolver-cache.ts | 10 +++++----- packages/agent/src/did-api.ts | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/agent/src/agent-did-resolver-cache.ts b/packages/agent/src/agent-did-resolver-cache.ts index a10d325d9..15ea9006a 100644 --- a/packages/agent/src/agent-did-resolver-cache.ts +++ b/packages/agent/src/agent-did-resolver-cache.ts @@ -1,5 +1,5 @@ -import { DidResolutionResult, DidResolverCache, DidResolverCacheLevel, DidResolverCacheLevelParams } from "@web5/dids"; -import { Web5PlatformAgent } from "./types/agent.js"; +import { DidResolutionResult, DidResolverCache, DidResolverCacheLevel, DidResolverCacheLevelParams } from '@web5/dids'; +import { Web5PlatformAgent } from './types/agent.js'; export class AgentDidResolverCache extends DidResolverCacheLevel implements DidResolverCache { @@ -15,8 +15,8 @@ export class AgentDidResolverCache extends DidResolverCacheLevel implements DidR get agent() { if (!this._agent) { - throw new Error("Agent not initialized"); - } + throw new Error('Agent not initialized'); + } return this._agent; } @@ -36,7 +36,7 @@ export class AgentDidResolverCache extends DidResolverCacheLevel implements DidR if (!result.didResolutionMetadata.error) { this.set(did, result); } - }).finally(() => delete this._resolving[did]) + }).finally(() => delete this._resolving[did]); } else { delete this._resolving[did]; diff --git a/packages/agent/src/did-api.ts b/packages/agent/src/did-api.ts index 4df8c896b..63e06f6cc 100644 --- a/packages/agent/src/did-api.ts +++ b/packages/agent/src/did-api.ts @@ -89,7 +89,7 @@ export interface DidApiParams { /** * An optional `AgentDidResolverCache` instance used for caching resolved DID documents. - * + * * If omitted, the default LevelDB and parameters are used to create a new cache instance. */ resolverCache?: DidResolverCache; @@ -128,8 +128,8 @@ export class AgentDidApi this._cache = resolverCache ?? new AgentDidResolverCache({ location: 'DATA/AGENT/DID_CACHE' }); this._resolver = new UniversalResolver({ - cache: this._cache, - didResolvers: didMethods + cache : this._cache, + didResolvers : didMethods }); this._agent = agent;