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

koa-simple-ratelimit

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-simple-ratelimit - npm Package Compare versions

Comparing version 5.1.0 to 5.1.1

4

dist/index.js

@@ -9,3 +9,3 @@ "use strict";

const ms_1 = __importDefault(require("ms"));
const debug = debug_1.default('koa-simple-ratelimit');
const debug = (0, debug_1.default)('koa-simple-ratelimit');
async function find(db, p) {

@@ -48,3 +48,3 @@ return new Promise((resolve, reject) => {

},
errorMessage: (exp) => `Rate limit exceeded, retry in ${ms_1.default(exp, { long: true })}.`,
errorMessage: (exp) => `Rate limit exceeded, retry in ${(0, ms_1.default)(exp, { long: true })}.`,
...options,

@@ -51,0 +51,0 @@ };

{
"name": "koa-simple-ratelimit",
"version": "5.1.0",
"version": "5.1.1",
"description": "Simple Rate limiter middleware for koa v2",

@@ -21,4 +21,4 @@ "repository": "scttcper/koa-simple-ratelimit",

"scripts": {
"lint": "eslint --ext .js,.ts, .",
"lint:fix": "eslint --fix --ext .js,.ts, .",
"lint": "eslint --ext .ts .",
"lint:fix": "eslint --fix --ext .ts .",
"prepare": "npm run build",

@@ -31,24 +31,24 @@ "build": "tsc -p tsconfig.build.json",

"dependencies": {
"debug": "^4.3.1",
"debug": "^4.3.2",
"ms": "^2.1.3"
},
"devDependencies": {
"@ctrl/eslint-config": "1.2.8",
"@jest/globals": "26.6.2",
"@types/debug": "4.1.5",
"@types/ioredis": "4.17.8",
"@types/koa": "2.11.6",
"@ctrl/eslint-config": "2.1.1",
"@jest/globals": "27.2.4",
"@types/debug": "4.1.7",
"@types/ioredis": "4.27.5",
"@types/koa": "2.13.4",
"@types/ms": "0.7.31",
"@types/node": "14.14.13",
"@types/redis": "2.8.28",
"@types/supertest": "2.0.10",
"delay": "4.4.0",
"ioredis": "4.19.4",
"jest": "26.6.3",
"jest-junit": "12.0.0",
"koa": "2.13.0",
"redis": "3.0.2",
"supertest": "6.0.1",
"ts-jest": "26.4.4",
"typescript": "4.1.3"
"@types/node": "16.10.2",
"@types/redis": "2.8.32",
"@types/supertest": "2.0.11",
"delay": "5.0.0",
"ioredis": "4.27.9",
"jest": "27.2.4",
"jest-junit": "12.3.0",
"koa": "2.13.3",
"redis": "3.1.2",
"supertest": "6.1.6",
"ts-jest": "27.0.5",
"typescript": "4.4.3"
},

@@ -55,0 +55,0 @@ "jest": {

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