From 9b836e607a9339cac41f75bfa09c36dc0f3d6874 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Tue, 22 Nov 2022 15:23:12 +0000 Subject: [PATCH] fix: store export (#197) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Documented as `Store` in the README and this it aligns better with the capability name. I had it as `Storage` for a while but changed it to `Store`...but missed this instance 🤦‍♂️ --- packages/upload-client/README.md | 2 +- packages/upload-client/src/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/upload-client/README.md b/packages/upload-client/README.md index 44774685b..16fec11d9 100644 --- a/packages/upload-client/README.md +++ b/packages/upload-client/README.md @@ -35,7 +35,7 @@ const agent = await Agent.create() const conf = { issuer: agent.issuer, with: agent.currentSpace(), - proofs: agent.getProofs([store, upload]), + proofs: await agent.proofs([store, upload]), } ``` diff --git a/packages/upload-client/src/index.js b/packages/upload-client/src/index.js index d17e68026..c461c0e58 100644 --- a/packages/upload-client/src/index.js +++ b/packages/upload-client/src/index.js @@ -1,10 +1,10 @@ -import * as Storage from './store.js' +import * as Store from './store.js' import * as Upload from './upload.js' import * as UnixFS from './unixfs.js' import * as CAR from './car.js' import { ShardingStream, ShardStoringStream } from './sharding.js' -export { Storage, Upload, UnixFS, CAR } +export { Store, Upload, UnixFS, CAR } export * from './sharding.js' /**