From 2ed6f2069479bffda14c2efde136f207d5bbb245 Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Thu, 6 Apr 2017 10:20:41 +0300 Subject: [PATCH 1/3] Update SDK --- package.json | 2 +- yarn.lock | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 28d0d95a..3dc509eb 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,7 @@ "redux-thunk": "^2.2.0", "sanitize.css": "^5.0.0", "sharetribe-scripts": "0.9.2", - "sharetribe-sdk": "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#940592cf131e3557e225d354736be92ab337c080", + "sharetribe-sdk": "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#d034401c335b115d41f283698d779d019906a419", "source-map-support": "^0.4.14", "url": "^0.11.0" }, diff --git a/yarn.lock b/yarn.lock index 6ac1ae97..3ab59f23 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5949,9 +5949,9 @@ sharetribe-scripts@0.9.2: optionalDependencies: fsevents "1.0.17" -"sharetribe-sdk@git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#940592cf131e3557e225d354736be92ab337c080": +"sharetribe-sdk@git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#d034401c335b115d41f283698d779d019906a419": version "0.0.1" - resolved "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#940592cf131e3557e225d354736be92ab337c080" + resolved "git+ssh://git@github.com/sharetribe/sharetribe-sdk-js#d034401c335b115d41f283698d779d019906a419" dependencies: axios "^0.15.3" js-cookie "^2.1.3" From f962310771daa073f6ac2119b2a165f28efc8409 Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Thu, 6 Apr 2017 10:20:55 +0300 Subject: [PATCH 2/3] Don't require dev mode to expose app to browser REPL --- src/index.js | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/index.js b/src/index.js index 03d9a25b..f5f005e8 100644 --- a/src/index.js +++ b/src/index.js @@ -82,13 +82,11 @@ if (typeof window !== 'undefined') { } // Expose stuff for the browser REPL - if (config.dev) { - const actions = bindActionCreators( - { showListings, queryListings, searchListings, showMarketplace, showUsers }, - store.dispatch - ); - window.app = { config, sdk, sdkTypes: types, actions, store, sample, routeConfiguration }; - } + const actions = bindActionCreators( + { showListings, queryListings, searchListings, showMarketplace, showUsers }, + store.dispatch + ); + window.app = { config, sdk, sdkTypes: types, actions, store, sample, routeConfiguration }; } // Export the function for server side rendering. From 437e0dfb2061e2c9f1213d7a753663d805fa1af0 Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Thu, 6 Apr 2017 10:21:29 +0300 Subject: [PATCH 3/3] Format js --- src/ducks/user.duck.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ducks/user.duck.js b/src/ducks/user.duck.js index 7a9425a9..f69d40be 100644 --- a/src/ducks/user.duck.js +++ b/src/ducks/user.duck.js @@ -80,7 +80,8 @@ export const fetchCurrentUser = () => export const createStripeAccount = (bankAccountToken, country) => (dispatch, getState, sdk) => { dispatch(stripeAccountCreateRequest()); - return sdk.users.createStripeAccount({ bankAccountToken, country }) + return sdk.users + .createStripeAccount({ bankAccountToken, country }) .then(response => { dispatch(stripeAccountCreateSuccess(response)); return response;