xypriss 9.12.17 → 9.12.18
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 +2 -1
- package/scripts/install-xems.js +13 -5
- package/scripts/postinstall-xhsc.js +13 -2
- package/scripts/xems.run.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xypriss",
|
|
3
|
-
"version": "9.12.
|
|
3
|
+
"version": "9.12.18",
|
|
4
4
|
"description": "XyPriss is a high-performance, TypeScript-first hyper-system web framework powered by a native Go core (XHSC), featuring robust multi-tenant sandboxing, secure native file streaming, and zero Express dependencies.",
|
|
5
5
|
"author": {
|
|
6
6
|
"DEV.to": "https://dev.to/nehonix",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"install-xhsc": "node scripts/postinstall-xhsc.js",
|
|
39
39
|
"postinstall": "node scripts/postinstall.js",
|
|
40
40
|
"prepublishOnly": "xfpm run build",
|
|
41
|
+
"setup-bins": "node scripts/setup-bins.js",
|
|
41
42
|
"test": "jest",
|
|
42
43
|
"test:coverage": "jest --coverage",
|
|
43
44
|
"test:watch": "jest --watch"
|
package/scripts/install-xems.js
CHANGED
|
@@ -117,7 +117,13 @@ function downloadFile(url, dest) {
|
|
|
117
117
|
const file = fs.createWriteStream(dest);
|
|
118
118
|
const request = https.get(
|
|
119
119
|
url,
|
|
120
|
-
{
|
|
120
|
+
{
|
|
121
|
+
agent: false,
|
|
122
|
+
headers: {
|
|
123
|
+
"User-Agent": "XyPriss-Installer",
|
|
124
|
+
Connection: "close",
|
|
125
|
+
},
|
|
126
|
+
},
|
|
121
127
|
(response) => {
|
|
122
128
|
// Follow redirects
|
|
123
129
|
if (
|
|
@@ -268,10 +274,12 @@ const isMain =
|
|
|
268
274
|
));
|
|
269
275
|
|
|
270
276
|
if (isMain) {
|
|
271
|
-
installXems()
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
277
|
+
installXems()
|
|
278
|
+
.then(() => process.exit(0))
|
|
279
|
+
.catch((error) => {
|
|
280
|
+
log.error(`Fatal error: ${error.message}`);
|
|
281
|
+
process.exit(1);
|
|
282
|
+
});
|
|
275
283
|
}
|
|
276
284
|
|
|
277
285
|
export { installXems };
|
|
@@ -89,7 +89,13 @@ function downloadFile(url, dest) {
|
|
|
89
89
|
const file = fs.createWriteStream(dest);
|
|
90
90
|
const request = https.get(
|
|
91
91
|
url,
|
|
92
|
-
{
|
|
92
|
+
{
|
|
93
|
+
agent: false,
|
|
94
|
+
headers: {
|
|
95
|
+
"User-Agent": "XyPriss-Installer",
|
|
96
|
+
Connection: "close",
|
|
97
|
+
},
|
|
98
|
+
},
|
|
93
99
|
(response) => {
|
|
94
100
|
// Follow redirects
|
|
95
101
|
if (
|
|
@@ -234,7 +240,12 @@ async function installXHSC() {
|
|
|
234
240
|
|
|
235
241
|
// Entry point handled above
|
|
236
242
|
if (isMain) {
|
|
237
|
-
installXHSC()
|
|
243
|
+
installXHSC()
|
|
244
|
+
.then(() => process.exit(0))
|
|
245
|
+
.catch((error) => {
|
|
246
|
+
log.error(`Fatal error: ${error.message}`);
|
|
247
|
+
process.exit(1);
|
|
248
|
+
});
|
|
238
249
|
}
|
|
239
250
|
|
|
240
251
|
export { installXHSC };
|
package/scripts/xems.run.js
CHANGED
|
@@ -71,7 +71,6 @@ function getBinaryPath() {
|
|
|
71
71
|
function main() {
|
|
72
72
|
const binaryPath = getBinaryPath();
|
|
73
73
|
const args = process.argv.slice(2);
|
|
74
|
-
|
|
75
74
|
if (!binaryPath) {
|
|
76
75
|
console.error("\x1b[31m[ERROR] XEMS Binary not found.\x1b[0m");
|
|
77
76
|
console.error(
|
|
@@ -111,3 +110,4 @@ function main() {
|
|
|
111
110
|
main();
|
|
112
111
|
|
|
113
112
|
|
|
113
|
+
|