Comparing version 3.0.0 to 3.0.1
@@ -6,2 +6,10 @@ # Change Log | ||
## [3.0.1](https://github.com/tunnckoCore/opensource/compare/ip-filter@3.0.0...ip-filter@3.0.1) (2020-03-16) | ||
**Note:** Version bump only for package ip-filter | ||
# 3.0.0 (2020-03-16) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "ip-filter", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"licenseStart": 2015, | ||
@@ -34,3 +34,3 @@ "license": "MPL-2.0", | ||
"micromatch": "^4.0.2", | ||
"to-file-path": "^1.0.0" | ||
"to-file-path": "^2.0.0" | ||
}, | ||
@@ -109,3 +109,3 @@ "jest": { | ||
}, | ||
"gitHead": "dd7ead418a04e7a8608a8af9b99122d8dc49cd5d" | ||
"gitHead": "5b3d86649c7c79cea1a0415e3e30dd27be7a2bb1" | ||
} |
@@ -1,6 +0,5 @@ | ||
# ip-filter [![npm version][npmv-img]][npmv-url] [![License][license-img]][license-url] [![Libera Manifesto][libera-manifesto-img]][libera-manifesto-url] | ||
> Validates valid IPs (IPv4 and IPv6) using [micromatch][] - glob patterns, RegExp, string or array of globs. If match returns the IP, otherwise null. | ||
> Validates valid IPs (IPv4 and IPv6) using [micromatch][] - glob patterns, | ||
> RegExp, string or array of globs. If match returns the IP, otherwise null. | ||
@@ -65,16 +64,16 @@ Please consider following this project's author, | ||
- [API](#api) | ||
* [ipFilter](#ipfilter) | ||
- [ipFilter](#ipfilter) | ||
- [See Also](#see-also) | ||
- [Contributing](#contributing) | ||
* [Guides and Community](#guides-and-community) | ||
* [Support the project](#support-the-project) | ||
- [Guides and Community](#guides-and-community) | ||
- [Support the project](#support-the-project) | ||
- [Contributors](#contributors) | ||
- [License](#license) | ||
_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_ | ||
_(TOC generated by [verb](https://github.com/verbose/verb) using | ||
[markdown-toc](https://github.com/jonschlinkert/markdown-toc))_ | ||
## Install | ||
This project requires [**Node.js**](https://nodejs.org) **>=10.13** | ||
_(see | ||
This project requires [**Node.js**](https://nodejs.org) **>=10.13** _(see | ||
[Support & Release Policy](https://github.com/tunnckoCoreLabs/support-release-policy))_. | ||
@@ -97,4 +96,4 @@ Install it using [**yarn**](https://yarnpkg.com) or | ||
Filter `ip` against glob `patterns`, using [micromatch][] under the hood, | ||
so `options` are passed to it. | ||
Filter `ip` against glob `patterns`, using [micromatch][] under the hood, so | ||
`options` are passed to it. | ||
@@ -114,6 +113,8 @@ <span id="ipfilter-signature"></span> | ||
- `ip` **{string}** - Accepts only valid IPs by default | ||
- `patterns` **{string|array}** - Basically everything that [micromatch][]'s second argument can accept. | ||
- `options` **{object}** - Pass `strict: false` if want to validate non-ip values, | ||
options are also passed to [micromatch][]. | ||
- `returns` **{string}** - a `string` or `null` If not match returns `null`, otherwise the passed `ip` as string. | ||
- `patterns` **{string|array}** - Basically everything that [micromatch][]'s | ||
second argument can accept. | ||
- `options` **{object}** - Pass `strict: false` if want to validate non-ip | ||
values, options are also passed to [micromatch][]. | ||
- `returns` **{string}** - a `string` or `null` If not match returns `null`, | ||
otherwise the passed `ip` as string. | ||
@@ -164,10 +165,27 @@ <span id="ipfilter-examples"></span> | ||
- [ip-regex](https://www.npmjs.com/package/ip-regex): Regular expression for matching IP addresses (IPv4 & IPv6) | [homepage](https://github.com/sindresorhus/ip-regex#readme "Regular expression for matching IP addresses (IPv4 & IPv6)") | ||
- [is-match-ip](https://www.npmjs.com/package/is-match-ip): Matching IPs using [micromatch][] and [ip-filter][] - glob patterns, RegExp… [more](https://github.com/tunnckocore/is-match-ip#readme) | [homepage](https://github.com/tunnckocore/is-match-ip#readme "Matching IPs using [micromatch][] and [ip-filter][] - glob patterns, RegExp, string or array of globs. Returns matcher function.") | ||
- [is-match](https://www.npmjs.com/package/is-match): Create a matching function from a glob pattern, regex, string… [more](https://github.com/jonschlinkert/is-match) | [homepage](https://github.com/jonschlinkert/is-match "Create a matching function from a glob pattern, regex, string, array, object or function.") | ||
- [koa-ip-filter](https://www.npmjs.com/package/koa-ip-filter): Middleware for [koa][] that filters IPs against glob patterns, RegExp… [more](https://github.com/tunnckocore/koa-ip-filter#readme) | [homepage](https://github.com/tunnckocore/koa-ip-filter#readme "Middleware for [koa][] that filters IPs against glob patterns, RegExp, string or array of globs. Support custom `403 Forbidden` message and custom ID.") | ||
- [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for javascript/node.js. A replacement and faster alternative to… [more](https://github.com/micromatch/micromatch) | [homepage](https://github.com/micromatch/micromatch "Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.") | ||
- [to-file-path](https://www.npmjs.com/package/to-file-path): Create a filepath from an object path (dot notation), list… [more](https://github.com/tunnckocore/to-file-path#readme) | [homepage](https://github.com/tunnckocore/to-file-path#readme "Create a filepath from an object path (dot notation), list of arguments, array, number or Arguments object.") | ||
- [ip-regex](https://www.npmjs.com/package/ip-regex): Regular expression for | ||
matching IP addresses (IPv4 & IPv6) | | ||
[homepage](https://github.com/sindresorhus/ip-regex#readme 'Regular expression for matching IP addresses (IPv4 & IPv6)') | ||
- [is-match-ip](https://www.npmjs.com/package/is-match-ip): Matching IPs using | ||
[micromatch][] and [ip-filter][] - glob patterns, RegExp… | ||
[more](https://github.com/tunnckocore/is-match-ip#readme) | | ||
[homepage](https://github.com/tunnckocore/is-match-ip#readme 'Matching IPs using [micromatch][] and [ip-filter][] - glob patterns, RegExp, string or array of globs. Returns matcher function.') | ||
- [is-match](https://www.npmjs.com/package/is-match): Create a matching function | ||
from a glob pattern, regex, string… | ||
[more](https://github.com/jonschlinkert/is-match) | | ||
[homepage](https://github.com/jonschlinkert/is-match 'Create a matching function from a glob pattern, regex, string, array, object or function.') | ||
- [koa-ip-filter](https://www.npmjs.com/package/koa-ip-filter): Middleware for | ||
[koa][] that filters IPs against glob patterns, RegExp… | ||
[more](https://github.com/tunnckocore/koa-ip-filter#readme) | | ||
[homepage](https://github.com/tunnckocore/koa-ip-filter#readme 'Middleware for [koa][] that filters IPs against glob patterns, RegExp, string or array of globs. Support custom `403 Forbidden` message and custom ID.') | ||
- [micromatch](https://www.npmjs.com/package/micromatch): Glob matching for | ||
javascript/node.js. A replacement and faster alternative to… | ||
[more](https://github.com/micromatch/micromatch) | | ||
[homepage](https://github.com/micromatch/micromatch 'Glob matching for javascript/node.js. A replacement and faster alternative to minimatch and multimatch.') | ||
- [to-file-path](https://www.npmjs.com/package/to-file-path): Create a filepath | ||
from an object path (dot notation), list… | ||
[more](https://github.com/tunnckocore/to-file-path#readme) | | ||
[homepage](https://github.com/tunnckocore/to-file-path#readme 'Create a filepath from an object path (dot notation), list of arguments, array, number or Arguments object.') | ||
**[back to top](#readme)** | ||
**[back to top](#readme)** | ||
@@ -231,6 +249,5 @@ ## Contributing | ||
Copyright (c) 2015-present, | ||
[Charlike Mike Reagent](https://tunnckocore.com) `<opensource@tunnckocore.com>` | ||
& [contributors](#wonderful-contributors).<br> Released under the | ||
[MPL-2.0 License][license-url]. | ||
Copyright (c) 2015-present, [Charlike Mike Reagent](https://tunnckocore.com) | ||
`<opensource@tunnckocore.com>` & [contributors](#wonderful-contributors).<br> | ||
Released under the [MPL-2.0 License][license-url]. | ||
@@ -329,2 +346,2 @@ <!-- badges --> | ||
[koa]: https://github.com/koajs/koa | ||
[micromatch]: https://github.com/micromatch/micromatch | ||
[micromatch]: https://github.com/micromatch/micromatch |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
37671
342
0
+ Addedto-file-path@2.0.4(transitive)
- Removedisarray@1.0.0(transitive)
- Removedlazy-cache@1.0.4(transitive)
- Removedto-file-path@1.0.0(transitive)
Updatedto-file-path@^2.0.0