Huge News!Announcing our $40M Series B led by Abstract Ventures.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.4.0 to 1.4.1

2

package.json
{
"name" : "geoip-lite",
"version" : "1.4.0",
"version" : "1.4.1",
"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"],

@@ -136,2 +136,4 @@ GeoIP-lite

You will need, at minimum, a free license key obtained from [maxmind.com](https://support.maxmind.com/account-faq/account-related/how-do-i-generate-a-license-key/) to run the update script.
Package stores checksums of MaxMind data and by default only downloads them if checksums have changed.

@@ -143,6 +145,6 @@

#update data if new data is available
npm run-script updatedb
npm run-script updatedb license_key=YOUR_LICENSE_KEY
#force udpate data even if checkums have not changed
npm run-script updatedb force
npm run-script updatedb-force license_key=YOUR_LICENSE_KEY
```

@@ -153,7 +155,5 @@

```bash
node ./node_modules/geoip-lite/scripts/updatedb.js
node ./node_modules/geoip-lite/scripts/updatedb.js license_key=YOUR_LICENSE_KEY
```
Or, if you really want, run the update once by `require('geoip-lite/scripts/updatedb.js')`.
### Ways to reload data in your app when update finished ###

@@ -208,7 +208,7 @@

* Outputs:
* {
* {
* rss: 126365696,
* heapTotal: 10305536,
* heapUsed: 5168944,
* external: 104347120
* external: 104347120
* }

@@ -215,0 +215,0 @@ **/

@@ -40,4 +40,4 @@ // fetches and converts maxmind lite databases

type: 'country',
url: 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&suffix=zip&'+license_key,
checksum: 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&suffix=zip.md5&'+license_key,
url: 'https://geoip.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&suffix=zip&'+license_key,
checksum: 'https://geoip.maxmind.com/app/geoip_download?edition_id=GeoLite2-Country-CSV&suffix=zip.md5&'+license_key,
fileName: 'GeoLite2-Country-CSV.zip',

@@ -57,4 +57,4 @@ src: [

type: 'city',
url: 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&suffix=zip&'+license_key,
checksum: 'https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&suffix=zip.md5&'+license_key,
url: 'https://geoip.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&suffix=zip&'+license_key,
checksum: 'https://geoip.maxmind.com/app/geoip_download?edition_id=GeoLite2-City-CSV&suffix=zip.md5&'+license_key,
fileName: 'GeoLite2-City-CSV.zip',

@@ -61,0 +61,0 @@ src: [

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