local-ip-url
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -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; |
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
6224
122