diff --git a/package-lock.json b/package-lock.json index 81fc23bc..6b6214d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -60,6 +60,7 @@ "safe-stable-stringify": "2.4.3", "sha1-uint8array": "0.10.7", "skia-canvas": "1.0.2", + "tcp-port-used": "1.0.2", "tiny-typed-emitter": "2.1.0", "tinycache": "1.1.2", "ts-custom-error": "3.3.1", @@ -79,6 +80,7 @@ "@types/node": "18.19.0", "@types/node-forge": "1.3.11", "@types/probe-image-size": "7.2.4", + "@types/tcp-port-used": "^1.0.4", "@types/url-parse": "1.4.11", "@types/webpack": "5.28.5", "babel-loader": "9.1.3 ", @@ -94,7 +96,7 @@ "karma-parallel": "0.3.1", "karma-sinon": "1.0.5", "karma-spec-reporter": "0.0.36", - "kubo": "0.31", + "kubo": "0.32.1", "mocha": "10.2.0", "npm-run-all": "4.1.5", "prettier": "3.2.4", @@ -5593,6 +5595,12 @@ "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", "peer": true }, + "node_modules/@types/tcp-port-used": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/@types/tcp-port-used/-/tcp-port-used-1.0.4.tgz", + "integrity": "sha512-0vQ4fz9TTM4bCdllYWEJ2JHBUXR9xqPtc70dJ7BMRDVfvZyYdrgey3nP5RRcVj+qAgnHJM8r9fvgrfnPMxdnhA==", + "dev": true + }, "node_modules/@types/url-parse": { "version": "1.4.11", "resolved": "https://registry.npmjs.org/@types/url-parse/-/url-parse-1.4.11.tgz", @@ -8015,8 +8023,7 @@ "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" }, "node_modules/deepmerge": { "version": "4.3.1", @@ -10291,6 +10298,14 @@ "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", "optional": true }, + "node_modules/ip-regex": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ip-regex/-/ip-regex-4.3.0.tgz", + "integrity": "sha512-B9ZWJxHHOHUhUjCPrMpLD4xEq35bUTClHM1S6CBU5ixQnkZmwipwgc96vAd7AAGM9TGHvJR+Uss+/Ak6UphK+Q==", + "engines": { + "node": ">=8" + } + }, "node_modules/ipaddr.js": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.2.0.tgz", @@ -10853,6 +10868,11 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-url": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz", + "integrity": "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==" + }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -10876,6 +10896,19 @@ "node": ">=8" } }, + "node_modules/is2": { + "version": "2.0.9", + "resolved": "https://registry.npmjs.org/is2/-/is2-2.0.9.tgz", + "integrity": "sha512-rZkHeBn9Zzq52sd9IUIV3a5mfwBY+o2HePMh0wkGBM4z4qjvy2GwVxQ6nNXSfw6MmVP6gf1QIlWjiOavhM3x5g==", + "dependencies": { + "deep-is": "^0.1.3", + "ip-regex": "^4.1.0", + "is-url": "^1.2.4" + }, + "engines": { + "node": ">=v0.10.0" + } + }, "node_modules/isarray": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz", @@ -12283,9 +12316,9 @@ "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, "node_modules/kubo": { - "version": "0.31.0", - "resolved": "https://registry.npmjs.org/kubo/-/kubo-0.31.0.tgz", - "integrity": "sha512-3he8THK76gyYkVNnHpTo4LnMl/5fpZjNnaepCn2IKO+R5GXjLPvzydj+WJhyRuPT19H1c/tBW3COF03IXCO4lQ==", + "version": "0.32.1", + "resolved": "https://registry.npmjs.org/kubo/-/kubo-0.32.1.tgz", + "integrity": "sha512-vXTprOeWACNpU86ldCBSBMRgq4MahLIr/YBn6DBb0SvHHVe4ZD8Djma6ncfVmxzrWxEiIMq9XOxJcQ27UOZ6kw==", "dev": true, "hasInstallScript": true, "dependencies": { @@ -18154,6 +18187,36 @@ "node": ">=8.0.0" } }, + "node_modules/tcp-port-used": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/tcp-port-used/-/tcp-port-used-1.0.2.tgz", + "integrity": "sha512-l7ar8lLUD3XS1V2lfoJlCBaeoaWo/2xfYt81hM7VlvR4RrMVFqfmzfhLVk40hAb368uitje5gPtBRL1m/DGvLA==", + "dependencies": { + "debug": "4.3.1", + "is2": "^2.0.6" + } + }, + "node_modules/tcp-port-used/node_modules/debug": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/tcp-port-used/node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, "node_modules/temp": { "version": "0.8.4", "resolved": "https://registry.npmjs.org/temp/-/temp-0.8.4.tgz", diff --git a/package.json b/package.json index abfb77d9..a16894e5 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,7 @@ "safe-stable-stringify": "2.4.3", "sha1-uint8array": "0.10.7", "skia-canvas": "1.0.2", + "tcp-port-used": "1.0.2", "tiny-typed-emitter": "2.1.0", "tinycache": "1.1.2", "ts-custom-error": "3.3.1", @@ -109,6 +110,7 @@ "@types/node": "18.19.0", "@types/node-forge": "1.3.11", "@types/probe-image-size": "7.2.4", + "@types/tcp-port-used": "1.0.4", "@types/url-parse": "1.4.11", "@types/webpack": "5.28.5", "babel-loader": "9.1.3 ", @@ -124,7 +126,7 @@ "karma-parallel": "0.3.1", "karma-sinon": "1.0.5", "karma-spec-reporter": "0.0.36", - "kubo": "0.31", + "kubo": "0.32.1", "mocha": "10.2.0", "npm-run-all": "4.1.5", "prettier": "3.2.4", @@ -141,16 +143,34 @@ "webpack-cli": "5.1.4", "webpack-watch-files-plugin": "1.2.1" }, - "resolutions": { - "skia-canvas": "1.0.0" - }, "description": "plebbit.js will be an NPM module to wrap around the IPFS APIs used by Plebbit. It will be used in all clients: CLI, Electron (Desktop GUI) and Web.", "repository": { "type": "git", "url": "git+https://github.com/plebbit/plebbit-js.git" }, "keywords": [ - "plebbit" + "plebbit", + "plebbit-js", + "decentralized", + "p2p", + "peer-to-peer", + "social", + "social-network", + "blockchain", + "crypto", + "cryptocurrency", + "ipfs", + "web3", + "decentralized-web", + "reddit-alternative", + "social-media", + "distributed", + "content-sharing", + "community", + "forums", + "discussion", + "javascript", + "nodejs" ], "author": "Esteban Abaroa, Rinse", "license": "GPL-2.0-only",