verteilen-core 1.3.30 → 1.3.32

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.
@@ -39,16 +39,6 @@ const interface_1 = require("../interface");
39
39
  const jsEnv = __importStar(require("browser-or-node"));
40
40
  const ws = __importStar(require("ws"));
41
41
  const https = __importStar(require("https"));
42
- function isRenderer() {
43
- if (typeof process === 'undefined')
44
- return true;
45
- if (!process)
46
- return true;
47
- if (!process.type)
48
- return false;
49
- return process.type === 'renderer';
50
- }
51
- console.log("isRenderer", isRenderer());
52
42
  class WebsocketManager {
53
43
  targets = [];
54
44
  newConnect;
@@ -82,12 +82,12 @@ const PluginBuild = (root, plugins, templates) => {
82
82
  console.log("Output project templates");
83
83
  templates.projects.forEach(item => {
84
84
  const result = item.template((0, interface_1.CreateDefaultProject)());
85
- fs.writeFileSync(path.join(root_p, `${item.title}.json`), JSON.stringify(result, null, 4), 'utf-8');
85
+ fs.writeFileSync(path.join(root_p, `${item.filename}.json`), JSON.stringify(result, null, 4), 'utf-8');
86
86
  });
87
87
  console.log("Output database templates");
88
88
  templates.databases.forEach(item => {
89
89
  const result = item.template();
90
- fs.writeFileSync(path.join(root_d, `${item.title}.json`), JSON.stringify(result, null, 4), 'utf-8');
90
+ fs.writeFileSync(path.join(root_d, `${item.filename}.json`), JSON.stringify(result, null, 4), 'utf-8');
91
91
  });
92
92
  };
93
93
  exports.PluginBuild = PluginBuild;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verteilen-core",
3
- "version": "1.3.30",
3
+ "version": "1.3.32",
4
4
  "license": "MIT",
5
5
  "homepage": "https://verteilen.github.io/wiki/",
6
6
  "author": "Elly",
@@ -9,23 +9,6 @@ import * as jsEnv from "browser-or-node";
9
9
  import * as ws from 'ws'
10
10
  import * as https from 'https'
11
11
 
12
- function isRenderer () {
13
- // running in a web browser
14
- if (typeof process === 'undefined') return true
15
-
16
- // node-integration is disabled
17
- if (!process) return true
18
-
19
- // We're in node.js somehow
20
- // @ts-ignore
21
- if (!process.type) return false
22
-
23
- // @ts-ignore
24
- return process.type === 'renderer'
25
- }
26
-
27
- console.log("isRenderer", isRenderer())
28
-
29
12
  /**
30
13
  * The node connection instance manager, Use by the cluster server
31
14
  */
@@ -50,7 +50,7 @@ export const PluginBuild = (root:string, plugins:PluginNode, templates:PluginGen
50
50
  templates.projects.forEach(item => {
51
51
  const result:Project = item.template(CreateDefaultProject())
52
52
  fs.writeFileSync(
53
- path.join(root_p, `${item.title}.json`),
53
+ path.join(root_p, `${item.filename}.json`),
54
54
  JSON.stringify(result, null, 4), 'utf-8')
55
55
  })
56
56
 
@@ -58,7 +58,7 @@ export const PluginBuild = (root:string, plugins:PluginNode, templates:PluginGen
58
58
  templates.databases.forEach(item => {
59
59
  const result:Array<DatabaseContainer> = item.template()
60
60
  fs.writeFileSync(
61
- path.join(root_d, `${item.title}.json`),
61
+ path.join(root_d, `${item.filename}.json`),
62
62
  JSON.stringify(result, null, 4), 'utf-8')
63
63
  })
64
64
  }