not-node 6.5.37 → 6.5.39

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.5.37",
3
+ "version": "6.5.39",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -36,41 +36,41 @@
36
36
  "url": "https://github.com/interrupter/not-node/issues"
37
37
  },
38
38
  "dependencies": {
39
+ "@bluelovers/deep-diff": "^1.0.3",
39
40
  "ajv": "^8.17.1",
40
- "body-parser": "^1.20.2",
41
- "commander": "^12.1.0",
42
- "compression": "^1.7.4",
41
+ "body-parser": "^2.2.2",
42
+ "commander": "^14.0.2",
43
+ "compression": "^1.8.1",
43
44
  "connect-mongodb-session": "^5.0.0",
44
- "connect-redis": "^7.1.1",
45
- "cors": "^2.8.5",
46
- "deep-diff": "*",
45
+ "connect-redis": "^9.0.0",
46
+ "cors": "^2.8.6",
47
47
  "deepmerge": "^4.3.1",
48
- "ejs": "^3.1.10",
48
+ "ejs": "^4.0.1",
49
49
  "escape-string-regexp": "*",
50
- "express": "^4.19.2",
51
- "express-fileupload": "^1.5.1",
52
- "express-session": "^1.18.0",
50
+ "express": "^5.2.1",
51
+ "express-fileupload": "^1.5.2",
52
+ "express-session": "^1.19.0",
53
53
  "fs-extra": "*",
54
54
  "generate-password": "^1.7.1",
55
- "helmet": "^7.1.0",
56
- "inquirer": "^10.1.8",
55
+ "helmet": "^8.1.0",
56
+ "inquirer": "^13.2.1",
57
57
  "inquirer-autocomplete-prompt": "^3.0.1",
58
- "jsonwebtoken": "^9.0.2",
58
+ "jsonwebtoken": "^9.0.3",
59
59
  "method-override": "^3.0.0",
60
60
  "mongoose-validator": "*",
61
61
  "nconf": "*",
62
62
  "not-config": "*",
63
- "not-filter": "^0.3.15",
63
+ "not-filter": "^0.3.16",
64
64
  "not-inform": "*",
65
65
  "not-locale": "^0.0.22",
66
66
  "not-log": "*",
67
67
  "not-monitor": "*",
68
68
  "not-path": "*",
69
- "rate-limiter-flexible": "^5.0.3",
70
- "redis": "^4.7.0",
69
+ "rate-limiter-flexible": "^9.0.1",
70
+ "redis": "^5.10.0",
71
71
  "redlock": "^5.0.0-beta.2",
72
72
  "rfdc": "^1.4.1",
73
- "rimraf": "^6.0.1",
73
+ "rimraf": "^6.1.2",
74
74
  "serve-static": "*",
75
75
  "simple-git": "*",
76
76
  "validator": "*",
@@ -81,23 +81,23 @@
81
81
  "babel-eslint": "^10.1.0",
82
82
  "chai": "*",
83
83
  "chai-as-promised": "*",
84
- "eslint": "^9.9.1",
84
+ "eslint": "^9.39.2",
85
85
  "eslint-plugin-node": "^11.1.0",
86
- "eslint-plugin-sonarjs": "^2.0.2",
87
- "husky": "^9.1.5",
86
+ "eslint-plugin-sonarjs": "^3.0.6",
87
+ "husky": "^9.1.7",
88
88
  "ink-docstrap": "^1.3.2",
89
- "ioredis": "^5.4.1",
90
- "jsdoc": "^4.0.3",
89
+ "ioredis": "^5.9.2",
90
+ "jsdoc": "^4.0.5",
91
91
  "mocha": "*",
92
- "mocha-suppress-logs": "^0.5.1",
92
+ "mocha-suppress-logs": "^0.6.0",
93
93
  "mock-require": "^3.0.3",
94
- "mongodb-memory-server": "^10.0.0",
95
- "mongoose": "^8.6.0",
96
- "not-error": "^0.3.0",
97
- "not-validation": "^0.0.9",
94
+ "mongodb-memory-server": "^11.0.1",
95
+ "mongoose": "^9.1.5",
96
+ "not-error": "^0.3.2",
97
+ "not-validation": "^0.0.11",
98
98
  "npm-run-all": "^4.1.5",
99
- "nyc": "^17.0.0",
100
- "retire": "^5.2.2"
99
+ "nyc": "^17.1.0",
100
+ "retire": "^5.4.2"
101
101
  },
