binhend 2.3.1 → 2.3.3

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.
Files changed (2) hide show
  1. package/index.js +4 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -26,8 +26,9 @@ const HttpCodes = require('./packages/utils/src/HttpCodes');
26
26
  const { HTTPS } = require('./packages/https/src/https');
27
27
 
28
28
  const cors = require('./packages/middlewares/src/cors');
29
+ const csrf = require('./packages/middlewares/src/csrf');
29
30
  const trycatch = require('./packages/middlewares/src/trycatch');
30
- const middlewares = require('./packages/middlewares');
31
+ const { Auth } = require('./packages/middlewares/src/authorize');
31
32
 
32
33
  const { config, ConfigLoader } = require('./packages/config/src/configuration');
33
34
 
@@ -50,11 +51,11 @@ module.exports = {
50
51
 
51
52
  Bromise, HttpError, HttpCodes, HTTPS,
52
53
 
53
- cors, trycatch, middlewares,
54
+ cors, csrf, trycatch, Auth,
54
55
 
55
56
  config, ConfigLoader,
56
57
 
57
- CSD, CinCSD, SinCSD, DinCSD, // only CSD is for usage, others for exposing methods (via IDE auto-suggestion)
58
+ CSD, CinCSD, SinCSD, DinCSD, // only use CSD, others for exposing methods (via IDE auto-suggestion)
58
59
 
59
60
  crypto, types, validation,
60
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "binhend",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "author": "Nguyen Duc Binh",