Compare commits

..

3 Commits

Author SHA1 Message Date
chiranjib-swain
84f49136ad chore: remove outdated license files and update @actions/cache dependency to version 5.0.2 2026-01-20 12:16:24 +05:30
chiranjib-swain
a2ded689c7 chore: add new license files for various npm dependencies and remove outdated ones 2026-01-19 12:00:48 +05:30
dependabot[bot]
7ce41f9820 build(deps): bump @octokit/plugin-retry from 4.1.6 to 5.0.5
Bumps [@octokit/plugin-retry](https://github.com/octokit/plugin-retry.js) from 4.1.6 to 5.0.5.
- [Release notes](https://github.com/octokit/plugin-retry.js/releases)
- [Commits](https://github.com/octokit/plugin-retry.js/compare/v4.1.6...v5.0.5)

---
updated-dependencies:
- dependency-name: "@octokit/plugin-retry"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-01-19 06:20:10 +00:00
13 changed files with 1552 additions and 913 deletions

View File

@@ -10,6 +10,7 @@ allowed:
- cc0-1.0 - cc0-1.0
- unlicense - unlicense
- 0bsd - 0bsd
- blueoak-1.0.0
reviewed: reviewed:
npm: npm:

View File

@@ -1,6 +1,6 @@
--- ---
name: "@actions/http-client" name: "@actions/http-client"
version: 2.2.0 version: 2.2.3
type: npm type: npm
summary: Actions Http Client summary: Actions Http Client
homepage: https://github.com/actions/toolkit/tree/main/packages/http-client homepage: https://github.com/actions/toolkit/tree/main/packages/http-client

View File

@@ -1,6 +1,6 @@
--- ---
name: "@fastify/busboy" name: "@fastify/busboy"
version: 2.1.0 version: 2.1.1
type: npm type: npm
summary: A streaming parser for HTML form data for node.js summary: A streaming parser for HTML form data for node.js
homepage: homepage:

View File

@@ -1,6 +1,6 @@
--- ---
name: "@octokit/plugin-retry" name: "@octokit/plugin-retry"
version: 4.1.6 version: 5.0.5
type: npm type: npm
summary: Automatic retry plugin for octokit summary: Automatic retry plugin for octokit
homepage: homepage:

View File

@@ -0,0 +1,34 @@
---
name: "@octokit/request-error"
version: 4.0.2
type: npm
summary: Error class for Octokit request errors
homepage:
license: mit
licenses:
- sources: LICENSE
text: |
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
- sources: README.md
text: "[MIT](LICENSE)"
notices: []

View File

@@ -1,6 +1,6 @@
--- ---
name: "@octokit/types" name: "@octokit/types"
version: 9.3.2 version: 10.0.0
type: npm type: npm
summary: Shared TypeScript definitions for Octokit projects summary: Shared TypeScript definitions for Octokit projects
homepage: homepage:

View File

@@ -1,6 +1,6 @@
--- ---
name: debug name: debug
version: 4.3.4 version: 4.4.3
type: npm type: npm
summary: Lightweight debugging utility for Node.js and the browser summary: Lightweight debugging utility for Node.js and the browser
homepage: homepage:

View File

@@ -1,6 +1,6 @@
--- ---
name: ms name: ms
version: 2.1.2 version: 2.1.3
type: npm type: npm
summary: Tiny millisecond conversion utility summary: Tiny millisecond conversion utility
homepage: homepage:
@@ -10,7 +10,7 @@ licenses:
text: | text: |
The MIT License (MIT) The MIT License (MIT)
Copyright (c) 2016 Zeit, Inc. Copyright (c) 2020 Vercel, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@@ -1,6 +1,6 @@
--- ---
name: semver name: semver
version: 7.6.3 version: 7.7.3
type: npm type: npm
summary: The semantic version parser used by npm. summary: The semantic version parser used by npm.
homepage: homepage:

451
dist/index.js vendored
View File

@@ -172,8 +172,8 @@ class ExemptDraftPullRequest {
// keep this for backward compatibility // keep this for backward compatibility
// eslint-disable-next-line @typescript-eslint/no-unused-vars // eslint-disable-next-line @typescript-eslint/no-unused-vars
pullRequestCallback) { pullRequestCallback) {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
if (this._issue.isPullRequest) { if (this._issue.isPullRequest) {
if (this._options.exemptDraftPr) { if (this._options.exemptDraftPr) {
this._issueLogger.info(`The option ${this._issueLogger.createOptionLink(option_1.Option.ExemptDraftPr)} is enabled`); this._issueLogger.info(`The option ${this._issueLogger.createOptionLink(option_1.Option.ExemptDraftPr)} is enabled`);
@@ -348,13 +348,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) { }) : function(o, v) {
o["default"] = v; o["default"] = v;
}); });
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || (function () {
if (mod && mod.__esModule) return mod; var ownKeys = function(o) {
var result = {}; ownKeys = Object.getOwnPropertyNames || function (o) {
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); var ar = [];
__setModuleDefault(result, mod); for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return result; return ar;
}; };
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
@@ -430,9 +440,9 @@ class IssuesProcessor {
this.statistics = new statistics_1.Statistics(); this.statistics = new statistics_1.Statistics();
} }
} }
processIssues(page = 1) { processIssues() {
var _a, _b; return __awaiter(this, arguments, void 0, function* (page = 1) {
return __awaiter(this, void 0, void 0, function* () { var _a, _b;
// get the next batch of issues // get the next batch of issues
const issues = yield this.getIssues(page); const issues = yield this.getIssues(page);
if (issues.length <= 0) { if (issues.length <= 0) {
@@ -474,8 +484,8 @@ class IssuesProcessor {
}); });
} }
processIssue(issue, labelsToAddWhenUnstale, labelsToRemoveWhenUnstale, labelsToRemoveWhenStale) { processIssue(issue, labelsToAddWhenUnstale, labelsToRemoveWhenUnstale, labelsToRemoveWhenStale) {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
(_a = this.statistics) === null || _a === void 0 ? void 0 : _a.incrementProcessedItemsCount(issue); (_a = this.statistics) === null || _a === void 0 ? void 0 : _a.incrementProcessedItemsCount(issue);
const issueLogger = new issue_logger_1.IssueLogger(issue); const issueLogger = new issue_logger_1.IssueLogger(issue);
issueLogger.info(`Found this $$type last updated at: ${logger_service_1.LoggerService.cyan(issue.updated_at)}`); issueLogger.info(`Found this $$type last updated at: ${logger_service_1.LoggerService.cyan(issue.updated_at)}`);
@@ -672,8 +682,8 @@ class IssuesProcessor {
} }
// Grab comments for an issue since a given date // Grab comments for an issue since a given date
listIssueComments(issue, sinceDate) { listIssueComments(issue, sinceDate) {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
// Find any comments since date on the given issue // Find any comments since date on the given issue
try { try {
this._consumeIssueOperation(issue); this._consumeIssueOperation(issue);
@@ -694,8 +704,8 @@ class IssuesProcessor {
} }
// grab issues from github in batches of 100 // grab issues from github in batches of 100
getIssues(page) { getIssues(page) {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
try { try {
this.operations.consumeOperation(); this.operations.consumeOperation();
const issueResult = yield this.client.rest.issues.listForRepo({ const issueResult = yield this.client.rest.issues.listForRepo({
@@ -718,8 +728,8 @@ class IssuesProcessor {
// returns the creation date of a given label on an issue (or nothing if no label existed) // returns the creation date of a given label on an issue (or nothing if no label existed)
///see https://developer.github.com/v3/activity/events/ ///see https://developer.github.com/v3/activity/events/
getLabelCreationDate(issue, label) { getLabelCreationDate(issue, label) {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
const issueLogger = new issue_logger_1.IssueLogger(issue); const issueLogger = new issue_logger_1.IssueLogger(issue);
issueLogger.info(`Checking for label on this $$type`); issueLogger.info(`Checking for label on this $$type`);
this._consumeIssueOperation(issue); this._consumeIssueOperation(issue);
@@ -742,8 +752,8 @@ class IssuesProcessor {
}); });
} }
getPullRequest(issue) { getPullRequest(issue) {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
const issueLogger = new issue_logger_1.IssueLogger(issue); const issueLogger = new issue_logger_1.IssueLogger(issue);
try { try {
this._consumeIssueOperation(issue); this._consumeIssueOperation(issue);
@@ -761,8 +771,8 @@ class IssuesProcessor {
}); });
} }
getRateLimit() { getRateLimit() {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
const logger = new logger_1.Logger(); const logger = new logger_1.Logger();
try { try {
const rateLimitResult = yield this.client.rest.rateLimit.get(); const rateLimitResult = yield this.client.rest.rateLimit.get();
@@ -861,8 +871,8 @@ class IssuesProcessor {
} }
// Mark an issue as stale with a comment and a label // Mark an issue as stale with a comment and a label
_markStale(issue, staleMessage, staleLabel, skipMessage) { _markStale(issue, staleMessage, staleLabel, skipMessage) {
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const issueLogger = new issue_logger_1.IssueLogger(issue); const issueLogger = new issue_logger_1.IssueLogger(issue);
issueLogger.info(`Marking this $$type as stale`); issueLogger.info(`Marking this $$type as stale`);
this.staleIssues.push(issue); this.staleIssues.push(issue);
@@ -907,8 +917,8 @@ class IssuesProcessor {
} }
// Close an issue based on staleness // Close an issue based on staleness
_closeIssue(issue, closeMessage, closeLabel) { _closeIssue(issue, closeMessage, closeLabel) {
var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const issueLogger = new issue_logger_1.IssueLogger(issue); const issueLogger = new issue_logger_1.IssueLogger(issue);
issueLogger.info(`Closing $$type for being stale`); issueLogger.info(`Closing $$type for being stale`);
this.closedIssues.push(issue); this.closedIssues.push(issue);
@@ -967,8 +977,8 @@ class IssuesProcessor {
} }
// Delete the branch on closed pull request // Delete the branch on closed pull request
_deleteBranch(issue) { _deleteBranch(issue) {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
const issueLogger = new issue_logger_1.IssueLogger(issue); const issueLogger = new issue_logger_1.IssueLogger(issue);
issueLogger.info(`Delete issueLogger.info(`Delete
branch from closed $ branch from closed $
@@ -1006,9 +1016,9 @@ class IssuesProcessor {
}); });
} }
// Remove a label from an issue or a pull request // Remove a label from an issue or a pull request
_removeLabel(issue, label, isSubStep = false) { _removeLabel(issue_2, label_1) {
var _a; return __awaiter(this, arguments, void 0, function* (issue, label, isSubStep = false) {
return __awaiter(this, void 0, void 0, function* () { var _a;
const issueLogger = new issue_logger_1.IssueLogger(issue); const issueLogger = new issue_logger_1.IssueLogger(issue);
issueLogger.info(`${isSubStep ? logger_service_1.LoggerService.white('├── ') : ''}Removing the label "${logger_service_1.LoggerService.cyan(label)}" from this $$type...`); issueLogger.info(`${isSubStep ? logger_service_1.LoggerService.white('├── ') : ''}Removing the label "${logger_service_1.LoggerService.cyan(label)}" from this $$type...`);
this.removedLabelIssues.push(issue); this.removedLabelIssues.push(issue);
@@ -1104,8 +1114,8 @@ class IssuesProcessor {
}); });
} }
_addLabelsWhenUnstale(issue, labelsToAdd) { _addLabelsWhenUnstale(issue, labelsToAdd) {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
if (!labelsToAdd.length) { if (!labelsToAdd.length) {
return; return;
} }
@@ -1130,8 +1140,8 @@ class IssuesProcessor {
}); });
} }
_removeStaleLabel(issue, staleLabel) { _removeStaleLabel(issue, staleLabel) {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
const issueLogger = new issue_logger_1.IssueLogger(issue); const issueLogger = new issue_logger_1.IssueLogger(issue);
issueLogger.info(`The $$type is no longer stale. Removing the stale label...`); issueLogger.info(`The $$type is no longer stale. Removing the stale label...`);
yield this._removeLabel(issue, staleLabel); yield this._removeLabel(issue, staleLabel);
@@ -1139,8 +1149,8 @@ class IssuesProcessor {
}); });
} }
_removeCloseLabel(issue, closeLabel) { _removeCloseLabel(issue, closeLabel) {
var _a;
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
var _a;
const issueLogger = new issue_logger_1.IssueLogger(issue); const issueLogger = new issue_logger_1.IssueLogger(issue);
issueLogger.info(`The $$type is not closed nor locked. Trying to remove the close label...`); issueLogger.info(`The $$type is not closed nor locked. Trying to remove the close label...`);
if (!closeLabel) { if (!closeLabel) {
@@ -1304,13 +1314,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) { }) : function(o, v) {
o["default"] = v; o["default"] = v;
}); });
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || (function () {
if (mod && mod.__esModule) return mod; var ownKeys = function(o) {
var result = {}; ownKeys = Object.getOwnPropertyNames || function (o) {
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); var ar = [];
__setModuleDefault(result, mod); for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return result; return ar;
}; };
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
@@ -1595,13 +1615,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) { }) : function(o, v) {
o["default"] = v; o["default"] = v;
}); });
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || (function () {
if (mod && mod.__esModule) return mod; var ownKeys = function(o) {
var result = {}; ownKeys = Object.getOwnPropertyNames || function (o) {
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); var ar = [];
__setModuleDefault(result, mod); for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return result; return ar;
}; };
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
@@ -1757,13 +1787,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) { }) : function(o, v) {
o["default"] = v; o["default"] = v;
}); });
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || (function () {
if (mod && mod.__esModule) return mod; var ownKeys = function(o) {
var result = {}; ownKeys = Object.getOwnPropertyNames || function (o) {
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); var ar = [];
__setModuleDefault(result, mod); for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return result; return ar;
}; };
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
@@ -2273,7 +2313,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod }; return (mod && mod.__esModule) ? mod : { "default": mod };
}; };
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.cleanLabel = void 0; exports.cleanLabel = cleanLabel;
const lodash_deburr_1 = __importDefault(__nccwpck_require__(61601)); const lodash_deburr_1 = __importDefault(__nccwpck_require__(61601));
/** /**
* @description * @description
@@ -2286,7 +2326,6 @@ const lodash_deburr_1 = __importDefault(__nccwpck_require__(61601));
function cleanLabel(label) { function cleanLabel(label) {
return (0, lodash_deburr_1.default)(label === null || label === void 0 ? void 0 : label.toLowerCase()); return (0, lodash_deburr_1.default)(label === null || label === void 0 ? void 0 : label.toLowerCase());
} }
exports.cleanLabel = cleanLabel;
/***/ }), /***/ }),
@@ -2297,7 +2336,7 @@ exports.cleanLabel = cleanLabel;
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getHumanizedDate = void 0; exports.getHumanizedDate = getHumanizedDate;
function getHumanizedDate(date) { function getHumanizedDate(date) {
const year = date.getFullYear(); const year = date.getFullYear();
let month = `${date.getMonth() + 1}`; let month = `${date.getMonth() + 1}`;
@@ -2310,7 +2349,6 @@ function getHumanizedDate(date) {
} }
return [day, month, year].join('-'); return [day, month, year].join('-');
} }
exports.getHumanizedDate = getHumanizedDate;
/***/ }), /***/ }),
@@ -2323,7 +2361,8 @@ exports.getHumanizedDate = getHumanizedDate;
/// returns false if the dates are equal within the `equalityToleranceInSeconds` number of seconds /// returns false if the dates are equal within the `equalityToleranceInSeconds` number of seconds
/// otherwise returns true if `comparedDate` is after `date` /// otherwise returns true if `comparedDate` is after `date`
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isDateEqualTo = exports.isDateMoreRecentThan = void 0; exports.isDateMoreRecentThan = isDateMoreRecentThan;
exports.isDateEqualTo = isDateEqualTo;
function isDateMoreRecentThan(date, comparedDate, equalityToleranceInSeconds = 0) { function isDateMoreRecentThan(date, comparedDate, equalityToleranceInSeconds = 0) {
if (equalityToleranceInSeconds > 0) { if (equalityToleranceInSeconds > 0) {
const areDatesEqual = isDateEqualTo(date, comparedDate, equalityToleranceInSeconds); const areDatesEqual = isDateEqualTo(date, comparedDate, equalityToleranceInSeconds);
@@ -2331,14 +2370,12 @@ function isDateMoreRecentThan(date, comparedDate, equalityToleranceInSeconds = 0
} }
return date > comparedDate; return date > comparedDate;
} }
exports.isDateMoreRecentThan = isDateMoreRecentThan;
function isDateEqualTo(date, otherDate, toleranceInSeconds) { function isDateEqualTo(date, otherDate, toleranceInSeconds) {
const timestamp = date.getTime(); const timestamp = date.getTime();
const otherTimestamp = otherDate.getTime(); const otherTimestamp = otherDate.getTime();
const deltaInSeconds = Math.abs(timestamp - otherTimestamp) / 1000; const deltaInSeconds = Math.abs(timestamp - otherTimestamp) / 1000;
return deltaInSeconds <= toleranceInSeconds; return deltaInSeconds <= toleranceInSeconds;
} }
exports.isDateEqualTo = isDateEqualTo;
/***/ }), /***/ }),
@@ -2349,7 +2386,7 @@ exports.isDateEqualTo = isDateEqualTo;
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isValidDate = void 0; exports.isValidDate = isValidDate;
/** /**
* @description * @description
* Check if a date is valid * Check if a date is valid
@@ -2367,7 +2404,6 @@ function isValidDate(date) {
} }
return false; return false;
} }
exports.isValidDate = isValidDate;
/***/ }), /***/ }),
@@ -2378,7 +2414,7 @@ exports.isValidDate = isValidDate;
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getSortField = void 0; exports.getSortField = getSortField;
function getSortField(sortOption) { function getSortField(sortOption) {
return sortOption === 'updated' return sortOption === 'updated'
? 'updated' ? 'updated'
@@ -2386,7 +2422,6 @@ function getSortField(sortOption) {
? 'comments' ? 'comments'
: 'created'; : 'created';
} }
exports.getSortField = getSortField;
/***/ }), /***/ }),
@@ -2397,11 +2432,10 @@ exports.getSortField = getSortField;
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isBoolean = void 0; exports.isBoolean = isBoolean;
function isBoolean(value) { function isBoolean(value) {
return value === true || value === false; return value === true || value === false;
} }
exports.isBoolean = isBoolean;
/***/ }), /***/ }),
@@ -2412,7 +2446,7 @@ exports.isBoolean = isBoolean;
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isLabeled = void 0; exports.isLabeled = isLabeled;
const clean_label_1 = __nccwpck_require__(67752); const clean_label_1 = __nccwpck_require__(67752);
/** /**
* @description * @description
@@ -2428,7 +2462,6 @@ function isLabeled(issue, label) {
return (0, clean_label_1.cleanLabel)(label) === (0, clean_label_1.cleanLabel)(issueLabel.name); return (0, clean_label_1.cleanLabel)(label) === (0, clean_label_1.cleanLabel)(issueLabel.name);
}); });
} }
exports.isLabeled = isLabeled;
/***/ }), /***/ }),
@@ -2439,11 +2472,10 @@ exports.isLabeled = isLabeled;
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isPullRequest = void 0; exports.isPullRequest = isPullRequest;
function isPullRequest(issue) { function isPullRequest(issue) {
return !!issue.pull_request; return !!issue.pull_request;
} }
exports.isPullRequest = isPullRequest;
/***/ }), /***/ }),
@@ -2454,11 +2486,10 @@ exports.isPullRequest = isPullRequest;
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.shouldMarkWhenStale = void 0; exports.shouldMarkWhenStale = shouldMarkWhenStale;
function shouldMarkWhenStale(daysBeforeStale) { function shouldMarkWhenStale(daysBeforeStale) {
return daysBeforeStale >= 0; return daysBeforeStale >= 0;
} }
exports.shouldMarkWhenStale = shouldMarkWhenStale;
/***/ }), /***/ }),
@@ -2469,7 +2500,7 @@ exports.shouldMarkWhenStale = shouldMarkWhenStale;
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.wordsToList = void 0; exports.wordsToList = wordsToList;
/** /**
* @description * @description
* Transform a string of comma separated words * Transform a string of comma separated words
@@ -2492,7 +2523,6 @@ function wordsToList(words) {
} }
return words.split(',').map((word) => word.trim()); return words.split(',').map((word) => word.trim());
} }
exports.wordsToList = wordsToList;
/***/ }), /***/ }),
@@ -2518,13 +2548,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) { }) : function(o, v) {
o["default"] = v; o["default"] = v;
}); });
var __importStar = (this && this.__importStar) || function (mod) { var __importStar = (this && this.__importStar) || (function () {
if (mod && mod.__esModule) return mod; var ownKeys = function(o) {
var result = {}; ownKeys = Object.getOwnPropertyNames || function (o) {
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); var ar = [];
__setModuleDefault(result, mod); for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return result; return ar;
}; };
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
__setModuleDefault(result, mod);
return result;
};
})();
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) { return new (P || (P = Promise))(function (resolve, reject) {
@@ -15918,7 +15958,7 @@ class HttpClient {
if (this._keepAlive && useProxy) { if (this._keepAlive && useProxy) {
agent = this._proxyAgent; agent = this._proxyAgent;
} }
if (this._keepAlive && !useProxy) { if (!useProxy) {
agent = this._agent; agent = this._agent;
} }
// if agent is already assigned use that agent. // if agent is already assigned use that agent.
@@ -15950,16 +15990,12 @@ class HttpClient {
agent = tunnelAgent(agentOptions); agent = tunnelAgent(agentOptions);
this._proxyAgent = agent; this._proxyAgent = agent;
} }
// if reusing agent across request and tunneling agent isn't assigned create a new agent // if tunneling agent isn't assigned create a new agent
if (this._keepAlive && !agent) { if (!agent) {
const options = { keepAlive: this._keepAlive, maxSockets }; const options = { keepAlive: this._keepAlive, maxSockets };
agent = usingSsl ? new https.Agent(options) : new http.Agent(options); agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
this._agent = agent; this._agent = agent;
} }
// if not using private agent and tunnel agent isn't setup then use global agent
if (!agent) {
agent = usingSsl ? https.globalAgent : http.globalAgent;
}
if (usingSsl && this._ignoreSslError) { if (usingSsl && this._ignoreSslError) {
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
// http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
@@ -15981,7 +16017,7 @@ class HttpClient {
} }
const usingSsl = parsedUrl.protocol === 'https:'; const usingSsl = parsedUrl.protocol === 'https:';
proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && { proxyAgent = new undici_1.ProxyAgent(Object.assign({ uri: proxyUrl.href, pipelining: !this._keepAlive ? 0 : 1 }, ((proxyUrl.username || proxyUrl.password) && {
token: `${proxyUrl.username}:${proxyUrl.password}` token: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}`
}))); })));
this._proxyAgentDispatcher = proxyAgent; this._proxyAgentDispatcher = proxyAgent;
if (usingSsl && this._ignoreSslError) { if (usingSsl && this._ignoreSslError) {
@@ -16095,11 +16131,11 @@ function getProxyUrl(reqUrl) {
})(); })();
if (proxyVar) { if (proxyVar) {
try { try {
return new URL(proxyVar); return new DecodedURL(proxyVar);
} }
catch (_a) { catch (_a) {
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
return new URL(`http://${proxyVar}`); return new DecodedURL(`http://${proxyVar}`);
} }
} }
else { else {
@@ -16158,6 +16194,19 @@ function isLoopbackAddress(host) {
hostLower.startsWith('[::1]') || hostLower.startsWith('[::1]') ||
hostLower.startsWith('[0:0:0:0:0:0:0:1]')); hostLower.startsWith('[0:0:0:0:0:0:0:1]'));
} }
class DecodedURL extends URL {
constructor(url, base) {
super(url, base);
this._decodedUsername = decodeURIComponent(super.username);
this._decodedPassword = decodeURIComponent(super.password);
}
get username() {
return this._decodedUsername;
}
get password() {
return this._decodedPassword;
}
}
//# sourceMappingURL=proxy.js.map //# sourceMappingURL=proxy.js.map
/***/ }), /***/ }),
@@ -20311,6 +20360,7 @@ __export(dist_src_exports, {
retry: () => retry retry: () => retry
}); });
module.exports = __toCommonJS(dist_src_exports); module.exports = __toCommonJS(dist_src_exports);
var import_core = __nccwpck_require__(76762);
// pkg/dist-src/error-request.js // pkg/dist-src/error-request.js
async function errorRequest(state, octokit, error, options) { async function errorRequest(state, octokit, error, options) {
@@ -20327,7 +20377,7 @@ async function errorRequest(state, octokit, error, options) {
// pkg/dist-src/wrap-request.js // pkg/dist-src/wrap-request.js
var import_light = __toESM(__nccwpck_require__(11174)); var import_light = __toESM(__nccwpck_require__(11174));
var import_request_error = __nccwpck_require__(10537); var import_request_error = __nccwpck_require__(68036);
async function wrapRequest(state, octokit, request, options) { async function wrapRequest(state, octokit, request, options) {
const limiter = new import_light.default(); const limiter = new import_light.default();
limiter.on("failed", function(error, info) { limiter.on("failed", function(error, info) {
@@ -20358,13 +20408,13 @@ async function requestWithGraphqlErrorHandling(state, octokit, request, options)
} }
// pkg/dist-src/index.js // pkg/dist-src/index.js
var VERSION = "4.1.6"; var VERSION = "5.0.5";
function retry(octokit, octokitOptions) { function retry(octokit, octokitOptions) {
const state = Object.assign( const state = Object.assign(
{ {
enabled: true, enabled: true,
retryAfterBaseValue: 1e3, retryAfterBaseValue: 1e3,
doNotRetry: [400, 401, 403, 404, 422], doNotRetry: [400, 401, 403, 404, 422, 451],
retries: 3 retries: 3
}, },
octokitOptions.retry octokitOptions.retry
@@ -20390,6 +20440,104 @@ retry.VERSION = VERSION;
0 && (0); 0 && (0);
/***/ }),
/***/ 68036:
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// pkg/dist-src/index.js
var dist_src_exports = {};
__export(dist_src_exports, {
RequestError: () => RequestError
});
module.exports = __toCommonJS(dist_src_exports);
var import_deprecation = __nccwpck_require__(58932);
var import_once = __toESM(__nccwpck_require__(1223));
var logOnceCode = (0, import_once.default)((deprecation) => console.warn(deprecation));
var logOnceHeaders = (0, import_once.default)((deprecation) => console.warn(deprecation));
var RequestError = class extends Error {
constructor(message, statusCode, options) {
super(message);
if (Error.captureStackTrace) {
Error.captureStackTrace(this, this.constructor);
}
this.name = "HttpError";
this.status = statusCode;
let headers;
if ("headers" in options && typeof options.headers !== "undefined") {
headers = options.headers;
}
if ("response" in options) {
this.response = options.response;
headers = options.response.headers;
}
const requestCopy = Object.assign({}, options.request);
if (options.request.headers.authorization) {
requestCopy.headers = Object.assign({}, options.request.headers, {
authorization: options.request.headers.authorization.replace(
/ .*$/,
" [REDACTED]"
)
});
}
requestCopy.url = requestCopy.url.replace(/\bclient_secret=\w+/g, "client_secret=[REDACTED]").replace(/\baccess_token=\w+/g, "access_token=[REDACTED]");
this.request = requestCopy;
Object.defineProperty(this, "code", {
get() {
logOnceCode(
new import_deprecation.Deprecation(
"[@octokit/request-error] `error.code` is deprecated, use `error.status`."
)
);
return statusCode;
}
});
Object.defineProperty(this, "headers", {
get() {
logOnceHeaders(
new import_deprecation.Deprecation(
"[@octokit/request-error] `error.headers` is deprecated, use `error.response.headers`."
)
);
return headers || {};
}
});
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (0);
/***/ }), /***/ }),
/***/ 10537: /***/ 10537:
@@ -28393,14 +28541,17 @@ function useColors() {
return false; return false;
} }
let m;
// Is webkit? http://stackoverflow.com/a/16459606/376773 // Is webkit? http://stackoverflow.com/a/16459606/376773
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
// eslint-disable-next-line no-return-assign
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
// Is firebug? http://stackoverflow.com/a/398120/376773 // Is firebug? http://stackoverflow.com/a/398120/376773
(typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
// Is firefox >= v31? // Is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || (typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) ||
// Double check webkit in userAgent just in case we are in a worker // Double check webkit in userAgent just in case we are in a worker
(typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
} }
@@ -28484,7 +28635,7 @@ function save(namespaces) {
function load() { function load() {
let r; let r;
try { try {
r = exports.storage.getItem('debug'); r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ;
} catch (error) { } catch (error) {
// Swallow // Swallow
// XXX (@Qix-) should we be logging these? // XXX (@Qix-) should we be logging these?
@@ -28710,26 +28861,64 @@ function setup(env) {
createDebug.names = []; createDebug.names = [];
createDebug.skips = []; createDebug.skips = [];
let i; const split = (typeof namespaces === 'string' ? namespaces : '')
const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); .trim()
const len = split.length; .replace(/\s+/g, ',')
.split(',')
.filter(Boolean);
for (i = 0; i < len; i++) { for (const ns of split) {
if (!split[i]) { if (ns[0] === '-') {
// ignore empty strings createDebug.skips.push(ns.slice(1));
continue;
}
namespaces = split[i].replace(/\*/g, '.*?');
if (namespaces[0] === '-') {
createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
} else { } else {
createDebug.names.push(new RegExp('^' + namespaces + '$')); createDebug.names.push(ns);
} }
} }
} }
/**
* Checks if the given string matches a namespace template, honoring
* asterisks as wildcards.
*
* @param {String} search
* @param {String} template
* @return {Boolean}
*/
function matchesTemplate(search, template) {
let searchIndex = 0;
let templateIndex = 0;
let starIndex = -1;
let matchIndex = 0;
while (searchIndex < search.length) {
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
// Match character or proceed with wildcard
if (template[templateIndex] === '*') {
starIndex = templateIndex;
matchIndex = searchIndex;
templateIndex++; // Skip the '*'
} else {
searchIndex++;
templateIndex++;
}
} else if (starIndex !== -1) { // eslint-disable-line no-negated-condition
// Backtrack to the last '*' and try to match more characters
templateIndex = starIndex + 1;
matchIndex++;
searchIndex = matchIndex;
} else {
return false; // No match
}
}
// Handle trailing '*' in template
while (templateIndex < template.length && template[templateIndex] === '*') {
templateIndex++;
}
return templateIndex === template.length;
}
/** /**
* Disable debug output. * Disable debug output.
* *
@@ -28738,8 +28927,8 @@ function setup(env) {
*/ */
function disable() { function disable() {
const namespaces = [ const namespaces = [
...createDebug.names.map(toNamespace), ...createDebug.names,
...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) ...createDebug.skips.map(namespace => '-' + namespace)
].join(','); ].join(',');
createDebug.enable(''); createDebug.enable('');
return namespaces; return namespaces;
@@ -28753,21 +28942,14 @@ function setup(env) {
* @api public * @api public
*/ */
function enabled(name) { function enabled(name) {
if (name[name.length - 1] === '*') { for (const skip of createDebug.skips) {
return true; if (matchesTemplate(name, skip)) {
}
let i;
let len;
for (i = 0, len = createDebug.skips.length; i < len; i++) {
if (createDebug.skips[i].test(name)) {
return false; return false;
} }
} }
for (i = 0, len = createDebug.names.length; i < len; i++) { for (const ns of createDebug.names) {
if (createDebug.names[i].test(name)) { if (matchesTemplate(name, ns)) {
return true; return true;
} }
} }
@@ -28775,19 +28957,6 @@ function setup(env) {
return false; return false;
} }
/**
* Convert regexp to namespace
*
* @param {RegExp} regxep
* @return {String} namespace
* @api private
*/
function toNamespace(regexp) {
return regexp.toString()
.substring(2, regexp.toString().length - 2)
.replace(/\.\*\?$/, '*');
}
/** /**
* Coerce `val`. * Coerce `val`.
* *
@@ -29029,11 +29198,11 @@ function getDate() {
} }
/** /**
* Invokes `util.format()` with the specified arguments and writes to stderr. * Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr.
*/ */
function log(...args) { function log(...args) {
return process.stderr.write(util.format(...args) + '\n'); return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n');
} }
/** /**
@@ -30847,7 +31016,7 @@ var y = d * 365.25;
* @api public * @api public
*/ */
module.exports = function(val, options) { module.exports = function (val, options) {
options = options || {}; options = options || {};
var type = typeof val; var type = typeof val;
if (type === 'string' && val.length > 0) { if (type === 'string' && val.length > 0) {
@@ -90189,7 +90358,7 @@ Dicer.prototype._write = function (data, encoding, cb) {
if (this._headerFirst && this._isPreamble) { if (this._headerFirst && this._isPreamble) {
if (!this._part) { if (!this._part) {
this._part = new PartStream(this._partOpts) this._part = new PartStream(this._partOpts)
if (this._events.preamble) { this.emit('preamble', this._part) } else { this._ignore() } if (this.listenerCount('preamble') !== 0) { this.emit('preamble', this._part) } else { this._ignore() }
} }
const r = this._hparser.push(data) const r = this._hparser.push(data)
if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() } if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() }
@@ -90246,7 +90415,7 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
} }
} }
if (this._dashes === 2) { if (this._dashes === 2) {
if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)) } if ((start + i) < end && this.listenerCount('trailer') !== 0) { this.emit('trailer', data.slice(start + i, end)) }
this.reset() this.reset()
this._finished = true this._finished = true
// no more parts will be added // no more parts will be added
@@ -90264,7 +90433,13 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
this._part._read = function (n) { this._part._read = function (n) {
self._unpause() self._unpause()
} }
if (this._isPreamble && this._events.preamble) { this.emit('preamble', this._part) } else if (this._isPreamble !== true && this._events.part) { this.emit('part', this._part) } else { this._ignore() } if (this._isPreamble && this.listenerCount('preamble') !== 0) {
this.emit('preamble', this._part)
} else if (this._isPreamble !== true && this.listenerCount('part') !== 0) {
this.emit('part', this._part)
} else {
this._ignore()
}
if (!this._isPreamble) { this._inHeader = true } if (!this._isPreamble) { this._inHeader = true }
} }
if (data && start < end && !this._ignoreData) { if (data && start < end && !this._ignoreData) {
@@ -90947,7 +91122,7 @@ function Multipart (boy, cfg) {
++nfiles ++nfiles
if (!boy._events.file) { if (boy.listenerCount('file') === 0) {
self.parser._ignore() self.parser._ignore()
return return
} }
@@ -91476,7 +91651,7 @@ const decoders = {
if (textDecoders.has(this.toString())) { if (textDecoders.has(this.toString())) {
try { try {
return textDecoders.get(this).decode(data) return textDecoders.get(this).decode(data)
} catch (e) { } } catch {}
} }
return typeof data === 'string' return typeof data === 'string'
? data ? data

1959
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -41,7 +41,7 @@
"@actions/core": "^1.11.1", "@actions/core": "^1.11.1",
"@actions/github": "^7.0.0", "@actions/github": "^7.0.0",
"@octokit/core": "^5.2.0", "@octokit/core": "^5.2.0",
"@octokit/plugin-retry": "^4.1.1", "@octokit/plugin-retry": "^5.0.5",
"lodash.deburr": "^4.1.0", "lodash.deburr": "^4.1.0",
"semver": "^7.5.4" "semver": "^7.5.4"
}, },
@@ -61,7 +61,7 @@
"jest": "^29.6.2", "jest": "^29.6.2",
"jest-circus": "^29.5.0", "jest-circus": "^29.5.0",
"jest-silent-reporter": "^0.5.0", "jest-silent-reporter": "^0.5.0",
"js-yaml": "^4.1.1", "js-yaml": "^4.1.0",
"prettier": "^2.8.7", "prettier": "^2.8.7",
"standard-version": "^9.3.1", "standard-version": "^9.3.1",
"terminal-link": "^2.1.1", "terminal-link": "^2.1.1",