supercompat 2.17.0 → 2.18.0
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.
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/supercompat.cjs +3 -2
- package/dist/supercompat.cjs.map +1 -1
- package/dist/supercompat.js +3 -2
- package/dist/supercompat.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -480,7 +480,7 @@ var supercompatFetch = function(param) {
|
|
|
480
480
|
runAdapter: runAdapter
|
|
481
481
|
});
|
|
482
482
|
return /*#__PURE__*/ _async_to_generator(function() {
|
|
483
|
-
var _len, args, _key, _args, url, options, pathHandler, requestHandler;
|
|
483
|
+
var _len, args, _key, _args, url, options, pathHandler, _options_method, method, requestHandler;
|
|
484
484
|
var _arguments = arguments;
|
|
485
485
|
return _ts_generator(this, function(_state) {
|
|
486
486
|
for(_len = _arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
@@ -500,7 +500,8 @@ var supercompatFetch = function(param) {
|
|
|
500
500
|
})
|
|
501
501
|
];
|
|
502
502
|
}
|
|
503
|
-
|
|
503
|
+
method = (_options_method = options === null || options === void 0 ? void 0 : options.method) !== null && _options_method !== void 0 ? _options_method : "";
|
|
504
|
+
requestHandler = pathHandler[method.toLowerCase()];
|
|
504
505
|
if (!requestHandler) {
|
|
505
506
|
return [
|
|
506
507
|
2,
|