-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Make pluto encrypted package storage agnostic.
BREAKING: In order to create a database you need to now pass an object with the same properties, rather than 2 parameters, now you have an object which also accepts a storage resolver so you can integrate any compatible storage. Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
- Loading branch information
1 parent
8f9d6b7
commit 23a4f09
Showing
6 changed files
with
614 additions
and
560 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { RxStorage } from "rxdb"; | ||
import { getRxStorageDexie } from "rxdb/plugins/storage-dexie"; | ||
import { wrappedKeyEncryptionCryptoJsStorage } from "rxdb/plugins/encryption-crypto-js"; | ||
|
||
const storage: RxStorage<any, any> = wrappedKeyEncryptionCryptoJsStorage({ | ||
storage: getRxStorageDexie(), | ||
}) | ||
|
||
export default storage; |
Oops, something went wrong.