0
0
Fork 0
mirror of https://github.com/DavidAnson/markdownlint-cli2-action.git synced 2024-11-21 22:01:30 +01:00

Freshen generated index.js file.

This commit is contained in:
David Anson 2024-02-07 22:35:27 -08:00
parent 1a7ff57168
commit 4f4a9fa88c

56
dist/index.js vendored
View file

@ -6126,15 +6126,15 @@ exports.isEmpty = isEmpty;
var reusify = __nccwpck_require__(2113) var reusify = __nccwpck_require__(2113)
function fastqueue (context, worker, concurrency) { function fastqueue (context, worker, _concurrency) {
if (typeof context === 'function') { if (typeof context === 'function') {
concurrency = worker _concurrency = worker
worker = context worker = context
context = null context = null
} }
if (concurrency < 1) { if (!(_concurrency >= 1)) {
throw new Error('fastqueue concurrency must be greater than 1') throw new Error('fastqueue concurrency must be equal to or greater than 1')
} }
var cache = reusify(Task) var cache = reusify(Task)
@ -6149,7 +6149,23 @@ function fastqueue (context, worker, concurrency) {
saturated: noop, saturated: noop,
pause: pause, pause: pause,
paused: false, paused: false,
concurrency: concurrency,
get concurrency () {
return _concurrency
},
set concurrency (value) {
if (!(value >= 1)) {
throw new Error('fastqueue concurrency must be equal to or greater than 1')
}
_concurrency = value
if (self.paused) return
for (; queueHead && _running < _concurrency;) {
_running++
release()
}
},
running: running, running: running,
resume: resume, resume: resume,
idle: idle, idle: idle,
@ -6199,7 +6215,12 @@ function fastqueue (context, worker, concurrency) {
function resume () { function resume () {
if (!self.paused) return if (!self.paused) return
self.paused = false self.paused = false
for (var i = 0; i < self.concurrency; i++) { if (queueHead === null) {
_running++
release()
return
}
for (; queueHead && _running < _concurrency;) {
_running++ _running++
release() release()
} }
@ -6218,7 +6239,7 @@ function fastqueue (context, worker, concurrency) {
current.callback = done || noop current.callback = done || noop
current.errorHandler = errorHandler current.errorHandler = errorHandler
if (_running === self.concurrency || self.paused) { if (_running >= _concurrency || self.paused) {
if (queueTail) { if (queueTail) {
queueTail.next = current queueTail.next = current
queueTail = current queueTail = current
@ -6242,7 +6263,7 @@ function fastqueue (context, worker, concurrency) {
current.callback = done || noop current.callback = done || noop
current.errorHandler = errorHandler current.errorHandler = errorHandler
if (_running === self.concurrency || self.paused) { if (_running >= _concurrency || self.paused) {
if (queueHead) { if (queueHead) {
current.next = queueHead current.next = queueHead
queueHead = current queueHead = current
@ -6262,7 +6283,7 @@ function fastqueue (context, worker, concurrency) {
cache.release(holder) cache.release(holder)
} }
var next = queueHead var next = queueHead
if (next) { if (next && _running <= _concurrency) {
if (!self.paused) { if (!self.paused) {
if (queueTail === queueHead) { if (queueTail === queueHead) {
queueTail = null queueTail = null
@ -6325,9 +6346,9 @@ function Task () {
} }
} }
function queueAsPromised (context, worker, concurrency) { function queueAsPromised (context, worker, _concurrency) {
if (typeof context === 'function') { if (typeof context === 'function') {
concurrency = worker _concurrency = worker
worker = context worker = context
context = null context = null
} }
@ -6339,7 +6360,7 @@ function queueAsPromised (context, worker, concurrency) {
}, cb) }, cb)
} }
var queue = fastqueue(context, asyncWrapper, concurrency) var queue = fastqueue(context, asyncWrapper, _concurrency)
var pushCb = queue.push var pushCb = queue.push
var unshiftCb = queue.unshift var unshiftCb = queue.unshift
@ -6743,6 +6764,14 @@ const cleanRangeBackSlash = slashes => {
// '`foo/`' should not continue with the '`..`' // '`foo/`' should not continue with the '`..`'
const REPLACERS = [ const REPLACERS = [
[
// remove BOM
// TODO:
// Other similar zero-width characters?
/^\uFEFF/,
() => EMPTY
],
// > Trailing spaces are ignored unless they are quoted with backslash ("\") // > Trailing spaces are ignored unless they are quoted with backslash ("\")
[ [
// (a\ ) -> (a ) // (a\ ) -> (a )
@ -32982,6 +33011,9 @@ function httpRedirectFetch (fetchParams, response) {
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name // https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
request.headersList.delete('authorization') request.headersList.delete('authorization')
// https://fetch.spec.whatwg.org/#authentication-entries
request.headersList.delete('proxy-authorization', true)
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement. // "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
request.headersList.delete('cookie') request.headersList.delete('cookie')
request.headersList.delete('host') request.headersList.delete('host')