Skip to content

Commit

Permalink
Merge pull request #53 from secretin/app_v2
Browse files Browse the repository at this point in the history
Migrate to new secretin-lib v2
  • Loading branch information
agix authored Oct 2, 2017
2 parents e57b46c + 600d80e commit ba417fe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"react-dom": "^15.6.1",
"react-overlays": "^0.8.0",
"react-router-dom": "^4.1.2",
"secretin": "^1.8.3",
"secretin": "^2.0.0",
"url-join": "^2.0.2",
"uuid": "^3.1.0"
},
Expand Down
3 changes: 2 additions & 1 deletion src/utils/secretin.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Secretin from 'secretin';
import { SecretinBrowserAdapter } from 'secretin/dist/adapters/browser';

const serverURI = process.env.REACT_APP_API_SECRETIN
? process.env.REACT_APP_API_SECRETIN
Expand All @@ -12,7 +13,7 @@ if (typeof window.process !== 'undefined') {
api = params.get('api');
}

const secretin = new Secretin(Secretin.API.Server, api);
const secretin = new Secretin(SecretinBrowserAdapter, Secretin.API.Server, api);

export const Statuses = {
...Secretin.Statuses,
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6412,9 +6412,9 @@ schema-utils@^0.3.0:
dependencies:
ajv "^5.0.0"

secretin@^1.8.3:
version "1.8.3"
resolved "https://registry.yarnpkg.com/secretin/-/secretin-1.8.3.tgz#e0f015fc4c9075f779a7d3b90e9229e2a906e7ab"
secretin@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/secretin/-/secretin-2.0.0.tgz#56cc4623b2304426cee57821190b75a54fb5043c"

select-hose@^2.0.0:
version "2.0.0"
Expand Down

0 comments on commit ba417fe

Please sign in to comment.