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.js
CHANGED
|
@@ -373,7 +373,7 @@ var supercompatFetch = function(param) {
|
|
|
373
373
|
runAdapter: runAdapter
|
|
374
374
|
});
|
|
375
375
|
return /*#__PURE__*/ _async_to_generator(function() {
|
|
376
|
-
var _len, args, _key, _args, url, options, pathHandler, requestHandler;
|
|
376
|
+
var _len, args, _key, _args, url, options, pathHandler, _options_method, method, requestHandler;
|
|
377
377
|
var _arguments = arguments;
|
|
378
378
|
return _ts_generator(this, function(_state) {
|
|
379
379
|
for(_len = _arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
@@ -393,7 +393,8 @@ var supercompatFetch = function(param) {
|
|
|
393
393
|
})
|
|
394
394
|
];
|
|
395
395
|
}
|
|
396
|
-
|
|
396
|
+
method = (_options_method = options === null || options === void 0 ? void 0 : options.method) !== null && _options_method !== void 0 ? _options_method : "";
|
|
397
|
+
requestHandler = pathHandler[method.toLowerCase()];
|
|
397
398
|
if (!requestHandler) {
|
|
398
399
|
return [
|
|
399
400
|
2,
|
|
@@ -3815,9 +3816,7 @@ var get10 = function(param) {
|
|
|
3815
3816
|
hasNextPage: function() {
|
|
3816
3817
|
return messages3.length === parseInt(limit);
|
|
3817
3818
|
},
|
|
3818
|
-
|
|
3819
|
-
last_id: (_last_id = (_last = last(messages3)) === null || _last === void 0 ? void 0 : _last.id) !== null && _last_id !== void 0 ? _last_id : null
|
|
3820
|
-
}
|
|
3819
|
+
last_id: (_last_id = (_last = last(messages3)) === null || _last === void 0 ? void 0 : _last.id) !== null && _last_id !== void 0 ? _last_id : null
|
|
3821
3820
|
}), {
|
|
3822
3821
|
status: 200,
|
|
3823
3822
|
headers: {
|
|
@@ -3929,10 +3928,8 @@ var get11 = function(param) {
|
|
|
3929
3928
|
hasNextPage: function() {
|
|
3930
3929
|
return runs2.length === parseInt(limit);
|
|
3931
3930
|
},
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
last_id: (_last2_id = (_last2 = last2(runs2)) === null || _last2 === void 0 ? void 0 : _last2.id) !== null && _last2_id !== void 0 ? _last2_id : null
|
|
3935
|
-
}
|
|
3931
|
+
// @ts-ignore-next-line
|
|
3932
|
+
last_id: (_last2_id = (_last2 = last2(runs2)) === null || _last2 === void 0 ? void 0 : _last2.id) !== null && _last2_id !== void 0 ? _last2_id : null
|
|
3936
3933
|
}), {
|
|
3937
3934
|
status: 200,
|
|
3938
3935
|
headers: {
|
|
@@ -4589,10 +4586,8 @@ var get13 = function(param) {
|
|
|
4589
4586
|
hasNextPage: function() {
|
|
4590
4587
|
return runSteps.length === parseInt(limit);
|
|
4591
4588
|
},
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
last_id: (_last3_id = (_last3 = last3(runSteps)) === null || _last3 === void 0 ? void 0 : _last3.id) !== null && _last3_id !== void 0 ? _last3_id : null
|
|
4595
|
-
}
|
|
4589
|
+
// @ts-ignore-next-line
|
|
4590
|
+
last_id: (_last3_id = (_last3 = last3(runSteps)) === null || _last3 === void 0 ? void 0 : _last3.id) !== null && _last3_id !== void 0 ? _last3_id : null
|
|
4596
4591
|
}), {
|
|
4597
4592
|
status: 200,
|
|
4598
4593
|
headers: {
|