Socket
Socket
Sign inDemoInstall

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 4.0.1 to 4.0.2

2

dist/index.js

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

t += opts.duration;
t = new Date(t).getTime() / 1000 || 0;
t = Math.floor(new Date(t).getTime() / 1000) || 0;
const headers = {

@@ -61,0 +61,0 @@ [remaining]: opts.max - 1,

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

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

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

@@ -37,22 +37,22 @@ "build": "tsc -p tsconfig.build.json",

"@types/debug": "4.1.5",
"@types/jest": "25.1.1",
"@types/koa": "2.11.0",
"@types/node": "13.7.0",
"@types/redis": "2.8.14",
"@types/jest": "25.2.1",
"@types/koa": "2.11.3",
"@types/node": "13.13.4",
"@types/redis": "2.8.18",
"@types/supertest": "2.0.8",
"@typescript-eslint/eslint-plugin": "2.18.0",
"@typescript-eslint/parser": "2.18.0",
"@typescript-eslint/eslint-plugin": "2.30.0",
"@typescript-eslint/parser": "2.30.0",
"eslint": "6.8.0",
"eslint-config-xo-space": "0.22.0",
"eslint-config-xo-typescript": "0.24.1",
"eslint-plugin-import": "2.20.0",
"ioredis": "4.14.1",
"jest": "25.1.0",
"eslint-config-xo-space": "0.24.0",
"eslint-config-xo-typescript": "0.28.0",
"eslint-plugin-import": "2.20.2",
"ioredis": "4.16.3",
"jest": "25.5.3",
"jest-junit": "10.0.0",
"koa": "2.11.0",
"redis": "2.8.0",
"semantic-release": "17.0.2",
"redis": "3.0.2",
"semantic-release": "17.0.7",
"supertest": "4.0.2",
"ts-jest": "25.1.0",
"typescript": "3.7.5"
"ts-jest": "25.4.0",
"typescript": "3.8.3"
},

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

Sorry, the diff of this file is not supported yet

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