profoundjs 6.4.0 → 6.6.0
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/htdocs/profoundui/proddata/css/profoundui.css +1 -1
- package/htdocs/profoundui/proddata/js/designer.js +2912 -2909
- package/htdocs/profoundui/proddata/js/runtime.js +998 -999
- package/index.js +12 -10
- package/package.json +3 -1
- package/profound.jse +1 -1
- package/setup/install_utils.js +3 -4
- package/setup/pjsdist.savf +0 -0
- package/setup/setup.js +4 -5
package/index.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
const fs = require("fs");
|
|
4
4
|
const path = require("path");
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
let loaded = false;
|
|
7
|
+
let exists = false;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const stat = fs.statSync(path.join(__dirname, "/profound.js"));
|
|
10
10
|
if (stat && stat.isFile()) exists = true;
|
|
11
11
|
}
|
|
12
12
|
catch (err) {
|
|
@@ -19,9 +19,9 @@ else {
|
|
|
19
19
|
loaded = module.constructor._originalResolveFilename != null;
|
|
20
20
|
module.constructor._originalResolveFilename = module.constructor._originalResolveFilename || module.constructor._resolveFilename;
|
|
21
21
|
module.constructor._resolveFilename = function(request, paths) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
let filename;
|
|
23
|
+
const parts = request.split(".");
|
|
24
|
+
const extension = parts.pop();
|
|
25
25
|
if (extension === "jse") {
|
|
26
26
|
filename = module.constructor._originalResolveFilename("./profound.jse", paths);
|
|
27
27
|
if (path.sep !== "/") {
|
|
@@ -34,11 +34,13 @@ else {
|
|
|
34
34
|
}
|
|
35
35
|
return filename;
|
|
36
36
|
};
|
|
37
|
-
|
|
37
|
+
const jse = JSON.parse(fs.readFileSync(path.join(__dirname, "/profound.jse"), "utf8"));
|
|
38
38
|
process.require = require;
|
|
39
|
-
|
|
39
|
+
// eslint-disable-next-line n/no-new-require
|
|
40
|
+
const loader = new require("pjsloader")();
|
|
41
|
+
// eslint-disable-next-line n/no-deprecated-api
|
|
40
42
|
require.extensions[".jse"] = function(module, filename) {
|
|
41
|
-
|
|
43
|
+
let name = filename;
|
|
42
44
|
if (name.substr(0, __dirname.length) === __dirname) name = name.substr(__dirname.length + 1);
|
|
43
45
|
if (path.sep !== "/") {
|
|
44
46
|
while (name.includes(path.sep)) name = name.replace(path.sep, "/");
|
|
@@ -48,7 +50,7 @@ else {
|
|
|
48
50
|
|
|
49
51
|
// Require any of the children, but only the 1st time
|
|
50
52
|
if (!loaded) {
|
|
51
|
-
for (
|
|
53
|
+
for (const x in jse) {
|
|
52
54
|
if (x.startsWith("shipped-plugins")) {
|
|
53
55
|
profound.utils.addPlugin(require(x));
|
|
54
56
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "profoundjs",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"min-profoundui-version": "6.20.0",
|
|
5
5
|
"description": "Profound.js Framework and Server",
|
|
6
6
|
"keywords": [
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
"nocache": "^3.0.4",
|
|
97
97
|
"node-machine-id": "^1.1.12",
|
|
98
98
|
"node-sql-parser": "^4.6.6",
|
|
99
|
+
"nodemailer": "^6.4.8",
|
|
99
100
|
"p-iteration": "^1.1.8",
|
|
100
101
|
"pdfmake": "^0.2.4",
|
|
101
102
|
"pjsloader": "^1.12.0",
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
"prompts": "^2.3.2",
|
|
108
109
|
"randomatic": "^3.1.1",
|
|
109
110
|
"request": "^2.88.0",
|
|
111
|
+
"rotating-file-stream": "^3.1.0",
|
|
110
112
|
"semver": "^7.3.8",
|
|
111
113
|
"soap": "^0.45.0",
|
|
112
114
|
"ssh2": "^1.11.0",
|