diff --git a/dist/index.js b/dist/index.js index 3dcdc3bd6c2..1b988f1fc55 100644 --- a/dist/index.js +++ b/dist/index.js @@ -11246,7 +11246,7 @@ module.exports = Dispatcher "use strict"; -const Busboy = __nccwpck_require__(6783) +const Busboy = __nccwpck_require__(6954) const util = __nccwpck_require__(143) const { ReadableStreamFrom, @@ -26491,7 +26491,7 @@ module.exports = require("zlib"); /***/ }), -/***/ 4712: +/***/ 5992: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; @@ -26500,10 +26500,10 @@ module.exports = require("zlib"); const WritableStream = (__nccwpck_require__(4492).Writable) const inherits = (__nccwpck_require__(7261).inherits) -const StreamSearch = __nccwpck_require__(2817) +const StreamSearch = __nccwpck_require__(3304) -const PartStream = __nccwpck_require__(501) -const HeaderParser = __nccwpck_require__(1233) +const PartStream = __nccwpck_require__(4215) +const HeaderParser = __nccwpck_require__(5412) const DASH = 45 const B_ONEDASH = Buffer.from('-') @@ -26575,7 +26575,7 @@ Dicer.prototype._write = function (data, encoding, cb) { if (this._headerFirst && this._isPreamble) { if (!this._part) { 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) if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() } @@ -26632,7 +26632,7 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) { } } 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._finished = true // no more parts will be added @@ -26650,7 +26650,13 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) { this._part._read = function (n) { 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 (data && start < end && !this._ignoreData) { @@ -26706,7 +26712,7 @@ module.exports = Dicer /***/ }), -/***/ 1233: +/***/ 5412: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; @@ -26714,9 +26720,9 @@ module.exports = Dicer const EventEmitter = (__nccwpck_require__(5673).EventEmitter) const inherits = (__nccwpck_require__(7261).inherits) -const getLimit = __nccwpck_require__(8689) +const getLimit = __nccwpck_require__(2160) -const StreamSearch = __nccwpck_require__(2817) +const StreamSearch = __nccwpck_require__(3304) const B_DCRLF = Buffer.from('\r\n\r\n') const RE_CRLF = /\r\n/g @@ -26814,7 +26820,7 @@ module.exports = HeaderParser /***/ }), -/***/ 501: +/***/ 4215: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; @@ -26835,7 +26841,7 @@ module.exports = PartStream /***/ }), -/***/ 2817: +/***/ 3304: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; @@ -27071,7 +27077,7 @@ module.exports = SBMH /***/ }), -/***/ 6783: +/***/ 6954: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; @@ -27079,11 +27085,11 @@ module.exports = SBMH const WritableStream = (__nccwpck_require__(4492).Writable) const { inherits } = __nccwpck_require__(7261) -const Dicer = __nccwpck_require__(4712) +const Dicer = __nccwpck_require__(5992) -const MultipartParser = __nccwpck_require__(7197) -const UrlencodedParser = __nccwpck_require__(3373) -const parseParams = __nccwpck_require__(5764) +const MultipartParser = __nccwpck_require__(6311) +const UrlencodedParser = __nccwpck_require__(6173) +const parseParams = __nccwpck_require__(3576) function Busboy (opts) { if (!(this instanceof Busboy)) { return new Busboy(opts) } @@ -27164,7 +27170,7 @@ module.exports.Dicer = Dicer /***/ }), -/***/ 7197: +/***/ 6311: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; @@ -27180,12 +27186,12 @@ module.exports.Dicer = Dicer const { Readable } = __nccwpck_require__(4492) const { inherits } = __nccwpck_require__(7261) -const Dicer = __nccwpck_require__(4712) +const Dicer = __nccwpck_require__(5992) -const parseParams = __nccwpck_require__(5764) -const decodeText = __nccwpck_require__(9028) -const basename = __nccwpck_require__(3180) -const getLimit = __nccwpck_require__(8689) +const parseParams = __nccwpck_require__(3576) +const decodeText = __nccwpck_require__(884) +const basename = __nccwpck_require__(6504) +const getLimit = __nccwpck_require__(2160) const RE_BOUNDARY = /^boundary$/i const RE_FIELD = /^form-data$/i @@ -27333,7 +27339,7 @@ function Multipart (boy, cfg) { ++nfiles - if (!boy._events.file) { + if (boy.listenerCount('file') === 0) { self.parser._ignore() return } @@ -27478,15 +27484,15 @@ module.exports = Multipart /***/ }), -/***/ 3373: +/***/ 6173: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; -const Decoder = __nccwpck_require__(7306) -const decodeText = __nccwpck_require__(9028) -const getLimit = __nccwpck_require__(8689) +const Decoder = __nccwpck_require__(9687) +const decodeText = __nccwpck_require__(884) +const getLimit = __nccwpck_require__(2160) const RE_CHARSET = /^charset$/i @@ -27676,7 +27682,7 @@ module.exports = UrlEncoded /***/ }), -/***/ 7306: +/***/ 9687: /***/ ((module) => { "use strict"; @@ -27738,7 +27744,7 @@ module.exports = Decoder /***/ }), -/***/ 3180: +/***/ 6504: /***/ ((module) => { "use strict"; @@ -27760,7 +27766,7 @@ module.exports = function basename (path) { /***/ }), -/***/ 9028: +/***/ 884: /***/ (function(module) { "use strict"; @@ -27862,7 +27868,7 @@ const decoders = { if (textDecoders.has(this.toString())) { try { return textDecoders.get(this).decode(data) - } catch (e) { } + } catch {} } return typeof data === 'string' ? data @@ -27882,7 +27888,7 @@ module.exports = decodeText /***/ }), -/***/ 8689: +/***/ 2160: /***/ ((module) => { "use strict"; @@ -27906,14 +27912,14 @@ module.exports = function getLimit (limits, name, defaultLimit) { /***/ }), -/***/ 5764: +/***/ 3576: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { "use strict"; /* eslint-disable object-property-newline */ -const decodeText = __nccwpck_require__(9028) +const decodeText = __nccwpck_require__(884) const RE_ENCODED = /%[a-fA-F0-9][a-fA-F0-9]/g diff --git a/package.json b/package.json index b3debbba01e..7c9f18e23d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "github-action", - "version": "40.1.2", + "version": "40.1.3", "private": true, "description": "GitHub Action to run Renovate self-hosted.", "homepage": "https://github.com/renovatebot/github-action#readme",