mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-17 08:52:37 +00:00
Update dist
$ npm run build $ git add --all $ git commit
This commit is contained in:
parent
2bc165678a
commit
603d093b9e
2 changed files with 65 additions and 65 deletions
68
dist/index.js
vendored
68
dist/index.js
vendored
File diff suppressed because one or more lines are too long
62
dist/index1.js
vendored
62
dist/index1.js
vendored
|
|
@ -10217,7 +10217,7 @@ module.exports = {
|
||||||
|
|
||||||
|
|
||||||
const { parseSetCookie } = __nccwpck_require__(8915)
|
const { parseSetCookie } = __nccwpck_require__(8915)
|
||||||
const { stringify } = __nccwpck_require__(3834)
|
const { stringify, getHeadersList } = __nccwpck_require__(3834)
|
||||||
const { webidl } = __nccwpck_require__(4222)
|
const { webidl } = __nccwpck_require__(4222)
|
||||||
const { Headers } = __nccwpck_require__(6349)
|
const { Headers } = __nccwpck_require__(6349)
|
||||||
|
|
||||||
|
|
@ -10293,13 +10293,14 @@ function getSetCookies (headers) {
|
||||||
|
|
||||||
webidl.brandCheck(headers, Headers, { strict: false })
|
webidl.brandCheck(headers, Headers, { strict: false })
|
||||||
|
|
||||||
const cookies = headers.getSetCookie()
|
const cookies = getHeadersList(headers).cookies
|
||||||
|
|
||||||
if (!cookies) {
|
if (!cookies) {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
|
|
||||||
return cookies.map((pair) => parseSetCookie(pair))
|
// In older versions of undici, cookies is a list of name:value.
|
||||||
|
return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair))
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -10727,15 +10728,14 @@ module.exports = {
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
/***/ 3834:
|
/***/ 3834:
|
||||||
/***/ ((module) => {
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||||
|
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
/**
|
const assert = __nccwpck_require__(2613)
|
||||||
* @param {string} value
|
const { kHeadersList } = __nccwpck_require__(6443)
|
||||||
* @returns {boolean}
|
|
||||||
*/
|
|
||||||
function isCTLExcludingHtab (value) {
|
function isCTLExcludingHtab (value) {
|
||||||
if (value.length === 0) {
|
if (value.length === 0) {
|
||||||
return false
|
return false
|
||||||
|
|
@ -10996,13 +10996,31 @@ function stringify (cookie) {
|
||||||
return out.join('; ')
|
return out.join('; ')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let kHeadersListNode
|
||||||
|
|
||||||
|
function getHeadersList (headers) {
|
||||||
|
if (headers[kHeadersList]) {
|
||||||
|
return headers[kHeadersList]
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!kHeadersListNode) {
|
||||||
|
kHeadersListNode = Object.getOwnPropertySymbols(headers).find(
|
||||||
|
(symbol) => symbol.description === 'headers list'
|
||||||
|
)
|
||||||
|
|
||||||
|
assert(kHeadersListNode, 'Headers cannot be parsed')
|
||||||
|
}
|
||||||
|
|
||||||
|
const headersList = headers[kHeadersListNode]
|
||||||
|
assert(headersList)
|
||||||
|
|
||||||
|
return headersList
|
||||||
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
isCTLExcludingHtab,
|
isCTLExcludingHtab,
|
||||||
validateCookieName,
|
stringify,
|
||||||
validateCookiePath,
|
getHeadersList
|
||||||
validateCookieValue,
|
|
||||||
toIMFDate,
|
|
||||||
stringify
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -15006,7 +15024,6 @@ const {
|
||||||
isValidHeaderName,
|
isValidHeaderName,
|
||||||
isValidHeaderValue
|
isValidHeaderValue
|
||||||
} = __nccwpck_require__(5523)
|
} = __nccwpck_require__(5523)
|
||||||
const util = __nccwpck_require__(9023)
|
|
||||||
const { webidl } = __nccwpck_require__(4222)
|
const { webidl } = __nccwpck_require__(4222)
|
||||||
const assert = __nccwpck_require__(2613)
|
const assert = __nccwpck_require__(2613)
|
||||||
|
|
||||||
|
|
@ -15560,9 +15577,6 @@ Object.defineProperties(Headers.prototype, {
|
||||||
[Symbol.toStringTag]: {
|
[Symbol.toStringTag]: {
|
||||||
value: 'Headers',
|
value: 'Headers',
|
||||||
configurable: true
|
configurable: true
|
||||||
},
|
|
||||||
[util.inspect.custom]: {
|
|
||||||
enumerable: false
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
@ -24739,20 +24753,6 @@ class Pool extends PoolBase {
|
||||||
? { ...options.interceptors }
|
? { ...options.interceptors }
|
||||||
: undefined
|
: undefined
|
||||||
this[kFactory] = factory
|
this[kFactory] = factory
|
||||||
|
|
||||||
this.on('connectionError', (origin, targets, error) => {
|
|
||||||
// If a connection error occurs, we remove the client from the pool,
|
|
||||||
// and emit a connectionError event. They will not be re-used.
|
|
||||||
// Fixes https://github.com/nodejs/undici/issues/3895
|
|
||||||
for (const target of targets) {
|
|
||||||
// Do not use kRemoveClient here, as it will close the client,
|
|
||||||
// but the client cannot be closed in this state.
|
|
||||||
const idx = this[kClients].indexOf(target)
|
|
||||||
if (idx !== -1) {
|
|
||||||
this[kClients].splice(idx, 1)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[kGetDispatcher] () {
|
[kGetDispatcher] () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue