mm_machine 3.1.6 → 3.1.7

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/registry.js +1 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_machine",
3
- "version": "3.1.6",
3
+ "version": "3.1.7",
4
4
  "description": "A flexible Node.js plugin mechanism system for dynamic loading, management and execution of modules. Supports hot reload, lifecycle management, and modern JavaScript features.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/registry.js CHANGED
@@ -12,7 +12,7 @@ class Registry {
12
12
  constructor(config) {
13
13
  this.config = {
14
14
  name: 'default',
15
- dir: '/data/registry'.fullname(__dirname),
15
+ dir: '/data/registry'.fullname(),
16
16
  ...config
17
17
  };
18
18
  this.mod_dict = {};
@@ -260,11 +260,6 @@ Registry.prototype.sort = function () {
260
260
  }
261
261
  };
262
262
 
263
-
264
- if (!$.registry) {
265
- $.registry = new Registry({ name: 'default' });
266
- }
267
-
268
263
  module.exports = {
269
264
  Registry
270
265
  };