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

maxmind

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maxmind - npm Package Compare versions

Comparing version 4.3.2 to 4.3.3

6

lib/index.js

@@ -26,8 +26,8 @@ "use strict";

const open = async (filepath, opts, cb) => {
assert_1.default(!cb, utils_1.default.legacyErrorMessage);
(0, assert_1.default)(!cb, utils_1.default.legacyErrorMessage);
const database = await fs_1.default.readFile(filepath);
if (is_gzip_1.default(database)) {
if ((0, is_gzip_1.default)(database)) {
throw new Error('Looks like you are passing in a file in gzip format, please use mmdb database instead.');
}
const cache = tiny_lru_1.default((opts && opts.cache && opts.cache.max) || 6000);
const cache = (0, tiny_lru_1.default)((opts && opts.cache && opts.cache.max) || 6000);
const reader = new mmdb_lib_1.default(database, { cache });

@@ -34,0 +34,0 @@ if (opts && !!opts.watchForUpdates) {

{
"name": "maxmind",
"version": "4.3.2",
"version": "4.3.3",
"homepage": "https://github.com/runk/node-maxmind",

@@ -29,3 +29,3 @@ "description": "IP lookup using Maxmind databases",

"dependencies": {
"mmdb-lib": "1.3.0",
"mmdb-lib": "1.3.1",
"tiny-lru": "7.0.6"

@@ -35,12 +35,12 @@ },

"@types/ip-address": "6.0.0",
"@types/jest": "26.0.23",
"@types/node": "14.17.1",
"@types/sinon": "10.0.1",
"ip-address": "7.1.0",
"jest": "26.6.3",
"sinon": "11.1.0",
"ts-jest": "26.5.6",
"@types/jest": "27.0.3",
"@types/node": "16.11.14",
"@types/sinon": "10.0.6",
"ip-address": "8.1.0",
"jest": "27.4.5",
"semantic-release": "18.0.1",
"sinon": "12.0.1",
"ts-jest": "27.1.2",
"tslint": "6.1.3",
"typescript": "4.2.4",
"semantic-release": "17.4.3"
"typescript": "4.5.4"
},

@@ -47,0 +47,0 @@ "repository": {

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