mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 19:43:37 +00:00 
			
		
		
		
	update dist
This commit is contained in:
		
							parent
							
								
									a47dd0f535
								
							
						
					
					
						commit
						5dd298df42
					
				
							
								
								
									
										98
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										98
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							| @ -7802,7 +7802,7 @@ module.exports = __toCommonJS(dist_src_exports); | ||||
| var import_universal_user_agent = __nccwpck_require__(5030); | ||||
| 
 | ||||
| // pkg/dist-src/version.js
 | ||||
| var VERSION = "9.0.5"; | ||||
| var VERSION = "9.0.6"; | ||||
| 
 | ||||
| // pkg/dist-src/defaults.js
 | ||||
| var userAgent = `octokit-endpoint.js/${VERSION} ${(0, import_universal_user_agent.getUserAgent)()}`; | ||||
| @ -7907,9 +7907,9 @@ function addQueryParameters(url, parameters) { | ||||
| } | ||||
| 
 | ||||
| // pkg/dist-src/util/extract-url-variable-names.js
 | ||||
| var urlVariableRegex = /\{[^}]+\}/g; | ||||
| var urlVariableRegex = /\{[^{}}]+\}/g; | ||||
| function removeNonChars(variableName) { | ||||
|   return variableName.replace(/^\W+|\W+$/g, "").split(/,/); | ||||
|   return variableName.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g, "").split(/,/); | ||||
| } | ||||
| function extractUrlVariableNames(url) { | ||||
|   const matches = url.match(urlVariableRegex); | ||||
| @ -8095,7 +8095,7 @@ function parse(options) { | ||||
|     } | ||||
|     if (url.endsWith("/graphql")) { | ||||
|       if (options.mediaType.previews?.length) { | ||||
|         const previewsFromAcceptHeader = headers.accept.match(/[\w-]+(?=-preview)/g) || []; | ||||
|         const previewsFromAcceptHeader = headers.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g) || []; | ||||
|         headers.accept = previewsFromAcceptHeader.concat(options.mediaType.previews).map((preview) => { | ||||
|           const format = options.mediaType.format ? `.${options.mediaType.format}` : "+json"; | ||||
|           return `application/vnd.github.${preview}-preview${format}`; | ||||
| @ -8344,7 +8344,7 @@ __export(dist_src_exports, { | ||||
| module.exports = __toCommonJS(dist_src_exports); | ||||
| 
 | ||||
| // pkg/dist-src/version.js
 | ||||
| var VERSION = "9.2.1"; | ||||
| var VERSION = "9.2.2"; | ||||
| 
 | ||||
| // pkg/dist-src/normalize-paginated-list-response.js
 | ||||
| function normalizePaginatedListResponse(response) { | ||||
| @ -8392,7 +8392,7 @@ function iterator(octokit, route, parameters) { | ||||
|           const response = await requestMethod({ method, url, headers }); | ||||
|           const normalizedResponse = normalizePaginatedListResponse(response); | ||||
|           url = ((normalizedResponse.headers.link || "").match( | ||||
|             /<([^>]+)>;\s*rel="next"/ | ||||
|             /<([^<>]+)>;\s*rel="next"/ | ||||
|           ) || [])[1]; | ||||
|           return { value: normalizedResponse }; | ||||
|         } catch (error) { | ||||
| @ -10944,7 +10944,7 @@ var RequestError = class extends Error { | ||||
|     if (options.request.headers.authorization) { | ||||
|       requestCopy.headers = Object.assign({}, options.request.headers, { | ||||
|         authorization: options.request.headers.authorization.replace( | ||||
|           / .*$/, | ||||
|           /(?<! ) .*$/, | ||||
|           " [REDACTED]" | ||||
|         ) | ||||
|       }); | ||||
| @ -11012,7 +11012,7 @@ var import_endpoint = __nccwpck_require__(9440); | ||||
| var import_universal_user_agent = __nccwpck_require__(5030); | ||||
| 
 | ||||
| // pkg/dist-src/version.js
 | ||||
| var VERSION = "8.4.0"; | ||||
| var VERSION = "8.4.1"; | ||||
| 
 | ||||
| // pkg/dist-src/is-plain-object.js
 | ||||
| function isPlainObject(value) { | ||||
| @ -11071,7 +11071,7 @@ function fetchWrapper(requestOptions) { | ||||
|       headers[keyAndValue[0]] = keyAndValue[1]; | ||||
|     } | ||||
|     if ("deprecation" in headers) { | ||||
|       const matches = headers.link && headers.link.match(/<([^>]+)>; rel="deprecation"/); | ||||
|       const matches = headers.link && headers.link.match(/<([^<>]+)>; rel="deprecation"/); | ||||
|       const deprecationLink = matches && matches.pop(); | ||||
|       log.warn( | ||||
|         `[@octokit/request] "${requestOptions.method} ${requestOptions.url}" is deprecated. It is scheduled to be removed on ${headers.sunset}${deprecationLink ? `. See ${deprecationLink}` : ""}` | ||||
| @ -18725,7 +18725,7 @@ module.exports = { | ||||
| 
 | ||||
| 
 | ||||
| const { parseSetCookie } = __nccwpck_require__(4408) | ||||
| const { stringify, getHeadersList } = __nccwpck_require__(3121) | ||||
| const { stringify } = __nccwpck_require__(3121) | ||||
| const { webidl } = __nccwpck_require__(1744) | ||||
| const { Headers } = __nccwpck_require__(554) | ||||
| 
 | ||||
| @ -18801,14 +18801,13 @@ function getSetCookies (headers) { | ||||
| 
 | ||||
|   webidl.brandCheck(headers, Headers, { strict: false }) | ||||
| 
 | ||||
|   const cookies = getHeadersList(headers).cookies | ||||
|   const cookies = headers.getSetCookie() | ||||
| 
 | ||||
|   if (!cookies) { | ||||
|     return [] | ||||
|   } | ||||
| 
 | ||||
|   // In older versions of undici, cookies is a list of name:value.
 | ||||
|   return cookies.map((pair) => parseSetCookie(Array.isArray(pair) ? pair[1] : pair)) | ||||
|   return cookies.map((pair) => parseSetCookie(pair)) | ||||
| } | ||||
| 
 | ||||
| /** | ||||
| @ -19236,14 +19235,15 @@ module.exports = { | ||||
| /***/ }), | ||||
| 
 | ||||
| /***/ 3121: | ||||
| /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { | ||||
| /***/ ((module) => { | ||||
| 
 | ||||
| "use strict"; | ||||
| 
 | ||||
| 
 | ||||
| const assert = __nccwpck_require__(9491) | ||||
| const { kHeadersList } = __nccwpck_require__(2785) | ||||
| 
 | ||||
| /** | ||||
|  * @param {string} value | ||||
|  * @returns {boolean} | ||||
|  */ | ||||
| function isCTLExcludingHtab (value) { | ||||
|   if (value.length === 0) { | ||||
|     return false | ||||
| @ -19504,31 +19504,13 @@ function stringify (cookie) { | ||||
|   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 = { | ||||
|   isCTLExcludingHtab, | ||||
|   stringify, | ||||
|   getHeadersList | ||||
|   validateCookieName, | ||||
|   validateCookiePath, | ||||
|   validateCookieValue, | ||||
|   toIMFDate, | ||||
|   stringify | ||||
| } | ||||
| 
 | ||||
| 
 | ||||
| @ -21457,6 +21439,14 @@ const { isUint8Array, isArrayBuffer } = __nccwpck_require__(9830) | ||||
| const { File: UndiciFile } = __nccwpck_require__(8511) | ||||
| const { parseMIMEType, serializeAMimeType } = __nccwpck_require__(685) | ||||
| 
 | ||||
| let random | ||||
| try { | ||||
|   const crypto = __nccwpck_require__(6005) | ||||
|   random = (max) => crypto.randomInt(0, max) | ||||
| } catch { | ||||
|   random = (max) => Math.floor(Math.random(max)) | ||||
| } | ||||
| 
 | ||||
| let ReadableStream = globalThis.ReadableStream | ||||
| 
 | ||||
| /** @type {globalThis['File']} */ | ||||
| @ -21542,7 +21532,7 @@ function extractBody (object, keepalive = false) { | ||||
|     // Set source to a copy of the bytes held by object.
 | ||||
|     source = new Uint8Array(object.buffer.slice(object.byteOffset, object.byteOffset + object.byteLength)) | ||||
|   } else if (util.isFormDataLike(object)) { | ||||
|     const boundary = `----formdata-undici-0${`${Math.floor(Math.random() * 1e11)}`.padStart(11, '0')}` | ||||
|     const boundary = `----formdata-undici-0${`${random(1e11)}`.padStart(11, '0')}` | ||||
|     const prefix = `--${boundary}\r\nContent-Disposition: form-data` | ||||
| 
 | ||||
|     /*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */ | ||||
| @ -23524,6 +23514,7 @@ const { | ||||
|   isValidHeaderName, | ||||
|   isValidHeaderValue | ||||
| } = __nccwpck_require__(2538) | ||||
| const util = __nccwpck_require__(3837) | ||||
| const { webidl } = __nccwpck_require__(1744) | ||||
| const assert = __nccwpck_require__(9491) | ||||
| 
 | ||||
| @ -24077,6 +24068,9 @@ Object.defineProperties(Headers.prototype, { | ||||
|   [Symbol.toStringTag]: { | ||||
|     value: 'Headers', | ||||
|     configurable: true | ||||
|   }, | ||||
|   [util.inspect.custom]: { | ||||
|     enumerable: false | ||||
|   } | ||||
| }) | ||||
| 
 | ||||
| @ -33253,6 +33247,20 @@ class Pool extends PoolBase { | ||||
|       ? { ...options.interceptors } | ||||
|       : undefined | ||||
|     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] () { | ||||
| @ -36408,6 +36416,14 @@ module.exports = require("net"); | ||||
| 
 | ||||
| /***/ }), | ||||
| 
 | ||||
| /***/ 6005: | ||||
| /***/ ((module) => { | ||||
| 
 | ||||
| "use strict"; | ||||
| module.exports = require("node:crypto"); | ||||
| 
 | ||||
| /***/ }), | ||||
| 
 | ||||
| /***/ 5673: | ||||
| /***/ ((module) => { | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user