Commit d600426
fix(urls): respect DB prefix for base URL if set
If [PouchDB.defaults][1] is used, its options are attached to `__.opts`.
In the case of `PouchDB.defaults({prefix: ''})`:
> `prefix` appends a prefix to the database name and can be helpful for
> URL-based or file-based LevelDOWN path names.
For example: `{prefix: 'https://example.com/', name: 'test'}` would
produce a DB "name" of `https://example.com/test`.
Before, prefix was not respected.
Closes #158.
Connects #160.
[1]: https://pouchdb.com/api.html#defaults1 parent 7f44c9e commit d600426
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
0 commit comments