@levellink/core
Advanced tools
Comparing version 2.0.19 to 2.0.20
# @levellink/core | ||
## 2.0.20 | ||
### Patch Changes | ||
- add some log | ||
## 2.0.19 | ||
@@ -4,0 +10,0 @@ |
@@ -123,9 +123,13 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } | ||
} | ||
_context.prev = 27; | ||
_context.next = 30; | ||
console.log(_objectSpread(_objectSpread({}, options), {}, { | ||
type: type, | ||
cookieType: Cookies.get("MAGAPE_TYPE") | ||
})); | ||
_context.prev = 28; | ||
_context.next = 31; | ||
return axios(options); | ||
case 30: | ||
case 31: | ||
response = _context.sent; | ||
if (!(response.data.code !== STATUS_CODE.OK)) { | ||
_context.next = 34; | ||
_context.next = 35; | ||
break; | ||
@@ -141,7 +145,7 @@ } | ||
throw new Error(response.data.message); | ||
case 34: | ||
case 35: | ||
return _context.abrupt("return", response.data); | ||
case 37: | ||
_context.prev = 37; | ||
_context.t1 = _context["catch"](27); | ||
case 38: | ||
_context.prev = 38; | ||
_context.t1 = _context["catch"](28); | ||
status = _context.t1 === null || _context.t1 === void 0 || (_response = _context.t1.response) === null || _response === void 0 ? void 0 : _response.status; | ||
@@ -166,7 +170,7 @@ if (status === STATUS_CODE.AUTH_FAILED) { | ||
throw _context.t1; | ||
case 43: | ||
case 44: | ||
case "end": | ||
return _context.stop(); | ||
} | ||
}, _callee, null, [[27, 37]]); | ||
}, _callee, null, [[28, 38]]); | ||
})); | ||
@@ -173,0 +177,0 @@ return function (_x) { |
@@ -84,2 +84,7 @@ "use strict"; | ||
} | ||
console.log({ | ||
...options, | ||
type: type, | ||
cookieType: _jsCookie.default.get("MAGAPE_TYPE") | ||
}); | ||
try { | ||
@@ -86,0 +91,0 @@ const response = await (0, _axios.default)(options); |
{ | ||
"name": "@levellink/core", | ||
"description": "the ui for levellink apps", | ||
"version": "2.0.19", | ||
"version": "2.0.20", | ||
"main": "dist/lib/index.js", | ||
@@ -6,0 +6,0 @@ "module": "dist/esm/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
355538
8393