Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

local-ip-url

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

local-ip-url - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

4

index.d.ts

@@ -1,3 +0,3 @@

function localIpUrl(name?: 'public' | 'private', family?: 'ipv4' | 'ipv6'): void;
declare function localIpUrl(name?: 'public' | 'private', family?: 'ipv4' | 'ipv6'): string;
export = localIpUrl
export = localIpUrl;
{
"name": "local-ip-url",
"version": "1.0.6",
"version": "1.0.7",
"description": "Get current machine IP.",

@@ -13,2 +13,6 @@ "main": "index.js",

},
"exports": {
".": "./index.js",
"./prepareUrls": "./prepareUrls.js"
},
"repository": {

@@ -15,0 +19,0 @@ "type": "git",

@@ -1,3 +0,2 @@

export interface Option {
interface Option {
protocol?: string;

@@ -8,3 +7,3 @@ host?: string;

export interface Result {
interface Result {
ip: string;

@@ -15,2 +14,4 @@ localUrl: string;

export default function(option: Option): Result;
declare function prepareUrls(option: Option): Result;
export = prepareUrls;
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