not-node 6.5.49 → 6.5.50

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.49",
3
+ "version": "6.5.50",
4
4
  "description": "node complimentary part for client side notFramework.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -37,9 +37,10 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "@bluelovers/deep-diff": "^1.0.3",
40
+ "@eslint/js": "^10.0.1",
40
41
  "ajv": "^8.17.1",
41
42
  "body-parser": "^2.2.2",
42
- "commander": "^14.0.2",
43
+ "commander": "^14.0.3",
43
44
  "compression": "^1.8.1",
44
45
  "connect-mongodb-session": "^5.0.0",
45
46
  "connect-redis": "^9.0.0",
@@ -53,20 +54,20 @@
53
54
  "fs-extra": "*",
54
55
  "generate-password": "^1.7.1",
55
56
  "helmet": "^8.1.0",
56
- "inquirer": "^9.1.0",
57
+ "inquirer": "^13.2.2",
57
58
  "inquirer-autocomplete-prompt": "^3.0.1",
58
59
  "jsonwebtoken": "^9.0.3",
59
60
  "method-override": "^3.0.0",
60
61
  "mongoose-validator": "*",
61
62
  "nconf": "*",
62
63
  "not-config": "*",
63
- "not-filter": "^0.3.16",
64
+ "not-filter": "^0.3.17",
64
65
  "not-inform": "*",
65
- "not-locale": "^0.0.22",
66
+ "not-locale": "^0.0.25",
66
67
  "not-log": "*",
67
68
  "not-monitor": "*",
68
69
  "not-path": "*",
69
- "rate-limiter-flexible": "^9.0.1",
70
+ "rate-limiter-flexible": "^9.1.1",
70
71
  "redis": "^5.10.0",
71
72
  "redlock": "^5.0.0-beta.2",
72
73
  "rfdc": "^1.4.1",
@@ -81,9 +82,8 @@
81
82
  "babel-eslint": "^10.1.0",
82
83
  "chai": "*",
83
84
  "chai-as-promised": "*",
84
- "eslint": "^9.39.2",
85
+ "eslint": "^10.0.0",
85
86
  "eslint-plugin-node": "^11.1.0",
86
- "eslint-plugin-sonarjs": "^3.0.6",
87
87
  "husky": "^9.1.7",
88
88
  "ink-docstrap": "^1.3.2",
89
89
  "ioredis": "^5.9.2",
@@ -92,7 +92,7 @@
92
92
  "mocha-suppress-logs": "^0.6.0",
93
93
  "mock-require": "^3.0.3",
94
94
  "mongodb-memory-server": "^11.0.1",
95
- "mongoose": "^9.1.5",
95
+ "mongoose": "^9.1.6",
96
96
  "not-error": "^0.3.2",
97
97
  "not-validation": "^0.0.11",
98
98
  "npm-run-all": "^4.1.5",
@@ -136,4 +136,4 @@
136
136
  ]
137
137
  }
138
138
  }
139
- }
139
+ }
@@ -174,7 +174,7 @@ module.exports = class IdentityProviderToken {
174
174
  const context = { ip };
175
175
  const secret = this.#getOptions().secret;
176
176
  this.#validateSecretForToken({ secret, context });
177
- let payload = {};
177
+ let payload;
178
178
  if (user) {
179
179
  payload = this.#composeUserTokenPayload({ user, additionalFields });
180
180
  } else {
@@ -43,7 +43,7 @@ module.exports = class InitENV {
43
43
  }
44
44
 
45
45
  static getFullServerName(config) {
46
- let name = "";
46
+ let name;
47
47
  if (config.get("proxy:secure") === true) {
48
48
  name = "https://";
49
49
  } else {
@@ -5,11 +5,16 @@ const ModelRoutine = require("../../model/routine.js");
5
5
  module.exports = class StandartQueriesBeforeAction {
6
6
  static modifyQueries(args, modificationFilter) {
7
7
  const { query } = args;
8
- let { filter, search } = query;
9
- if (filter) {
10
- filter = notFilter.filter.modifyRules(filter, modificationFilter);
11
- if (search) {
12
- search = notFilter.filter.modifyRules(search, filter);
8
+ if (query.filter) {
9
+ query.filter = notFilter.filter.modifyRules(
10
+ query.filter,
11
+ modificationFilter
12
+ );
13
+ if (query.search) {
14
+ query.search = notFilter.filter.modifyRules(
15
+ query.search,
16
+ query.filter
17
+ );
13
18
  }
14
19
  }
15
20
  if (args.defaultQueryById) {
@@ -70,7 +70,5 @@ function extendValidation(rule, options) {
70
70
  **/
71
71
 
72
72
  module.exports = function (validators, options) {
73
- let result = null;
74
- result = validators.map((rule) => extendValidation(rule, options));
75
- return result;
73
+ return validators.map((rule) => extendValidation(rule, options));
76
74
  };
@@ -167,7 +167,7 @@ function makeQuery(method, filter) {
167
167
  __latest: true,
168
168
  __closed: false,
169
169
  },
170
- finalFilter = {};
170
+ finalFilter;
171
171
  switch (notQuery.filter.getFilterType(filter)) {
172
172
  case notQuery.filter.OPT_OR:
173
173
  if (this.schema.statics.__versioning) {
@@ -152,7 +152,7 @@ module.exports.init = function (mongoose) {
152
152
  schema = new mongooseLocal.Schema(thisSchema);
153
153
  schema.statics.getNext = newGetNext();
154
154
  schema.statics.rebase = newRebase();
155
- let model = null;
155
+ let model;
156
156
  try {
157
157
  model = mongooseLocal.model("Increment", schema);
158
158
  } catch {
package/src/parser.js CHANGED
@@ -43,7 +43,7 @@ module.exports.getRouteLine = function (
43
43
  actionData
44
44
  ) {
45
45
  let part1 = this.parseLine(url, modelName, actionName),
46
- part2 = "";
46
+ part2;
47
47
  if (objHas(actionData, "postFix")) {
48
48
  part2 = this.parseLine(actionData.postFix, modelName, actionName);
49
49
  } else {