fetch-plus
Advanced tools
Comparing version 3.8.0 to 3.8.1
@@ -80,3 +80,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
function connectEndpoint(url) { | ||
function createClient(url) { | ||
var options = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1]; | ||
@@ -203,3 +203,3 @@ var middlewares = arguments.length <= 2 || arguments[2] === undefined ? [] : arguments[2]; | ||
if ((typeof query === "undefined" ? "undefined" : _typeof(query)) === "object") { | ||
query = "?" + encodeURI(_queryString2.default.stringify((0, _compute.computeObject)(query))); | ||
query = "?" + _queryString2.default.stringify((0, _compute.computeObject)(query)); | ||
} else if (query !== "") { | ||
@@ -341,3 +341,4 @@ query = "?" + (0, _compute.compute)(query); | ||
module.exports = { | ||
connectEndpoint: connectEndpoint, | ||
createClient: createClient, | ||
connectEndpoint: createClient, | ||
addMiddleware: addMiddleware, | ||
@@ -457,3 +458,3 @@ removeMiddleware: removeMiddleware, | ||
if (Array.isArray(val)) { | ||
return val.slice().sort().map(function (val2) { | ||
return val.sort().map(function (val2) { | ||
return strictUriEncode(key) + '=' + strictUriEncode(val2); | ||
@@ -477,3 +478,3 @@ }).join('&'); | ||
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { | ||
return '%' + c.charCodeAt(0).toString(16).toUpperCase(); | ||
return '%' + c.charCodeAt(0).toString(16); | ||
}); | ||
@@ -480,0 +481,0 @@ }; |
{ | ||
"name": "fetch-plus", | ||
"description": "A convenient Fetch API library with first-class middleware support", | ||
"version": "3.8.0", | ||
"version": "3.8.1", | ||
"license": "BSD-3-Clause", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
369
15298