chore: upgrade dprint plugins (#10397)

This commit is contained in:
Satya Rohith 2021-04-28 19:38:51 +05:30 committed by GitHub
parent 8c6f977192
commit 2bd087ab1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 349 additions and 360 deletions

View file

@ -35,8 +35,8 @@
"tools/wpt/manifest.json" "tools/wpt/manifest.json"
], ],
"plugins": [ "plugins": [
"https://plugins.dprint.dev/typescript-0.44.0.wasm", "https://plugins.dprint.dev/typescript-0.44.2.wasm",
"https://plugins.dprint.dev/json-0.10.1.wasm", "https://plugins.dprint.dev/json-0.10.2.wasm",
"https://plugins.dprint.dev/markdown-0.7.0.wasm" "https://plugins.dprint.dev/markdown-0.7.1.wasm"
] ]
} }

33
Cargo.lock generated
View file

@ -823,20 +823,9 @@ dependencies = [
[[package]] [[package]]
name = "dprint-core" name = "dprint-core"
version = "0.35.3" version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93bd44f40b1881477837edc7112695d4b174f058c36c1cbc4c50f8d0482e2ac8" checksum = "a9eef318dc38909f86fa9723ae9b2fd564554bd8115acbf6f67b89bb9d4101da"
dependencies = [
"bumpalo",
"fnv",
"serde",
]
[[package]]
name = "dprint-core"
version = "0.37.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1573a8cdbb2fce7f180099a74a0252288a13d7169a9dd43f0f0ff9448a1b1f4e"
dependencies = [ dependencies = [
"bumpalo", "bumpalo",
"fnv", "fnv",
@ -845,22 +834,22 @@ dependencies = [
[[package]] [[package]]
name = "dprint-plugin-json" name = "dprint-plugin-json"
version = "0.10.1" version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "192d9caba72e0955a19026d139a4e412f9be3b0ba0712f1f584f2cf6e391f472" checksum = "7c68efe8956dface56c5a37120711d076a03c8be02617010d53afd00e46f445d"
dependencies = [ dependencies = [
"dprint-core 0.35.3", "dprint-core",
"jsonc-parser", "jsonc-parser",
"serde", "serde",
] ]
[[package]] [[package]]
name = "dprint-plugin-markdown" name = "dprint-plugin-markdown"
version = "0.7.0" version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "86b08578cbf2afef06f8144db2be7a50a9bcf948a7ec7eae42e936386534af82" checksum = "03143dc4349c85a344418d64d70e9d6cd34cadf6cc720b11f8e85a63f0448916"
dependencies = [ dependencies = [
"dprint-core 0.35.3", "dprint-core",
"pulldown-cmark", "pulldown-cmark",
"regex", "regex",
"serde", "serde",
@ -868,11 +857,11 @@ dependencies = [
[[package]] [[package]]
name = "dprint-plugin-typescript" name = "dprint-plugin-typescript"
version = "0.44.1" version = "0.44.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c8008a8a2abd9c476e942bf27ab80719aaeb2cce24eca6815b204fabf7acf7e6" checksum = "a39c58ac72b4233e4dcbac562e9311e85730b457b24c3980d72d762cc76569b4"
dependencies = [ dependencies = [
"dprint-core 0.37.0", "dprint-core",
"dprint-swc-ecma-ast-view 0.15.0", "dprint-swc-ecma-ast-view 0.15.0",
"fnv", "fnv",
"serde", "serde",

View file

@ -41,9 +41,9 @@ byteorder = "1.4.3"
clap = "2.33.3" clap = "2.33.3"
data-url = "0.1.0" data-url = "0.1.0"
dissimilar = "1.0.2" dissimilar = "1.0.2"
dprint-plugin-json = "0.10.1" dprint-plugin-json = "0.10.2"
dprint-plugin-markdown = "0.7.0" dprint-plugin-markdown = "0.7.1"
dprint-plugin-typescript = "0.44.0" dprint-plugin-typescript = "0.44.2"
encoding_rs = "0.8.28" encoding_rs = "0.8.28"
env_logger = "0.8.3" env_logger = "0.8.3"
fancy-regex = "0.5.0" fancy-regex = "0.5.0"

View file

@ -2,10 +2,10 @@
* Following import uses two distinct ways to provide types: * Following import uses two distinct ways to provide types:
* - X-TypeScript-Types headers * - X-TypeScript-Types headers
* - @deno-types directive * - @deno-types directive
* *
* Because "@deno-types" directive must be placed by user explicitly it * Because "@deno-types" directive must be placed by user explicitly it
* should have higher precedence than type header. * should have higher precedence than type header.
* *
* This is verified by providing conflicting type declaration * This is verified by providing conflicting type declaration
* depending on a way. There should be no TS error, otherwise * depending on a way. There should be no TS error, otherwise
* it means that wrong type declarations are used (from X-TypeScript-Types) * it means that wrong type declarations are used (from X-TypeScript-Types)

View file

@ -178,7 +178,7 @@
/** /**
* Returns a function that can be used as `Error.prepareStackTrace`. * Returns a function that can be used as `Error.prepareStackTrace`.
* *
* This function accepts an optional argument, a function that performs * This function accepts an optional argument, a function that performs
* source mapping. It is not required to pass this argument, but * source mapping. It is not required to pass this argument, but
* in such case only JavaScript sources will have proper position in * in such case only JavaScript sources will have proper position in
@ -191,7 +191,7 @@
* fileName: string, * fileName: string,
* lineNumber: number, * lineNumber: number,
* columnNumber: number * columnNumber: number
* }} sourceMappingFn * }} sourceMappingFn
*/ */
function createPrepareStackTrace(sourceMappingFn) { function createPrepareStackTrace(sourceMappingFn) {
return function prepareStackTrace( return function prepareStackTrace(

File diff suppressed because it is too large Load diff

View file

@ -39,7 +39,7 @@
*/ */
/** /**
* @param {string} potentialValue * @param {string} potentialValue
* @returns {string} * @returns {string}
*/ */
function normalizeHeaderValue(potentialValue) { function normalizeHeaderValue(potentialValue) {
@ -72,8 +72,8 @@
/** /**
* https://fetch.spec.whatwg.org/#concept-headers-append * https://fetch.spec.whatwg.org/#concept-headers-append
* @param {Headers} headers * @param {Headers} headers
* @param {string} name * @param {string} name
* @param {string} value * @param {string} value
*/ */
function appendHeader(headers, name, value) { function appendHeader(headers, name, value) {
// 1. // 1.
@ -224,8 +224,8 @@
} }
/** /**
* @param {string} name * @param {string} name
* @param {string} value * @param {string} value
*/ */
append(name, value) { append(name, value) {
webidl.assertBranded(this, Headers); webidl.assertBranded(this, Headers);
@ -243,7 +243,7 @@
} }
/** /**
* @param {string} name * @param {string} name
*/ */
delete(name) { delete(name) {
const prefix = "Failed to execute 'delete' on 'Headers'"; const prefix = "Failed to execute 'delete' on 'Headers'";
@ -271,7 +271,7 @@
} }
/** /**
* @param {string} name * @param {string} name
*/ */
get(name) { get(name) {
const prefix = "Failed to execute 'get' on 'Headers'"; const prefix = "Failed to execute 'get' on 'Headers'";
@ -290,7 +290,7 @@
} }
/** /**
* @param {string} name * @param {string} name
*/ */
has(name) { has(name) {
const prefix = "Failed to execute 'has' on 'Headers'"; const prefix = "Failed to execute 'has' on 'Headers'";
@ -315,8 +315,8 @@
} }
/** /**
* @param {string} name * @param {string} name
* @param {string} value * @param {string} value
*/ */
set(name, value) { set(name, value) {
webidl.assertBranded(this, Headers); webidl.assertBranded(this, Headers);

View file

@ -63,8 +63,8 @@
} }
/** /**
* @param {string} name * @param {string} name
* @param {string | Blob} valueOrBlobValue * @param {string | Blob} valueOrBlobValue
* @param {string} [filename] * @param {string} [filename]
* @returns {void} * @returns {void}
*/ */
@ -101,7 +101,7 @@
} }
/** /**
* @param {string} name * @param {string} name
* @returns {void} * @returns {void}
*/ */
delete(name) { delete(name) {
@ -124,7 +124,7 @@
} }
/** /**
* @param {string} name * @param {string} name
* @returns {FormDataEntryValue | null} * @returns {FormDataEntryValue | null}
*/ */
get(name) { get(name) {
@ -144,7 +144,7 @@
} }
/** /**
* @param {string} name * @param {string} name
* @returns {FormDataEntryValue[]} * @returns {FormDataEntryValue[]}
*/ */
getAll(name) { getAll(name) {
@ -165,7 +165,7 @@
} }
/** /**
* @param {string} name * @param {string} name
* @returns {boolean} * @returns {boolean}
*/ */
has(name) { has(name) {
@ -185,8 +185,8 @@
} }
/** /**
* @param {string} name * @param {string} name
* @param {string | Blob} valueOrBlobValue * @param {string | Blob} valueOrBlobValue
* @param {string} [filename] * @param {string} [filename]
* @returns {void} * @returns {void}
*/ */
@ -244,7 +244,7 @@
class MultipartBuilder { class MultipartBuilder {
/** /**
* @param {FormData} formData * @param {FormData} formData
*/ */
constructor(formData) { constructor(formData) {
this.entryList = formData[entryList]; this.entryList = formData[entryList];
@ -253,14 +253,14 @@
this.chunks = []; this.chunks = [];
} }
/** /**
* @returns {string} * @returns {string}
*/ */
getContentType() { getContentType() {
return `multipart/form-data; boundary=${this.boundary}`; return `multipart/form-data; boundary=${this.boundary}`;
} }
/** /**
* @returns {Uint8Array} * @returns {Uint8Array}
*/ */
getBody() { getBody() {
@ -296,7 +296,7 @@
); );
}; };
/** /**
* @param {[string, string][]} headers * @param {[string, string][]} headers
* @returns {void} * @returns {void}
*/ */
@ -312,7 +312,7 @@
this.chunks.push(encoder.encode(buf)); this.chunks.push(encoder.encode(buf));
}; };
/** /**
* @param {string} field * @param {string} field
* @param {string} filename * @param {string} filename
* @param {string} [type] * @param {string} [type]
@ -366,7 +366,7 @@
} }
/** /**
* @param {FormData} formdata * @param {FormData} formdata
* @returns {{body: Uint8Array, contentType: string}} * @returns {{body: Uint8Array, contentType: string}}
*/ */
function encodeFormData(formdata) { function encodeFormData(formdata) {
@ -401,8 +401,8 @@
class MultipartParser { class MultipartParser {
/** /**
* @param {Uint8Array} body * @param {Uint8Array} body
* @param {string | undefined} boundary * @param {string | undefined} boundary
*/ */
constructor(body, boundary) { constructor(body, boundary) {
if (!boundary) { if (!boundary) {
@ -521,7 +521,7 @@
} }
/** /**
* @param {Uint8Array} body * @param {Uint8Array} body
* @param {string | undefined} boundary * @param {string | undefined} boundary
* @returns {FormData} * @returns {FormData}
*/ */
@ -532,7 +532,7 @@
/** /**
* @param {FormDataEntry[]} entries * @param {FormDataEntry[]} entries
* @returns {FormData} * @returns {FormData}
*/ */
function formDataFromEntries(entries) { function formDataFromEntries(entries) {
const fd = new FormData(); const fd = new FormData();

View file

@ -120,9 +120,9 @@
} }
/** /**
* @param {any} prototype * @param {any} prototype
* @param {symbol} bodySymbol * @param {symbol} bodySymbol
* @param {symbol} mimeTypeSymbol * @param {symbol} mimeTypeSymbol
* @returns {void} * @returns {void}
*/ */
function mixinBody(prototype, bodySymbol, mimeTypeSymbol) { function mixinBody(prototype, bodySymbol, mimeTypeSymbol) {

View file

@ -25,7 +25,7 @@
class HttpClient { class HttpClient {
/** /**
* @param {number} rid * @param {number} rid
*/ */
constructor(rid) { constructor(rid) {
this.rid = rid; this.rid = rid;

View file

@ -58,11 +58,11 @@
}; };
/** /**
* @param {string} method * @param {string} method
* @param {string} url * @param {string} url
* @param {[string, string][]} headerList * @param {[string, string][]} headerList
* @param {InnerBody} body * @param {InnerBody} body
* @returns * @returns
*/ */
function newInnerRequest(method, url, headerList = [], body = null) { function newInnerRequest(method, url, headerList = [], body = null) {
return { return {
@ -76,7 +76,7 @@
/** /**
* https://fetch.spec.whatwg.org/#concept-request-clone * https://fetch.spec.whatwg.org/#concept-request-clone
* @param {InnerRequest} request * @param {InnerRequest} request
* @returns {InnerRequest} * @returns {InnerRequest}
*/ */
function cloneInnerRequest(request) { function cloneInnerRequest(request) {
@ -185,8 +185,8 @@
/** /**
* https://fetch.spec.whatwg.org/#dom-request * https://fetch.spec.whatwg.org/#dom-request
* @param {RequestInfo} input * @param {RequestInfo} input
* @param {RequestInit} init * @param {RequestInit} init
*/ */
constructor(input, init = {}) { constructor(input, init = {}) {
const prefix = "Failed to construct 'Request'"; const prefix = "Failed to construct 'Request'";

View file

@ -53,7 +53,7 @@
/** /**
* @param {number} status * @param {number} status
* @returns {boolean} * @returns {boolean}
*/ */
function nullBodyStatus(status) { function nullBodyStatus(status) {
return status === 101 || status === 204 || status === 205 || status === 304; return status === 101 || status === 204 || status === 205 || status === 304;
@ -61,7 +61,7 @@
/** /**
* @param {number} status * @param {number} status
* @returns {boolean} * @returns {boolean}
*/ */
function redirectStatus(status) { function redirectStatus(status) {
return status === 301 || status === 302 || status === 303 || return status === 301 || status === 302 || status === 303 ||
@ -70,7 +70,7 @@
/** /**
* https://fetch.spec.whatwg.org/#concept-response-clone * https://fetch.spec.whatwg.org/#concept-response-clone
* @param {InnerResponse} response * @param {InnerResponse} response
* @returns {InnerResponse} * @returns {InnerResponse}
*/ */
function cloneInnerResponse(response) { function cloneInnerResponse(response) {
@ -220,8 +220,8 @@
} }
/** /**
* @param {BodyInit | null} body * @param {BodyInit | null} body
* @param {ResponseInit} init * @param {ResponseInit} init
*/ */
constructor(body = null, init = {}) { constructor(body = null, init = {}) {
const prefix = "Failed to construct 'Response'"; const prefix = "Failed to construct 'Response'";

View file

@ -32,8 +32,8 @@
]; ];
/** /**
* @param {{ method: string, url: string, headers: [string, string][], clientRid: number | null, hasBody: boolean }} args * @param {{ method: string, url: string, headers: [string, string][], clientRid: number | null, hasBody: boolean }} args
* @param {Uint8Array | null} body * @param {Uint8Array | null} body
* @returns {{ requestRid: number, requestBodyRid: number | null }} * @returns {{ requestRid: number, requestBodyRid: number | null }}
*/ */
function opFetch(args, body) { function opFetch(args, body) {
@ -41,7 +41,7 @@
} }
/** /**
* @param {number} rid * @param {number} rid
* @returns {Promise<{ status: number, statusText: string, headers: [string, string][], url: string, responseRid: number }>} * @returns {Promise<{ status: number, statusText: string, headers: [string, string][], url: string, responseRid: number }>}
*/ */
function opFetchSend(rid) { function opFetchSend(rid) {
@ -49,8 +49,8 @@
} }
/** /**
* @param {number} rid * @param {number} rid
* @param {Uint8Array} body * @param {Uint8Array} body
* @returns {Promise<void>} * @returns {Promise<void>}
*/ */
function opFetchRequestWrite(rid, body) { function opFetchRequestWrite(rid, body) {
@ -58,8 +58,8 @@
} }
/** /**
* @param {number} rid * @param {number} rid
* @param {Uint8Array} body * @param {Uint8Array} body
* @returns {Promise<number>} * @returns {Promise<number>}
*/ */
function opFetchResponseRead(rid, body) { function opFetchResponseRead(rid, body) {
@ -105,7 +105,7 @@
} }
/** /**
* @param {InnerRequest} req * @param {InnerRequest} req
* @param {boolean} recursive * @param {boolean} recursive
* @returns {Promise<InnerResponse>} * @returns {Promise<InnerResponse>}
*/ */
@ -268,8 +268,8 @@
} }
/** /**
* @param {RequestInfo} input * @param {RequestInfo} input
* @param {RequestInit} init * @param {RequestInit} init
*/ */
async function fetch(input, init = {}) { async function fetch(input, init = {}) {
const prefix = "Failed to call 'fetch'"; const prefix = "Failed to call 'fetch'";

View file

@ -69,7 +69,7 @@
/** /**
* @param {...Uint8Array} bytesArrays * @param {...Uint8Array} bytesArrays
* @returns {Uint8Array} * @returns {Uint8Array}
*/ */
function concatUint8Arrays(...bytesArrays) { function concatUint8Arrays(...bytesArrays) {
let byteLength = 0; let byteLength = 0;
@ -90,7 +90,7 @@
/** @typedef {BufferSource | Blob | string} BlobPart */ /** @typedef {BufferSource | Blob | string} BlobPart */
/** /**
* @param {BlobPart[]} parts * @param {BlobPart[]} parts
* @param {string} endings * @param {string} endings
* @returns {Uint8Array} * @returns {Uint8Array}
@ -125,7 +125,7 @@
} }
/** /**
* @param {string} str * @param {string} str
* @returns {string} * @returns {string}
*/ */
function normalizeType(str) { function normalizeType(str) {
@ -186,7 +186,7 @@
return this.#type; return this.#type;
} }
/** /**
* @param {number} [start] * @param {number} [start]
* @param {number} [end] * @param {number} [end]
* @param {string} [contentType] * @param {string} [contentType]
@ -346,9 +346,9 @@
[_LastModfied]; [_LastModfied];
/** /**
* @param {BlobPart[]} fileBits * @param {BlobPart[]} fileBits
* @param {string} fileName * @param {string} fileName
* @param {FilePropertyBag} options * @param {FilePropertyBag} options
*/ */
constructor(fileBits, fileName, options = {}) { constructor(fileBits, fileName, options = {}) {
const prefix = "Failed to construct 'File'"; const prefix = "Failed to construct 'File'";

View file

@ -37,7 +37,7 @@
[aborted] = false; [aborted] = false;
/** /**
* @param {Blob} blob * @param {Blob} blob
* @param {{kind: "ArrayBuffer" | "Text" | "DataUrl" | "BinaryString", encoding?: string}} readtype * @param {{kind: "ArrayBuffer" | "Text" | "DataUrl" | "BinaryString", encoding?: string}} readtype
*/ */
@ -309,7 +309,7 @@
this.#readOperation(blob, { kind: "DataUrl" }); this.#readOperation(blob, { kind: "DataUrl" });
} }
/** /**
* @param {Blob} blob * @param {Blob} blob
* @param {string} [encoding] * @param {string} [encoding]
*/ */

View file

@ -19,7 +19,7 @@
const { _byteSequence } = window.__bootstrap.file; const { _byteSequence } = window.__bootstrap.file;
const { URL } = window.__bootstrap.url; const { URL } = window.__bootstrap.url;
/** /**
* @param {Blob} blob * @param {Blob} blob
* @returns {string} * @returns {string}
*/ */
@ -40,7 +40,7 @@
return url; return url;
} }
/** /**
* @param {string} url * @param {string} url
* @returns {void} * @returns {void}
*/ */

View file

@ -395,7 +395,7 @@
* This function implements application/x-www-form-urlencoded parsing. * This function implements application/x-www-form-urlencoded parsing.
* https://url.spec.whatwg.org/#concept-urlencoded-parser * https://url.spec.whatwg.org/#concept-urlencoded-parser
* @param {Uint8Array} bytes * @param {Uint8Array} bytes
* @returns {[string, string][]} * @returns {[string, string][]}
*/ */
function parseUrlEncoded(bytes) { function parseUrlEncoded(bytes) {
return core.opSync("op_url_parse_search_params", null, bytes); return core.opSync("op_url_parse_search_params", null, bytes);

View file

@ -67,7 +67,7 @@
/** /**
* Turn a string of chars into a regex safe matcher. * Turn a string of chars into a regex safe matcher.
* @param {string[]} chars * @param {string[]} chars
* @returns {string} * @returns {string}
*/ */
function regexMatcher(chars) { function regexMatcher(chars) {

View file

@ -19,7 +19,7 @@
} = window.__bootstrap.infra; } = window.__bootstrap.infra;
/** /**
* @typedef MimeType * @typedef MimeType
* @property {string} type * @property {string} type
* @property {string} subtype * @property {string} subtype
* @property {Map<string,string>} parameters * @property {Map<string,string>} parameters
@ -160,7 +160,7 @@
} }
/** /**
* @param {MimeType} mimeType * @param {MimeType} mimeType
* @returns {string} * @returns {string}
*/ */
function essence(mimeType) { function essence(mimeType) {
@ -168,7 +168,7 @@
} }
/** /**
* @param {MimeType} mimeType * @param {MimeType} mimeType
* @returns {string} * @returns {string}
*/ */
function serializeMimeType(mimeType) { function serializeMimeType(mimeType) {

View file

@ -4529,7 +4529,7 @@
}; };
/** /**
* @param {Uint8Array} bytes * @param {Uint8Array} bytes
*/ */
function decode(bytes, encoding) { function decode(bytes, encoding) {
const BOMEncoding = BOMSniff(bytes); const BOMEncoding = BOMSniff(bytes);
@ -4543,7 +4543,7 @@
} }
/** /**
* @param {Uint8Array} bytes * @param {Uint8Array} bytes
*/ */
function BOMSniff(bytes) { function BOMSniff(bytes) {
const BOM = bytes.subarray(0, 3); const BOM = bytes.subarray(0, 3);

View file

@ -27,7 +27,7 @@
]; ];
/** /**
* @param {Deno.PermissionDescriptor} desc * @param {Deno.PermissionDescriptor} desc
* @returns {Deno.PermissionState} * @returns {Deno.PermissionState}
*/ */
function opQuery(desc) { function opQuery(desc) {
@ -35,7 +35,7 @@
} }
/** /**
* @param {Deno.PermissionDescriptor} desc * @param {Deno.PermissionDescriptor} desc
* @returns {Deno.PermissionState} * @returns {Deno.PermissionState}
*/ */
function opRevoke(desc) { function opRevoke(desc) {
@ -43,7 +43,7 @@
} }
/** /**
* @param {Deno.PermissionDescriptor} desc * @param {Deno.PermissionDescriptor} desc
* @returns {Deno.PermissionState} * @returns {Deno.PermissionState}
*/ */
function opRequest(desc) { function opRequest(desc) {
@ -63,8 +63,8 @@
} }
/** /**
* @param {{ state: Deno.PermissionState }} state * @param {{ state: Deno.PermissionState }} state
* @param {unknown} key * @param {unknown} key
*/ */
constructor(state = null, key = null) { constructor(state = null, key = null) {
if (key != illegalConstructorKey) { if (key != illegalConstructorKey) {
@ -75,7 +75,7 @@
} }
/** /**
* @param {Event} event * @param {Event} event
* @returns {boolean} * @returns {boolean}
*/ */
dispatchEvent(event) { dispatchEvent(event) {
@ -98,9 +98,9 @@
const statusCache = new Map(); const statusCache = new Map();
/** /**
* *
* @param {Deno.PermissionDescriptor} desc * @param {Deno.PermissionDescriptor} desc
* @param {Deno.PermissionState} state * @param {Deno.PermissionState} state
* @returns {PermissionStatus} * @returns {PermissionStatus}
*/ */
function cache(desc, state) { function cache(desc, state) {
@ -126,7 +126,7 @@
} }
/** /**
* @param {unknown} desc * @param {unknown} desc
* @returns {desc is Deno.PermissionDescriptor} * @returns {desc is Deno.PermissionDescriptor}
*/ */
function isValidDescriptor(desc) { function isValidDescriptor(desc) {

View file

@ -69,7 +69,7 @@ function gitStaged(baseDir, patterns) {
return getFilesFromGit(baseDir, cmd); return getFilesFromGit(baseDir, cmd);
} }
/** /**
* Recursively list all files in (a subdirectory of) a git worktree. * Recursively list all files in (a subdirectory of) a git worktree.
* * Optionally, glob patterns may be specified to e.g. only list files with a * * Optionally, glob patterns may be specified to e.g. only list files with a
* certain extension. * certain extension.
@ -77,7 +77,7 @@ function gitStaged(baseDir, patterns) {
* * Directory names themselves are not listed (but the files inside are). * * Directory names themselves are not listed (but the files inside are).
* * Submodules and their contents are ignored entirely. * * Submodules and their contents are ignored entirely.
* * This function fails if the query matches no files. * * This function fails if the query matches no files.
* *
* If --staged argument was provided when program is run * If --staged argument was provided when program is run
* only staged sources will be returned. * only staged sources will be returned.
*/ */