diff --git a/dist/index.js b/dist/index.js index 7b482af..7fe0228 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7469,7 +7469,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } -var AggregateError = _interopDefault(__nccwpck_require__(90711)); +var AggregateError = _interopDefault(__nccwpck_require__(61231)); var webhooksMethods = __nccwpck_require__(49768); function ownKeys(object, enumerableOnly) { @@ -7887,61 +7887,6 @@ exports.emitterEventNames = emitterEventNames; //# sourceMappingURL=index.js.map -/***/ }), - -/***/ 90711: -/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { - -"use strict"; - -const indentString = __nccwpck_require__(98043); -const cleanStack = __nccwpck_require__(27972); - -const cleanInternalStack = stack => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ''); - -class AggregateError extends Error { - constructor(errors) { - if (!Array.isArray(errors)) { - throw new TypeError(`Expected input to be an Array, got ${typeof errors}`); - } - - errors = [...errors].map(error => { - if (error instanceof Error) { - return error; - } - - if (error !== null && typeof error === 'object') { - // Handle plain error objects with message property and/or possibly other metadata - return Object.assign(new Error(error.message), error); - } - - return new Error(error); - }); - - let message = errors - .map(error => { - // The `stack` property is not standardized, so we can't assume it exists - return typeof error.stack === 'string' ? cleanInternalStack(cleanStack(error.stack)) : String(error); - }) - .join('\n'); - message = '\n' + indentString(message, 4); - super(message); - - this.name = 'AggregateError'; - - Object.defineProperty(this, '_errors', {value: errors}); - } - - * [Symbol.iterator]() { - for (const error of this._errors) { - yield error; - } - } -} - -module.exports = AggregateError; - - /***/ }), /***/ 93159: @@ -18075,6 +18020,61 @@ function promisify(fn) { exports["default"] = promisify; //# sourceMappingURL=promisify.js.map +/***/ }), + +/***/ 61231: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +const indentString = __nccwpck_require__(98043); +const cleanStack = __nccwpck_require__(27972); + +const cleanInternalStack = stack => stack.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g, ''); + +class AggregateError extends Error { + constructor(errors) { + if (!Array.isArray(errors)) { + throw new TypeError(`Expected input to be an Array, got ${typeof errors}`); + } + + errors = [...errors].map(error => { + if (error instanceof Error) { + return error; + } + + if (error !== null && typeof error === 'object') { + // Handle plain error objects with message property and/or possibly other metadata + return Object.assign(new Error(error.message), error); + } + + return new Error(error); + }); + + let message = errors + .map(error => { + // The `stack` property is not standardized, so we can't assume it exists + return typeof error.stack === 'string' ? cleanInternalStack(cleanStack(error.stack)) : String(error); + }) + .join('\n'); + message = '\n' + indentString(message, 4); + super(message); + + this.name = 'AggregateError'; + + Object.defineProperty(this, '_errors', {value: errors}); + } + + * [Symbol.iterator]() { + for (const error of this._errors) { + yield error; + } + } +} + +module.exports = AggregateError; + + /***/ }), /***/ 62003: diff --git a/package.json b/package.json index aaa663f..4f5ce95 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "conventional-changelog-conventionalcommits": "7.0.2", "nock": "13.3.3", "prettier": "3.0.3", - "semantic-release": "21.1.1", + "semantic-release": "21.1.2", "uvu": "0.5.6" }, "jest": { diff --git a/yarn.lock b/yarn.lock index f44a3ce..358db65 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1310,6 +1310,16 @@ __metadata: languageName: node linkType: hard +"aggregate-error@npm:^5.0.0": + version: 5.0.0 + resolution: "aggregate-error@npm:5.0.0" + dependencies: + clean-stack: ^5.2.0 + indent-string: ^5.0.0 + checksum: 37834eb0dac6ebd05ca8aa82e00deeb65fb7b1462c68ccb620221ba1753640fcb249e46c03401b470701a58826b65426deda83783fc2e8347c4b5037b2724d9b + languageName: node + linkType: hard + "ansi-escapes@npm:^5.0.0": version: 5.0.0 resolution: "ansi-escapes@npm:5.0.0" @@ -1764,6 +1774,15 @@ __metadata: languageName: node linkType: hard +"clean-stack@npm:^5.2.0": + version: 5.2.0 + resolution: "clean-stack@npm:5.2.0" + dependencies: + escape-string-regexp: 5.0.0 + checksum: 9b16c9d56ef673b1666030d04afc5a382c7ec6b5fb8df2dd361090c3ac79273695d6db9867938bb3268903dcebf401e2c6034b2f56f27673f6032b5e89217b81 + languageName: node + linkType: hard + "cli-columns@npm:^4.0.0": version: 4.0.0 resolution: "cli-columns@npm:4.0.0" @@ -2809,7 +2828,7 @@ __metadata: nock: 13.3.3 prettier: 3.0.3 probot: 12.3.1 - semantic-release: 21.1.1 + semantic-release: 21.1.2 uvu: 0.5.6 languageName: unknown linkType: soft @@ -5795,16 +5814,16 @@ __metadata: languageName: node linkType: hard -"semantic-release@npm:21.1.1": - version: 21.1.1 - resolution: "semantic-release@npm:21.1.1" +"semantic-release@npm:21.1.2": + version: 21.1.2 + resolution: "semantic-release@npm:21.1.2" dependencies: "@semantic-release/commit-analyzer": ^10.0.0 "@semantic-release/error": ^4.0.0 "@semantic-release/github": ^9.0.0 "@semantic-release/npm": ^10.0.2 "@semantic-release/release-notes-generator": ^11.0.0 - aggregate-error: ^4.0.1 + aggregate-error: ^5.0.0 cosmiconfig: ^8.0.0 debug: ^4.0.0 env-ci: ^9.0.0 @@ -5829,7 +5848,7 @@ __metadata: yargs: ^17.5.1 bin: semantic-release: bin/semantic-release.js - checksum: 46ebaeac46d7dfe4610617a79b6ceee3b1bd5fb7025cb800ce523b91d22a1f35ff31143164dc4fe7d15a1139488652cde887946b8f33e8839e8ba9875c9f83af + checksum: 8311eeab22e3be4e3b4f7733c984d03fdbd26330f8b0b53377619aefa26a5ce378fa8e8f65252d09d2008f2f492d37d72f45cea1fca40752e75edfd769866c83 languageName: node linkType: hard