Socket
Socket
Sign inDemoInstall

@dynamic-labs/utils

Package Overview
Dependencies
Maintainers
1
Versions
493
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dynamic-labs/utils - npm Package Compare versions

Comparing version 3.0.0-alpha.66 to 3.0.0-alpha.67

8

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc