Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duck typing constructor arg #34

Merged
merged 1 commit into from Jul 31, 2019
Merged

Duck typing constructor arg #34

merged 1 commit into from Jul 31, 2019

Conversation

@aphelionz
Copy link
Member

@aphelionz aphelionz commented Jul 30, 2019

If the first argument to new Keystore(store) is:

  1. a valid store object, just use that
  2. a string, use that as the path
  3. null / undefined, use the default path

This allows maximal backwards compatibility with the orbit-db-identity-provider while still letting us move forward with orbit-db-storage-adapter

Coincides with orbitdb/orbit-db-identity-provider#29

Fixing lint and build files
@aphelionz aphelionz force-pushed the fix/duck-typed-constructor branch from 8130997 to 53aed34 Jul 30, 2019
@aphelionz aphelionz merged commit 23b9dd1 into master Jul 31, 2019
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant