not-node 5.1.3 → 5.1.6
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 +13 -13
- package/src/generic/logic.js +8 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "not-node",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.6",
|
|
4
4
|
"description": "node complimentary part for client side notFramework.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"cors": "^2.8.5",
|
|
41
41
|
"deep-diff": "*",
|
|
42
42
|
"deepmerge": "^4.2.2",
|
|
43
|
-
"ejs": "^3.1.
|
|
43
|
+
"ejs": "^3.1.8",
|
|
44
44
|
"escape-string-regexp": "*",
|
|
45
|
-
"express": "^4.
|
|
46
|
-
"express-fileupload": "^1.
|
|
47
|
-
"express-session": "^1.17.
|
|
45
|
+
"express": "^4.18.1",
|
|
46
|
+
"express-fileupload": "^1.4.0",
|
|
47
|
+
"express-session": "^1.17.3",
|
|
48
48
|
"fs-extra": "*",
|
|
49
|
-
"helmet": "^5.0
|
|
49
|
+
"helmet": "^5.1.0",
|
|
50
50
|
"lower-case": "*",
|
|
51
51
|
"method-override": "^3.0.0",
|
|
52
52
|
"mock-require": "^3.0.3",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"not-log": "^0.0.20",
|
|
62
62
|
"not-monitor": "^0.0.13",
|
|
63
63
|
"not-path": "*",
|
|
64
|
-
"not-validation": "^0.0.
|
|
65
|
-
"rate-limiter-flexible": "^2.3.
|
|
66
|
-
"redis": "^4.
|
|
64
|
+
"not-validation": "^0.0.8",
|
|
65
|
+
"rate-limiter-flexible": "^2.3.7",
|
|
66
|
+
"redis": "^4.1.1",
|
|
67
67
|
"rfdc": "^1.3.0",
|
|
68
68
|
"rmdir": "^1.2.0",
|
|
69
69
|
"serve-static": "*",
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
"babel-eslint": "^10.1.0",
|
|
76
76
|
"chai": "*",
|
|
77
77
|
"chai-as-promised": "*",
|
|
78
|
-
"eslint": "^8.
|
|
78
|
+
"eslint": "^8.18.0",
|
|
79
79
|
"eslint-plugin-node": "^11.1.0",
|
|
80
80
|
"eslint-plugin-sonarjs": "^0.13.0",
|
|
81
81
|
"ink-docstrap": "^1.3.2",
|
|
82
|
-
"ioredis": "^5.0
|
|
82
|
+
"ioredis": "^5.1.0",
|
|
83
83
|
"jsdoc": "^3.6.10",
|
|
84
84
|
"mocha": "*",
|
|
85
85
|
"mocha-suppress-logs": "^0.3.1",
|
|
86
|
-
"mongodb-memory-server": "^8.
|
|
86
|
+
"mongodb-memory-server": "^8.7.2",
|
|
87
87
|
"npm-run-all": "^4.1.5",
|
|
88
88
|
"nyc": "^15.1.0",
|
|
89
|
-
"retire": "^3.0.
|
|
89
|
+
"retire": "^3.0.7"
|
|
90
90
|
},
|
|
91
91
|
"homepage": "https://github.com/interrupter/not-node#readme",
|
|
92
92
|
"nyc": {
|
package/src/generic/logic.js
CHANGED
|
@@ -125,7 +125,7 @@ module.exports = ({
|
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
async _updateOne({
|
|
128
|
+
static async _updateOne({
|
|
129
129
|
targetId,
|
|
130
130
|
data,
|
|
131
131
|
activeUser,
|
|
@@ -146,7 +146,7 @@ module.exports = ({
|
|
|
146
146
|
if (shouldOwn) {
|
|
147
147
|
query[ownerFieldName] = activeUser._id;
|
|
148
148
|
}
|
|
149
|
-
const result = await getModel().update(query, data)
|
|
149
|
+
const result = await getModel().update(query, data);
|
|
150
150
|
LogAction(
|
|
151
151
|
{
|
|
152
152
|
action,
|
|
@@ -222,7 +222,7 @@ module.exports = ({
|
|
|
222
222
|
* @param {boolean} prepared.shouldOwn if user should be owner of target
|
|
223
223
|
* @returns {Promise<Object>} requested document
|
|
224
224
|
**/
|
|
225
|
-
async _getOne({
|
|
225
|
+
static async _getOne({
|
|
226
226
|
targetId,
|
|
227
227
|
action,
|
|
228
228
|
ip,
|
|
@@ -312,7 +312,7 @@ module.exports = ({
|
|
|
312
312
|
* @param {boolean} prepared.shouldOwn if user should be owner of target
|
|
313
313
|
* @returns {Promise<Object>} requested document
|
|
314
314
|
**/
|
|
315
|
-
async _getOneRaw({
|
|
315
|
+
static async _getOneRaw({
|
|
316
316
|
targetId,
|
|
317
317
|
activeUser,
|
|
318
318
|
ip,
|
|
@@ -331,7 +331,7 @@ module.exports = ({
|
|
|
331
331
|
query[ownerFieldName] = activeUser._id;
|
|
332
332
|
}
|
|
333
333
|
const result = await getModel().getOneRaw(targetId, query);
|
|
334
|
-
|
|
334
|
+
LogAction(
|
|
335
335
|
{
|
|
336
336
|
action,
|
|
337
337
|
by: activeUser._id,
|
|
@@ -444,7 +444,7 @@ module.exports = ({
|
|
|
444
444
|
});
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
|
-
|
|
447
|
+
LogAction(
|
|
448
448
|
{
|
|
449
449
|
action,
|
|
450
450
|
by: activeUser._id,
|
|
@@ -517,7 +517,7 @@ module.exports = ({
|
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
519
|
const result = await getModel().listAll(filter);
|
|
520
|
-
|
|
520
|
+
LogAction({
|
|
521
521
|
action,
|
|
522
522
|
by: activeUser._id,
|
|
523
523
|
role: activeUser.role,
|
|
@@ -559,7 +559,7 @@ module.exports = ({
|
|
|
559
559
|
search,
|
|
560
560
|
populate
|
|
561
561
|
);
|
|
562
|
-
|
|
562
|
+
LogAction({
|
|
563
563
|
action,
|
|
564
564
|
by: activeUser._id,
|
|
565
565
|
role: activeUser.role,
|