From 4a210e42a235bfa190ab730c1043dd97becbc775 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 2 Oct 2021 18:32:54 +0200 Subject: Fixes for deployment --- index.js | 12 ++++++------ node_modules/.bin/mkdirp | Bin 20 -> 48 bytes node_modules/.bin/nexe | Bin 16 -> 40 bytes node_modules/.bin/rimraf | Bin 16 -> 40 bytes node_modules/.bin/seek-bunzip | Bin 28 -> 64 bytes node_modules/.bin/seek-table | Bin 32 -> 72 bytes node_modules/.bin/semver | Bin 20 -> 48 bytes package.json | 4 ++-- 8 files changed, 8 insertions(+), 8 deletions(-) mode change 120000 => 100644 node_modules/.bin/mkdirp mode change 120000 => 100644 node_modules/.bin/nexe mode change 120000 => 100644 node_modules/.bin/rimraf mode change 120000 => 100644 node_modules/.bin/seek-bunzip mode change 120000 => 100644 node_modules/.bin/seek-table mode change 120000 => 100644 node_modules/.bin/semver 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 deleted file mode 120000 index 017896c..0000000 --- a/node_modules/.bin/mkdirp +++ /dev/null @@ -1 +0,0 @@ -../mkdirp/bin/cmd.js \ No newline at end of file diff --git a/node_modules/.bin/mkdirp b/node_modules/.bin/mkdirp new file mode 100644 index 0000000..2da13ce Binary files /dev/null and b/node_modules/.bin/mkdirp differ diff --git a/node_modules/.bin/nexe b/node_modules/.bin/nexe deleted file mode 120000 index 65979cc..0000000 --- a/node_modules/.bin/nexe +++ /dev/null @@ -1 +0,0 @@ -../nexe/index.js \ No newline at end of file diff --git a/node_modules/.bin/nexe b/node_modules/.bin/nexe new file mode 100644 index 0000000..17f70a8 Binary files /dev/null and b/node_modules/.bin/nexe differ diff --git a/node_modules/.bin/rimraf b/node_modules/.bin/rimraf deleted file mode 120000 index 4cd49a4..0000000 --- a/node_modules/.bin/rimraf +++ /dev/null @@ -1 +0,0 @@ -../rimraf/bin.js \ No newline at end of file diff --git a/node_modules/.bin/rimraf b/node_modules/.bin/rimraf new file mode 100644 index 0000000..da3a2c0 Binary files /dev/null and b/node_modules/.bin/rimraf differ diff --git a/node_modules/.bin/seek-bunzip b/node_modules/.bin/seek-bunzip deleted file mode 120000 index 7bda56e..0000000 --- a/node_modules/.bin/seek-bunzip +++ /dev/null @@ -1 +0,0 @@ -../seek-bzip/bin/seek-bunzip \ No newline at end of file diff --git a/node_modules/.bin/seek-bunzip b/node_modules/.bin/seek-bunzip new file mode 100644 index 0000000..a980271 Binary files /dev/null and b/node_modules/.bin/seek-bunzip differ diff --git a/node_modules/.bin/seek-table b/node_modules/.bin/seek-table deleted file mode 120000 index 7721710..0000000 --- a/node_modules/.bin/seek-table +++ /dev/null @@ -1 +0,0 @@ -../seek-bzip/bin/seek-bzip-table \ No newline at end of file diff --git a/node_modules/.bin/seek-table b/node_modules/.bin/seek-table new file mode 100644 index 0000000..aaf0926 Binary files /dev/null and b/node_modules/.bin/seek-table differ diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver deleted file mode 120000 index 317eb29..0000000 --- a/node_modules/.bin/semver +++ /dev/null @@ -1 +0,0 @@ -../semver/bin/semver \ No newline at end of file diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver new file mode 100644 index 0000000..82b1659 Binary files /dev/null and b/node_modules/.bin/semver 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": "", -- cgit