diff --git a/nodejs/server.cjs b/nodejs/server.cjs index c360727..dae2ef3 100644 --- a/nodejs/server.cjs +++ b/nodejs/server.cjs @@ -3,7 +3,8 @@ const {WSRouter} = require("./ws-router.cjs"); const createServer = () => { const httpServer = http.createServer((req, res) => { - console.log(req.url); // console out may require some options + //console.log(req.url); // console out may require some options + //console.log(JSON.stringify(req.headers)); res.writeHead(200, {"content-type": "text/html;charset=utf-8"}); res.end("Hello node"); }); diff --git a/package-lock.json b/package-lock.json index 004083c..e17996e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -229,9 +229,9 @@ } }, "@hapi/shot": { - "version": "5.0.3", - "resolved": "https://registry.npmjs.org/@hapi/shot/-/shot-5.0.3.tgz", - "integrity": "sha512-qbccs8KL4YSL9x0J/17Z6Udmtrrn32ieGbrCW8iivl2ha8YzlDy9Wvv1pFKh3mzbTsomWHGLF3UsKcQFk/BqPg==", + "version": "5.0.4", + "resolved": "https://registry.npmjs.org/@hapi/shot/-/shot-5.0.4.tgz", + "integrity": "sha512-PcEz0WJgFDA3xNSMeONgQmothFr7jhbbRRSAKaDh7chN7zOXBlhl13bvKZW6CMb2xVfJUmt34CW3e/oExMgBhQ==", "requires": { "@hapi/hoek": "9.x.x", "@hapi/validate": "1.x.x" @@ -3297,9 +3297,9 @@ "integrity": "sha512-pKnZpbgCTfH/1NLIlOduP/V+WRXzC2MOz3Qo8xmxk8C5GudJLgK5QyLVXOSWy3ParAH7Eemurl3xjv/WXYFvMA==" }, "ipfs": { - "version": "0.50.1", - "resolved": "https://registry.npmjs.org/ipfs/-/ipfs-0.50.1.tgz", - "integrity": "sha512-TTQzDoElF1ahcwebXXho2q+0vVsUz8rDKnTnz44QOkSB2cgYIIT32VIXxgFgoy+CayoFa+pybexQqR2lKRtajw==", + "version": "0.50.2", + "resolved": "https://registry.npmjs.org/ipfs/-/ipfs-0.50.2.tgz", + "integrity": "sha512-mgXab5fxyUwQpy/NNfOCplql+Em2DhyWLYjTOgIaaCrWTssejeZyRETBYZazAwIk1xNsIDX3IgOfXlzWw850bw==", "requires": { "@hapi/ammo": "^5.0.1", "@hapi/boom": "^9.1.0", @@ -3332,7 +3332,7 @@ "ipfs-bitswap": "^3.0.0", "ipfs-block-service": "^0.18.0", "ipfs-core-utils": "^0.4.0", - "ipfs-http-client": "^46.1.1", + "ipfs-http-client": "^47.0.1", "ipfs-http-response": "^0.6.0", "ipfs-repo": "^6.0.3", "ipfs-unixfs": "^2.0.2", @@ -3411,6 +3411,44 @@ "varint": "^5.0.0", "yargs": "^15.1.0", "yargs-promise": "^1.1.0" + }, + "dependencies": { + "ipfs-http-client": { + "version": "47.0.1", + "resolved": "https://registry.npmjs.org/ipfs-http-client/-/ipfs-http-client-47.0.1.tgz", + "integrity": "sha512-IAQf+uTLvXw5QFOzbyhu/5lH3rn7jEwwwdCGaNKVhoPI7yfyOV0wRse3hVWejjP1Id0P9mKuMKG8rhcY7pVAdQ==", + "requires": { + "abort-controller": "^3.0.0", + "any-signal": "^1.1.0", + "bignumber.js": "^9.0.0", + "cids": "^1.0.0", + "debug": "^4.1.0", + "form-data": "^3.0.0", + "ipfs-core-utils": "^0.4.0", + "ipfs-utils": "^3.0.0", + "ipld-block": "^0.10.0", + "ipld-dag-cbor": "^0.17.0", + "ipld-dag-pb": "^0.20.0", + "ipld-raw": "^6.0.0", + "iso-url": "^0.4.7", + "it-last": "^1.0.2", + "it-map": "^1.0.2", + "it-tar": "^1.2.2", + "it-to-buffer": "^1.0.0", + "it-to-stream": "^0.1.1", + "merge-options": "^2.0.0", + "multiaddr": "^8.0.0", + "multiaddr-to-uri": "^6.0.0", + "multibase": "^3.0.0", + "multicodec": "^2.0.0", + "multihashes": "^3.0.1", + "nanoid": "^3.0.2", + "node-fetch": "^2.6.0", + "parse-duration": "^0.4.4", + "stream-to-it": "^0.2.1", + "uint8arrays": "^1.1.0" + } + } } }, "ipfs-bitswap": { @@ -4969,9 +5007,9 @@ } }, "libp2p-noise": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/libp2p-noise/-/libp2p-noise-2.0.0.tgz", - "integrity": "sha512-EhHU8TaPw0JDMakPFpOTsfDrKYvBc/MsvUpQy3GECAcAJEu+gBW6CYYqJqMx/ZXnr/QBUeZfnOXBVlbTnEJ/7g==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/libp2p-noise/-/libp2p-noise-2.0.1.tgz", + "integrity": "sha512-Jhd/jirWL3qkqGqIC1P4SH+OYlmKFll6UjFVYdw7otBKnbmdBUTW2Lg75/L1+7dYKwitHKu5EWlAd3zPU36gfg==", "requires": { "bcrypto": "^5.2.0", "buffer": "^5.4.3", @@ -6268,9 +6306,9 @@ }, "dependencies": { "@types/node": { - "version": "13.13.16", - "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.16.tgz", - "integrity": "sha512-dJ9vXxJ8MEwzNn4GkoAGauejhXoKuJyYKegsA6Af25ZpEDXomeVXt5HUWUNVHk5UN7+U0f6ghC6otwt+7PdSDg==" + "version": "13.13.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.17.tgz", + "integrity": "sha512-rGZftvdDpsYtG/rOlDOwny1f6Aq4FHJdGSVfPg5vC2DaR9Rt4W2OpsOF5GTU2bSqZmwTkfnsvJhhzpMWYxxlEA==" } } }, diff --git a/package.json b/package.json index 3404c59..0c144f9 100644 --- a/package.json +++ b/package.json @@ -2,11 +2,12 @@ "name": "stellar-runtime", "main": "boot.html", "dependencies": { - "nw": "0.48.1-sdk", "ipfs": "*", "ipfs-http-client": "*", + "nw": "0.48.1-sdk", "websocket": "*" }, + "user-agent": "NW.js", "chromium-args": "--javascript-harmony --enable-experimental-web-platform-features --enable-logging=stderr", "scripts": { "start": "nw"