async-ratelimiter
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -5,2 +5,9 @@ # Changelog | ||
### [1.2.8](https://github.com/microlinkhq/async-ratelimiter/compare/v1.2.7...v1.2.8) (2020-06-01) | ||
### Bug Fixes | ||
* linter ([7619c7c](https://github.com/microlinkhq/async-ratelimiter/commit/7619c7c596d905b308ab3a52abdd1a1029323024)) | ||
### [1.2.7](https://github.com/microlinkhq/async-ratelimiter/compare/v1.2.6...v1.2.7) (2019-07-11) | ||
@@ -7,0 +14,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://nicedoc.io/microlinkhq/async-ratelimiter", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"main": "src/index.js", | ||
@@ -67,14 +67,13 @@ "author": { | ||
"clean": "rm -rf node_modules", | ||
"coveralls": "nyc report --reporter=text-lcov | coveralls", | ||
"lint": "standard-markdown && standard", | ||
"postrelease": "npm run release:tags && npm run release:github && ci-publish", | ||
"coverage": "nyc report --reporter=text-lcov | coveralls", | ||
"lint": "standard-markdown README.md && standard", | ||
"postrelease": "npm run release:tags && npm run release:github && ci-publish --access=public", | ||
"precommit": "lint-staged", | ||
"prerelease": "npm run update:check && git-authors-cli", | ||
"prerelease": "npm run update:check", | ||
"pretest": "npm run lint", | ||
"pretty": "prettier-standard index.js {core,test,bin,scripts}/**/*.js --single-quote --print-width 100", | ||
"release": "git add package.json && standard-version -a", | ||
"release": "git-authors-cli finepack && git add package.json && standard-version -a", | ||
"release:github": "conventional-github-releaser -p angular", | ||
"release:tags": "git push --follow-tags origin HEAD:master", | ||
"test": "nyc mocha", | ||
"update": "ncu -a", | ||
"update": "ncu -u", | ||
"update:check": "ncu -- --error-level 2" | ||
@@ -95,16 +94,14 @@ }, | ||
"lint-staged": { | ||
"linters": { | ||
"package.json": [ | ||
"finepack", | ||
"git add" | ||
], | ||
"*.js": [ | ||
"prettier-standard", | ||
"git add" | ||
], | ||
"*.md": [ | ||
"standard-markdown", | ||
"git add" | ||
] | ||
} | ||
"package.json": [ | ||
"finepack", | ||
"git add" | ||
], | ||
"*.js": [ | ||
"prettier-standard", | ||
"git add" | ||
], | ||
"*.md": [ | ||
"standard-markdown", | ||
"git add" | ||
] | ||
}, | ||
@@ -111,0 +108,0 @@ "standard": { |
@@ -1,5 +0,7 @@ | ||
# async-ratelimiter | ||
<div align="center"> | ||
<img src="https://cdn.microlink.io/logo/banner.png" alt="microlink"> | ||
</div> | ||
![Last version](https://img.shields.io/github/tag/microlinkhq/async-ratelimiter.svg?style=flat-square) | ||
[![Build Status](https://img.shields.io/travis/microlinkhq/async-ratelimiter/master.svg?style=flat-square)](https://travis-ci.org/microlinkhq/async-ratelimiter) | ||
[![Build Status](https://img.shields.io/travis/com/microlinkhq/async-ratelimiter/master.svg?style=flat-square)](https://travis-ci.com/microlinkhq/async-ratelimiter) | ||
[![Coverage Status](https://img.shields.io/coveralls/microlinkhq/async-ratelimiter.svg?style=flat-square)](https://coveralls.io/github/microlinkhq/async-ratelimiter) | ||
@@ -12,4 +14,2 @@ [![Dependency status](https://img.shields.io/david/microlinkhq/async-ratelimiter.svg?style=flat-square)](https://david-dm.org/microlinkhq/async-ratelimiter) | ||
> **NOTE**: It requires Redis 2.6.12+. | ||
## Install | ||
@@ -47,3 +47,4 @@ | ||
return !limit.remaining | ||
? sendFail({ req, | ||
? sendFail({ | ||
req, | ||
res, | ||
@@ -50,0 +51,0 @@ code: HTTPStatus.TOO_MANY_REQUESTS, |
Sorry, the diff of this file is not supported yet
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
15690
171