Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mmdb-lib

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mmdb-lib - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

6

lib/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {

@@ -6,0 +10,0 @@ if (k2 === undefined) k2 = k;

@@ -61,5 +61,7 @@ interface Names {

readonly is_anonymous_vpn?: boolean;
readonly is_anycast?: boolean;
readonly is_hosting_provider?: boolean;
readonly is_legitimate_proxy?: boolean;
readonly is_public_proxy?: boolean;
readonly is_residential_proxy?: boolean;
readonly is_satellite_provider?: boolean;

@@ -71,2 +73,4 @@ readonly is_tor_exit_node?: boolean;

readonly organization?: string;
readonly static_ip_score?: number;
readonly user_count?: number;
readonly user_type?: 'business' | 'cafe' | 'cellular' | 'college' | 'content_delivery_network' | 'dialup' | 'government' | 'hosting' | 'library' | 'military' | 'residential' | 'router' | 'school' | 'search_engine_spider' | 'traveler';

@@ -116,3 +120,3 @@ }

}
export declare type Response = CountryResponse | CityResponse | AnonymousIPResponse | AsnResponse | ConnectionTypeResponse | DomainResponse | IspResponse;
export type Response = CountryResponse | CityResponse | AnonymousIPResponse | AsnResponse | ConnectionTypeResponse | DomainResponse | IspResponse;
export {};

2

lib/reader/walker.d.ts
/// <reference types="node" />
declare type NodeReader = (offset: number) => number;
type NodeReader = (offset: number) => number;
export interface Walker {

@@ -4,0 +4,0 @@ left: NodeReader;

{
"name": "mmdb-lib",
"version": "2.0.2",
"version": "2.1.0",
"homepage": "https://github.com/runk/mmdb-lib",

@@ -19,17 +19,16 @@ "description": "Maxmind DB (MMDB) Library",

"devDependencies": {
"@types/ip-address": "5.8.2",
"@types/jest": "27.0.0",
"@types/node": "16.0.0",
"@types/sinon": "7.5.2",
"@typescript-eslint/eslint-plugin": "^4.4.0",
"@typescript-eslint/parser": "^4.4.0",
"eslint": "^7.10.0",
"ip-address": "6.2.0",
"jest": "^27.4.7",
"prettier": "^2.1.2",
"semantic-release": "^18.0.1",
"sinon": "9.0.1",
"ts-jest": "^27.1.2",
"@types/ip-address": "6.0.0",
"@types/mocha": "^10.0.1",
"@types/node": "20.10.3",
"@types/sinon": "17.0.2",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"eslint": "^8.0.0",
"ip-address": "9.0.5",
"mocha": "^10.2.0",
"prettier": "^3.0.0",
"semantic-release": "^21.0.0",
"sinon": "17.0.1",
"ts-node": "^10.4.0",
"typescript": "4.5.4"
"typescript": "5.3.2"
},

@@ -58,3 +57,3 @@ "repository": {

"lint:types": "tsc --noEmit",
"test": "jest",
"test": "mocha",
"test-imports": "node test/imports/commonjs.js && node test/imports/esm.mjs && ts-node test/imports/typescript.ts",

@@ -61,0 +60,0 @@ "format": "prettier --write 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