Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Error handling (#104)
Browse files Browse the repository at this point in the history
- Throw errors if you miss required parameters in getAuthToken.
- Add an escape hatch if a Transfer `error` response isn't a string, as expected.
- Upgrade react-scripts in the doc / playground.
- Replace react-app-rewired in documentation for something else. That means that there's no more styled-components babel support, unfortunately.
  • Loading branch information
Morley Zhi authored Sep 16, 2019
1 parent 6fc65d6 commit 668f45b
Show file tree
Hide file tree
Showing 7 changed files with 5,396 additions and 5,021 deletions.
12 changes: 6 additions & 6 deletions documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-markdown": "^4.0.8",
"react-scripts": "2.1.8",
"react-scripts": "^3.1.1",
"react-syntax-highlighter": "^10.2.1",
"styled-components": "^4.2.0"
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test",
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
Expand All @@ -28,7 +28,7 @@
],
"devDependencies": {
"raw-loader": "^2.0.0",
"react-app-rewire-styled-components": "^3.0.2",
"react-app-rewired": "^2.1.3"
"raw.macro": "^0.3.0",
"react-app-rewire-styled-components": "^3.0.2"
}
}
10 changes: 8 additions & 2 deletions documentation/src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useState } from "react";
import styled from "styled-components";

import README from "README.md";
import raw from "raw.macro";

import { DisplayItem } from "components/DisplayItem";
import { Markdown } from "components/Markdown";
Expand All @@ -13,6 +12,8 @@ import { StateProvider } from "AppState";

import docs from "./docs.json";

const README = raw("../../README.md");

const SIDEBAR_WIDTH = 300;

const El = styled.div`
Expand Down Expand Up @@ -130,6 +131,11 @@ export const App = () => {

const libraryExports = Object.keys(LIBRARY_EXPORTS).reduce((memo, name) => {
const item = itemsByName[name];

if (!item) {
return memo;
}

const kind = item.kindString;

return {
Expand Down
4,928 changes: 2,549 additions & 2,379 deletions documentation/yarn.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"react-dom": "^16.8.5",
"react-json-view": "^1.19.1",
"react-router-dom": "^5.0.0",
"react-scripts": "2.1.8",
"react-scripts": "^3.1.1",
"stellar-sdk": "^2.3.0"
},
"scripts": {
Expand Down
Loading

0 comments on commit 668f45b

Please sign in to comment.