Skip to content

Commit

Permalink
feat: re-export Store implementations from w3up-client (#1266)
Browse files Browse the repository at this point in the history
It's useful to be able to use these in code that doesn't want a
dependency on `access-client`.
  • Loading branch information
travis authored Jan 17, 2024
1 parent 3244a26 commit b3c6b46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/w3up-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@
"types": "./dist/src/capability/usage.d.ts",
"import": "./dist/src/capability/usage.js"
},
"./stores": {
"types": "./dist/src/stores.d.ts",
"import": "./dist/src/stores.js"
},
"./types": "./dist/src/types.js"
},
"publishConfig": {
Expand Down
5 changes: 5 additions & 0 deletions packages/w3up-client/src/stores.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { StoreMemory } from '@web3-storage/access/stores/store-memory'
import { StoreIndexedDB } from '@web3-storage/access/stores/store-indexeddb'
import { StoreConf } from '@web3-storage/access/stores/store-conf'

export { StoreConf, StoreIndexedDB, StoreMemory }

0 comments on commit b3c6b46

Please sign in to comment.