@sunggang/ui-lib 0.3.1 → 0.3.2

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.
@@ -63910,10 +63910,11 @@ function _ts_values(o) {
63910
63910
  {
63911
63911
  key: "_sendRequest",
63912
63912
  value: function _sendRequest(t) {
63913
+ var _n_state;
63913
63914
  var e = new FormData;
63914
- e.append(this.fieldName, t, t.name), console.log(this.fieldName), console.log(this.uploadUrl), console.log(this.authToken);
63915
- var _$n = JSON.parse(localStorage.getItem("sg-auth-storage")), o = this.authToken || _$n;
63916
- o && this.xhr.setRequestHeader("Authorization", o), this.xhr.send(e);
63915
+ e.append(this.fieldName, t, t.name), console.log(this.fieldName), console.log(this.uploadUrl);
63916
+ var _$n = JSON.parse(localStorage.getItem("sg-auth-storage")), o = (_$n === null || _$n === void 0 ? void 0 : (_n_state = _$n.state) === null || _n_state === void 0 ? void 0 : _n_state.access_token) || _$n, i = this.authToken || o;
63917
+ i && this.xhr.setRequestHeader("Authorization", i), this.xhr.send(e);
63917
63918
  }
63918
63919
  }
63919
63920
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunggang/ui-lib",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "dependencies": {
5
5
  "@emotion/react": "^11.14.0",
6
6
  "@emotion/styled": "^11.14.0",