@dynamic-labs/utils
Advanced tools
Comparing version 3.0.0-alpha.66 to 3.0.0-alpha.67
{ | ||
"name": "@dynamic-labs/utils", | ||
"version": "3.0.0-alpha.66", | ||
"version": "3.0.0-alpha.67", | ||
"repository": { | ||
@@ -29,6 +29,6 @@ "type": "git", | ||
"dependencies": { | ||
"@dynamic-labs/sdk-api-core": "0.0.526", | ||
"@dynamic-labs/sdk-api-core": "0.0.529", | ||
"tldts": "6.0.16", | ||
"@dynamic-labs/logger": "3.0.0-alpha.66", | ||
"@dynamic-labs/types": "3.0.0-alpha.66", | ||
"@dynamic-labs/logger": "3.0.0-alpha.67", | ||
"@dynamic-labs/types": "3.0.0-alpha.67", | ||
"buffer": "6.0.3", | ||
@@ -35,0 +35,0 @@ "eventemitter3": "5.0.1", |
@@ -6,2 +6,3 @@ 'use client' | ||
const createBrowserPlatformService = (window) => ({ | ||
getDisplayOrigin: () => window.location.origin, | ||
getHost: () => window.location.host, | ||
@@ -8,0 +9,0 @@ getHostname: () => window.location.hostname, |
@@ -18,2 +18,8 @@ import { IPlatformService } from './types'; | ||
/** | ||
* Gets the origin to be displayed in the UI. | ||
* | ||
* @example window.location.origin | ||
*/ | ||
static get getDisplayOrigin(): () => string | undefined; | ||
/** | ||
* Gets the host of the current location. | ||
@@ -20,0 +26,0 @@ * |
@@ -32,2 +32,10 @@ 'use client' | ||
/** | ||
* Gets the origin to be displayed in the UI. | ||
* | ||
* @example window.location.origin | ||
*/ | ||
static get getDisplayOrigin() { | ||
return _a.implementation.getDisplayOrigin; | ||
} | ||
/** | ||
* Gets the host of the current location. | ||
@@ -34,0 +42,0 @@ * |
@@ -25,2 +25,8 @@ export interface IPlatformService { | ||
getOrigin(): string; | ||
/** | ||
* Gets the origin to be displayed in the UI. | ||
* | ||
* @example window.location.origin | ||
*/ | ||
getDisplayOrigin(): string | undefined; | ||
getTLD(): string | undefined; | ||
@@ -27,0 +33,0 @@ /** |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
536541
4528
+ Added@dynamic-labs/logger@3.0.0-alpha.67(transitive)
+ Added@dynamic-labs/sdk-api-core@0.0.529(transitive)
+ Added@dynamic-labs/types@3.0.0-alpha.67(transitive)
- Removed@dynamic-labs/logger@3.0.0-alpha.66(transitive)
- Removed@dynamic-labs/sdk-api-core@0.0.526(transitive)
- Removed@dynamic-labs/types@3.0.0-alpha.66(transitive)