aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinteck <minteck@phoenixnet.tech>2021-10-02 18:32:54 +0200
committerMinteck <minteck@phoenixnet.tech>2021-10-02 18:32:54 +0200
commit4a210e42a235bfa190ab730c1043dd97becbc775 (patch)
treec333aa346c1fd7816c4cf2a7d656013be96c1457
parent35b20bb63dc3852023e32dd14d99cda379685aae (diff)
downloadkartik-iridium-4a210e42a235bfa190ab730c1043dd97becbc775.tar.gz
kartik-iridium-4a210e42a235bfa190ab730c1043dd97becbc775.tar.bz2
kartik-iridium-4a210e42a235bfa190ab730c1043dd97becbc775.zip
Fixes for deployment
-rw-r--r--index.js12
-rw-r--r--[l---------]node_modules/.bin/mkdirpbin20 -> 48 bytes
-rw-r--r--[l---------]node_modules/.bin/nexebin16 -> 40 bytes
-rw-r--r--[l---------]node_modules/.bin/rimrafbin16 -> 40 bytes
-rw-r--r--[l---------]node_modules/.bin/seek-bunzipbin28 -> 64 bytes
-rw-r--r--[l---------]node_modules/.bin/seek-tablebin32 -> 72 bytes
-rw-r--r--[l---------]node_modules/.bin/semverbin20 -> 48 bytes
-rw-r--r--package.json4
8 files changed, 8 insertions, 8 deletions
diff --git a/index.js b/index.js
index 32647d1..c325a13 100644
--- a/index.js
+++ b/index.js
@@ -98,7 +98,7 @@ server.on('connection', (socket) => {
} catch (e) {
console.error(e);
if (e.name !== "KartikError") {
- e.ktype = "E_SYSTEM_" + e.name.toUpperCase().replaceAll("ERROR", "");
+ e.ktype = "E_SYSTEM_" + e.name.toUpperCase().split("ERROR").join("");
}
socket.write(JSON.stringify({
_type: "error",
@@ -115,7 +115,7 @@ server.on('connection', (socket) => {
while (!received.isFinished()) {
const chunk = received.handleData()
try {
- raw = chunk.toString().replaceAll("}{", "}|{");
+ raw = chunk.toString().split("}{").join("}|{");
datas = raw.split("|").filter(i => i.trim() !== "");
datas.forEach((data) => {
@@ -204,7 +204,7 @@ server.on('connection', (socket) => {
if (socket.linkedTo === null) {
throw new KartikError("Client is not linked", "E_IRIDIUM_ROUTING");
} else {
- socket.linkedTo.write(JSON.stringify(info).replaceAll("<", "-").replaceAll(">", "-") + "\n");
+ socket.linkedTo.write(JSON.stringify(info).split("<").join("-").split(">").join("-") + "\n");
}
}
}
@@ -212,14 +212,14 @@ server.on('connection', (socket) => {
} catch (e) {
if (e.name !== "KartikError") {
console.error(e);
- e.ktype = "E_SYSTEM_" + e.name.toUpperCase().replaceAll("ERROR", "");
+ e.ktype = "E_SYSTEM_" + e.name.toUpperCase().split("ERROR").join("");
} else {
console.error(e.ktype + ": " + e.message)
}
socket.write(JSON.stringify({
_type: "error",
- message: e.message.replaceAll("<", "-").replaceAll(">", "-"),
- type: e.ktype.replaceAll("<", "-").replaceAll(">", "-")
+ message: e.message.split("<").join("-").split(">").join("-"),
+ type: e.ktype.split("<").join("-").split(">").join("-")
}) + "\n")
socket.end();
}
diff --git a/node_modules/.bin/mkdirp b/node_modules/.bin/mkdirp
index 017896c..2da13ce 120000..100644
--- a/node_modules/.bin/mkdirp
+++ b/node_modules/.bin/mkdirp
Binary files differ
diff --git a/node_modules/.bin/nexe b/node_modules/.bin/nexe
index 65979cc..17f70a8 120000..100644
--- a/node_modules/.bin/nexe
+++ b/node_modules/.bin/nexe
Binary files differ
diff --git a/node_modules/.bin/rimraf b/node_modules/.bin/rimraf
index 4cd49a4..da3a2c0 120000..100644
--- a/node_modules/.bin/rimraf
+++ b/node_modules/.bin/rimraf
Binary files differ
diff --git a/node_modules/.bin/seek-bunzip b/node_modules/.bin/seek-bunzip
index 7bda56e..a980271 120000..100644
--- a/node_modules/.bin/seek-bunzip
+++ b/node_modules/.bin/seek-bunzip
Binary files differ
diff --git a/node_modules/.bin/seek-table b/node_modules/.bin/seek-table
index 7721710..aaf0926 120000..100644
--- a/node_modules/.bin/seek-table
+++ b/node_modules/.bin/seek-table
Binary files differ
diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver
index 317eb29..82b1659 120000..100644
--- a/node_modules/.bin/semver
+++ b/node_modules/.bin/semver
Binary files differ
diff --git a/package.json b/package.json
index 3750dc8..fa6d619 100644
--- a/package.json
+++ b/package.json
@@ -1,12 +1,12 @@
{
"name": "iridium",
- "version": "2.1.0",
+ "version": "2.1.3",
"description": "A next-generation Kartik server, based on the original server",
"main": "index.js",
"scripts": {
"test": "node index.js",
"run": "node index.js",
- "build": "nexe index.js -o build/iridium"
+ "build": "nexe index.js --build -o build/iridium"
},
"keywords": [],
"author": "",