node-pluginsmanager-plugin 7.4.1 → 7.4.3

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.
@@ -36,6 +36,7 @@ export default class Orchestrator<T extends iEventsMinimal & tEventMap<T> = iEve
36
36
  license: string;
37
37
  main: string;
38
38
  name: string;
39
+ repository: string;
39
40
  scripts: Record<string, string> | null;
40
41
  version: string;
41
42
  constructor(options: iOrchestratorOptions);
@@ -42,6 +42,7 @@ class Orchestrator extends MediatorUser_1.default {
42
42
  license;
43
43
  main;
44
44
  name;
45
+ repository;
45
46
  scripts;
46
47
  version;
47
48
  // constructor
@@ -82,6 +83,7 @@ class Orchestrator extends MediatorUser_1.default {
82
83
  this.license = "";
83
84
  this.main = "";
84
85
  this.name = "";
86
+ this.repository = "";
85
87
  this.scripts = null;
86
88
  this.version = "";
87
89
  }
@@ -213,9 +215,11 @@ class Orchestrator extends MediatorUser_1.default {
213
215
  this.license = "MIT";
214
216
  this.main = "lib/main.js";
215
217
  this.name = "";
218
+ this.repository = "";
216
219
  this.scripts = {};
217
220
  this.version = "";
218
221
  return (0, readJSONFile_1.default)(this._packageFile).then((packageData) => {
222
+ // extract authors
219
223
  if ("undefined" !== typeof packageData.authors) {
220
224
  if (Array.isArray(packageData.authors)) {
221
225
  this.authors = packageData.authors;
@@ -235,6 +239,20 @@ class Orchestrator extends MediatorUser_1.default {
235
239
  delete packageData.author;
236
240
  }
237
241
  return packageData;
242
+ }).then((packageData) => {
243
+ // extract repository
244
+ if ("string" === typeof packageData.repository) {
245
+ this.repository = packageData.repository;
246
+ delete packageData.repository;
247
+ }
248
+ else if ("object" === typeof packageData.repository && null !== packageData.repository) {
249
+ const { url } = packageData.repository;
250
+ if ("string" === typeof url) {
251
+ this.repository = url;
252
+ delete packageData.repository;
253
+ }
254
+ }
255
+ return packageData;
238
256
  // formate other data
239
257
  }).then((packageData) => {
240
258
  Object.keys(packageData).forEach((key) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
 
3
3
  "name": "node-pluginsmanager-plugin",
4
- "version": "7.4.1",
4
+ "version": "7.4.3",
5
5
  "description": "An abstract parent plugin for node-pluginsmanager.",
6
6
 
7
7
  "type": "commonjs",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/express": "5.0.6",
57
- "@types/node": "25.9.3",
57
+ "@types/node": "26.1.1",
58
58
  "@types/socket.io": "3.0.2",
59
59
  "@types/uniqid": "5.3.4",
60
60
  "@types/ws": "8.18.1",
@@ -72,7 +72,7 @@
72
72
  "socket.io-client": "4.8.3",
73
73
  "typescript": "5.9.3",
74
74
  "used-deps-analyzer": "0.4.0",
75
- "ws": "8.21.0"
75
+ "ws": "8.21.1"
76
76
  },
77
77
 
78
78
  "keywords": [