From eaab784c0a50e8203f9dee62c0ce803384503c96 Mon Sep 17 00:00:00 2001 From: Henry Tsai Date: Tue, 8 Oct 2024 10:00:45 -0700 Subject: [PATCH 1/3] Updated dwn-sdk-js dependency to v0.5.1 & adapt to breaking changes --- package-lock.json | 154 ++++++++++++++++++- package.json | 4 +- src/config.ts | 1 + src/http-api.ts | 17 +- src/json-rpc-handlers/dwn/process-message.ts | 7 +- tests/common-scenario-validator.ts | 2 +- tests/http-api.spec.ts | 6 +- 7 files changed, 166 insertions(+), 25 deletions(-) diff --git a/package-lock.json b/package-lock.json index 245996f..ddf2144 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,14 @@ { "name": "@web5/dwn-server", - "version": "0.5.0", + "version": "0.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@web5/dwn-server", - "version": "0.5.0", + "version": "0.6.0", "dependencies": { - "@tbd54566975/dwn-sdk-js": "0.4.7", + "@tbd54566975/dwn-sdk-js": "0.5.1", "@tbd54566975/dwn-sql-store": "0.6.7", "@web5/common": "^1.0.2", "@web5/crypto": "^1.0.3", @@ -607,9 +607,9 @@ "dev": true }, "node_modules/@tbd54566975/dwn-sdk-js": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/@tbd54566975/dwn-sdk-js/-/dwn-sdk-js-0.4.7.tgz", - "integrity": "sha512-VYaLT4FKdHfVvUPZbicUpF77erkOSi1xBP/EVQIpnp0khPujp2lYcojbRcw4c4JR23CrRvLPy/iWXmEhdP8LqA==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@tbd54566975/dwn-sdk-js/-/dwn-sdk-js-0.5.1.tgz", + "integrity": "sha512-4xfDttiXOzs7h3PHODflHxHP7Z1HlNod6BN+HX6elXKlqOlBueORrzB72BnzVBbv35eDRJR5w2upmGsUoq3dGg==", "dependencies": { "@ipld/dag-cbor": "9.0.3", "@js-temporal/polyfill": "0.4.4", @@ -737,6 +737,127 @@ "npm": ">=7.0.0" } }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/@noble/ciphers": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-0.5.3.tgz", + "integrity": "sha512-B0+6IIHiqEs3BPMT0hcRmHvEj2QHOLu+uwt+tqDDeVd0oyVzh7BPrDcPjRnV1PV/5LaknXJJQvOuRGR0zQJz+w==", + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/@noble/curves": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", + "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", + "dependencies": { + "@noble/hashes": "1.4.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/@noble/hashes": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", + "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js": { + "version": "0.4.7", + "resolved": "https://registry.npmjs.org/@tbd54566975/dwn-sdk-js/-/dwn-sdk-js-0.4.7.tgz", + "integrity": "sha512-VYaLT4FKdHfVvUPZbicUpF77erkOSi1xBP/EVQIpnp0khPujp2lYcojbRcw4c4JR23CrRvLPy/iWXmEhdP8LqA==", + "dependencies": { + "@ipld/dag-cbor": "9.0.3", + "@js-temporal/polyfill": "0.4.4", + "@noble/ciphers": "0.5.3", + "@noble/curves": "1.4.2", + "@noble/ed25519": "2.0.0", + "@noble/secp256k1": "2.0.0", + "@web5/dids": "^1.1.3", + "abstract-level": "1.0.3", + "ajv": "8.12.0", + "blockstore-core": "4.2.0", + "cross-fetch": "4.0.0", + "eciesjs": "0.4.5", + "interface-blockstore": "5.2.3", + "interface-store": "5.1.2", + "ipfs-unixfs-exporter": "13.1.5", + "ipfs-unixfs-importer": "15.1.5", + "level": "8.0.0", + "lodash": "4.17.21", + "lru-cache": "9.1.2", + "ms": "2.1.3", + "multiformats": "11.0.2", + "randombytes": "2.1.0", + "readable-stream": "4.5.2", + "uint8arrays": "5.1.0", + "ulidx": "2.1.0", + "uuid": "8.3.2", + "varint": "6.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js/node_modules/@ipld/dag-cbor": { + "version": "9.0.3", + "resolved": "https://registry.npmjs.org/@ipld/dag-cbor/-/dag-cbor-9.0.3.tgz", + "integrity": "sha512-A2UFccS0+sARK9xwXiVZIaWbLbPxLGP3UZOjBeOMWfDY04SXi8h1+t4rHBzOlKYF/yWNm3RbFLyclWO7hZcy4g==", + "dependencies": { + "cborg": "^2.0.1", + "multiformats": "^12.0.1" + }, + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js/node_modules/@ipld/dag-cbor/node_modules/multiformats": { + "version": "12.1.3", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", + "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js/node_modules/cborg": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/cborg/-/cborg-2.0.5.tgz", + "integrity": "sha512-xVW1rSIw1ZXbkwl2XhJ7o/jAv0vnVoQv/QlfQxV8a7V5PlA4UU/AcIiXqmpyybwNWy/GPQU1m/aBVNIWr7/T0w==", + "bin": { + "cborg": "cli.js" + } + }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js/node_modules/multiformats": { + "version": "11.0.2", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", + "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", + "engines": { + "node": ">=16.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js/node_modules/readable-stream": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", + "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10", + "string_decoder": "^1.3.0" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, "node_modules/@tbd54566975/dwn-sql-store/node_modules/cborg": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/cborg/-/cborg-4.2.1.tgz", @@ -754,6 +875,27 @@ "npm": ">=7.0.0" } }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/uint8arrays": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", + "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", + "dependencies": { + "multiformats": "^13.0.0" + } + }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/uint8arrays/node_modules/multiformats": { + "version": "13.3.0", + "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.3.0.tgz", + "integrity": "sha512-CBiqvsufgmpo01VT5ze94O+uc+Pbf6f/sThlvWss0sBZmAOu6GQn5usrYV2sf2mr17FWYc0rO8c/CNe2T90QAA==" + }, + "node_modules/@tbd54566975/dwn-sql-store/node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } + }, "node_modules/@tootallnate/quickjs-emscripten": { "version": "0.23.0", "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", diff --git a/package.json b/package.json index e129d92..6ca6d80 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@web5/dwn-server", "type": "module", - "version": "0.5.0", + "version": "0.6.0", "files": [ "dist", "src" @@ -26,7 +26,7 @@ "url": "https://github.com/TBD54566975/dwn-server/issues" }, "dependencies": { - "@tbd54566975/dwn-sdk-js": "0.4.7", + "@tbd54566975/dwn-sdk-js": "0.5.1", "@tbd54566975/dwn-sql-store": "0.6.7", "@web5/common": "^1.0.2", "@web5/crypto": "^1.0.3", diff --git a/src/config.ts b/src/config.ts index 53a550a..f2a27fb 100644 --- a/src/config.ts +++ b/src/config.ts @@ -14,6 +14,7 @@ export const config = { /** * The base external URL of this DWN. * This is used to construct URL paths such as the `Request URI` in the Web5 Connect flow. + * Should NOT be pointing to `localhost` for production use. */ baseUrl: process.env.DWN_BASE_URL || 'http://localhost:3000', diff --git a/src/http-api.ts b/src/http-api.ts index 4ee110c..9c240ae 100644 --- a/src/http-api.ts +++ b/src/http-api.ts @@ -1,3 +1,4 @@ +import type { RecordsReadReply } from '@tbd54566975/dwn-sdk-js'; import { type Dwn, DateSort, RecordsRead, RecordsQuery, ProtocolsQuery } from '@tbd54566975/dwn-sdk-js'; import cors from 'cors'; @@ -111,13 +112,13 @@ export class HttpApi { const leadTailSlashRegex = /^\/|\/$/; - function readReplyHandler(res, reply): any { + function readReplyHandler(res, reply: RecordsReadReply): any { if (reply.status.code === 200) { - if (reply?.record?.data) { - const stream = reply.record.data; - delete reply.record.data; + if (reply?.entry.data) { + const stream = reply.entry.data; - res.setHeader('content-type', reply.record.descriptor.dataFormat); + console.log(reply.entry.recordsWrite.descriptor.dataFormat); + res.setHeader('content-type', reply.entry.recordsWrite.descriptor.dataFormat); res.setHeader('dwn-response', JSON.stringify(reply)); return stream.pipe(res); @@ -292,9 +293,9 @@ export class HttpApi { }); this.#api.post('/', async (req: Request, res) => { - const dwnRequest = req.headers['dwn-request'] as any; + const dwnRpcRequestString = req.headers['dwn-request'] as string; - if (!dwnRequest) { + if (!dwnRpcRequestString) { const reply = createJsonRpcErrorResponse(uuidv4(), JsonRpcErrorCodes.BadRequest, 'request payload required.'); return res.status(400).json(reply); @@ -302,7 +303,7 @@ export class HttpApi { let dwnRpcRequest: JsonRpcRequest; try { - dwnRpcRequest = JSON.parse(dwnRequest); + dwnRpcRequest = JSON.parse(dwnRpcRequestString); } catch (e) { const reply = createJsonRpcErrorResponse(uuidv4(), JsonRpcErrorCodes.BadRequest, e.message); diff --git a/src/json-rpc-handlers/dwn/process-message.ts b/src/json-rpc-handlers/dwn/process-message.ts index 6d66c66..8ec31dc 100644 --- a/src/json-rpc-handlers/dwn/process-message.ts +++ b/src/json-rpc-handlers/dwn/process-message.ts @@ -80,14 +80,11 @@ export const handleDwnProcessMessage: JsonRpcHandler = async ( }); - const { record, entry } = reply; + const { entry } = reply; // RecordsRead or MessagesRead messages optionally return data as a stream to accommodate large amounts of data // we remove the data stream from the reply that will be serialized and return it as a separate property in the response payload. let recordDataStream: IsomorphicReadable; - if (record !== undefined && record.data !== undefined) { - recordDataStream = reply.record.data; - delete reply.record.data; // not serializable via JSON - } else if (entry !== undefined && entry.data !== undefined) { + if (entry !== undefined && entry.data !== undefined) { recordDataStream = entry.data; delete reply.entry.data; // not serializable via JSON } diff --git a/tests/common-scenario-validator.ts b/tests/common-scenario-validator.ts index 4d755b2..a302b0a 100644 --- a/tests/common-scenario-validator.ts +++ b/tests/common-scenario-validator.ts @@ -133,7 +133,7 @@ export default class CommonScenarioValidator { expect(recordsReadJsonRpcResponse.id).to.equal(recordsReadRequestId); expect(recordsReadJsonRpcResponse.error).to.not.exist; expect(recordsReadJsonRpcResponse.result.reply.status.code).to.equal(200); - expect(recordsReadJsonRpcResponse.result.reply.record).to.exist; + expect(recordsReadJsonRpcResponse.result.reply.entry.recordsWrite).to.exist; // can't get response as stream from supertest :( const cid = await Cid.computeDagPbCidFromStream(recordsReadResponse.body as Readable); diff --git a/tests/http-api.spec.ts b/tests/http-api.spec.ts index 6a6b6c0..35f81a7 100644 --- a/tests/http-api.spec.ts +++ b/tests/http-api.spec.ts @@ -770,10 +770,10 @@ describe('http api', function () { expect(blob.size).to.equal(size); // get dwn message response - const { status, record } = getDwnResponse(recordReadResponse); + const { status, entry } = getDwnResponse(recordReadResponse); expect(status.code).to.equal(200); - expect(record).to.exist; - expect(record.recordId).to.equal(recordsWrite.message.recordId); + expect(entry).to.exist; + expect(entry.recordsWrite.recordId).to.equal(recordsWrite.message.recordId); }); it('removes the trailing slash from the protocol path', async function () { From cd46e112b45cc9c1520f3bc27c08628d03b9dec9 Mon Sep 17 00:00:00 2001 From: Henry Tsai Date: Tue, 8 Oct 2024 10:15:06 -0700 Subject: [PATCH 2/3] Removed logging --- src/http-api.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/http-api.ts b/src/http-api.ts index 9c240ae..d373028 100644 --- a/src/http-api.ts +++ b/src/http-api.ts @@ -114,10 +114,9 @@ export class HttpApi { function readReplyHandler(res, reply: RecordsReadReply): any { if (reply.status.code === 200) { - if (reply?.entry.data) { + if (reply?.entry?.data) { const stream = reply.entry.data; - console.log(reply.entry.recordsWrite.descriptor.dataFormat); res.setHeader('content-type', reply.entry.recordsWrite.descriptor.dataFormat); res.setHeader('dwn-response', JSON.stringify(reply)); From 8fcc5b2ce0ab986e2e330c1cbf04cb6ca3895a02 Mon Sep 17 00:00:00 2001 From: Henry Tsai Date: Tue, 8 Oct 2024 11:04:57 -0700 Subject: [PATCH 3/3] Updated SQL store dependency --- package-lock.json | 152 ++-------------------------------------------- package.json | 2 +- 2 files changed, 6 insertions(+), 148 deletions(-) diff --git a/package-lock.json b/package-lock.json index ddf2144..d323bd6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.6.0", "dependencies": { "@tbd54566975/dwn-sdk-js": "0.5.1", - "@tbd54566975/dwn-sql-store": "0.6.7", + "@tbd54566975/dwn-sql-store": "0.6.8", "@web5/common": "^1.0.2", "@web5/crypto": "^1.0.3", "@web5/dids": "^1.1.3", @@ -710,12 +710,12 @@ } }, "node_modules/@tbd54566975/dwn-sql-store": { - "version": "0.6.7", - "resolved": "https://registry.npmjs.org/@tbd54566975/dwn-sql-store/-/dwn-sql-store-0.6.7.tgz", - "integrity": "sha512-5v/BudrItBx8UUMEIH42nMBwykpM9ZyBpMERmWwJn06Xe47wv+ojkDhVX000Npuv4q+bsLv0lQhCaIAmKcMlaQ==", + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/@tbd54566975/dwn-sql-store/-/dwn-sql-store-0.6.8.tgz", + "integrity": "sha512-2F1ACH9GKUBQm8kEKzyLdWw36Dakhx+Z8HAbPsNqbj9w8qht/AEykTJNhvcAi07G2Un83PfqCYDJURs8tM92tA==", "dependencies": { "@ipld/dag-cbor": "9.0.5", - "@tbd54566975/dwn-sdk-js": "0.4.7", + "@tbd54566975/dwn-sdk-js": "0.5.1", "kysely": "0.26.3", "multiformats": "12.0.1", "readable-stream": "4.4.2" @@ -737,127 +737,6 @@ "npm": ">=7.0.0" } }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/@noble/ciphers": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-0.5.3.tgz", - "integrity": "sha512-B0+6IIHiqEs3BPMT0hcRmHvEj2QHOLu+uwt+tqDDeVd0oyVzh7BPrDcPjRnV1PV/5LaknXJJQvOuRGR0zQJz+w==", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/@noble/curves": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.4.2.tgz", - "integrity": "sha512-TavHr8qycMChk8UwMld0ZDRvatedkzWfH8IiaeGCfymOP5i0hSCozz9vHOL0nkwk7HRMlFnAiKpS2jrUmSybcw==", - "dependencies": { - "@noble/hashes": "1.4.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/@noble/hashes": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.4.0.tgz", - "integrity": "sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js": { - "version": "0.4.7", - "resolved": "https://registry.npmjs.org/@tbd54566975/dwn-sdk-js/-/dwn-sdk-js-0.4.7.tgz", - "integrity": "sha512-VYaLT4FKdHfVvUPZbicUpF77erkOSi1xBP/EVQIpnp0khPujp2lYcojbRcw4c4JR23CrRvLPy/iWXmEhdP8LqA==", - "dependencies": { - "@ipld/dag-cbor": "9.0.3", - "@js-temporal/polyfill": "0.4.4", - "@noble/ciphers": "0.5.3", - "@noble/curves": "1.4.2", - "@noble/ed25519": "2.0.0", - "@noble/secp256k1": "2.0.0", - "@web5/dids": "^1.1.3", - "abstract-level": "1.0.3", - "ajv": "8.12.0", - "blockstore-core": "4.2.0", - "cross-fetch": "4.0.0", - "eciesjs": "0.4.5", - "interface-blockstore": "5.2.3", - "interface-store": "5.1.2", - "ipfs-unixfs-exporter": "13.1.5", - "ipfs-unixfs-importer": "15.1.5", - "level": "8.0.0", - "lodash": "4.17.21", - "lru-cache": "9.1.2", - "ms": "2.1.3", - "multiformats": "11.0.2", - "randombytes": "2.1.0", - "readable-stream": "4.5.2", - "uint8arrays": "5.1.0", - "ulidx": "2.1.0", - "uuid": "8.3.2", - "varint": "6.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js/node_modules/@ipld/dag-cbor": { - "version": "9.0.3", - "resolved": "https://registry.npmjs.org/@ipld/dag-cbor/-/dag-cbor-9.0.3.tgz", - "integrity": "sha512-A2UFccS0+sARK9xwXiVZIaWbLbPxLGP3UZOjBeOMWfDY04SXi8h1+t4rHBzOlKYF/yWNm3RbFLyclWO7hZcy4g==", - "dependencies": { - "cborg": "^2.0.1", - "multiformats": "^12.0.1" - }, - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js/node_modules/@ipld/dag-cbor/node_modules/multiformats": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-12.1.3.tgz", - "integrity": "sha512-eajQ/ZH7qXZQR2AgtfpmSMizQzmyYVmCql7pdhldPuYQi4atACekbJaQplk6dWyIi10jCaFnd6pqvcEFXjbaJw==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js/node_modules/cborg": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/cborg/-/cborg-2.0.5.tgz", - "integrity": "sha512-xVW1rSIw1ZXbkwl2XhJ7o/jAv0vnVoQv/QlfQxV8a7V5PlA4UU/AcIiXqmpyybwNWy/GPQU1m/aBVNIWr7/T0w==", - "bin": { - "cborg": "cli.js" - } - }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js/node_modules/multiformats": { - "version": "11.0.2", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-11.0.2.tgz", - "integrity": "sha512-b5mYMkOkARIuVZCpvijFj9a6m5wMVLC7cf/jIPd5D/ARDOfLC5+IFkbgDXQgcU2goIsTD/O9NY4DI/Mt4OGvlg==", - "engines": { - "node": ">=16.0.0", - "npm": ">=7.0.0" - } - }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/@tbd54566975/dwn-sdk-js/node_modules/readable-stream": { - "version": "4.5.2", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.5.2.tgz", - "integrity": "sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==", - "dependencies": { - "abort-controller": "^3.0.0", - "buffer": "^6.0.3", - "events": "^3.3.0", - "process": "^0.11.10", - "string_decoder": "^1.3.0" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - } - }, "node_modules/@tbd54566975/dwn-sql-store/node_modules/cborg": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/cborg/-/cborg-4.2.1.tgz", @@ -875,27 +754,6 @@ "npm": ">=7.0.0" } }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/uint8arrays": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/uint8arrays/-/uint8arrays-5.1.0.tgz", - "integrity": "sha512-vA6nFepEmlSKkMBnLBaUMVvAC4G3CTmO58C12y4sq6WPDOR7mOFYOi7GlrQ4djeSbP6JG9Pv9tJDM97PedRSww==", - "dependencies": { - "multiformats": "^13.0.0" - } - }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/uint8arrays/node_modules/multiformats": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/multiformats/-/multiformats-13.3.0.tgz", - "integrity": "sha512-CBiqvsufgmpo01VT5ze94O+uc+Pbf6f/sThlvWss0sBZmAOu6GQn5usrYV2sf2mr17FWYc0rO8c/CNe2T90QAA==" - }, - "node_modules/@tbd54566975/dwn-sql-store/node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, "node_modules/@tootallnate/quickjs-emscripten": { "version": "0.23.0", "resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz", diff --git a/package.json b/package.json index 6ca6d80..d58a537 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ }, "dependencies": { "@tbd54566975/dwn-sdk-js": "0.5.1", - "@tbd54566975/dwn-sql-store": "0.6.7", + "@tbd54566975/dwn-sql-store": "0.6.8", "@web5/common": "^1.0.2", "@web5/crypto": "^1.0.3", "@web5/dids": "^1.1.3",