From 7d188d17769c82061f17b759934daecb19d2500e Mon Sep 17 00:00:00 2001 From: Namrata Jha Date: Thu, 23 Dec 2021 13:02:25 +0000 Subject: [PATCH] RATE_LIMIT = 99 --- dist/index.js | 2 +- src/delete.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 9f0b1cb..ac3d30a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27,7 +27,7 @@ exports.deleteVersions = exports.finalIds = exports.getVersionIds = void 0; const rxjs_1 = __nccwpck_require__(5805); const version_1 = __nccwpck_require__(4428); const operators_1 = __nccwpck_require__(7801); -const RATE_LIMIT = 100; +const RATE_LIMIT = 99; let totalCount = 0; function getVersionIds(owner, repo, packageName, numVersions, cursor, token) { return version_1.getOldestVersions(owner, repo, packageName, numVersions, cursor, token).pipe(operators_1.expand(value => value.paginate diff --git a/src/delete.ts b/src/delete.ts index 87a4349..59d12fd 100644 --- a/src/delete.ts +++ b/src/delete.ts @@ -3,7 +3,7 @@ import {EMPTY, Observable, of, throwError} from 'rxjs' import {deletePackageVersions, getOldestVersions, VersionInfo} from './version' import {concatMap, map, expand, tap} from 'rxjs/operators' -const RATE_LIMIT = 100 +const RATE_LIMIT = 99 let totalCount = 0 export function getVersionIds(