From 53369144b2936b19a67014dc4087278f99c1b263 Mon Sep 17 00:00:00 2001 From: Harminder Virk Date: Tue, 23 Jan 2024 17:33:41 +0530 Subject: [PATCH] refactor: make allyManager.config property public --- src/ally_manager.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/ally_manager.ts b/src/ally_manager.ts index f40b5c0..3bbf3cd 100644 --- a/src/ally_manager.ts +++ b/src/ally_manager.ts @@ -16,16 +16,14 @@ import type { AllyDriverContract, AllyManagerDriverFactory } from './types.js' * HTTP request. The drivers are cached during the lifecycle of a request. */ export class AllyManager> { - /** - * Config with the list of social providers - */ - #config: KnownSocialProviders #ctx: HttpContext #driversCache: Map> = new Map() - constructor(config: KnownSocialProviders, ctx: HttpContext) { + constructor( + public config: KnownSocialProviders, + ctx: HttpContext + ) { this.#ctx = ctx - this.#config = config } /** @@ -38,7 +36,7 @@ export class AllyManager } - const driver = this.#config[provider] + const driver = this.config[provider] if (!driver) { throw new RuntimeException( `Unknown ally provider "${String(