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.3.2 to 1.3.3

12

lib/geoip.js

@@ -251,3 +251,3 @@ var fs = require('fs');

datSize = stats.size;
asyncCache.locationBuffer = new Buffer(datSize);
asyncCache.locationBuffer = Buffer.alloc(datSize);
cb2(err);

@@ -300,3 +300,3 @@ });

function () {
asyncCache.mainBuffer = new Buffer(datSize);
asyncCache.mainBuffer = Buffer.alloc(datSize);

@@ -333,3 +333,3 @@ async.series([

cache4.locationBuffer = new Buffer(datSize);
cache4.locationBuffer = Buffer.alloc(datSize);
fs.readSync(datFile, cache4.locationBuffer, 0, datSize, 0);

@@ -350,3 +350,3 @@ fs.closeSync(datFile);

cache4.mainBuffer = new Buffer(datSize);
cache4.mainBuffer = Buffer.alloc(datSize);
fs.readSync(datFile, cache4.mainBuffer, 0, datSize, 0);

@@ -415,3 +415,3 @@

function () {
asyncCache6.mainBuffer = new Buffer(datSize);
asyncCache6.mainBuffer = Buffer.alloc(datSize);

@@ -456,3 +456,3 @@ async.series([

cache6.mainBuffer = new Buffer(datSize);
cache6.mainBuffer = Buffer.alloc(datSize);
fs.readSync(datFile, cache6.mainBuffer, 0, datSize, 0);

@@ -459,0 +459,0 @@

{
"name" : "geoip-lite",
"version" : "1.3.2",
"version" : "1.3.3",
"description" : "A light weight native JavaScript implementation of GeoIP API from MaxMind",

@@ -5,0 +5,0 @@ "keywords" : ["geo", "geoip", "ip", "ipv4", "ipv6", "geolookup", "maxmind", "geolite"],

@@ -276,3 +276,3 @@ // fetches and converts maxmind lite databases

b = new Buffer(bsz);
b = Buffer.alloc(bsz);
for (i = 0; i < sip.length; i++) {

@@ -288,3 +288,3 @@ b.writeUInt32BE(sip[i], i * 4);

bsz = 10;
rngip = new Address4(fields[0]);

@@ -294,3 +294,3 @@ sip = parseInt(rngip.startAddress().bigInteger(),10);

b = new Buffer(bsz);
b = Buffer.alloc(bsz);
b.fill(0);

@@ -367,3 +367,3 @@ b.writeUInt32BE(sip, 0);

b = new Buffer(bsz);
b = Buffer.alloc(bsz);
b.fill(0);

@@ -397,3 +397,3 @@

locId = cityLookup[locId];
b = new Buffer(bsz);
b = Buffer.alloc(bsz);
b.fill(0);

@@ -466,3 +466,3 @@ b.writeUInt32BE(sip>>>0, 0);

b = new Buffer(sz);
b = Buffer.alloc(sz);
b.fill(0);

@@ -469,0 +469,0 @@ b.write(cc, 0);//country code

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