Compare commits

..

3 Commits

Author SHA1 Message Date
dependabot[bot]
fa53299cb8 build(deps-dev): bump lodash from 4.17.21 to 4.17.23
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.21 to 4.17.23.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.21...4.17.23)

---
updated-dependencies:
- dependency-name: lodash
  dependency-version: 4.17.23
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-02 17:25:45 +00:00
Chiranjib Swain
dcd2b9469d Fix punycode and url.parse Deprecation Warnings (#1312)
* chore: update dependencies and add new license files for octokit packages

* chore: update license files and remove obsolete dependencies
2026-02-02 11:24:18 -06:00
dependabot[bot]
d6f8a33132 build(deps-dev): bump js-yaml from 4.1.0 to 4.1.1 (#1304)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 4.1.0 to 4.1.1.
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/4.1.0...4.1.1)

---
updated-dependencies:
- dependency-name: js-yaml
  dependency-version: 4.1.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-21 21:47:42 -06:00
13 changed files with 908 additions and 1547 deletions

View File

@@ -10,7 +10,6 @@ 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.3 version: 2.2.0
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.1 version: 2.1.0
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: 5.0.5 version: 4.1.6
type: npm type: npm
summary: Automatic retry plugin for octokit summary: Automatic retry plugin for octokit
homepage: homepage:

View File

@@ -1,34 +0,0 @@
---
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: 10.0.0 version: 9.3.2
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.4.3 version: 4.3.4
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.3 version: 2.1.2
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) 2020 Vercel, Inc. Copyright (c) 2016 Zeit, 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.7.3 version: 7.6.3
type: npm type: npm
summary: The semantic version parser used by npm. summary: The semantic version parser used by npm.
homepage: homepage:

