release: @marketplaces/auth 0.2.0 (f6a58a9)

This commit is contained in:
2026-08-21 08:16:02 +04:00
parent 2c20e3aff2
commit e8052159e9
2 changed files with 3 additions and 3 deletions

View File

@@ -35,10 +35,10 @@ function normalizeMarketplaceDomain(domain) {
} }
class AuthMarketplaceContext { class AuthMarketplaceContext {
constructor() { constructor() {
this.config = inject(MARKETPLACES_AUTH_CONFIG); this.config = inject(MARKETPLACES_AUTH_CONFIG, { optional: true });
} }
domain() { domain() {
const configured = this.config.marketplaceDomain; const configured = this.config?.marketplaceDomain;
const domain = typeof configured === 'function' const domain = typeof configured === 'function'
? configured() ? configured()
: configured ?? (typeof location === 'undefined' ? '' : location.hostname); : configured ?? (typeof location === 'undefined' ? '' : location.hostname);

File diff suppressed because one or more lines are too long