@dynamic-labs/utils 2.1.0-alpha.24 → 2.1.0-alpha.26
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/CHANGELOG.md +20 -0
- package/package.json +3 -3
- package/src/errors/MfaInvalidOtpError.cjs +14 -0
- package/src/errors/MfaInvalidOtpError.d.ts +4 -0
- package/src/errors/MfaInvalidOtpError.js +10 -0
- package/src/errors/index.d.ts +1 -0
- package/src/getTLD/getTLD.cjs +3 -2
- package/src/getTLD/getTLD.js +3 -2
- package/src/index.cjs +6 -6
- package/src/index.d.ts +1 -1
- package/src/index.js +3 -3
- package/src/services/PlatformService/PlatformService.cjs +32 -0
- package/src/services/PlatformService/PlatformService.d.ts +10 -0
- package/src/services/PlatformService/PlatformService.js +28 -0
- package/src/services/{LocationService/utils/createLocationFromWindow/createLocationFromWindow.cjs → PlatformService/createBrowserPlatformService/createBrowserPlatformService.cjs} +9 -2
- package/src/services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.d.ts +2 -0
- package/src/services/{LocationService/utils/createLocationFromWindow/createLocationFromWindow.js → PlatformService/createBrowserPlatformService/createBrowserPlatformService.js} +9 -2
- package/src/services/PlatformService/createBrowserPlatformService/index.d.ts +1 -0
- package/src/services/PlatformService/index.d.ts +3 -0
- package/src/services/PlatformService/types.d.ts +17 -0
- package/src/services/LocationService/LocationService.cjs +0 -26
- package/src/services/LocationService/LocationService.d.ts +0 -8
- package/src/services/LocationService/LocationService.js +0 -22
- package/src/services/LocationService/index.d.ts +0 -3
- package/src/services/LocationService/types.d.ts +0 -4
- package/src/services/LocationService/utils/createLocationFromOrigin/createLocationFromOrigin.cjs +0 -14
- package/src/services/LocationService/utils/createLocationFromOrigin/createLocationFromOrigin.d.ts +0 -2
- package/src/services/LocationService/utils/createLocationFromOrigin/createLocationFromOrigin.js +0 -10
- package/src/services/LocationService/utils/createLocationFromOrigin/index.d.ts +0 -1
- package/src/services/LocationService/utils/createLocationFromWindow/createLocationFromWindow.d.ts +0 -2
- package/src/services/LocationService/utils/createLocationFromWindow/index.d.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,24 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.1.0-alpha.26](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.25...v2.1.0-alpha.26) (2024-05-29)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add farcaster login to react native ([#5713](https://github.com/dynamic-labs/DynamicAuth/issues/5713)) ([08f4473](https://github.com/dynamic-labs/DynamicAuth/commit/08f4473eec9b32b82b6f703fa4d5136514a61b25))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* better error handling of invalid mfa otp ([#5759](https://github.com/dynamic-labs/DynamicAuth/issues/5759)) ([72ab01f](https://github.com/dynamic-labs/DynamicAuth/commit/72ab01f8f919f147eeedfabf8b4838802abf308a))
|
|
13
|
+
* show correct status for magic eden btc wallets after ([#5748](https://github.com/dynamic-labs/DynamicAuth/issues/5748)) ([b8f20bb](https://github.com/dynamic-labs/DynamicAuth/commit/b8f20bb796b9a2e88817ef3b0da6ac32e9012b18))
|
|
14
|
+
|
|
15
|
+
## [2.1.0-alpha.25](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.24...v2.1.0-alpha.25) (2024-05-27)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* btc balance calculation ([#5737](https://github.com/dynamic-labs/DynamicAuth/issues/5737)) ([9b5ceb3](https://github.com/dynamic-labs/DynamicAuth/commit/9b5ceb32d543037f60d7104f0b81b3abc86ebd10))
|
|
21
|
+
|
|
2
22
|
## [2.1.0-alpha.24](https://github.com/dynamic-labs/DynamicAuth/compare/v2.1.0-alpha.23...v2.1.0-alpha.24) (2024-05-26)
|
|
3
23
|
|
|
4
24
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/utils",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.26",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@dynamic-labs/sdk-api-core": "0.0.453",
|
|
30
30
|
"tldts": "6.0.16",
|
|
31
|
-
"@dynamic-labs/logger": "2.1.0-alpha.
|
|
32
|
-
"@dynamic-labs/types": "2.1.0-alpha.
|
|
31
|
+
"@dynamic-labs/logger": "2.1.0-alpha.26",
|
|
32
|
+
"@dynamic-labs/types": "2.1.0-alpha.26",
|
|
33
33
|
"buffer": "6.0.3"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var DynamicError = require('./DynamicError.cjs');
|
|
7
|
+
|
|
8
|
+
class MfaInvalidOtpError extends DynamicError.DynamicError {
|
|
9
|
+
constructor() {
|
|
10
|
+
super('Invalid MFA OTP');
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.MfaInvalidOtpError = MfaInvalidOtpError;
|
package/src/errors/index.d.ts
CHANGED
package/src/getTLD/getTLD.cjs
CHANGED
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var PlatformService = require('../services/PlatformService/PlatformService.cjs');
|
|
7
|
+
require('../../_virtual/_tslib.cjs');
|
|
7
8
|
require('tldts');
|
|
8
9
|
|
|
9
|
-
const getTLD = () =>
|
|
10
|
+
const getTLD = () => PlatformService.PlatformService.getTLD();
|
|
10
11
|
|
|
11
12
|
exports.getTLD = getTLD;
|
package/src/getTLD/getTLD.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
|
-
import {
|
|
2
|
+
import { PlatformService } from '../services/PlatformService/PlatformService.js';
|
|
3
|
+
import '../../_virtual/_tslib.js';
|
|
3
4
|
import 'tldts';
|
|
4
5
|
|
|
5
|
-
const getTLD = () =>
|
|
6
|
+
const getTLD = () => PlatformService.getTLD();
|
|
6
7
|
|
|
7
8
|
export { getTLD };
|
package/src/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ var CustomFieldNotUniqueError = require('./errors/CustomFieldNotUniqueError.cjs'
|
|
|
34
34
|
var CookieInvalidError = require('./errors/CookieInvalidError.cjs');
|
|
35
35
|
var AccessBlockedError = require('./errors/AccessBlockedError.cjs');
|
|
36
36
|
var EmbeddedWalletException = require('./errors/EmbeddedWalletException.cjs');
|
|
37
|
+
var MfaInvalidOtpError = require('./errors/MfaInvalidOtpError.cjs');
|
|
37
38
|
var CancellablePromise = require('./CancellablePromise/CancellablePromise.cjs');
|
|
38
39
|
var isFunction = require('./isFunction/isFunction.cjs');
|
|
39
40
|
var isMobile = require('./isMobile.cjs');
|
|
@@ -55,9 +56,8 @@ var ceil = require('./ceil/ceil.cjs');
|
|
|
55
56
|
var trimEnd = require('./trimEnd/trimEnd.cjs');
|
|
56
57
|
var isLedgerAddressViaVerifiedCredentials = require('./isLedgerAddressViaVerifiedCredentials.cjs');
|
|
57
58
|
var runSafe = require('./runSafe/runSafe.cjs');
|
|
58
|
-
var
|
|
59
|
-
var
|
|
60
|
-
var createLocationFromOrigin = require('./services/LocationService/utils/createLocationFromOrigin/createLocationFromOrigin.cjs');
|
|
59
|
+
var PlatformService = require('./services/PlatformService/PlatformService.cjs');
|
|
60
|
+
var createBrowserPlatformService = require('./services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.cjs');
|
|
61
61
|
var FetchService = require('./services/FetchService/FetchService.cjs');
|
|
62
62
|
|
|
63
63
|
|
|
@@ -93,6 +93,7 @@ exports.CustomFieldNotUniqueError = CustomFieldNotUniqueError.CustomFieldNotUniq
|
|
|
93
93
|
exports.CookieInvalidError = CookieInvalidError.CookieInvalidError;
|
|
94
94
|
exports.AccessBlockedError = AccessBlockedError.AccessBlockedError;
|
|
95
95
|
exports.EmbeddedWalletException = EmbeddedWalletException.EmbeddedWalletException;
|
|
96
|
+
exports.MfaInvalidOtpError = MfaInvalidOtpError.MfaInvalidOtpError;
|
|
96
97
|
exports.CancellablePromise = CancellablePromise.CancellablePromise;
|
|
97
98
|
exports.isFunction = isFunction.isFunction;
|
|
98
99
|
exports.getAndroidVersion = isMobile.getAndroidVersion;
|
|
@@ -128,7 +129,6 @@ exports.ceil = ceil.ceil;
|
|
|
128
129
|
exports.trimEnd = trimEnd.trimEnd;
|
|
129
130
|
exports.isLedgerAddressViaVerifiedCredentials = isLedgerAddressViaVerifiedCredentials.isLedgerAddressViaVerifiedCredentials;
|
|
130
131
|
exports.runSafe = runSafe.runSafe;
|
|
131
|
-
exports.
|
|
132
|
-
exports.
|
|
133
|
-
exports.createLocationFromOrigin = createLocationFromOrigin.createLocationFromOrigin;
|
|
132
|
+
exports.PlatformService = PlatformService.PlatformService;
|
|
133
|
+
exports.createBrowserPlatformService = createBrowserPlatformService.createBrowserPlatformService;
|
|
134
134
|
exports.FetchService = FetchService.FetchService;
|
package/src/index.d.ts
CHANGED
|
@@ -22,5 +22,5 @@ export * from './ceil';
|
|
|
22
22
|
export * from './trimEnd';
|
|
23
23
|
export * from './isLedgerAddressViaVerifiedCredentials';
|
|
24
24
|
export { runSafe } from './runSafe';
|
|
25
|
-
export {
|
|
25
|
+
export { PlatformService, createBrowserPlatformService, type IPlatformService, } from './services/PlatformService';
|
|
26
26
|
export { FetchService } from './services/FetchService';
|
package/src/index.js
CHANGED
|
@@ -30,6 +30,7 @@ export { CustomFieldNotUniqueError } from './errors/CustomFieldNotUniqueError.js
|
|
|
30
30
|
export { CookieInvalidError } from './errors/CookieInvalidError.js';
|
|
31
31
|
export { AccessBlockedError } from './errors/AccessBlockedError.js';
|
|
32
32
|
export { EmbeddedWalletException } from './errors/EmbeddedWalletException.js';
|
|
33
|
+
export { MfaInvalidOtpError } from './errors/MfaInvalidOtpError.js';
|
|
33
34
|
export { CancellablePromise } from './CancellablePromise/CancellablePromise.js';
|
|
34
35
|
export { isFunction } from './isFunction/isFunction.js';
|
|
35
36
|
export { getAndroidVersion, isAndroid, isIOS, isIPad, isIPhone, isIPhone8OrEarlier, isLegacySafari, isMobile, isSamsungBrowser, isWindows } from './isMobile.js';
|
|
@@ -51,7 +52,6 @@ export { ceil } from './ceil/ceil.js';
|
|
|
51
52
|
export { trimEnd } from './trimEnd/trimEnd.js';
|
|
52
53
|
export { isLedgerAddressViaVerifiedCredentials } from './isLedgerAddressViaVerifiedCredentials.js';
|
|
53
54
|
export { runSafe } from './runSafe/runSafe.js';
|
|
54
|
-
export {
|
|
55
|
-
export {
|
|
56
|
-
export { createLocationFromOrigin } from './services/LocationService/utils/createLocationFromOrigin/createLocationFromOrigin.js';
|
|
55
|
+
export { PlatformService } from './services/PlatformService/PlatformService.js';
|
|
56
|
+
export { createBrowserPlatformService } from './services/PlatformService/createBrowserPlatformService/createBrowserPlatformService.js';
|
|
57
57
|
export { FetchService } from './services/FetchService/FetchService.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
+
|
|
6
|
+
var createBrowserPlatformService = require('./createBrowserPlatformService/createBrowserPlatformService.cjs');
|
|
7
|
+
|
|
8
|
+
class PlatformService {
|
|
9
|
+
static get implementation() {
|
|
10
|
+
if (!PlatformService._implementation) {
|
|
11
|
+
return createBrowserPlatformService.createBrowserPlatformService(window);
|
|
12
|
+
}
|
|
13
|
+
return PlatformService._implementation;
|
|
14
|
+
}
|
|
15
|
+
static setImplementation(implementation) {
|
|
16
|
+
PlatformService._implementation = implementation;
|
|
17
|
+
}
|
|
18
|
+
static get getHostname() {
|
|
19
|
+
return PlatformService.implementation.getHostname;
|
|
20
|
+
}
|
|
21
|
+
static get getTLD() {
|
|
22
|
+
return PlatformService.implementation.getTLD;
|
|
23
|
+
}
|
|
24
|
+
static get openURL() {
|
|
25
|
+
return PlatformService.implementation.openURL;
|
|
26
|
+
}
|
|
27
|
+
static get openNewWindow() {
|
|
28
|
+
return PlatformService.implementation.openNewWindow;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
exports.PlatformService = PlatformService;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IPlatformService } from './types';
|
|
2
|
+
export declare class PlatformService {
|
|
3
|
+
static _implementation: IPlatformService;
|
|
4
|
+
static get implementation(): IPlatformService;
|
|
5
|
+
static setImplementation(implementation: IPlatformService): void;
|
|
6
|
+
static get getHostname(): () => string;
|
|
7
|
+
static get getTLD(): () => string | undefined;
|
|
8
|
+
static get openURL(): (url: string) => Promise<void>;
|
|
9
|
+
static get openNewWindow(): (url: string) => Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
import { createBrowserPlatformService } from './createBrowserPlatformService/createBrowserPlatformService.js';
|
|
3
|
+
|
|
4
|
+
class PlatformService {
|
|
5
|
+
static get implementation() {
|
|
6
|
+
if (!PlatformService._implementation) {
|
|
7
|
+
return createBrowserPlatformService(window);
|
|
8
|
+
}
|
|
9
|
+
return PlatformService._implementation;
|
|
10
|
+
}
|
|
11
|
+
static setImplementation(implementation) {
|
|
12
|
+
PlatformService._implementation = implementation;
|
|
13
|
+
}
|
|
14
|
+
static get getHostname() {
|
|
15
|
+
return PlatformService.implementation.getHostname;
|
|
16
|
+
}
|
|
17
|
+
static get getTLD() {
|
|
18
|
+
return PlatformService.implementation.getTLD;
|
|
19
|
+
}
|
|
20
|
+
static get openURL() {
|
|
21
|
+
return PlatformService.implementation.openURL;
|
|
22
|
+
}
|
|
23
|
+
static get openNewWindow() {
|
|
24
|
+
return PlatformService.implementation.openNewWindow;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { PlatformService };
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
|
|
6
|
+
var _tslib = require('../../../../_virtual/_tslib.cjs');
|
|
6
7
|
var tldts = require('tldts');
|
|
7
8
|
|
|
8
|
-
const
|
|
9
|
+
const createBrowserPlatformService = (window) => ({
|
|
9
10
|
getHostname: () => window.location.hostname,
|
|
10
11
|
getTLD: () => {
|
|
11
12
|
// Passing the allowPrivateDomains option prevents returning the actual TLD
|
|
@@ -19,6 +20,12 @@ const createLocationFromWindow = (window) => ({
|
|
|
19
20
|
});
|
|
20
21
|
return data.domain || undefined;
|
|
21
22
|
},
|
|
23
|
+
openNewWindow: (url) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
24
|
+
window.open(url);
|
|
25
|
+
}),
|
|
26
|
+
openURL: (url) => _tslib.__awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
+
window.location.assign(url);
|
|
28
|
+
}),
|
|
22
29
|
});
|
|
23
30
|
|
|
24
|
-
exports.
|
|
31
|
+
exports.createBrowserPlatformService = createBrowserPlatformService;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
'use client'
|
|
2
|
+
import { __awaiter } from '../../../../_virtual/_tslib.js';
|
|
2
3
|
import { parse } from 'tldts';
|
|
3
4
|
|
|
4
|
-
const
|
|
5
|
+
const createBrowserPlatformService = (window) => ({
|
|
5
6
|
getHostname: () => window.location.hostname,
|
|
6
7
|
getTLD: () => {
|
|
7
8
|
// Passing the allowPrivateDomains option prevents returning the actual TLD
|
|
@@ -15,6 +16,12 @@ const createLocationFromWindow = (window) => ({
|
|
|
15
16
|
});
|
|
16
17
|
return data.domain || undefined;
|
|
17
18
|
},
|
|
19
|
+
openNewWindow: (url) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
+
window.open(url);
|
|
21
|
+
}),
|
|
22
|
+
openURL: (url) => __awaiter(void 0, void 0, void 0, function* () {
|
|
23
|
+
window.location.assign(url);
|
|
24
|
+
}),
|
|
18
25
|
});
|
|
19
26
|
|
|
20
|
-
export {
|
|
27
|
+
export { createBrowserPlatformService };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createBrowserPlatformService } from './createBrowserPlatformService';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IPlatformService {
|
|
2
|
+
/**
|
|
3
|
+
* Gets the hostname of the current location.
|
|
4
|
+
*
|
|
5
|
+
* @example window.location.hostname
|
|
6
|
+
*/
|
|
7
|
+
getHostname(): string;
|
|
8
|
+
getTLD(): string | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Opens a URL. If possible, should avoid new windows.
|
|
11
|
+
*/
|
|
12
|
+
openURL(url: string): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Opens a given URL in a new window.
|
|
15
|
+
*/
|
|
16
|
+
openNewWindow(url: string): Promise<void>;
|
|
17
|
+
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
var createLocationFromWindow = require('./utils/createLocationFromWindow/createLocationFromWindow.cjs');
|
|
7
|
-
|
|
8
|
-
class LocationService {
|
|
9
|
-
static get implementation() {
|
|
10
|
-
if (!LocationService._implementation) {
|
|
11
|
-
return createLocationFromWindow.createLocationFromWindow(window);
|
|
12
|
-
}
|
|
13
|
-
return LocationService._implementation;
|
|
14
|
-
}
|
|
15
|
-
static setImplementation(implementation) {
|
|
16
|
-
LocationService._implementation = implementation;
|
|
17
|
-
}
|
|
18
|
-
static get getHostname() {
|
|
19
|
-
return LocationService.implementation.getHostname;
|
|
20
|
-
}
|
|
21
|
-
static get getTLD() {
|
|
22
|
-
return LocationService.implementation.getTLD;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
exports.LocationService = LocationService;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ILocation } from './types';
|
|
2
|
-
export declare class LocationService {
|
|
3
|
-
static _implementation: ILocation;
|
|
4
|
-
static get implementation(): ILocation;
|
|
5
|
-
static setImplementation(implementation: ILocation): void;
|
|
6
|
-
static get getHostname(): () => string;
|
|
7
|
-
static get getTLD(): () => string | undefined;
|
|
8
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
import { createLocationFromWindow } from './utils/createLocationFromWindow/createLocationFromWindow.js';
|
|
3
|
-
|
|
4
|
-
class LocationService {
|
|
5
|
-
static get implementation() {
|
|
6
|
-
if (!LocationService._implementation) {
|
|
7
|
-
return createLocationFromWindow(window);
|
|
8
|
-
}
|
|
9
|
-
return LocationService._implementation;
|
|
10
|
-
}
|
|
11
|
-
static setImplementation(implementation) {
|
|
12
|
-
LocationService._implementation = implementation;
|
|
13
|
-
}
|
|
14
|
-
static get getHostname() {
|
|
15
|
-
return LocationService.implementation.getHostname;
|
|
16
|
-
}
|
|
17
|
-
static get getTLD() {
|
|
18
|
-
return LocationService.implementation.getTLD;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export { LocationService };
|
package/src/services/LocationService/utils/createLocationFromOrigin/createLocationFromOrigin.cjs
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use client'
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
|
-
|
|
6
|
-
const createLocationFromOrigin = (origin) => {
|
|
7
|
-
const url = new URL(origin);
|
|
8
|
-
return {
|
|
9
|
-
getHostname: () => url.hostname,
|
|
10
|
-
getTLD: () => url.hostname,
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
exports.createLocationFromOrigin = createLocationFromOrigin;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createLocationFromOrigin } from './createLocationFromOrigin';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createLocationFromWindow } from './createLocationFromWindow';
|