supercompat 2.17.0 → 2.19.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 +8 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -13
- 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,
|
|
@@ -3923,9 +3924,7 @@ var get10 = function(param) {
|
|
|
3923
3924
|
hasNextPage: function() {
|
|
3924
3925
|
return messages3.length === parseInt(limit);
|
|
3925
3926
|
},
|
|
3926
|
-
|
|
3927
|
-
last_id: (_id = (_this = (0, import_radash8.last)(messages3)) === null || _this === void 0 ? void 0 : _this.id) !== null && _id !== void 0 ? _id : null
|
|
3928
|
-
}
|
|
3927
|
+
last_id: (_id = (_this = (0, import_radash8.last)(messages3)) === null || _this === void 0 ? void 0 : _this.id) !== null && _id !== void 0 ? _id : null
|
|
3929
3928
|
}), {
|
|
3930
3929
|
status: 200,
|
|
3931
3930
|
headers: {
|
|
@@ -4037,10 +4036,8 @@ var get11 = function(param) {
|
|
|
4037
4036
|
hasNextPage: function() {
|
|
4038
4037
|
return runs2.length === parseInt(limit);
|
|
4039
4038
|
},
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
last_id: (_id = (_this = (0, import_radash9.last)(runs2)) === null || _this === void 0 ? void 0 : _this.id) !== null && _id !== void 0 ? _id : null
|
|
4043
|
-
}
|
|
4039
|
+
// @ts-ignore-next-line
|
|
4040
|
+
last_id: (_id = (_this = (0, import_radash9.last)(runs2)) === null || _this === void 0 ? void 0 : _this.id) !== null && _id !== void 0 ? _id : null
|
|
4044
4041
|
}), {
|
|
4045
4042
|
status: 200,
|
|
4046
4043
|
headers: {
|
|
@@ -4697,10 +4694,8 @@ var get13 = function(param) {
|
|
|
4697
4694
|
hasNextPage: function() {
|
|
4698
4695
|
return runSteps.length === parseInt(limit);
|
|
4699
4696
|
},
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
last_id: (_id = (_this = (0, import_radash11.last)(runSteps)) === null || _this === void 0 ? void 0 : _this.id) !== null && _id !== void 0 ? _id : null
|
|
4703
|
-
}
|
|
4697
|
+
// @ts-ignore-next-line
|
|
4698
|
+
last_id: (_id = (_this = (0, import_radash11.last)(runSteps)) === null || _this === void 0 ? void 0 : _this.id) !== null && _id !== void 0 ? _id : null
|
|
4704
4699
|
}), {
|
|
4705
4700
|
status: 200,
|
|
4706
4701
|
headers: {
|