lesca-fetcher
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -11,3 +11,3 @@ "use strict"; | ||
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; } | ||
var contentType = /*#__PURE__*/function (contentType) { | ||
var contentType = exports.contentType = /*#__PURE__*/function (contentType) { | ||
contentType["URL_ENCODED"] = "application/x-www-form-urlencoded; charset=UTF-8"; | ||
@@ -17,4 +17,3 @@ contentType["JSON"] = "application/json;charset=utf-8"; | ||
}({}); | ||
exports.contentType = contentType; | ||
var formatType = /*#__PURE__*/function (formatType) { | ||
var formatType = exports.formatType = /*#__PURE__*/function (formatType) { | ||
formatType[formatType["string"] = 0] = "string"; | ||
@@ -24,3 +23,2 @@ formatType[formatType["JSON"] = 1] = "JSON"; | ||
}({}); | ||
exports.formatType = formatType; | ||
var defaultConfig = { | ||
@@ -48,7 +46,6 @@ hostUrl: 'https://jsonplaceholder.typicode.com/todos/1', | ||
}; | ||
var mergePath = function mergePath() { | ||
var mergePath = exports.mergePath = function mergePath() { | ||
var api = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '/api'; | ||
return api.slice(0, 1) === '/' ? "".concat(host).concat(api) : "".concat(host, "/").concat(api); | ||
}; | ||
exports.mergePath = mergePath; | ||
var post = function post() { | ||
@@ -120,3 +117,2 @@ var api = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '/api'; | ||
}; | ||
var _default = Fetcher; | ||
exports["default"] = _default; | ||
var _default = exports["default"] = Fetcher; |
{ | ||
"name": "lesca-fetcher", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Integrate fetch for easier use", | ||
@@ -32,3 +32,2 @@ "main": "lib/index.js", | ||
"@emotion/styled": "^11.11.0", | ||
"@line/liff": "^2.22.3", | ||
"@mui/icons-material": "^5.14.9", | ||
@@ -60,3 +59,6 @@ "@mui/material": "^5.14.10", | ||
}, | ||
"author": "jamehsu1125 <jameshsu1125@gmail.com>" | ||
"author": "jamehsu1125 <jameshsu1125@gmail.com>", | ||
"dependencies": { | ||
"@babel/runtime": "^7.23.1" | ||
} | ||
} |
35
310861
1
1620
+ Added@babel/runtime@^7.23.1
+ Added@babel/runtime@7.24.7(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)