ywana-core8 0.1.23 → 0.1.25

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.
@@ -85,16 +85,18 @@ var fetchAsync = function fetchAsync(method, URL, body, token, headers) {
85
85
  }();
86
86
  return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
87
87
  });
88
- }, function (error) {
89
- if (error instanceof Error) {
88
+ }, function (response) {
89
+ if (response instanceof response) {
90
90
  throw {
91
- error: error
91
+ response: response
92
92
  };
93
93
  }
94
- return Promise.resolve(error.json()).then(function (json) {
94
+ return Promise.resolve(response.json()).then(function (json) {
95
95
  throw {
96
96
  success: false,
97
- message: json.message || json.err
97
+ message: json.message || json.err,
98
+ status: response.status,
99
+ statusText: response.statusText
98
100
  };
99
101
  });
100
102
  }));
@@ -1753,7 +1755,8 @@ var LoginBox = function LoginBox(_ref) {
1753
1755
  value: user,
1754
1756
  onChange: changeUser,
1755
1757
  onEnter: ok,
1756
- outlined: true
1758
+ outlined: true,
1759
+ autoComplete: "on"
1757
1760
  }), /*#__PURE__*/React.createElement(TextField, {
1758
1761
  id: "loginbox-password",
1759
1762
  label: tx(passwordLabel),
@@ -1761,7 +1764,8 @@ var LoginBox = function LoginBox(_ref) {
1761
1764
  onChange: changePassword,
1762
1765
  onEnter: ok,
1763
1766
  type: "password",
1764
- outlined: true
1767
+ outlined: true,
1768
+ autoComplete: "on"
1765
1769
  })), /*#__PURE__*/React.createElement("footer", null, loading ? /*#__PURE__*/React.createElement("div", {
1766
1770
  className: "load-box"
1767
1771
  }, /*#__PURE__*/React.createElement(Icon, {