fetch-plus
Advanced tools
Comparing version 3.7.0 to 3.8.0
@@ -90,2 +90,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
endpoint.request = request.bind(null, endpoint); | ||
endpoint.browse = browse.bind(null, endpoint); | ||
@@ -266,2 +267,9 @@ endpoint.read = read.bind(null, endpoint); | ||
function request(_endpoint, path) { | ||
var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2]; | ||
var middlewares = arguments.length <= 3 || arguments[3] === undefined ? [] : arguments[3]; | ||
return _callFetch(_endpoint, path, _extends({ action: "request" }, options), middlewares); | ||
} | ||
function browse(_endpoint, path) { | ||
@@ -337,2 +345,3 @@ var options = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2]; | ||
fetch: _dropInFetch, | ||
request: request, | ||
browse: browse, | ||
@@ -448,3 +457,3 @@ read: read, | ||
if (Array.isArray(val)) { | ||
return val.sort().map(function (val2) { | ||
return val.slice().sort().map(function (val2) { | ||
return strictUriEncode(key) + '=' + strictUriEncode(val2); | ||
@@ -468,3 +477,3 @@ }).join('&'); | ||
return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { | ||
return '%' + c.charCodeAt(0).toString(16); | ||
return '%' + c.charCodeAt(0).toString(16).toUpperCase(); | ||
}); | ||
@@ -471,0 +480,0 @@ }; |
{ | ||
"name": "fetch-plus", | ||
"description": "A convenient Fetch API library with first-class middleware support", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"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
15307
368