node-pluginsmanager-plugin 7.0.1 → 7.2.0
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/lib/cjs/components/Mediator.js +6 -2
- package/package.json +12 -18
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
2
|
+
/*
|
|
3
|
+
eslint-disable @typescript-eslint/no-base-to-string
|
|
4
|
+
*/
|
|
5
|
+
// => @typescript-eslint/no-base-to-string is disabled to allow strinfication of unknown errors
|
|
3
6
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
7
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5
8
|
};
|
|
6
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
// deps
|
|
7
11
|
// externals
|
|
8
12
|
const express_openapi_validate_1 = require("express-openapi-validate");
|
|
9
13
|
// locals
|
|
@@ -73,7 +77,7 @@ class Mediator extends DescriptorUser_1.default {
|
|
|
73
77
|
}
|
|
74
78
|
return reject(new Error(err));
|
|
75
79
|
}
|
|
76
|
-
return reject(new Error(String(err)));
|
|
80
|
+
return reject(new Error(String(err))); // unknown err type
|
|
77
81
|
});
|
|
78
82
|
});
|
|
79
83
|
}).catch((err) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
|
|
3
3
|
"name": "node-pluginsmanager-plugin",
|
|
4
|
-
"version": "7.0
|
|
4
|
+
"version": "7.2.0",
|
|
5
5
|
"description": "An abstract parent plugin for node-pluginsmanager.",
|
|
6
6
|
|
|
7
7
|
"type": "commonjs",
|
|
@@ -19,8 +19,6 @@
|
|
|
19
19
|
|
|
20
20
|
"scripts": {
|
|
21
21
|
|
|
22
|
-
"prepare": "npx husky || true",
|
|
23
|
-
|
|
24
22
|
"lint-back": "npx eslint --config .eslintrc-back.js --ext .ts,.cts,.mts ./lib/src/**/*",
|
|
25
23
|
"lint-tests": "npx eslint --config .eslintrc-tests.js --ext .js,.cjs,.mjs ./test/**/*",
|
|
26
24
|
"lint": "npm run lint-back && npm run lint-tests",
|
|
@@ -31,11 +29,13 @@
|
|
|
31
29
|
"build-back": "npm run clean-back && npx tsc --project ./tsconfig.json",
|
|
32
30
|
"build": "npm run build-back",
|
|
33
31
|
|
|
32
|
+
"check-node-engine": "npx check-node-engine",
|
|
34
33
|
"check-requires": "npx used-deps-analyzer ./package.json ./lib/src --no-dev --misscalled \"{ \\\"module\\\": \\\"@types/socket.io-v2\\\", \\\"call\\\": \\\"socket.io-v2\\\" }\"",
|
|
35
34
|
"check-updates": "npx check-version-modules --no-fail-at-major --fail-at-minor --fail-at-patch",
|
|
36
|
-
"unit-tests": "
|
|
35
|
+
"unit-tests": "npx mocha",
|
|
36
|
+
"unit-tests-local": "npx nyc --reporter=html --reporter=text mocha",
|
|
37
37
|
|
|
38
|
-
"tests": "npm run lint && npm run check-requires && npm run check-updates && npm run unit-tests"
|
|
38
|
+
"tests": "npm run lint && npm run check-node-engine && npm run check-requires && npm run check-updates && npm run build && npm run unit-tests-local"
|
|
39
39
|
|
|
40
40
|
},
|
|
41
41
|
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"lib/@types"
|
|
45
45
|
],
|
|
46
46
|
"engines": {
|
|
47
|
-
"node": ">=22.22.
|
|
47
|
+
"node": ">=22.22.3"
|
|
48
48
|
},
|
|
49
49
|
|
|
50
50
|
"dependencies": {
|
|
@@ -54,31 +54,25 @@
|
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/express": "5.0.6",
|
|
57
|
-
"@types/node": "25.
|
|
57
|
+
"@types/node": "25.9.1",
|
|
58
58
|
"@types/socket.io": "3.0.2",
|
|
59
59
|
"@types/uniqid": "5.3.4",
|
|
60
60
|
"@types/ws": "8.18.1",
|
|
61
|
-
"check-
|
|
61
|
+
"check-node-engine": "1.0.0",
|
|
62
|
+
"check-version-modules": "2.5.0",
|
|
62
63
|
"colors": "1.4.0",
|
|
63
64
|
"eslint-plugin-personnallinter": "git+ssh://git@github.com/Psychopoulet/eslint-plugin-personnallinter",
|
|
64
65
|
"express": "5.2.1",
|
|
65
66
|
"husky": "9.1.7",
|
|
66
|
-
"mocha": "11.7.
|
|
67
|
+
"mocha": "11.7.6",
|
|
67
68
|
"nyc": "18.0.0",
|
|
68
69
|
"openapi-types": "12.1.3",
|
|
69
70
|
"rimraf": "6.1.3",
|
|
70
71
|
"socket.io": "4.8.3",
|
|
71
72
|
"socket.io-client": "4.8.3",
|
|
72
73
|
"typescript": "5.9.3",
|
|
73
|
-
"used-deps-analyzer": "0.
|
|
74
|
-
"ws": "8.
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
"husky": {
|
|
78
|
-
"hooks": {
|
|
79
|
-
"pre-commit": "npm run lint",
|
|
80
|
-
"pre-push": "npm run unit-tests"
|
|
81
|
-
}
|
|
74
|
+
"used-deps-analyzer": "0.3.0",
|
|
75
|
+
"ws": "8.21.0"
|
|
82
76
|
},
|
|
83
77
|
|
|
84
78
|
"keywords": [
|