Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #459 from 3box/hotfix/v1.8.3
Browse files Browse the repository at this point in the history
Hotfix v1.8.3
  • Loading branch information
oed authored May 24, 2019
2 parents 980f131 + 2073bba commit 1b896c8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release Notes

## v1.8.3 - 2019-05-24
* Fix: functions in the api module now work without an opts object being passed

## v1.8.2 - 2019-05-21
* Fix: Link profile when opening space and haven't used public store
* Feat: Add the ability to manually check and add account linking
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "3box",
"version": "1.8.2",
"version": "1.8.3",
"description": "Interact with user data",
"main": "lib/3box.js",
"directories": {
Expand Down
4 changes: 2 additions & 2 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function listSpaces (address, serverUrl = PROFILE_SERVER_URL) {
}
}

async function getSpace (address, name, serverUrl = PROFILE_SERVER_URL, { metadata }) {
async function getSpace (address, name, serverUrl = PROFILE_SERVER_URL, { metadata } = {}) {
let url = `${serverUrl}/space`

try {
Expand Down Expand Up @@ -65,7 +65,7 @@ async function getThread (space, name, serverUrl = PROFILE_SERVER_URL) {
})
}

async function getProfile (address, serverUrl = PROFILE_SERVER_URL, { metadata }) {
async function getProfile (address, serverUrl = PROFILE_SERVER_URL, { metadata } = {}) {
let url = `${serverUrl}/profile`

try {
Expand Down

0 comments on commit 1b896c8

Please sign in to comment.