102
102
  "homepage": "https://github.com/interrupter/not-node#readme",
103
103
  "nyc": {
@@ -28,7 +28,7 @@ export default (program, { CWD }) => {
28
28
  infoFromManifest.serverModulesDir
29
29
  );
30
30
  const allFields = await findAllFields(siteDir, modulesDir);
31
- console.log("creating server module in", modulesDir);
31
+ console.log("creating server module in", modulesDir, allFields);
32
32
  const ProjectConfig = {
33
33
  path: opts.dir,
34
34
  ...infoFromManifest,
@@ -20,19 +20,11 @@ function collectInitRootUser(inquirer, config) {
20
20
  default: `admin@${config.hostname.development}`,
21
21
  },
22
22
  {
23
- type: "input",
23
+ type: "password",
24
24
  name: "password",
25
25
  message: "Root user password",
26
26
  default: DEFAULT_PASSWORD,
27
27
  },
28
- {
29
- type: "input",
30
- name: "passwordConfirmation",
31
- message: "Re-type root password",
32
- validate(inpt, answer) {
33
- return inpt === answer.password;
34
- },
35
- },
36
28
  ]);
37
29
  }
38
30
 
@@ -35,7 +35,7 @@ module.exports = class InitSessionsMongo {
35
35
  master.getServer().use(
36
36
  expressSession({
37
37
  secret: config.get("session:secret"),
38
- key: config.get("session:key"),
38
+ name: config.get("session:key"),
39
39
  cookie: config.get("session:cookie"),
40
40
  resave: true,
41
41
  saveUninitialized: true,
@@ -9,19 +9,17 @@ 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").default;
12
+ const { RedisStore } = require("connect-redis");
13
13
  master.getServer().use(
14
14
  expressSession({
15
15
  secret: config.get("session.secret"),
16
- key: config.get("session.key"),
16
+ name: config.get("session.key"),
17
17
  cookie: config.get("session.cookie"),
18
18
  resave: false,
19
19
  saveUninitialized: true,
20
- store: new redisStore({
21
- host: "localhost",
22
- port: 6379,
20
+ store: new RedisStore({
23
21
  client: redisClient,
24
- ttl: 86400,
22
+ ttl: options?.ttl || 86400,
25
23
  }),
26
24
  })
27
25
  );
@@ -1,6 +1,6 @@
1
1
  /** @module Model/Versioning */
2
2
 
3
- const diff = require("deep-diff").diff;
3
+ const diff = require("@bluelovers/deep-diff").diff;
4
4
 
5
5
  const TECH_FIELDS = [
6
6
  "_id",
@@ -10,7 +10,7 @@ module.exports = ({ expect }) => {
10
10
  mock("express-session", (cnf) => {
11
11
  expect(cnf).have.keys([
12
12
  "secret",
13
- "key",
13
+ "name",
14
14
  "cookie",
15
15
  "resave",
16
16
  "saveUninitialized",
@@ -21,7 +21,7 @@ module.exports = ({ expect }) => {
21
21
  mock("express-session", (cnf) => {
22
22
  expect(cnf).have.keys([
23
23
  "secret",
24
- "key",
24
+ "name",
25
25
  "cookie",
26
26
  "resave",
27
27
  "saveUninitialized",
@@ -29,7 +29,7 @@ module.exports = ({ expect }) => {
29
29
  ]);
30
30
  return () => {};
31
31
  });
32
- mock("connect-redis", { default: class FakeRedis {} });
32
+ mock("connect-redis", { RedisStore: class FakeRedisStore {} });
33
33
 
34
34
  const config = {
35
35
  get(str) {