verteilen-core 1.3.29 → 1.3.31
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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PluginGenData, PluginNode } from '../interface';
|
|
2
|
-
export declare const PluginBuild: (plugins: PluginNode, templates: PluginGenData) => void;
|
|
2
|
+
export declare const PluginBuild: (root: string, plugins: PluginNode, templates: PluginGenData) => void;
|
|
@@ -37,9 +37,8 @@ exports.PluginBuild = void 0;
|
|
|
37
37
|
const fs = __importStar(require("fs"));
|
|
38
38
|
const path = __importStar(require("path"));
|
|
39
39
|
const interface_1 = require("../interface");
|
|
40
|
-
const PluginBuild = (plugins, templates) => {
|
|
40
|
+
const PluginBuild = (root, plugins, templates) => {
|
|
41
41
|
console.log("Activate Plugin Build Process...");
|
|
42
|
-
const root = path.join(__dirname, 'dist');
|
|
43
42
|
const root_p = path.join(root, 'project');
|
|
44
43
|
const root_d = path.join(root, 'database');
|
|
45
44
|
const m_path = path.join(root, 'manifest.json');
|
package/package.json
CHANGED
|
@@ -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
|
*/
|
|
@@ -2,9 +2,8 @@ import * as fs from 'fs'
|
|
|
2
2
|
import * as path from 'path'
|
|
3
3
|
import { CreateDefaultProject, DatabaseContainer, PluginContainer, PluginGenData, PluginNode, Project } from '../interface'
|
|
4
4
|
|
|
5
|
-
export const PluginBuild = (plugins:PluginNode, templates:PluginGenData) => {
|
|
5
|
+
export const PluginBuild = (root:string, plugins:PluginNode, templates:PluginGenData) => {
|
|
6
6
|
console.log("Activate Plugin Build Process...")
|
|
7
|
-
const root = path.join(__dirname, 'dist')
|
|
8
7
|
const root_p = path.join(root, 'project')
|
|
9
8
|
const root_d = path.join(root, 'database')
|
|
10
9
|
const m_path = path.join(root, 'manifest.json')
|