diff options
author | Minteck <minteck@phoenixnet.tech> | 2021-10-02 18:32:54 +0200 |
---|---|---|
committer | Minteck <minteck@phoenixnet.tech> | 2021-10-02 18:32:54 +0200 |
commit | 4a210e42a235bfa190ab730c1043dd97becbc775 (patch) | |
tree | c333aa346c1fd7816c4cf2a7d656013be96c1457 | |
parent | 35b20bb63dc3852023e32dd14d99cda379685aae (diff) | |
download | kartik-iridium-4a210e42a235bfa190ab730c1043dd97becbc775.tar.gz kartik-iridium-4a210e42a235bfa190ab730c1043dd97becbc775.tar.bz2 kartik-iridium-4a210e42a235bfa190ab730c1043dd97becbc775.zip |
Fixes for deployment
-rw-r--r-- | index.js | 12 | ||||
-rw-r--r--[l---------] | node_modules/.bin/mkdirp | bin | 20 -> 48 bytes | |||
-rw-r--r--[l---------] | node_modules/.bin/nexe | bin | 16 -> 40 bytes | |||
-rw-r--r--[l---------] | node_modules/.bin/rimraf | bin | 16 -> 40 bytes | |||
-rw-r--r--[l---------] | node_modules/.bin/seek-bunzip | bin | 28 -> 64 bytes | |||
-rw-r--r--[l---------] | node_modules/.bin/seek-table | bin | 32 -> 72 bytes | |||
-rw-r--r--[l---------] | node_modules/.bin/semver | bin | 20 -> 48 bytes | |||
-rw-r--r-- | package.json | 4 |
8 files changed, 8 insertions, 8 deletions
@@ -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 Binary files differindex 017896c..2da13ce 120000..100644 --- a/node_modules/.bin/mkdirp +++ b/node_modules/.bin/mkdirp diff --git a/node_modules/.bin/nexe b/node_modules/.bin/nexe Binary files differindex 65979cc..17f70a8 120000..100644 --- a/node_modules/.bin/nexe +++ b/node_modules/.bin/nexe diff --git a/node_modules/.bin/rimraf b/node_modules/.bin/rimraf Binary files differindex 4cd49a4..da3a2c0 120000..100644 --- a/node_modules/.bin/rimraf +++ b/node_modules/.bin/rimraf diff --git a/node_modules/.bin/seek-bunzip b/node_modules/.bin/seek-bunzip Binary files differindex 7bda56e..a980271 120000..100644 --- a/node_modules/.bin/seek-bunzip +++ b/node_modules/.bin/seek-bunzip diff --git a/node_modules/.bin/seek-table b/node_modules/.bin/seek-table Binary files differindex 7721710..aaf0926 120000..100644 --- a/node_modules/.bin/seek-table +++ b/node_modules/.bin/seek-table diff --git a/node_modules/.bin/semver b/node_modules/.bin/semver Binary files differindex 317eb29..82b1659 120000..100644 --- a/node_modules/.bin/semver +++ b/node_modules/.bin/semver 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": "", |