395
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) {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
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,23 +348,13 @@ 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 () { var __importStar = (this && this.__importStar) || function (mod) {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; 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]); if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; 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) {
@@ -440,9 +430,9 @@ class IssuesProcessor {
this.statistics = new statistics_1.Statistics(); this.statistics = new statistics_1.Statistics();
} }
} }
processIssues() { processIssues(page = 1) {
return __awaiter(this, arguments, void 0, function* (page = 1) {
var _a, _b; var _a, _b;
return __awaiter(this, void 0, void 0, function* () {
// 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) {
@@ -484,8 +474,8 @@ class IssuesProcessor {
}); });
} }
processIssue(issue, labelsToAddWhenUnstale, labelsToRemoveWhenUnstale, labelsToRemoveWhenStale) { processIssue(issue, labelsToAddWhenUnstale, labelsToRemoveWhenUnstale, labelsToRemoveWhenStale) {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
(_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)}`);
@@ -682,8 +672,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) {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
// 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);
@@ -704,8 +694,8 @@ class IssuesProcessor {
} }
// grab issues from github in batches of 100 // grab issues from github in batches of 100
getIssues(page) { getIssues(page) {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
try { try {
this.operations.consumeOperation(); this.operations.consumeOperation();
const issueResult = yield this.client.rest.issues.listForRepo({ const issueResult = yield this.client.rest.issues.listForRepo({
@@ -728,8 +718,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) {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
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);
@@ -752,8 +742,8 @@ class IssuesProcessor {
}); });
} }
getPullRequest(issue) { getPullRequest(issue) {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
const issueLogger = new issue_logger_1.IssueLogger(issue); const issueLogger = new issue_logger_1.IssueLogger(issue);
try { try {
this._consumeIssueOperation(issue); this._consumeIssueOperation(issue);
@@ -771,8 +761,8 @@ class IssuesProcessor {
}); });
} }
getRateLimit() { getRateLimit() {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
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();
@@ -871,8 +861,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) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c; var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () {
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);
@@ -917,8 +907,8 @@ class IssuesProcessor {
} }
// Close an issue based on staleness // Close an issue based on staleness
_closeIssue(issue, closeMessage, closeLabel) { _closeIssue(issue, closeMessage, closeLabel) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c; var _a, _b, _c;
return __awaiter(this, void 0, void 0, function* () {
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);
@@ -977,8 +967,8 @@ class IssuesProcessor {
} }
// Delete the branch on closed pull request // Delete the branch on closed pull request
_deleteBranch(issue) { _deleteBranch(issue) {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
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 $
@@ -1016,9 +1006,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_2, label_1) { _removeLabel(issue, label, isSubStep = false) {
return __awaiter(this, arguments, void 0, function* (issue, label, isSubStep = false) {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
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);
@@ -1114,8 +1104,8 @@ class IssuesProcessor {
}); });
} }
_addLabelsWhenUnstale(issue, labelsToAdd) { _addLabelsWhenUnstale(issue, labelsToAdd) {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
if (!labelsToAdd.length) { if (!labelsToAdd.length) {
return; return;
} }
@@ -1140,8 +1130,8 @@ class IssuesProcessor {
}); });
} }
_removeStaleLabel(issue, staleLabel) { _removeStaleLabel(issue, staleLabel) {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
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);
@@ -1149,8 +1139,8 @@ class IssuesProcessor {
}); });
} }
_removeCloseLabel(issue, closeLabel) { _removeCloseLabel(issue, closeLabel) {
return __awaiter(this, void 0, void 0, function* () {
var _a; var _a;
return __awaiter(this, void 0, void 0, function* () {
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) {
@@ -1314,23 +1304,13 @@ 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 () { var __importStar = (this && this.__importStar) || function (mod) {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; 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]); if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; 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) {
@@ -1615,23 +1595,13 @@ 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 () { var __importStar = (this && this.__importStar) || function (mod) {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; 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]); if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; 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) {
@@ -1787,23 +1757,13 @@ 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 () { var __importStar = (this && this.__importStar) || function (mod) {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; 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]); if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; 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) {
@@ -2313,7 +2273,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 = cleanLabel; exports.cleanLabel = void 0;
const lodash_deburr_1 = __importDefault(__nccwpck_require__(61601)); const lodash_deburr_1 = __importDefault(__nccwpck_require__(61601));
/** /**
* @description * @description
@@ -2326,6 +2286,7 @@ 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;
/***/ }), /***/ }),
@@ -2336,7 +2297,7 @@ function cleanLabel(label) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getHumanizedDate = getHumanizedDate; exports.getHumanizedDate = void 0;
function getHumanizedDate(date) { function getHumanizedDate(date) {
const year = date.getFullYear(); const year = date.getFullYear();
let month = `${date.getMonth() + 1}`; let month = `${date.getMonth() + 1}`;
@@ -2349,6 +2310,7 @@ function getHumanizedDate(date) {
} }
return [day, month, year].join('-'); return [day, month, year].join('-');
} }
exports.getHumanizedDate = getHumanizedDate;
/***/ }), /***/ }),
@@ -2361,8 +2323,7 @@ function getHumanizedDate(date) {
/// 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.isDateMoreRecentThan = isDateMoreRecentThan; exports.isDateEqualTo = exports.isDateMoreRecentThan = void 0;
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);
@@ -2370,12 +2331,14 @@ 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;
/***/ }), /***/ }),
@@ -2386,7 +2349,7 @@ function isDateEqualTo(date, otherDate, toleranceInSeconds) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isValidDate = isValidDate; exports.isValidDate = void 0;
/** /**
* @description * @description
* Check if a date is valid * Check if a date is valid
@@ -2404,6 +2367,7 @@ function isValidDate(date) {
} }
return false; return false;
} }
exports.isValidDate = isValidDate;
/***/ }), /***/ }),
@@ -2414,7 +2378,7 @@ function isValidDate(date) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.getSortField = getSortField; exports.getSortField = void 0;
function getSortField(sortOption) { function getSortField(sortOption) {
return sortOption === 'updated' return sortOption === 'updated'
? 'updated' ? 'updated'
@@ -2422,6 +2386,7 @@ function getSortField(sortOption) {
? 'comments' ? 'comments'
: 'created'; : 'created';
} }
exports.getSortField = getSortField;
/***/ }), /***/ }),
@@ -2432,10 +2397,11 @@ function getSortField(sortOption) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isBoolean = isBoolean; exports.isBoolean = void 0;
function isBoolean(value) { function isBoolean(value) {
return value === true || value === false; return value === true || value === false;
} }
exports.isBoolean = isBoolean;
/***/ }), /***/ }),
@@ -2446,7 +2412,7 @@ function isBoolean(value) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isLabeled = isLabeled; exports.isLabeled = void 0;
const clean_label_1 = __nccwpck_require__(67752); const clean_label_1 = __nccwpck_require__(67752);
/** /**
* @description * @description
@@ -2462,6 +2428,7 @@ 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;
/***/ }), /***/ }),
@@ -2472,10 +2439,11 @@ function isLabeled(issue, label) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.isPullRequest = isPullRequest; exports.isPullRequest = void 0;
function isPullRequest(issue) { function isPullRequest(issue) {
return !!issue.pull_request; return !!issue.pull_request;
} }
exports.isPullRequest = isPullRequest;
/***/ }), /***/ }),
@@ -2486,10 +2454,11 @@ function isPullRequest(issue) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.shouldMarkWhenStale = shouldMarkWhenStale; exports.shouldMarkWhenStale = void 0;
function shouldMarkWhenStale(daysBeforeStale) { function shouldMarkWhenStale(daysBeforeStale) {
return daysBeforeStale >= 0; return daysBeforeStale >= 0;
} }
exports.shouldMarkWhenStale = shouldMarkWhenStale;
/***/ }), /***/ }),
@@ -2500,7 +2469,7 @@ function shouldMarkWhenStale(daysBeforeStale) {
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", ({ value: true })); Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.wordsToList = wordsToList; exports.wordsToList = void 0;
/** /**
* @description * @description
* Transform a string of comma separated words * Transform a string of comma separated words
@@ -2523,6 +2492,7 @@ function wordsToList(words) {
} }
return words.split(',').map((word) => word.trim()); return words.split(',').map((word) => word.trim());
} }
exports.wordsToList = wordsToList;
/***/ }), /***/ }),
@@ -2548,23 +2518,13 @@ 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 () { var __importStar = (this && this.__importStar) || function (mod) {
var ownKeys = function(o) {
ownKeys = Object.getOwnPropertyNames || function (o) {
var ar = [];
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
return ar;
};
return ownKeys(o);
};
return function (mod) {
if (mod && mod.__esModule) return mod; if (mod && mod.__esModule) return mod;
var result = {}; 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]); if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod); __setModuleDefault(result, mod);
return result; 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) {
@@ -15958,7 +15918,7 @@ class HttpClient {
if (this._keepAlive && useProxy) { if (this._keepAlive && useProxy) {
agent = this._proxyAgent; agent = this._proxyAgent;
} }
if (!useProxy) { if (this._keepAlive && !useProxy) {
agent = this._agent; agent = this._agent;
} }
// if agent is already assigned use that agent. // if agent is already assigned use that agent.
@@ -15990,12 +15950,16 @@ class HttpClient {
agent = tunnelAgent(agentOptions); agent = tunnelAgent(agentOptions);
this._proxyAgent = agent; this._proxyAgent = agent;
} }
// if tunneling agent isn't assigned create a new agent // if reusing agent across request and tunneling agent isn't assigned create a new agent
if (!agent) { if (this._keepAlive && !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
@@ -16017,7 +15981,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: `Basic ${Buffer.from(`${proxyUrl.username}:${proxyUrl.password}`).toString('base64')}` token: `${proxyUrl.username}:${proxyUrl.password}`
}))); })));
this._proxyAgentDispatcher = proxyAgent; this._proxyAgentDispatcher = proxyAgent;
if (usingSsl && this._ignoreSslError) { if (usingSsl && this._ignoreSslError) {
@@ -16131,11 +16095,11 @@ function getProxyUrl(reqUrl) {
})(); })();
if (proxyVar) { if (proxyVar) {
try { try {
return new DecodedURL(proxyVar); return new URL(proxyVar);
} }
catch (_a) { catch (_a) {
if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://')) if (!proxyVar.startsWith('http://') && !proxyVar.startsWith('https://'))
return new DecodedURL(`http://${proxyVar}`); return new URL(`http://${proxyVar}`);
} }
} }
else { else {
@@ -16194,19 +16158,6 @@ 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
/***/ }), /***/ }),
@@ -20360,7 +20311,6 @@ __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) {
@@ -20377,7 +20327,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__(68036); var import_request_error = __nccwpck_require__(10537);
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) {
@@ -20408,13 +20358,13 @@ async function requestWithGraphqlErrorHandling(state, octokit, request, options)
} }
// pkg/dist-src/index.js // pkg/dist-src/index.js
var VERSION = "5.0.5"; var VERSION = "4.1.6";
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, 451], doNotRetry: [400, 401, 403, 404, 422],
retries: 3 retries: 3
}, },
octokitOptions.retry octokitOptions.retry
@@ -20440,104 +20390,6 @@ 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:
@@ -28541,17 +28393,14 @@ 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 && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31) || (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$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+)/));
} }
@@ -28635,7 +28484,7 @@ function save(namespaces) {
function load() { function load() {
let r; let r;
try { try {
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG') ; r = exports.storage.getItem('debug');
} catch (error) { } catch (error) {
// Swallow // Swallow
// XXX (@Qix-) should we be logging these? // XXX (@Qix-) should we be logging these?
@@ -28861,64 +28710,26 @@ function setup(env) {
createDebug.names = []; createDebug.names = [];
createDebug.skips = []; createDebug.skips = [];
const split = (typeof namespaces === 'string' ? namespaces : '') let i;
.trim() const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
.replace(/\s+/g, ',') const len = split.length;
.split(',')
.filter(Boolean);
for (const ns of split) { for (i = 0; i < len; i++) {
if (ns[0] === '-') { if (!split[i]) {
createDebug.skips.push(ns.slice(1)); // ignore empty strings
continue;
}
namespaces = split[i].replace(/\*/g, '.*?');
if (namespaces[0] === '-') {
createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$'));
} else { } else {
createDebug.names.push(ns); createDebug.names.push(new RegExp('^' + namespaces + '$'));
} }
} }
} }
/**
* 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.
* *
@@ -28927,8 +28738,8 @@ function setup(env) {
*/ */
function disable() { function disable() {
const namespaces = [ const namespaces = [
...createDebug.names, ...createDebug.names.map(toNamespace),
...createDebug.skips.map(namespace => '-' + namespace) ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)
].join(','); ].join(',');
createDebug.enable(''); createDebug.enable('');
return namespaces; return namespaces;
@@ -28942,14 +28753,21 @@ function setup(env) {
* @api public * @api public
*/ */
function enabled(name) { function enabled(name) {
for (const skip of createDebug.skips) { if (name[name.length - 1] === '*') {
if (matchesTemplate(name, skip)) { return true;
}
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 (const ns of createDebug.names) { for (i = 0, len = createDebug.names.length; i < len; i++) {
if (matchesTemplate(name, ns)) { if (createDebug.names[i].test(name)) {
return true; return true;
} }
} }
@@ -28957,6 +28775,19 @@ 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`.
* *
@@ -29198,11 +29029,11 @@ function getDate() {
} }
/** /**
* Invokes `util.formatWithOptions()` with the specified arguments and writes to stderr. * Invokes `util.format()` with the specified arguments and writes to stderr.
*/ */
function log(...args) { function log(...args) {
return process.stderr.write(util.formatWithOptions(exports.inspectOpts, ...args) + '\n'); return process.stderr.write(util.format(...args) + '\n');
} }
/** /**
@@ -90358,7 +90189,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.listenerCount('preamble') !== 0) { this.emit('preamble', this._part) } else { this._ignore() } if (this._events.preamble) { 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() }
@@ -90415,7 +90246,7 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
} }
} }
if (this._dashes === 2) { if (this._dashes === 2) {
if ((start + i) < end && this.listenerCount('trailer') !== 0) { this.emit('trailer', data.slice(start + i, end)) } if ((start + i) < end && this._events.trailer) { 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
@@ -90433,13 +90264,7 @@ 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.listenerCount('preamble') !== 0) { 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() }
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) {
@@ -91122,7 +90947,7 @@ function Multipart (boy, cfg) {
++nfiles ++nfiles
if (boy.listenerCount('file') === 0) { if (!boy._events.file) {
self.parser._ignore() self.parser._ignore()
return return
} }
@@ -91651,7 +91476,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 {} } catch (e) { }
} }
return typeof data === 'string' return typeof data === 'string'
? data ? data

1947
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": "^5.0.5", "@octokit/plugin-retry": "^4.1.1",
"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.0", "js-yaml": "^4.1.1",
"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",