not-node 6.3.59 → 6.3.60

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "not-node",
3
- "version": "6.3.59",
3
+ "version": "6.3.60",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,24 +36,24 @@
36
36
  "url": "https://github.com/interrupter/not-node/issues"
37
37
  },
38
38
  "dependencies": {
39
- "body-parser": "^1.20.1",
40
- "commander": "^9.5.0",
39
+ "body-parser": "^1.20.2",
40
+ "commander": "^12.0.0",
41
41
  "compression": "^1.7.4",
42
- "connect-mongodb-session": "^3.1.1",
43
- "connect-redis": "^6.1.3",
42
+ "connect-mongodb-session": "^5.0.0",
43
+ "connect-redis": "^7.1.1",
44
44
  "cors": "^2.8.5",
45
45
  "deep-diff": "*",
46
- "deepmerge": "^4.2.2",
47
- "ejs": "^3.1.8",
46
+ "deepmerge": "^4.3.1",
47
+ "ejs": "^3.1.9",
48
48
  "escape-string-regexp": "*",
49
- "express": "^4.18.2",
50
- "express-fileupload": "^1.4.0",
51
- "express-session": "^1.17.3",
49
+ "express": "^4.19.1",
50
+ "express-fileupload": "^1.5.0",
51
+ "express-session": "^1.18.0",
52
52
  "fs-extra": "*",
53
- "generate-password": "^1.7.0",
54
- "helmet": "^6.0.1",
55
- "inquirer": "^9.1.4",
56
- "jsonwebtoken": "^9.0.0",
53
+ "generate-password": "^1.7.1",
54
+ "helmet": "^7.1.0",
55
+ "inquirer": "^9.2.16",
56
+ "jsonwebtoken": "^9.0.2",
57
57
  "lower-case": "*",
58
58
  "method-override": "^3.0.0",
59
59
  "mongoose-validator": "*",
@@ -65,10 +65,10 @@
65
65
  "not-log": "*",
66
66
  "not-monitor": "*",
67
67
  "not-path": "*",
68
- "rate-limiter-flexible": "^2.4.1",
69
- "redis": "^4.5.1",
68
+ "rate-limiter-flexible": "^5.0.0",
69
+ "redis": "^4.6.13",
70
70
  "redlock": "^5.0.0-beta.2",
71
- "rfdc": "^1.3.0",
71
+ "rfdc": "^1.3.1",
72
72
  "rimraf": "^5.0.5",
73
73
  "serve-static": "*",
74
74
  "simple-git": "*",
@@ -80,23 +80,23 @@
80
80
  "babel-eslint": "^10.1.0",
81
81
  "chai": "*",
82
82
  "chai-as-promised": "*",
83
- "eslint": "^8.31.0",
83
+ "eslint": "^8.57.0",
84
84
  "eslint-plugin-node": "^11.1.0",
85
- "eslint-plugin-sonarjs": "^0.17.0",
86
- "husky": "^8.0.3",
85
+ "eslint-plugin-sonarjs": "^0.24.0",
86
+ "husky": "^9.0.11",
87
87
  "ink-docstrap": "^1.3.2",
88
- "ioredis": "^5.2.4",
89
- "jsdoc": "^4.0.0",
88
+ "ioredis": "^5.3.2",
89
+ "jsdoc": "^4.0.2",
90
90
  "mocha": "*",
91
- "mocha-suppress-logs": "^0.3.1",
91
+ "mocha-suppress-logs": "^0.5.1",
92
92
  "mock-require": "^3.0.3",
93
- "mongodb-memory-server": "^9.1.6",
94
- "mongoose": "^8.1.1",
93
+ "mongodb-memory-server": "^9.1.7",
94
+ "mongoose": "^8.2.3",
95
95
  "not-error": "^0.2.9",
96
96
  "not-validation": "^0.0.9",
97
97
  "npm-run-all": "^4.1.5",
98
98
  "nyc": "^15.1.0",
99
- "retire": "^3.2.1"
99
+ "retire": "^4.4.2"
100
100
  },
101
101
  "homepage": "https://github.com/interrupter/not-node#readme",
102
102
  "nyc": {
@@ -9,7 +9,7 @@ module.exports = class InitSessionsRedis {
9
9
  const expressSession = require("express-session");
10
10
  const storeClient = config.get("session.client", DEFAULT_CLIENT);
11
11
  const redisClient = master.getEnv(`db.${storeClient}`);
12
- const redisStore = require("connect-redis")(expressSession);
12
+ const redisStore = require("connect-redis").default;
13
13
  master.getServer().use(
14
14
  expressSession({
15
15
  secret: config.get("session.secret"),
@@ -29,10 +29,7 @@ module.exports = ({ expect }) => {
29
29
  ]);
30
30
  return () => {};
31
31
  });
32
- mock("connect-redis", (inpt) => {
33
- expect(typeof inpt).to.be.equal("function");
34
- return class FakeRedis {};
35
- });
32
+ mock("connect-redis", { default: class FakeRedis {} });
36
33
 
37
34
  const config = {
38
35
  get(str) {