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

load-ip-set

Package Overview
Dependencies
Maintainers
9
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

load-ip-set - npm Package Compare versions

Comparing version 2.2.1 to 3.0.0

CHANGELOG.md

16

index.js
/*! load-ip-set. MIT License. WebTorrent LLC <https://webtorrent.io/opensource> */
const fs = require('fs')
const get = require('simple-get')
const IPSet = require('ip-set')
const Netmask = require('netmask').Netmask
const once = require('once')
const split = require('split')
const zlib = require('zlib')
import fs from 'fs'
import get from 'simple-get'
import IPSet from 'ip-set'
import { Netmask } from 'netmask'
import once from 'once'
import split from 'split'
import zlib from 'zlib'

@@ -59,2 +59,2 @@ // Match single IPs and IP ranges (IPv4 and IPv6), with or without a description

module.exports = loadIPSet
export default loadIPSet
{
"name": "load-ip-set",
"description": "download and parse ip-set (blocklist) files",
"version": "2.2.1",
"version": "3.0.0",
"author": {

@@ -16,2 +16,3 @@ "name": "WebTorrent LLC",

},
"type": "module",
"dependencies": {

@@ -25,4 +26,6 @@ "ip-set": "^2.1.0",

"devDependencies": {
"@webtorrent/semantic-release-config": "1.0.8",
"semantic-release": "19.0.5",
"standard": "*",
"tape": "^5.2.2"
"tape": "5.6.1"
},

@@ -40,3 +43,8 @@ "keywords": [

"license": "MIT",
"main": "index.js",
"engines": {
"node": ">=12.20.0"
},
"exports": {
"import": "./index.js"
},
"repository": {

@@ -62,3 +70,11 @@ "type": "git",

}
]
],
"renovate": {
"extends": [
"github>webtorrent/renovate-config"
]
},
"release": {
"extends": "@webtorrent/semantic-release-config"
}
}

@@ -33,3 +33,3 @@ # load-ip-set [![ci][ci-image]][ci-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]

```js
const loadIPSet = require('load-ip-set')
import loadIPSet from 'load-ip-set'
loadIPSet('http://example.com/list.txt', (err, ipSet) => {

@@ -36,0 +36,0 @@ if (err) throw err

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