ywana-core8 0.1.25 → 0.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,10 @@
1
- import React from "react";
2
-
3
- // You can import global CSS files here.
1
+ import React from 'react';
4
2
  import "../src/css/html.css";
5
3
  import "../src/css/theme.css";
6
- import "material-design-icons-iconfont/dist/material-design-icons.css";
7
4
 
8
- // No-op wrapper.
9
- export const Wrapper: React.FC = ({ children }) => {
10
- return (
11
- <div
12
- style={{
13
- fontSize: "10px",
14
- width: "100vw",
15
- height: "100vh",
16
- padding: "0rem",
17
- display: "flex",
18
- flexDirection: "column",
19
- }}
20
- >
21
- {children}
22
- </div>
23
- );
24
- };
5
+
6
+ export const Wrapper: React.FC = ({ children }) => (
7
+ <>
8
+ {children}
9
+ </>
10
+ );
package/dist/index.cjs CHANGED
@@ -95,7 +95,7 @@ var fetchAsync = function fetchAsync(method, URL, body, token, headers) {
95
95
  return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
96
96
  });
97
97
  }, function (response) {
98
- if (response instanceof response) {
98
+ if (response instanceof Error) {
99
99
  throw {
100
100
  response: response
101
101
  };