load-ip-set
Advanced tools
Comparing version 2.2.1 to 3.0.0
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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6847
5
Yes
4
2