New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

geoip-lite

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

geoip-lite - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

10

lib/geoip.js

@@ -16,4 +16,4 @@ var fs = require('fs'),

var lastline = sz/10-1;
var lastip = buff.readUInt32(lastline*10+4, 'big');
var firstip = buff.readUInt32(0, 'big');
var lastip = buff.readUInt32(lastline*10+4, true);
var firstip = buff.readUInt32(0, true);

@@ -29,4 +29,4 @@ lookup4 = function(ip) {

line = Math.round((cline-fline)/2)+fline;
floor = buff.readUInt32(line*10, 'big');
ceil = buff.readUInt32(line*10+4, 'big');
floor = buff.readUInt32(line*10, true);
ceil = buff.readUInt32(line*10+4, true);

@@ -86,3 +86,3 @@ if(floor <= ip && ceil >= ip) {

for(ii=0; ii<2; ii++)
ip.push(buff.readUInt32(line*34+offset*16+ii*4, 'big'));
ip.push(buff.readUInt32(line*34+offset*16+ii*4, true));
return ip;

@@ -89,0 +89,0 @@ }

{
"name" : "geoip-lite",
"version" : "1.0.0",
"version" : "1.0.1",
"description" : "A light weight native JavaScript implementation of GeoIP API from MaxMind",
"keywords" : ["geo", "geoip", "ip", "ipv4", "ipv6", "geolookup", "maxmind", "geolite"],
"homepage" : "https://github.com/bluesmoon/node-geoip",

@@ -6,0 +7,0 @@ "author" : "Philip Tellis <philip@bluesmoon.info> (http://bluesmoon.info/)",

Sorry, the diff of this file is not supported yet

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