serverest 2.26.7 → 2.26.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/swagger.json CHANGED
@@ -64,7 +64,7 @@
64
64
  "$ref": "#/definitions/loginComSucesso"
65
65
  }
66
66
  },
67
- "400": {
67
+ "401": {
68
68
  "description": "E-mail e/ou senha inválidos",
69
69
  "schema": {
70
70
  "$ref": "#/definitions/errorEmailSenhaInvalidos"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "serverest",
3
- "version": "2.26.7",
3
+ "version": "2.26.8",
4
4
  "description": "Servidor REST local de forma rápida e simples para estudo de testes de API",
5
5
  "author": "Paulo Gonçalves <paulorochag@hotmail.com> (https://www.linkedin.com/in/paulo-goncalves/)",
6
6
  "license": "GPL-3.0",
@@ -5,8 +5,8 @@ const { RateLimiterMemory } = require('rate-limiter-flexible')
5
5
  const { aplicacaoExecutandoLocalmente } = require('../utils/ambiente')
6
6
 
7
7
  const rateLimiter = new RateLimiterMemory({
8
- points: 30, // requests
9
- duration: 2 // segundo por IP
8
+ points: 450, // requests
9
+ duration: 30 // segundo por IP
10
10
  })
11
11
 
12
12
  // Irá retornar mensagem de erro se o teste de carga: