@steedos/metadata-core 2.7.23 → 2.7.25

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": "@steedos/metadata-core",
3
- "version": "2.7.23",
3
+ "version": "2.7.25",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -12,7 +12,7 @@
12
12
  "build": "tsc"
13
13
  },
14
14
  "dependencies": {
15
- "@steedos/client": "^2.7.23",
15
+ "@steedos/client": "2.7.25",
16
16
  "archiver": "^5.1.0",
17
17
  "chalk": "^4.1.0",
18
18
  "clone": "^2.1.2",
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "036ef1b80ea20145ff302f55bc0bcebcb709092b"
42
+ "gitHead": "acedb08a7f16f82248de1fe5c66c734d910e9b29"
43
43
  }
@@ -1 +0,0 @@
1
- export declare function loadPackage(packagePath: any): Promise<void>;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.loadPackage = loadPackage;
4
- const __1 = require("../");
5
- const path = require("path");
6
- function clearRequireCache(filename) {
7
- Object.keys(require.cache).forEach(function (key) {
8
- if (key == filename) {
9
- delete require.cache[key];
10
- }
11
- });
12
- }
13
- ;
14
- function loadService(broker, filename) {
15
- clearRequireCache(filename);
16
- return broker.loadService(filename);
17
- }
18
- async function loadPackage(packagePath) {
19
- let broker = global['broker'];
20
- if (broker) {
21
- const filePatten = [
22
- path.join(packagePath, "**", "package.service.js"),
23
- "!" + path.join(packagePath, "**", "node_modules"),
24
- ];
25
- const matchedPaths = (0, __1.syncMatchFiles)(filePatten);
26
- for await (const serviceFilePath of matchedPaths) {
27
- const service = loadService(broker, serviceFilePath);
28
- if (!broker.started) {
29
- broker._restartService(service);
30
- }
31
- }
32
- }
33
- }
34
- //# sourceMappingURL=loadPackage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