From 8696dde668cb1c90eef3649175b5a79d452a4873 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Mon, 2 Nov 2020 16:41:11 +0000 Subject: [PATCH] build(release): compiled action for 1.1.18 [skip ci] --- dist/index.js | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/dist/index.js b/dist/index.js index 911f7ce..fb34cfd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1540,7 +1540,7 @@ async function sendRequestWithRetries(state, request, options, createdAt, retrie } } -const VERSION = "2.10.0"; +const VERSION = "2.10.1"; const createAppAuth = function createAppAuth(options) { const log = Object.assign({ @@ -3238,7 +3238,7 @@ module.exports = isString; Object.defineProperty(exports, '__esModule', { value: true }); -const VERSION = "2.4.0"; +const VERSION = "2.6.0"; /** * Some “list” response that can be paginated have a different response structure @@ -3291,26 +3291,23 @@ function iterator(octokit, route, parameters) { let url = options.url; return { [Symbol.asyncIterator]: () => ({ - next() { - if (!url) { - return Promise.resolve({ - done: true - }); - } - - return requestMethod({ + async next() { + if (!url) return { + done: true + }; + const response = await requestMethod({ method, url, headers - }).then(normalizePaginatedListResponse).then(response => { - // `response.headers.link` format: - // '; rel="next", ; rel="last"' - // sets `url` to undefined if "next" URL is not present or `link` header is not set - url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; - return { - value: response - }; }); + const normalizedResponse = normalizePaginatedListResponse(response); // `response.headers.link` format: + // '; rel="next", ; rel="last"' + // sets `url` to undefined if "next" URL is not present or `link` header is not set + + url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1]; + return { + value: normalizedResponse + }; } }) @@ -3348,6 +3345,10 @@ function gather(octokit, results, iterator, mapFn) { }); } +const composePaginateRest = Object.assign(paginate, { + iterator +}); + /** * @param octokit Octokit instance * @param options Options passed to Octokit constructor @@ -3362,6 +3363,7 @@ function paginateRest(octokit) { } paginateRest.VERSION = VERSION; +exports.composePaginateRest = composePaginateRest; exports.paginateRest = paginateRest; //# sourceMappingURL=index.js.map @@ -8645,7 +8647,7 @@ function _objectSpread2(target) { return target; } -const VERSION = "3.3.2"; +const VERSION = "3.3.3"; const noop = () => Promise.resolve(); // @ts-ignore