From 6b5cd18ec8aea913aed0d86e4f6fdb217a9ce3f3 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 13 Jul 2023 19:38:33 +0200 Subject: [PATCH] Fix typos found by codespell --- dist/setup/index.js | 50 ++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index 37b24790..13f1989d 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -121,7 +121,7 @@ function restoreCache(paths, primaryKey, restoreKeys, options, enableCrossOsArch throw error; } else { - // Supress all non-validation cache related errors because caching should be optional + // Suppress all non-validation cache related errors because caching should be optional core.warning(`Failed to restore: ${error.message}`); } } @@ -1155,7 +1155,7 @@ function getTarArgs(tarPath, compressionMethod, type, archivePath = '') { const cacheFileName = utils.getCacheFileName(compressionMethod); const tarFile = 'cache.tar'; const workingDirectory = getWorkingDirectory(); - // Speficic args for BSD tar on windows for workaround + // Specific args for BSD tar on windows for workaround const BSD_TAR_ZSTD = tarPath.type === constants_1.ArchiveToolType.BSD && compressionMethod !== constants_1.CompressionMethod.Gzip && IS_WINDOWS; @@ -3410,7 +3410,7 @@ tok('GTLT') src[t.GTLT] = '((?:<|>)?=?)' // Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" +// Note that "x.x" is a valid xRange identifier, meaning "any version" // Only the first item is strictly required. tok('XRANGEIDENTIFIERLOOSE') src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' @@ -4760,7 +4760,7 @@ function outside (version, range, hilo, options) { throw new TypeError('Must provide a hilo val of "<" or ">"') } - // If it satisifes the range it is not outside + // If it satisfies the range it is not outside if (satisfies(version, range, options)) { return false } @@ -5633,7 +5633,7 @@ class Summary { /** * If the summary buffer is empty * - * @returns {boolen} true if the buffer is empty + * @returns {boolean} true if the buffer is empty */ isEmptyBuffer() { return this._buffer.length === 0; @@ -5722,10 +5722,10 @@ class Summary { return this.addRaw(element).addEOL(); } /** - * Adds a collapsable HTML details element to the summary buffer + * Adds a collapsible HTML details element to the summary buffer * * @param {string} label text for the closed state - * @param {string} content collapsable content + * @param {string} content collapsible content * * @returns {Summary} summary instance */ @@ -11231,7 +11231,7 @@ tok('GTLT') src[t.GTLT] = '((?:<|>)?=?)' // Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" +// Note that "x.x" is a valid xRange identifier, meaning "any version" // Only the first item is strictly required. tok('XRANGEIDENTIFIERLOOSE') src[t.XRANGEIDENTIFIERLOOSE] = src[t.NUMERICIDENTIFIERLOOSE] + '|x|X|\\*' @@ -12581,7 +12581,7 @@ function outside (version, range, hilo, options) { throw new TypeError('Must provide a hilo val of "<" or ">"') } - // If it satisifes the range it is not outside + // If it satisfies the range it is not outside if (satisfies(version, range, options)) { return false } @@ -13155,7 +13155,7 @@ function isSASCredential(credential) { function isTokenCredential(credential) { // Check for an object with a 'getToken' function and possibly with // a 'signRequest' function. We do this check to make sure that - // a ServiceClientCredentials implementor (like TokenClientCredentials + // a ServiceClientCredentials implementer (like TokenClientCredentials // in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if // it doesn't actually implement TokenCredential also. const castCredential = credential; @@ -14756,7 +14756,7 @@ class WebResource { if (typeof queryParameters !== "object") { throw new Error(`options.queryParameters must be of type object. It should be a JSON object ` + `of "query-parameter-name" as the key and the "query-parameter-value" as the value. ` + - `The "query-parameter-value" may be fo type "string" or an "object" of the form { value: "query-parameter-value", skipUrlEncoding: true }.`); + `The "query-parameter-value" may be of type "string" or an "object" of the form { value: "query-parameter-value", skipUrlEncoding: true }.`); } // append question mark if it is not present in the url if (this.url && this.url.indexOf("?") === -1) { @@ -18682,7 +18682,7 @@ util.inherits(FormData, CombinedStream); * and file uploads to other web applications. * * @constructor - * @param {Object} options - Properties to be added/overriden for FormData and CombinedStream + * @param {Object} options - Properties to be added/overridden for FormData and CombinedStream */ function FormData(options) { if (!(this instanceof FormData)) { @@ -19131,11 +19131,11 @@ FormData.prototype.submit = function(params, cb) { if (cb) { var onResponse; - var callback = function (error, responce) { + var callback = function (error, response) { request.removeListener('error', callback); request.removeListener('response', onResponse); - return cb.call(this, error, responce); + return cb.call(this, error, response); }; onResponse = callback.bind(this, null); @@ -35667,7 +35667,7 @@ const PathStylePorts = [ * SDK will encode it to "http://account.blob.core.windows.net/con/b%253A" and send to server. A blob named "b%3A" will be created. * * But this strategy will make it not possible to create a blob with "?" in it's name. Because when customer URL string is - * "http://account.blob.core.windows.net/con/blob?name", the "?name" will be treated as URL paramter instead of blob name. + * "http://account.blob.core.windows.net/con/blob?name", the "?name" will be treated as URL parameter instead of blob name. * If customer URL string is "http://account.blob.core.windows.net/con/blob%3Fname", a blob named "blob%3Fname" will be created. * V2 SDK doesn't have this issue because it doesn't allow customer pass in a full URL, it accepts a separate blob name and encodeURIComponent for it. * We cannot accept a SDK cannot create a blob name with "?". So we implement strategy two: @@ -36134,7 +36134,7 @@ function toBlobTags(tags) { return res; } /** - * Covert BlobTags to Tags type. + * Convert BlobTags to Tags type. * * @param tags - */ @@ -37415,7 +37415,7 @@ class BlobSASPermissions { */ this.deleteVersion = false; /** - * Specfies Tag access granted. + * Specifies Tag access granted. */ this.tag = false; /** @@ -37612,7 +37612,7 @@ class ContainerSASPermissions { */ this.list = false; /** - * Specfies Tag access granted. + * Specifies Tag access granted. */ this.tag = false; /** @@ -41797,7 +41797,7 @@ class BlobClient extends StorageClient { * Sets tags on the underlying blob. * A blob can have up to 10 tags. Tag keys must be between 1 and 128 characters. Tag values must be between 0 and 256 characters. * Valid tag key and value characters include lower and upper case letters, digits (0-9), - * space (' '), plus ('+'), minus ('-'), period ('.'), foward slash ('/'), colon (':'), equals ('='), and underscore ('_'). + * space (' '), plus ('+'), minus ('-'), period ('.'), forward slash ('/'), colon (':'), equals ('='), and underscore ('_'). * * @param tags - * @param options - @@ -44159,7 +44159,7 @@ class BatchResponseParser { // The response will contain the Content-ID header for each corresponding subrequest response to use for tracking. // The Content-IDs are set to a valid index in the subrequests we sent. In the status code 202 path, we could expect it // to be 1-1 mapping from the [0, subRequests.size) to the Content-IDs returned. If not, we simply don't return that - // unexpected subResponse in the parsed reponse and we can always look it up in the raw response for debugging purpose. + // unexpected subResponse in the parsed response and we can always look it up in the raw response for debugging purpose. if (contentId !== NOT_FOUND && Number.isInteger(contentId) && contentId >= 0 && @@ -45963,7 +45963,7 @@ class AccountSASPermissions { */ this.process = false; /** - * Specfies Tag access granted. + * Specifies Tag access granted. */ this.tag = false; /** @@ -56284,7 +56284,7 @@ function fetch(url, opts) { } catch (err) { // error here can only be invalid URL in Location: header // do not throw when options.redirect == manual - // let the user extract the errorneous redirect URL + // let the user extract the erroneous redirect URL if (request.redirect !== 'manual') { reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect')); finalize(); @@ -59324,7 +59324,7 @@ module.exports.implForWrapper = function (wrapper) { var parent = parser.tags[parser.tags.length - 1] || parser var tag = parser.tag = { name: parser.tagName, attributes: {} } - // will be overridden if tag contails an xmlns="foo" or xmlns:foo="bar" + // will be overridden if tag contains an xmlns="foo" or xmlns:foo="bar" if (parser.opt.xmlns) { tag.ns = parent.ns } @@ -61976,7 +61976,7 @@ createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`) createToken('GTLT', '((?:<|>)?=?)') // Something like "2.*" or "1.2.x". -// Note that "x.x" is a valid xRange identifer, meaning "any version" +// Note that "x.x" is a valid xRange identifier, meaning "any version" // Only the first item is strictly required. createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`) createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`) @@ -70394,4 +70394,4 @@ module.exports = JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45,46],"valid"] /******/ module.exports = __webpack_exports__; /******/ /******/ })() -; \ No newline at end of file +;