@xh/hoist 75.0.0-SNAPSHOT.1752499376565 → 75.0.0-SNAPSHOT.1752533177209
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "75.0.0-SNAPSHOT.
|
|
3
|
+
"version": "75.0.0-SNAPSHOT.1752533177209",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|
|
@@ -14,7 +14,7 @@ import {AccessTokenSpec, TokenMap} from './Types';
|
|
|
14
14
|
import {Timer} from '@xh/hoist/utils/async';
|
|
15
15
|
import {MINUTES, olderThan, ONE_MINUTE, SECONDS} from '@xh/hoist/utils/datetime';
|
|
16
16
|
import {isJSON, logError, throwIf} from '@xh/hoist/utils/js';
|
|
17
|
-
import {find, forEach, isEmpty, isObject, keys, map, pickBy, union} from 'lodash';
|
|
17
|
+
import {compact, find, forEach, head, isEmpty, isObject, keys, map, pickBy, union} from 'lodash';
|
|
18
18
|
import ShortUniqueId from 'short-unique-id';
|
|
19
19
|
|
|
20
20
|
export type LoginMethod = 'REDIRECT' | 'POPUP';
|
|
@@ -260,7 +260,9 @@ export abstract class BaseOAuthClient<
|
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
protected get baseUrl() {
|
|
263
|
-
|
|
263
|
+
const {origin, pathname} = window.location,
|
|
264
|
+
firstSegment = head(compact(pathname.split('/')));
|
|
265
|
+
return firstSegment ? `${origin}/${firstSegment}/` : `${origin}/`;
|
|
264
266
|
}
|
|
265
267
|
|
|
266
268
|
protected get blankUrl() {
|