release: @marketplaces/auth 0.2.0 (f6a58a9)
This commit is contained in:
4
dist/fesm2022/marketplaces-auth.mjs
vendored
4
dist/fesm2022/marketplaces-auth.mjs
vendored
@@ -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);
|
||||||
|
|||||||
2
dist/fesm2022/marketplaces-auth.mjs.map
vendored
2
dist/fesm2022/marketplaces-auth.mjs.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user