Socket
Socket
Sign inDemoInstall

external-ip

Package Overview
Dependencies
1
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.2 to 0.0.3

lib/services.js

8

index.js
'use strict';
var providers = require('./lib/providers');
var services = require('./lib/services').services;
var utils = require('./lib/utils');

@@ -8,7 +8,7 @@

utils.asyncLoop({
iterations: providers.length,
iterations: services.length,
exec: function (i, stop, next) {
providers[i].getIP(function (err, ip) {
services[i].getIP(function (err, ip) {
if (err) {
err = providers[i].url + ' : ' + err;
err = services[i].url + ' : ' + err;
console.log(err);

@@ -15,0 +15,0 @@ errors.push(err);

{
"name": "external-ip",
"version": "0.0.2",
"version": "0.0.3",
"description": "Get your external IP, with fallbacks",

@@ -26,3 +26,7 @@ "main": "index.js",

"request": "^2.40.0"
},
"devDependencies": {
"mocha": "^1.21.4",
"should": "^4.0.4"
}
}

@@ -5,3 +5,7 @@ external-ip

Get your external IP, with fallbacks
npm install external-ip
This is a work in progress.
Todo:
Complete tests
Document
Clean up some mess
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc