From e6bf56282dad9a59d02c169cc7487cbf6162b5bb Mon Sep 17 00:00:00 2001 From: Andre Staltz Date: Wed, 3 Jan 2024 16:24:26 +0200 Subject: [PATCH] update dependencies --- lib/members.cjs | 4 +- lib/peer.cjs | 33 +-- lib/plugin-hub.cjs | 5 +- lib/tokens.cjs | 4 +- package-lock.json | 569 +++++++++++++++++++++++++++------------------ package.json | 13 +- 6 files changed, 370 insertions(+), 258 deletions(-) diff --git a/lib/members.cjs b/lib/members.cjs index ee09bb0..ccfc068 100644 --- a/lib/members.cjs +++ b/lib/members.cjs @@ -4,9 +4,7 @@ const AtomicFileRW = require('atomic-file-rw') class Members { static #filePath - /** - * @type {Set} - */ + /** @type {Set} */ static #set static #loaded = false diff --git a/lib/peer.cjs b/lib/peer.cjs index 06e2a8f..3833c3c 100644 --- a/lib/peer.cjs +++ b/lib/peer.cjs @@ -8,30 +8,33 @@ module.exports = function startPeer() { const keypairPath = Path.join(path, 'keypair') const keypair = Keypair.loadOrCreateSync(keypairPath) - SecretStack({ caps }) + SecretStack() .use(require('secret-stack/plugins/net')) .use(require('secret-handshake-ext/secret-stack')) .use(require('ssb-conn')) .use(require('./plugin-hub.cjs')) .use(require('./plugin-hub-client.cjs')) .call(null, { - path, - keypair, - timers: { - inactivity: 600e3, + shse: { caps }, + global: { + path, + keypair, + timers: { + inactivity: 600e3, + }, + connections: { + incoming: { + net: [ + { scope: 'public', transform: 'shse', port: 8008, host: '0.0.0.0' }, + ], + }, + outgoing: { + net: [{ transform: 'shse' }], + }, + }, }, conn: { autostart: false, }, - connections: { - incoming: { - net: [ - { scope: 'public', transform: 'shse', port: 8008, host: '0.0.0.0' }, - ], - }, - outgoing: { - net: [{ transform: 'shse' }], - }, - }, }) } diff --git a/lib/plugin-hub.cjs b/lib/plugin-hub.cjs index 342b302..aab6761 100644 --- a/lib/plugin-hub.cjs +++ b/lib/plugin-hub.cjs @@ -1,4 +1,3 @@ -const bs58 = require('bs58') const cat = require('pull-cat') const Notify = require('pull-notify') const pull = require('pull-stream') @@ -39,8 +38,8 @@ module.exports = { } debug('running multiserver at %s', local.getAddress('public')) - Tokens.load(config.path) - Members.load(config.path) + Tokens.load(config.global.path) + Members.load(config.global.path) // Ensure that client connections are only from members or to-be members local.auth.hook(function (fn, args) { diff --git a/lib/tokens.cjs b/lib/tokens.cjs index 42f06df..bd8b43d 100644 --- a/lib/tokens.cjs +++ b/lib/tokens.cjs @@ -6,9 +6,7 @@ const Base58 = require('bs58') class Tokens { static #filePath - /** - * @type {Set} - */ + /** @type {Set} */ static #set static #loaded = false diff --git a/package-lock.json b/package-lock.json index fab78c6..06facf9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,25 +9,24 @@ "version": "0.0.1", "license": "MIT", "dependencies": { - "@fastify/static": "6.10.2", - "@fastify/view": "7.4.1", + "@fastify/static": "6.12.0", + "@fastify/view": "8.2.0", "atomic-file-rw": "~0.3.0", "bs58": "5.0.0", "debug": "4.3.4", "ejs": "3.1.9", - "fastify": "4.17.0", - "pino": "8.14.1", - "ppppp-caps": "github:staltz/ppppp-caps", - "ppppp-keypair": "github:staltz/ppppp-keypair", + "fastify": "4.25.2", + "pino": "8.17.2", + "ppppp-caps": "file:../caps", + "ppppp-keypair": "file:../keypair", "pull-cat": "1.1.11", "pull-notify": "0.1.2", "pull-stream": "3.7.0", "rehype-stringify": "9.0.3", "remark-parse": "10.0.2", "remark-rehype": "10.1.0", - "secret-handshake-ext": "0.0.8", - "secret-stack": "7.1.0", - "ssb-caps": "1.1.0", + "secret-handshake-ext": "0.0.11", + "secret-stack": "8.0.0", "ssb-conn": "6.0.4", "unified": "10.1.2" }, @@ -40,6 +39,34 @@ "node": ">=16" } }, + "../caps": { + "name": "ppppp-caps", + "version": "0.0.1", + "license": "CC0-1.0" + }, + "../keypair": { + "name": "ppppp-keypair", + "version": "0.0.1", + "license": "MIT", + "dependencies": { + "b4a": "~1.6.4", + "bs58": "~5.0.0", + "mkdirp": "~3.0.1", + "sodium-universal": "~4.0.0" + }, + "devDependencies": { + "@types/b4a": "^1.6.0", + "@types/node": "^20.2.5", + "c8": "^7.11.0", + "husky": "^4.3.0", + "prettier": "^2.6.2", + "pretty-quick": "^3.1.3", + "typescript": "^5.0.2" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/@bcoe/v8-coverage": { "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", @@ -70,9 +97,9 @@ "integrity": "sha512-J8TOSBq3SoZbDhM9+R/u77hP93gz/rajSA+K2kGyijPpORPWUXHUpTaleoj+92As0S9uPRP7Oi8IqMf0u+ro6A==" }, "node_modules/@fastify/error": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@fastify/error/-/error-3.2.1.tgz", - "integrity": "sha512-scZVbcpPNWw/yyFmzzO7cf1daTeJp53spN2n7dBTHZd+cV7791fcWJCPP1Tfhdbre+8vDiCyQyqqXfQnYMntYQ==" + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@fastify/error/-/error-3.4.1.tgz", + "integrity": "sha512-wWSvph+29GR783IhmvdwWnN4bUxTD01Vm5Xad4i7i1VuAOItLvbPAb69sb0IQ2N57yprvhNIwAP5B6xfKTmjmQ==" }, "node_modules/@fastify/fast-json-stringify-compiler": { "version": "4.3.0", @@ -95,23 +122,22 @@ } }, "node_modules/@fastify/static": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/@fastify/static/-/static-6.10.2.tgz", - "integrity": "sha512-UoaMvIHSBLCZBYOVZwFRYqX2ufUhd7FFMYGDeSf0Z+D8jhYtwljjmuQGuanUP8kS4y/ZEV1a8mfLha3zNwsnnQ==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@fastify/static/-/static-6.12.0.tgz", + "integrity": "sha512-KK1B84E6QD/FcQWxDI2aiUCwHxMJBI1KeCUzm1BwYpPY1b742+jeKruGHP2uOluuM6OkBPI8CIANrXcCRtC2oQ==", "dependencies": { "@fastify/accept-negotiator": "^1.0.0", "@fastify/send": "^2.0.0", "content-disposition": "^0.5.3", "fastify-plugin": "^4.0.0", "glob": "^8.0.1", - "p-limit": "^3.1.0", - "readable-stream": "^4.0.0" + "p-limit": "^3.1.0" } }, "node_modules/@fastify/view": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@fastify/view/-/view-7.4.1.tgz", - "integrity": "sha512-ahmRmSbNVM8bIoz0BAFnY0jNigom+xbPQ9Q1ZjmNOtGVVT3nYXCxw2OMkTr9iXwrJ4Le3EtWDHlFkZ2fCQ2hJA==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@fastify/view/-/view-8.2.0.tgz", + "integrity": "sha512-hBSiBofCnJNlPHEMZWpO1SL84eqOaqujJ1hR3jntFyZZCkweH5jMs12DKYyGesjVll7SJFRRxPUBB8kmUmneRQ==", "dependencies": { "fastify-plugin": "^4.0.0", "hashlru": "^2.3.0" @@ -387,6 +413,16 @@ } ] }, + "node_modules/bl": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/bl/-/bl-6.0.10.tgz", + "integrity": "sha512-F14DFhDZfxtVm2FY0k9kG2lWAwzZkO9+jX3Ytuoy/V0E1/5LBuBzzQHXAjqpxXEDIpmTPZZf5GVIGPQcLxFpaA==", + "dependencies": { + "buffer": "^6.0.3", + "inherits": "^2.0.4", + "readable-stream": "^4.2.0" + } + }, "node_modules/blake2b": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/blake2b/-/blake2b-2.1.4.tgz", @@ -788,9 +824,9 @@ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "node_modules/fast-content-type-parse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-1.0.0.tgz", - "integrity": "sha512-Xbc4XcysUXcsP5aHUU7Nq3OwvHq97C+WnbkeIefpeYLX+ryzFJlU6OStFJhs6Ol0LkUGpcK+wL0JwfM+FCU5IA==" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-1.1.0.tgz", + "integrity": "sha512-fBHHqSTFLVnR61C+gltJuE5GkVQMV0S2nqUO8TJ+5Z3qAKG8vAx4FKai1s5jq/inV1+sREynIWSuQ6HgoSXpDQ==" }, "node_modules/fast-decode-uri-component": { "version": "1.0.1", @@ -803,15 +839,16 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "node_modules/fast-json-stringify": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-5.7.0.tgz", - "integrity": "sha512-sBVPTgnAZseLu1Qgj6lUbQ0HfjFhZWXAmpZ5AaSGkyLh5gAXBga/uPJjQPHpDFjC9adWIpdOcCLSDTgrZ7snoQ==", + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-5.9.2.tgz", + "integrity": "sha512-SwHnT5PL2BawF0ccL+8b800QovvopUPgV/qzhBY+vw5ZniDH9boewbzBXYox+SetfD2dlxAgeZKSnELzrA+2hg==", "dependencies": { "@fastify/deepmerge": "^1.0.0", "ajv": "^8.10.0", "ajv-formats": "^2.1.1", "fast-deep-equal": "^3.1.3", "fast-uri": "^2.1.0", + "json-schema-ref-resolver": "^1.0.1", "rfdc": "^1.2.0" } }, @@ -824,9 +861,9 @@ } }, "node_modules/fast-redact": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.2.0.tgz", - "integrity": "sha512-zaTadChr+NekyzallAMXATXLOR8MNx3zqpZ0MUF2aGf4EathnG0f32VLODNlY8IuGY3HoRO2L6/6fSzNsLaHIw==", + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.3.0.tgz", + "integrity": "sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==", "engines": { "node": ">=6" } @@ -837,26 +874,26 @@ "integrity": "sha512-cIusKBIt/R/oI6z/1nyfe2FvGKVTohVRfvkOhvx0nCEW+xf5NoCXjAHcWp93uOUBchzYcsvPlrapAdX1uW+YGg==" }, "node_modules/fastify": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.17.0.tgz", - "integrity": "sha512-tzuY1tgWJo2Y6qEKwmLhFvACUmr68Io2pqP/sDKU71KRM6A6R3DrCDqLGqANbeLZcKUfdfY58ut35CGqemcTgg==", + "version": "4.25.2", + "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.25.2.tgz", + "integrity": "sha512-SywRouGleDHvRh054onj+lEZnbC1sBCLkR0UY3oyJwjD4BdZJUrxBqfkfCaqn74pVCwBaRHGuL3nEWeHbHzAfw==", "dependencies": { "@fastify/ajv-compiler": "^3.5.0", - "@fastify/error": "^3.0.0", + "@fastify/error": "^3.4.0", "@fastify/fast-json-stringify-compiler": "^4.3.0", "abstract-logging": "^2.0.1", - "avvio": "^8.2.0", - "fast-content-type-parse": "^1.0.0", - "fast-json-stringify": "^5.7.0", - "find-my-way": "^7.6.0", - "light-my-request": "^5.6.1", - "pino": "^8.5.0", - "process-warning": "^2.0.0", + "avvio": "^8.2.1", + "fast-content-type-parse": "^1.1.0", + "fast-json-stringify": "^5.8.0", + "find-my-way": "^7.7.0", + "light-my-request": "^5.11.0", + "pino": "^8.17.0", + "process-warning": "^3.0.0", "proxy-addr": "^2.0.7", "rfdc": "^1.3.0", - "secure-json-parse": "^2.5.0", - "semver": "^7.3.7", - "tiny-lru": "^11.0.1" + "secure-json-parse": "^2.7.0", + "semver": "^7.5.4", + "toad-cache": "^3.3.0" } }, "node_modules/fastify-plugin": { @@ -881,9 +918,9 @@ } }, "node_modules/find-my-way": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/find-my-way/-/find-my-way-7.6.2.tgz", - "integrity": "sha512-0OjHn1b1nCX3eVbm9ByeEHiscPYiHLfhei1wOUU9qffQkk98wE0Lo8VrVYfSGMgnSnDh86DxedduAnBf4nwUEw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/find-my-way/-/find-my-way-7.7.0.tgz", + "integrity": "sha512-+SrHpvQ52Q6W9f3wJoJBbAQULJuNEEQwBvlvYwACDhBTLOTMiQ0HYWh4+vC3OivGP2ENcTI1oKlFA2OepJNjhQ==", "dependencies": { "fast-deep-equal": "^3.1.3", "fast-querystring": "^1.0.0", @@ -1375,6 +1412,14 @@ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-2.0.11.tgz", "integrity": "sha512-Wu4/hxSZX7Krzjor+sZHWaRau6Be4WQHlrkl3v8cmxRBBewF2TotlgHUedKQJyFiUyFxnK/ZlRYnR9UNVZ7pkg==" }, + "node_modules/json-schema-ref-resolver": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-schema-ref-resolver/-/json-schema-ref-resolver-1.0.1.tgz", + "integrity": "sha512-EJAj1pgHc1hxF6vo2Z3s69fMjO1INq6eGHXZ8Z6wCQeldCuwxGK9Sxf4/cScGn3FZubCVUehfWtcDM/PLteCQw==", + "dependencies": { + "fast-deep-equal": "^3.1.3" + } + }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -1402,15 +1447,20 @@ } }, "node_modules/light-my-request": { - "version": "5.9.2", - "resolved": "https://registry.npmjs.org/light-my-request/-/light-my-request-5.9.2.tgz", - "integrity": "sha512-2+umCAZndzA/YeuoEPunRpSJTKNUVfOmmwg/TjaeTENT7HOY2hXc3W4jkffV5hnTxS2eOQkuafif1BJotySF1w==", + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/light-my-request/-/light-my-request-5.11.0.tgz", + "integrity": "sha512-qkFCeloXCOMpmEdZ/MV91P8AT4fjwFXWaAFz3lUeStM8RcoM1ks4J/F8r1b3r6y/H4u3ACEJ1T+Gv5bopj7oDA==", "dependencies": { "cookie": "^0.5.0", "process-warning": "^2.0.0", "set-cookie-parser": "^2.4.1" } }, + "node_modules/light-my-request/node_modules/process-warning": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-2.3.2.tgz", + "integrity": "sha512-n9wh8tvBe5sFmsqlg+XQhaQLumwpqoAUruLwjCopgTmUBjJ/fjtBsJzKleCaIGBOMXYEhp1YfKl4d7rJ5ZKJGA==" + }, "node_modules/locate-path": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", @@ -1997,20 +2047,6 @@ "node": ">=10" } }, - "node_modules/mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", - "bin": { - "mkdirp": "dist/cjs/src/bin.js" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, "node_modules/moo": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz", @@ -2116,9 +2152,9 @@ } }, "node_modules/muxrpc": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/muxrpc/-/muxrpc-6.7.3.tgz", - "integrity": "sha512-yVr66BigJxHIvHOLsdJzuvrHt46Vq9DiDCBTZiS6q+49mXh4mkDjRiXo9FnGXQv1WJOqnRJk5fcfwV6TaSgNvA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/muxrpc/-/muxrpc-8.0.0.tgz", + "integrity": "sha512-b2VEM0S0Cvz4Xppx+bXlvOJWCQoGnJuP9ilfucIkXC0UmhL8eaF4nwKTKK5659AoVL8F1v4tQt0IdVxoYsc9/A==", "dependencies": { "clarify-error": "^1.0.0", "debug": "^4.3.3", @@ -2193,9 +2229,12 @@ "integrity": "sha512-ldHCpTJWgr5KUJy3/TVoSGNwBUA8BP9UFmd0iQqe4aGaXY4PJyzQPiVBIo8VBSlSoKyaJY3vcpW0hixZb6gPaA==" }, "node_modules/on-exit-leak-free": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.0.tgz", - "integrity": "sha512-VuCaZZAjReZ3vUwgOB8LxAosIurDiAW0s13rI1YwmaP++jvcxP77AWoQvenZebpCA2m8WC1/EosPYPMjnRAp/w==" + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", + "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==", + "engines": { + "node": ">=14.0.0" + } }, "node_modules/on-wakeup": { "version": "1.0.1", @@ -2316,20 +2355,20 @@ } }, "node_modules/pino": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.14.1.tgz", - "integrity": "sha512-8LYNv7BKWXSfS+k6oEc6occy5La+q2sPwU3q2ljTX5AZk7v+5kND2o5W794FyRaqha6DJajmkNRsWtPpFyMUdw==", + "version": "8.17.2", + "resolved": "https://registry.npmjs.org/pino/-/pino-8.17.2.tgz", + "integrity": "sha512-LA6qKgeDMLr2ux2y/YiUt47EfgQ+S9LznBWOJdN3q1dx2sv0ziDLUBeVpyVv17TEcGCBuWf0zNtg3M5m1NhhWQ==", "dependencies": { "atomic-sleep": "^1.0.0", "fast-redact": "^3.1.1", "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "v1.0.0", + "pino-abstract-transport": "v1.1.0", "pino-std-serializers": "^6.0.0", - "process-warning": "^2.0.0", + "process-warning": "^3.0.0", "quick-format-unescaped": "^4.0.3", "real-require": "^0.2.0", "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^3.1.0", + "sonic-boom": "^3.7.0", "thread-stream": "^2.0.0" }, "bin": { @@ -2337,37 +2376,26 @@ } }, "node_modules/pino-abstract-transport": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.0.0.tgz", - "integrity": "sha512-c7vo5OpW4wIS42hUVcT5REsL8ZljsUfBjqV/e2sFxmFEFZiq1XLUp5EYLtuDH6PEHq9W1egWqRbnLUP5FuZmOA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz", + "integrity": "sha512-lsleG3/2a/JIWUtf9Q5gUNErBqwIu1tUKTT3dUzaf5DySw9ra1wcqKjJjLX1VTY64Wk1eEOYsVGSaGfCK85ekA==", "dependencies": { "readable-stream": "^4.0.0", "split2": "^4.0.0" } }, "node_modules/pino-std-serializers": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.1.tgz", - "integrity": "sha512-wHuWB+CvSVb2XqXM0W/WOYUkVSPbiJb9S5fNB7TBhd8s892Xq910bRxwHtC4l71hgztObTjXL6ZheZXFjhDrDQ==" + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", + "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==" }, "node_modules/ppppp-caps": { - "version": "0.0.1", - "resolved": "git+ssh://git@github.com/staltz/ppppp-caps.git#a2111355a1d2bddfc4d5f82267257fe99c14f608", - "license": "CC0-1.0" + "resolved": "../caps", + "link": true }, "node_modules/ppppp-keypair": { - "version": "0.0.1", - "resolved": "git+ssh://git@github.com/staltz/ppppp-keypair.git#2d0cd86dae6df2fa33eb14c836ab706244807f43", - "license": "MIT", - "dependencies": { - "b4a": "~1.6.4", - "bs58": "~5.0.0", - "mkdirp": "~3.0.1", - "sodium-universal": "~4.0.0" - }, - "engines": { - "node": ">=16" - } + "resolved": "../keypair", + "link": true }, "node_modules/prettier": { "version": "2.8.8", @@ -2481,9 +2509,9 @@ } }, "node_modules/process-warning": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-2.2.0.tgz", - "integrity": "sha512-/1WZ8+VQjR6avWOgHeEPd7SDQmFQ1B5mC1eRXsCm5TarlNmx/wCsa5GEaxGm05BORRtyG/Ex/3xq3TuRvq57qg==" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", + "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==" }, "node_modules/promisify-tuple": { "version": "1.2.0", @@ -2561,6 +2589,11 @@ "pull-reader": "^1.2.3" } }, + "node_modules/pull-header": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/pull-header/-/pull-header-0.0.0.tgz", + "integrity": "sha512-QHCFTdixUvbN3Q/QikON3AbPgkYcljjKEQCJl7EHBFcNS/tFn+Yw89uCs9tRLcE/f64FcS9OKmH73kSxfqLc3g==" + }, "node_modules/pull-inactivity": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/pull-inactivity/-/pull-inactivity-2.1.4.tgz", @@ -2570,6 +2603,11 @@ "pull-stream": "^3.4.5" } }, + "node_modules/pull-map-last": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/pull-map-last/-/pull-map-last-1.0.0.tgz", + "integrity": "sha512-N2B3s6TYwQ0qvEaPe2qUt24jXd/QD8obkcqmPqupQ9oXLI87wbRFd0qEQIMMx/+qR/5KGBYIAAzYL9yeIUSnKQ==" + }, "node_modules/pull-notify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/pull-notify/-/pull-notify-0.1.2.tgz", @@ -2616,6 +2654,23 @@ "resolved": "https://registry.npmjs.org/pull-reader/-/pull-reader-1.3.1.tgz", "integrity": "sha512-CBkejkE5nX50SiSEzu0Qoz4POTJMS/mw8G6aj3h3M/RJoKgggLxyF0IyTZ0mmpXFlXRcLmLmIEW4xeYn7AeDYw==" }, + "node_modules/pull-secretstream": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pull-secretstream/-/pull-secretstream-2.0.3.tgz", + "integrity": "sha512-f6axznv3JrYWESpv1YOugQIMzKbGYhSiTnTP7HjUo//FN7qbfLRP3inNtCgnAHMaxhVw23ZI9H1F00GfCEUMKQ==", + "dependencies": { + "bl": "^6.0.8", + "debug": "^4.3.4", + "pull-cat": "^1.1.11", + "pull-header": "^0.0.0", + "pull-map-last": "^1.0.0", + "pull-reader": "^1.3.1", + "pull-stream": "^3.7.0", + "pull-through": "^1.0.18", + "sodium-secretstream": "^1.1.0", + "sodium-universal": "^4.0.0" + } + }, "node_modules/pull-stream": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/pull-stream/-/pull-stream-3.7.0.tgz", @@ -2914,15 +2969,15 @@ } }, "node_modules/secret-handshake-ext": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/secret-handshake-ext/-/secret-handshake-ext-0.0.8.tgz", - "integrity": "sha512-YshYQpP1z0ZxVvvu3bgnnwAI251w+Na75ph8pOOeFgc0nP54Q2cQo/WHlpKxzvc47OJPuGrgxewMXa9bwJ78eA==", + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/secret-handshake-ext/-/secret-handshake-ext-0.0.11.tgz", + "integrity": "sha512-VxyL1fA+3Zyntf2g8DyEz8o63k55NJxSSh8IEQZvYHX1B5HS37R4LRJOSTc3pDKLZNENQhKfmmBm2gk7mLCWIA==", "dependencies": { "b4a": "~1.6.4", "bs58": "~5.0.0", "debug": "^4.3.4", - "pull-box-stream": "~1.0.13", "pull-handshake": "~1.1.4", + "pull-secretstream": "^2.0.1", "pull-stream": "~3.7.0", "sodium-universal": "~4.0.0" }, @@ -2931,15 +2986,15 @@ } }, "node_modules/secret-stack": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/secret-stack/-/secret-stack-7.1.0.tgz", - "integrity": "sha512-3gL8HV1WHv2fLDuLqmMlwgwP4adG1t3PNLjwEDxKXoAHg00ECO/LN5Z0dKhjF9qTmhgltpQYpad6OPqcsrFTEQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/secret-stack/-/secret-stack-8.0.0.tgz", + "integrity": "sha512-lKtn6EkdfhoBQ3u50QZ1jwJM0ht76/z3xKlO9uLGOrcm01UCzkXjW1uzEOYM+Igd3Kdni1Zku8LNB9+ggyVdug==", "dependencies": { "debug": "^4.3.0", "hoox": "0.0.1", "map-merge": "^1.1.0", "multiserver": "^3.1.0", - "muxrpc": "^6.5.2", + "muxrpc": "^8.0.0", "pull-inactivity": "~2.1.1", "pull-rate": "^1.0.2", "pull-stream": "^3.4.5", @@ -2960,9 +3015,9 @@ "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" }, "node_modules/semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "dependencies": { "lru-cache": "^6.0.0" }, @@ -3166,6 +3221,15 @@ "node-gyp-build": "^4.3.0" } }, + "node_modules/sodium-secretstream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/sodium-secretstream/-/sodium-secretstream-1.1.0.tgz", + "integrity": "sha512-Qg7D2xomELDjDCWAmE4izk1aecG/il8pQIGmSWFaKgah/V58BVWG/PuSZF6vseTpcqnetIFGaOWzmPNzyTD50A==", + "dependencies": { + "b4a": "^1.1.1", + "sodium-universal": "^4.0.0" + } + }, "node_modules/sodium-universal": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/sodium-universal/-/sodium-universal-4.0.0.tgz", @@ -3192,9 +3256,9 @@ } }, "node_modules/sonic-boom": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.3.0.tgz", - "integrity": "sha512-LYxp34KlZ1a2Jb8ZQgFCK3niIHzibdwtwNUWKg0qQRzsDoJ3Gfgkf8KdBTFU3SkejDEIlWwnSnpVdOZIhFMl/g==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.7.0.tgz", + "integrity": "sha512-IudtNvSqA/ObjN97tfgNmOKyDOs4dNcg4cUUsHDebqsgb8wGBBwb31LIgShNO8fye0dFI52X1+tFoKKI6Rq1Gg==", "dependencies": { "atomic-sleep": "^1.0.0" } @@ -3221,11 +3285,6 @@ "node": ">= 10.x" } }, - "node_modules/ssb-caps": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ssb-caps/-/ssb-caps-1.1.0.tgz", - "integrity": "sha512-qe3qpvchJ+gnH8M/ge4rpL+7eRbSmsEAzNwHkDdrW06OBcziQ6/KuAdmcR6joxCbNeoAXAZF+inkefgE16okXA==" - }, "node_modules/ssb-conn": { "version": "6.0.4", "resolved": "https://registry.npmjs.org/ssb-conn/-/ssb-conn-6.0.4.tgz", @@ -3458,21 +3517,13 @@ } }, "node_modules/thread-stream": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.3.0.tgz", - "integrity": "sha512-kaDqm1DET9pp3NXwR8382WHbnpXnRkN9xGN9dQt3B2+dmXiW8X1SOwmFOxAErEQ47ObhZ96J6yhZNXuyCOL7KA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.4.1.tgz", + "integrity": "sha512-d/Ex2iWd1whipbT681JmTINKw0ZwOUBZm7+Gjs64DHuX34mmw8vJL2bFAaNacaW72zYiTJxSHi5abUuOi5nsfg==", "dependencies": { "real-require": "^0.2.0" } }, - "node_modules/tiny-lru": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/tiny-lru/-/tiny-lru-11.0.1.tgz", - "integrity": "sha512-iNgFugVuQgBKrqeO/mpiTTgmBsTP0WL6yeuLfLs/Ctf0pI/ixGqIRm8sDCwMcXGe9WWvt2sGXI5mNqZbValmJg==", - "engines": { - "node": ">=12" - } - }, "node_modules/to-camel-case": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/to-camel-case/-/to-camel-case-1.0.0.tgz", @@ -3494,6 +3545,14 @@ "to-no-case": "^1.0.0" } }, + "node_modules/toad-cache": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/toad-cache/-/toad-cache-3.4.1.tgz", + "integrity": "sha512-T0m3MxP3wcqW0LaV3dF1mHBU294sgYSm4FOpa5eEJaYO7PqJZBOjZEQI1y4YaKNnih1FXCEYTWDS9osCoTUefg==", + "engines": { + "node": ">=12" + } + }, "node_modules/toidentifier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", @@ -3904,9 +3963,9 @@ "integrity": "sha512-J8TOSBq3SoZbDhM9+R/u77hP93gz/rajSA+K2kGyijPpORPWUXHUpTaleoj+92As0S9uPRP7Oi8IqMf0u+ro6A==" }, "@fastify/error": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/@fastify/error/-/error-3.2.1.tgz", - "integrity": "sha512-scZVbcpPNWw/yyFmzzO7cf1daTeJp53spN2n7dBTHZd+cV7791fcWJCPP1Tfhdbre+8vDiCyQyqqXfQnYMntYQ==" + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@fastify/error/-/error-3.4.1.tgz", + "integrity": "sha512-wWSvph+29GR783IhmvdwWnN4bUxTD01Vm5Xad4i7i1VuAOItLvbPAb69sb0IQ2N57yprvhNIwAP5B6xfKTmjmQ==" }, "@fastify/fast-json-stringify-compiler": { "version": "4.3.0", @@ -3929,23 +3988,22 @@ } }, "@fastify/static": { - "version": "6.10.2", - "resolved": "https://registry.npmjs.org/@fastify/static/-/static-6.10.2.tgz", - "integrity": "sha512-UoaMvIHSBLCZBYOVZwFRYqX2ufUhd7FFMYGDeSf0Z+D8jhYtwljjmuQGuanUP8kS4y/ZEV1a8mfLha3zNwsnnQ==", + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/@fastify/static/-/static-6.12.0.tgz", + "integrity": "sha512-KK1B84E6QD/FcQWxDI2aiUCwHxMJBI1KeCUzm1BwYpPY1b742+jeKruGHP2uOluuM6OkBPI8CIANrXcCRtC2oQ==", "requires": { "@fastify/accept-negotiator": "^1.0.0", "@fastify/send": "^2.0.0", "content-disposition": "^0.5.3", "fastify-plugin": "^4.0.0", "glob": "^8.0.1", - "p-limit": "^3.1.0", - "readable-stream": "^4.0.0" + "p-limit": "^3.1.0" } }, "@fastify/view": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@fastify/view/-/view-7.4.1.tgz", - "integrity": "sha512-ahmRmSbNVM8bIoz0BAFnY0jNigom+xbPQ9Q1ZjmNOtGVVT3nYXCxw2OMkTr9iXwrJ4Le3EtWDHlFkZ2fCQ2hJA==", + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/@fastify/view/-/view-8.2.0.tgz", + "integrity": "sha512-hBSiBofCnJNlPHEMZWpO1SL84eqOaqujJ1hR3jntFyZZCkweH5jMs12DKYyGesjVll7SJFRRxPUBB8kmUmneRQ==", "requires": { "fastify-plugin": "^4.0.0", "hashlru": "^2.3.0" @@ -4158,6 +4216,16 @@ "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==" }, + "bl": { + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/bl/-/bl-6.0.10.tgz", + "integrity": "sha512-F14DFhDZfxtVm2FY0k9kG2lWAwzZkO9+jX3Ytuoy/V0E1/5LBuBzzQHXAjqpxXEDIpmTPZZf5GVIGPQcLxFpaA==", + "requires": { + "buffer": "^6.0.3", + "inherits": "^2.0.4", + "readable-stream": "^4.2.0" + } + }, "blake2b": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/blake2b/-/blake2b-2.1.4.tgz", @@ -4457,9 +4525,9 @@ "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" }, "fast-content-type-parse": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-1.0.0.tgz", - "integrity": "sha512-Xbc4XcysUXcsP5aHUU7Nq3OwvHq97C+WnbkeIefpeYLX+ryzFJlU6OStFJhs6Ol0LkUGpcK+wL0JwfM+FCU5IA==" + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/fast-content-type-parse/-/fast-content-type-parse-1.1.0.tgz", + "integrity": "sha512-fBHHqSTFLVnR61C+gltJuE5GkVQMV0S2nqUO8TJ+5Z3qAKG8vAx4FKai1s5jq/inV1+sREynIWSuQ6HgoSXpDQ==" }, "fast-decode-uri-component": { "version": "1.0.1", @@ -4472,15 +4540,16 @@ "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" }, "fast-json-stringify": { - "version": "5.7.0", - "resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-5.7.0.tgz", - "integrity": "sha512-sBVPTgnAZseLu1Qgj6lUbQ0HfjFhZWXAmpZ5AaSGkyLh5gAXBga/uPJjQPHpDFjC9adWIpdOcCLSDTgrZ7snoQ==", + "version": "5.9.2", + "resolved": "https://registry.npmjs.org/fast-json-stringify/-/fast-json-stringify-5.9.2.tgz", + "integrity": "sha512-SwHnT5PL2BawF0ccL+8b800QovvopUPgV/qzhBY+vw5ZniDH9boewbzBXYox+SetfD2dlxAgeZKSnELzrA+2hg==", "requires": { "@fastify/deepmerge": "^1.0.0", "ajv": "^8.10.0", "ajv-formats": "^2.1.1", "fast-deep-equal": "^3.1.3", "fast-uri": "^2.1.0", + "json-schema-ref-resolver": "^1.0.1", "rfdc": "^1.2.0" } }, @@ -4493,9 +4562,9 @@ } }, "fast-redact": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.2.0.tgz", - "integrity": "sha512-zaTadChr+NekyzallAMXATXLOR8MNx3zqpZ0MUF2aGf4EathnG0f32VLODNlY8IuGY3HoRO2L6/6fSzNsLaHIw==" + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/fast-redact/-/fast-redact-3.3.0.tgz", + "integrity": "sha512-6T5V1QK1u4oF+ATxs1lWUmlEk6P2T9HqJG3e2DnHOdVgZy2rFJBoEnrIedcTXlkAHU/zKC+7KETJ+KGGKwxgMQ==" }, "fast-uri": { "version": "2.2.0", @@ -4503,26 +4572,26 @@ "integrity": "sha512-cIusKBIt/R/oI6z/1nyfe2FvGKVTohVRfvkOhvx0nCEW+xf5NoCXjAHcWp93uOUBchzYcsvPlrapAdX1uW+YGg==" }, "fastify": { - "version": "4.17.0", - "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.17.0.tgz", - "integrity": "sha512-tzuY1tgWJo2Y6qEKwmLhFvACUmr68Io2pqP/sDKU71KRM6A6R3DrCDqLGqANbeLZcKUfdfY58ut35CGqemcTgg==", + "version": "4.25.2", + "resolved": "https://registry.npmjs.org/fastify/-/fastify-4.25.2.tgz", + "integrity": "sha512-SywRouGleDHvRh054onj+lEZnbC1sBCLkR0UY3oyJwjD4BdZJUrxBqfkfCaqn74pVCwBaRHGuL3nEWeHbHzAfw==", "requires": { "@fastify/ajv-compiler": "^3.5.0", - "@fastify/error": "^3.0.0", + "@fastify/error": "^3.4.0", "@fastify/fast-json-stringify-compiler": "^4.3.0", "abstract-logging": "^2.0.1", - "avvio": "^8.2.0", - "fast-content-type-parse": "^1.0.0", - "fast-json-stringify": "^5.7.0", - "find-my-way": "^7.6.0", - "light-my-request": "^5.6.1", - "pino": "^8.5.0", - "process-warning": "^2.0.0", + "avvio": "^8.2.1", + "fast-content-type-parse": "^1.1.0", + "fast-json-stringify": "^5.8.0", + "find-my-way": "^7.7.0", + "light-my-request": "^5.11.0", + "pino": "^8.17.0", + "process-warning": "^3.0.0", "proxy-addr": "^2.0.7", "rfdc": "^1.3.0", - "secure-json-parse": "^2.5.0", - "semver": "^7.3.7", - "tiny-lru": "^11.0.1" + "secure-json-parse": "^2.7.0", + "semver": "^7.5.4", + "toad-cache": "^3.3.0" } }, "fastify-plugin": { @@ -4547,9 +4616,9 @@ } }, "find-my-way": { - "version": "7.6.2", - "resolved": "https://registry.npmjs.org/find-my-way/-/find-my-way-7.6.2.tgz", - "integrity": "sha512-0OjHn1b1nCX3eVbm9ByeEHiscPYiHLfhei1wOUU9qffQkk98wE0Lo8VrVYfSGMgnSnDh86DxedduAnBf4nwUEw==", + "version": "7.7.0", + "resolved": "https://registry.npmjs.org/find-my-way/-/find-my-way-7.7.0.tgz", + "integrity": "sha512-+SrHpvQ52Q6W9f3wJoJBbAQULJuNEEQwBvlvYwACDhBTLOTMiQ0HYWh4+vC3OivGP2ENcTI1oKlFA2OepJNjhQ==", "requires": { "fast-deep-equal": "^3.1.3", "fast-querystring": "^1.0.0", @@ -4902,6 +4971,14 @@ "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-2.0.11.tgz", "integrity": "sha512-Wu4/hxSZX7Krzjor+sZHWaRau6Be4WQHlrkl3v8cmxRBBewF2TotlgHUedKQJyFiUyFxnK/ZlRYnR9UNVZ7pkg==" }, + "json-schema-ref-resolver": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-schema-ref-resolver/-/json-schema-ref-resolver-1.0.1.tgz", + "integrity": "sha512-EJAj1pgHc1hxF6vo2Z3s69fMjO1INq6eGHXZ8Z6wCQeldCuwxGK9Sxf4/cScGn3FZubCVUehfWtcDM/PLteCQw==", + "requires": { + "fast-deep-equal": "^3.1.3" + } + }, "json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", @@ -4926,13 +5003,20 @@ } }, "light-my-request": { - "version": "5.9.2", - "resolved": "https://registry.npmjs.org/light-my-request/-/light-my-request-5.9.2.tgz", - "integrity": "sha512-2+umCAZndzA/YeuoEPunRpSJTKNUVfOmmwg/TjaeTENT7HOY2hXc3W4jkffV5hnTxS2eOQkuafif1BJotySF1w==", + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/light-my-request/-/light-my-request-5.11.0.tgz", + "integrity": "sha512-qkFCeloXCOMpmEdZ/MV91P8AT4fjwFXWaAFz3lUeStM8RcoM1ks4J/F8r1b3r6y/H4u3ACEJ1T+Gv5bopj7oDA==", "requires": { "cookie": "^0.5.0", "process-warning": "^2.0.0", "set-cookie-parser": "^2.4.1" + }, + "dependencies": { + "process-warning": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-2.3.2.tgz", + "integrity": "sha512-n9wh8tvBe5sFmsqlg+XQhaQLumwpqoAUruLwjCopgTmUBjJ/fjtBsJzKleCaIGBOMXYEhp1YfKl4d7rJ5ZKJGA==" + } } }, "locate-path": { @@ -5267,11 +5351,6 @@ "brace-expansion": "^2.0.1" } }, - "mkdirp": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", - "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==" - }, "moo": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/moo/-/moo-0.5.2.tgz", @@ -5367,9 +5446,9 @@ } }, "muxrpc": { - "version": "6.7.3", - "resolved": "https://registry.npmjs.org/muxrpc/-/muxrpc-6.7.3.tgz", - "integrity": "sha512-yVr66BigJxHIvHOLsdJzuvrHt46Vq9DiDCBTZiS6q+49mXh4mkDjRiXo9FnGXQv1WJOqnRJk5fcfwV6TaSgNvA==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/muxrpc/-/muxrpc-8.0.0.tgz", + "integrity": "sha512-b2VEM0S0Cvz4Xppx+bXlvOJWCQoGnJuP9ilfucIkXC0UmhL8eaF4nwKTKK5659AoVL8F1v4tQt0IdVxoYsc9/A==", "requires": { "clarify-error": "^1.0.0", "debug": "^4.3.3", @@ -5423,9 +5502,9 @@ "integrity": "sha512-ldHCpTJWgr5KUJy3/TVoSGNwBUA8BP9UFmd0iQqe4aGaXY4PJyzQPiVBIo8VBSlSoKyaJY3vcpW0hixZb6gPaA==" }, "on-exit-leak-free": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.0.tgz", - "integrity": "sha512-VuCaZZAjReZ3vUwgOB8LxAosIurDiAW0s13rI1YwmaP++jvcxP77AWoQvenZebpCA2m8WC1/EosPYPMjnRAp/w==" + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz", + "integrity": "sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==" }, "on-wakeup": { "version": "1.0.1", @@ -5510,49 +5589,54 @@ "dev": true }, "pino": { - "version": "8.14.1", - "resolved": "https://registry.npmjs.org/pino/-/pino-8.14.1.tgz", - "integrity": "sha512-8LYNv7BKWXSfS+k6oEc6occy5La+q2sPwU3q2ljTX5AZk7v+5kND2o5W794FyRaqha6DJajmkNRsWtPpFyMUdw==", + "version": "8.17.2", + "resolved": "https://registry.npmjs.org/pino/-/pino-8.17.2.tgz", + "integrity": "sha512-LA6qKgeDMLr2ux2y/YiUt47EfgQ+S9LznBWOJdN3q1dx2sv0ziDLUBeVpyVv17TEcGCBuWf0zNtg3M5m1NhhWQ==", "requires": { "atomic-sleep": "^1.0.0", "fast-redact": "^3.1.1", "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "v1.0.0", + "pino-abstract-transport": "v1.1.0", "pino-std-serializers": "^6.0.0", - "process-warning": "^2.0.0", + "process-warning": "^3.0.0", "quick-format-unescaped": "^4.0.3", "real-require": "^0.2.0", "safe-stable-stringify": "^2.3.1", - "sonic-boom": "^3.1.0", + "sonic-boom": "^3.7.0", "thread-stream": "^2.0.0" } }, "pino-abstract-transport": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.0.0.tgz", - "integrity": "sha512-c7vo5OpW4wIS42hUVcT5REsL8ZljsUfBjqV/e2sFxmFEFZiq1XLUp5EYLtuDH6PEHq9W1egWqRbnLUP5FuZmOA==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/pino-abstract-transport/-/pino-abstract-transport-1.1.0.tgz", + "integrity": "sha512-lsleG3/2a/JIWUtf9Q5gUNErBqwIu1tUKTT3dUzaf5DySw9ra1wcqKjJjLX1VTY64Wk1eEOYsVGSaGfCK85ekA==", "requires": { "readable-stream": "^4.0.0", "split2": "^4.0.0" } }, "pino-std-serializers": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.1.tgz", - "integrity": "sha512-wHuWB+CvSVb2XqXM0W/WOYUkVSPbiJb9S5fNB7TBhd8s892Xq910bRxwHtC4l71hgztObTjXL6ZheZXFjhDrDQ==" + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/pino-std-serializers/-/pino-std-serializers-6.2.2.tgz", + "integrity": "sha512-cHjPPsE+vhj/tnhCy/wiMh3M3z3h/j15zHQX+S9GkTBgqJuTuJzYJ4gUyACLhDaJ7kk9ba9iRDmbH2tJU03OiA==" }, "ppppp-caps": { - "version": "git+ssh://git@github.com/staltz/ppppp-caps.git#a2111355a1d2bddfc4d5f82267257fe99c14f608", - "from": "ppppp-caps@github:staltz/ppppp-caps" + "version": "file:../caps" }, "ppppp-keypair": { - "version": "git+ssh://git@github.com/staltz/ppppp-keypair.git#2d0cd86dae6df2fa33eb14c836ab706244807f43", - "from": "ppppp-keypair@github:staltz/ppppp-keypair", + "version": "file:../keypair", "requires": { + "@types/b4a": "^1.6.0", + "@types/node": "^20.2.5", "b4a": "~1.6.4", "bs58": "~5.0.0", + "c8": "^7.11.0", + "husky": "^4.3.0", "mkdirp": "~3.0.1", - "sodium-universal": "~4.0.0" + "prettier": "^2.6.2", + "pretty-quick": "^3.1.3", + "sodium-universal": "~4.0.0", + "typescript": "^5.0.2" } }, "prettier": { @@ -5630,9 +5714,9 @@ "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==" }, "process-warning": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-2.2.0.tgz", - "integrity": "sha512-/1WZ8+VQjR6avWOgHeEPd7SDQmFQ1B5mC1eRXsCm5TarlNmx/wCsa5GEaxGm05BORRtyG/Ex/3xq3TuRvq57qg==" + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/process-warning/-/process-warning-3.0.0.tgz", + "integrity": "sha512-mqn0kFRl0EoqhnL0GQ0veqFHyIN1yig9RHh/InzORTUiZHFRAur+aMtRkELNwGs9aNwKS6tg/An4NYBPGwvtzQ==" }, "promisify-tuple": { "version": "1.2.0", @@ -5700,6 +5784,11 @@ "pull-reader": "^1.2.3" } }, + "pull-header": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/pull-header/-/pull-header-0.0.0.tgz", + "integrity": "sha512-QHCFTdixUvbN3Q/QikON3AbPgkYcljjKEQCJl7EHBFcNS/tFn+Yw89uCs9tRLcE/f64FcS9OKmH73kSxfqLc3g==" + }, "pull-inactivity": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/pull-inactivity/-/pull-inactivity-2.1.4.tgz", @@ -5709,6 +5798,11 @@ "pull-stream": "^3.4.5" } }, + "pull-map-last": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/pull-map-last/-/pull-map-last-1.0.0.tgz", + "integrity": "sha512-N2B3s6TYwQ0qvEaPe2qUt24jXd/QD8obkcqmPqupQ9oXLI87wbRFd0qEQIMMx/+qR/5KGBYIAAzYL9yeIUSnKQ==" + }, "pull-notify": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/pull-notify/-/pull-notify-0.1.2.tgz", @@ -5755,6 +5849,23 @@ "resolved": "https://registry.npmjs.org/pull-reader/-/pull-reader-1.3.1.tgz", "integrity": "sha512-CBkejkE5nX50SiSEzu0Qoz4POTJMS/mw8G6aj3h3M/RJoKgggLxyF0IyTZ0mmpXFlXRcLmLmIEW4xeYn7AeDYw==" }, + "pull-secretstream": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/pull-secretstream/-/pull-secretstream-2.0.3.tgz", + "integrity": "sha512-f6axznv3JrYWESpv1YOugQIMzKbGYhSiTnTP7HjUo//FN7qbfLRP3inNtCgnAHMaxhVw23ZI9H1F00GfCEUMKQ==", + "requires": { + "bl": "^6.0.8", + "debug": "^4.3.4", + "pull-cat": "^1.1.11", + "pull-header": "^0.0.0", + "pull-map-last": "^1.0.0", + "pull-reader": "^1.3.1", + "pull-stream": "^3.7.0", + "pull-through": "^1.0.18", + "sodium-secretstream": "^1.1.0", + "sodium-universal": "^4.0.0" + } + }, "pull-stream": { "version": "3.7.0", "resolved": "https://registry.npmjs.org/pull-stream/-/pull-stream-3.7.0.tgz", @@ -5985,29 +6096,29 @@ } }, "secret-handshake-ext": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/secret-handshake-ext/-/secret-handshake-ext-0.0.8.tgz", - "integrity": "sha512-YshYQpP1z0ZxVvvu3bgnnwAI251w+Na75ph8pOOeFgc0nP54Q2cQo/WHlpKxzvc47OJPuGrgxewMXa9bwJ78eA==", + "version": "0.0.11", + "resolved": "https://registry.npmjs.org/secret-handshake-ext/-/secret-handshake-ext-0.0.11.tgz", + "integrity": "sha512-VxyL1fA+3Zyntf2g8DyEz8o63k55NJxSSh8IEQZvYHX1B5HS37R4LRJOSTc3pDKLZNENQhKfmmBm2gk7mLCWIA==", "requires": { "b4a": "~1.6.4", "bs58": "~5.0.0", "debug": "^4.3.4", - "pull-box-stream": "~1.0.13", "pull-handshake": "~1.1.4", + "pull-secretstream": "^2.0.1", "pull-stream": "~3.7.0", "sodium-universal": "~4.0.0" } }, "secret-stack": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/secret-stack/-/secret-stack-7.1.0.tgz", - "integrity": "sha512-3gL8HV1WHv2fLDuLqmMlwgwP4adG1t3PNLjwEDxKXoAHg00ECO/LN5Z0dKhjF9qTmhgltpQYpad6OPqcsrFTEQ==", + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/secret-stack/-/secret-stack-8.0.0.tgz", + "integrity": "sha512-lKtn6EkdfhoBQ3u50QZ1jwJM0ht76/z3xKlO9uLGOrcm01UCzkXjW1uzEOYM+Igd3Kdni1Zku8LNB9+ggyVdug==", "requires": { "debug": "^4.3.0", "hoox": "0.0.1", "map-merge": "^1.1.0", "multiserver": "^3.1.0", - "muxrpc": "^6.5.2", + "muxrpc": "^8.0.0", "pull-inactivity": "~2.1.1", "pull-rate": "^1.0.2", "pull-stream": "^3.4.5", @@ -6025,9 +6136,9 @@ "integrity": "sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==" }, "semver": { - "version": "7.5.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz", - "integrity": "sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", "requires": { "lru-cache": "^6.0.0" } @@ -6208,6 +6319,15 @@ "node-gyp-build": "^4.3.0" } }, + "sodium-secretstream": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/sodium-secretstream/-/sodium-secretstream-1.1.0.tgz", + "integrity": "sha512-Qg7D2xomELDjDCWAmE4izk1aecG/il8pQIGmSWFaKgah/V58BVWG/PuSZF6vseTpcqnetIFGaOWzmPNzyTD50A==", + "requires": { + "b4a": "^1.1.1", + "sodium-universal": "^4.0.0" + } + }, "sodium-universal": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/sodium-universal/-/sodium-universal-4.0.0.tgz", @@ -6235,9 +6355,9 @@ } }, "sonic-boom": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.3.0.tgz", - "integrity": "sha512-LYxp34KlZ1a2Jb8ZQgFCK3niIHzibdwtwNUWKg0qQRzsDoJ3Gfgkf8KdBTFU3SkejDEIlWwnSnpVdOZIhFMl/g==", + "version": "3.7.0", + "resolved": "https://registry.npmjs.org/sonic-boom/-/sonic-boom-3.7.0.tgz", + "integrity": "sha512-IudtNvSqA/ObjN97tfgNmOKyDOs4dNcg4cUUsHDebqsgb8wGBBwb31LIgShNO8fye0dFI52X1+tFoKKI6Rq1Gg==", "requires": { "atomic-sleep": "^1.0.0" } @@ -6257,11 +6377,6 @@ "resolved": "https://registry.npmjs.org/split2/-/split2-4.2.0.tgz", "integrity": "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==" }, - "ssb-caps": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/ssb-caps/-/ssb-caps-1.1.0.tgz", - "integrity": "sha512-qe3qpvchJ+gnH8M/ge4rpL+7eRbSmsEAzNwHkDdrW06OBcziQ6/KuAdmcR6joxCbNeoAXAZF+inkefgE16okXA==" - }, "ssb-conn": { "version": "6.0.4", "resolved": "https://registry.npmjs.org/ssb-conn/-/ssb-conn-6.0.4.tgz", @@ -6462,18 +6577,13 @@ } }, "thread-stream": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.3.0.tgz", - "integrity": "sha512-kaDqm1DET9pp3NXwR8382WHbnpXnRkN9xGN9dQt3B2+dmXiW8X1SOwmFOxAErEQ47ObhZ96J6yhZNXuyCOL7KA==", + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/thread-stream/-/thread-stream-2.4.1.tgz", + "integrity": "sha512-d/Ex2iWd1whipbT681JmTINKw0ZwOUBZm7+Gjs64DHuX34mmw8vJL2bFAaNacaW72zYiTJxSHi5abUuOi5nsfg==", "requires": { "real-require": "^0.2.0" } }, - "tiny-lru": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/tiny-lru/-/tiny-lru-11.0.1.tgz", - "integrity": "sha512-iNgFugVuQgBKrqeO/mpiTTgmBsTP0WL6yeuLfLs/Ctf0pI/ixGqIRm8sDCwMcXGe9WWvt2sGXI5mNqZbValmJg==" - }, "to-camel-case": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/to-camel-case/-/to-camel-case-1.0.0.tgz", @@ -6495,6 +6605,11 @@ "to-no-case": "^1.0.0" } }, + "toad-cache": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/toad-cache/-/toad-cache-3.4.1.tgz", + "integrity": "sha512-T0m3MxP3wcqW0LaV3dF1mHBU294sgYSm4FOpa5eEJaYO7PqJZBOjZEQI1y4YaKNnih1FXCEYTWDS9osCoTUefg==" + }, "toidentifier": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", diff --git a/package.json b/package.json index af23d19..9426ead 100644 --- a/package.json +++ b/package.json @@ -24,22 +24,21 @@ "node": ">=16" }, "dependencies": { - "@fastify/static": "6.10.2", - "@fastify/view": "7.4.1", + "@fastify/static": "6.12.0", + "@fastify/view": "8.2.0", "atomic-file-rw": "~0.3.0", "bs58": "5.0.0", "debug": "4.3.4", "ejs": "3.1.9", - "fastify": "4.17.0", + "fastify": "4.25.2", "ppppp-caps": "github:staltz/ppppp-caps", "ppppp-keypair": "github:staltz/ppppp-keypair", - "pino": "8.14.1", + "pino": "8.17.2", "pull-cat": "1.1.11", "pull-notify": "0.1.2", "pull-stream": "3.7.0", - "secret-stack": "7.1.0", - "secret-handshake-ext": "0.0.8", - "ssb-caps": "1.1.0", + "secret-stack": "8.0.0", + "secret-handshake-ext": "0.0.11", "ssb-conn": "6.0.4", "unified": "10.1.2", "remark-parse": "10.0.2",