diff --git a/package-lock.json b/package-lock.json index 0dc270f1..e323a388 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5732,9 +5732,9 @@ } }, "node_modules/@web3-storage/access": { - "version": "18.3.0", - "resolved": "https://registry.npmjs.org/@web3-storage/access/-/access-18.3.0.tgz", - "integrity": "sha512-ZIadeNVKg49vSGs+Sr3l9th4GeyUKXypfeAOHyMgDr7GNvsOygWr13S9ty4I6NTxf4jhffSxEN4h7t8QsRpGlA==", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/@web3-storage/access/-/access-18.3.1.tgz", + "integrity": "sha512-NMNBqCcw+mfabrpRqoDWKmWfkioTCTClvSkb0vCpTb0yA/yntkJYG70QIaGdtoHV2Kz1gk4Hj1x9th5nHIKSpA==", "dependencies": { "@ipld/car": "^5.1.1", "@ipld/dag-ucan": "^3.4.0", @@ -5745,7 +5745,7 @@ "@ucanto/principal": "^9.0.1", "@ucanto/transport": "^9.1.1", "@ucanto/validator": "^9.0.2", - "@web3-storage/capabilities": "^13.3.0", + "@web3-storage/capabilities": "^13.3.1", "@web3-storage/did-mailto": "^2.1.0", "bigint-mod-arith": "^3.1.2", "conf": "11.0.2", @@ -5805,9 +5805,9 @@ } }, "node_modules/@web3-storage/capabilities": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/@web3-storage/capabilities/-/capabilities-13.3.0.tgz", - "integrity": "sha512-ThxegNfpMOuhb1fh2DvOqoZFOSgzQvQQLWwBUzPiQJ7n1k6NK0IMFg56bMDxwjR4A85U2ymt3lVjQXPQZkPBmQ==", + "version": "13.3.1", + "resolved": "https://registry.npmjs.org/@web3-storage/capabilities/-/capabilities-13.3.1.tgz", + "integrity": "sha512-oiQVsSuT4sxOHrYZz05LTCSV3xfT0ae5sixhvEZZaQAwzpv4xPBI0e5ro1SVNV/8kpCzRT2bq3VY4QlN1EfK/Q==", "dependencies": { "@ucanto/core": "^10.0.1", "@ucanto/interface": "^10.0.1", @@ -6079,9 +6079,9 @@ } }, "node_modules/@web3-storage/upload-api": { - "version": "9.1.4", - "resolved": "https://registry.npmjs.org/@web3-storage/upload-api/-/upload-api-9.1.4.tgz", - "integrity": "sha512-ctrM+pq5Z18JsDMVlhvzfBz4luwJ1b5l+Iv8wAz2wsYZQ3Iguky4Xtpfi1pcKP3uCCR6j9yg1Q9VT6PFrAUyEw==", + "version": "9.1.5", + "resolved": "https://registry.npmjs.org/@web3-storage/upload-api/-/upload-api-9.1.5.tgz", + "integrity": "sha512-OAPRm1pUYUnT/TpyRqxfy238H9neywcwZclQYn6ET6HxEJa76IjkcYsLIsJ4ivEyJK4E2XqImPBGHAtow8iDUw==", "dependencies": { "@ucanto/client": "^9.0.1", "@ucanto/interface": "^10.0.1", @@ -6089,7 +6089,7 @@ "@ucanto/server": "^10.0.0", "@ucanto/transport": "^9.1.1", "@ucanto/validator": "^9.0.2", - "@web3-storage/access": "^18.3.0", + "@web3-storage/access": "^18.3.1", "@web3-storage/capabilities": "^13.3.1", "@web3-storage/content-claims": "^4.0.4", "@web3-storage/did-mailto": "^2.1.0", @@ -18511,10 +18511,10 @@ "@ucanto/transport": "^9.1.1", "@ucanto/validator": "^9.0.2", "@web-std/fetch": "^4.1.0", - "@web3-storage/access": "^18.3.0", - "@web3-storage/capabilities": "^13.3.0", + "@web3-storage/access": "^18.3.1", + "@web3-storage/capabilities": "^13.3.1", "@web3-storage/did-mailto": "^2.1.0", - "@web3-storage/upload-api": "^9.1.4", + "@web3-storage/upload-api": "^9.1.5", "multiformats": "^13.1.0", "nanoid": "^5.0.2", "preact": "^10.14.1", diff --git a/upload-api/package.json b/upload-api/package.json index 448a57fe..b7d9b35d 100644 --- a/upload-api/package.json +++ b/upload-api/package.json @@ -22,10 +22,10 @@ "@ucanto/transport": "^9.1.1", "@ucanto/validator": "^9.0.2", "@web-std/fetch": "^4.1.0", - "@web3-storage/access": "^18.3.0", - "@web3-storage/capabilities": "^13.3.0", + "@web3-storage/access": "^18.3.1", + "@web3-storage/capabilities": "^13.3.1", "@web3-storage/did-mailto": "^2.1.0", - "@web3-storage/upload-api": "^9.1.4", + "@web3-storage/upload-api": "^9.1.5", "multiformats": "^13.1.0", "nanoid": "^5.0.2", "preact": "^10.14.1", diff --git a/upload-api/stores/allocations.js b/upload-api/stores/allocations.js index c79e700e..4082702a 100644 --- a/upload-api/stores/allocations.js +++ b/upload-api/stores/allocations.js @@ -88,7 +88,7 @@ export function useAllocationsStorage(dynamoDb, tableName) { digest: base58btc.decode(raw.multihash), size: raw.size }, - invocation: Link.parse(raw.invocation) + cause: Link.parse(raw.cause) } } }, @@ -98,7 +98,7 @@ export function useAllocationsStorage(dynamoDb, tableName) { * @param {BlobAddInput} item * @returns {ReturnType} */ - insert: async ({ space, blob, invocation }) => { + insert: async ({ space, blob, cause }) => { const insertedAt = new Date().toISOString() const multihash58btc = base58btc.encode(blob.digest) @@ -106,7 +106,7 @@ export function useAllocationsStorage(dynamoDb, tableName) { space, multihash: multihash58btc, size: blob.size, - invocation: invocation.toString(), + cause: cause.toString(), insertedAt, } const cmd = new PutItemCommand({