mirror of
https://github.com/denoland/deno.git
synced 2025-01-11 16:42:21 -05:00
chore: upgrade dprint plugins (#10397)
This commit is contained in:
parent
8c6f977192
commit
2bd087ab1b
22 changed files with 349 additions and 360 deletions
|
@ -35,8 +35,8 @@
|
|||
"tools/wpt/manifest.json"
|
||||
],
|
||||
"plugins": [
|
||||
"https://plugins.dprint.dev/typescript-0.44.0.wasm",
|
||||
"https://plugins.dprint.dev/json-0.10.1.wasm",
|
||||
"https://plugins.dprint.dev/markdown-0.7.0.wasm"
|
||||
"https://plugins.dprint.dev/typescript-0.44.2.wasm",
|
||||
"https://plugins.dprint.dev/json-0.10.2.wasm",
|
||||
"https://plugins.dprint.dev/markdown-0.7.1.wasm"
|
||||
]
|
||||
}
|
||||
|
|
33
Cargo.lock
generated
33
Cargo.lock
generated
|
@ -823,20 +823,9 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "dprint-core"
|
||||
version = "0.35.3"
|
||||
version = "0.38.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "93bd44f40b1881477837edc7112695d4b174f058c36c1cbc4c50f8d0482e2ac8"
|
||||
dependencies = [
|
||||
"bumpalo",
|
||||
"fnv",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dprint-core"
|
||||
version = "0.37.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1573a8cdbb2fce7f180099a74a0252288a13d7169a9dd43f0f0ff9448a1b1f4e"
|
||||
checksum = "a9eef318dc38909f86fa9723ae9b2fd564554bd8115acbf6f67b89bb9d4101da"
|
||||
dependencies = [
|
||||
"bumpalo",
|
||||
"fnv",
|
||||
|
@ -845,22 +834,22 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "dprint-plugin-json"
|
||||
version = "0.10.1"
|
||||
version = "0.10.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "192d9caba72e0955a19026d139a4e412f9be3b0ba0712f1f584f2cf6e391f472"
|
||||
checksum = "7c68efe8956dface56c5a37120711d076a03c8be02617010d53afd00e46f445d"
|
||||
dependencies = [
|
||||
"dprint-core 0.35.3",
|
||||
"dprint-core",
|
||||
"jsonc-parser",
|
||||
"serde",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "dprint-plugin-markdown"
|
||||
version = "0.7.0"
|
||||
version = "0.7.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "86b08578cbf2afef06f8144db2be7a50a9bcf948a7ec7eae42e936386534af82"
|
||||
checksum = "03143dc4349c85a344418d64d70e9d6cd34cadf6cc720b11f8e85a63f0448916"
|
||||
dependencies = [
|
||||
"dprint-core 0.35.3",
|
||||
"dprint-core",
|
||||
"pulldown-cmark",
|
||||
"regex",
|
||||
"serde",
|
||||
|
@ -868,11 +857,11 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "dprint-plugin-typescript"
|
||||
version = "0.44.1"
|
||||
version = "0.44.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "c8008a8a2abd9c476e942bf27ab80719aaeb2cce24eca6815b204fabf7acf7e6"
|
||||
checksum = "a39c58ac72b4233e4dcbac562e9311e85730b457b24c3980d72d762cc76569b4"
|
||||
dependencies = [
|
||||
"dprint-core 0.37.0",
|
||||
"dprint-core",
|
||||
"dprint-swc-ecma-ast-view 0.15.0",
|
||||
"fnv",
|
||||
"serde",
|
||||
|
|
|
@ -41,9 +41,9 @@ byteorder = "1.4.3"
|
|||
clap = "2.33.3"
|
||||
data-url = "0.1.0"
|
||||
dissimilar = "1.0.2"
|
||||
dprint-plugin-json = "0.10.1"
|
||||
dprint-plugin-markdown = "0.7.0"
|
||||
dprint-plugin-typescript = "0.44.0"
|
||||
dprint-plugin-json = "0.10.2"
|
||||
dprint-plugin-markdown = "0.7.1"
|
||||
dprint-plugin-typescript = "0.44.2"
|
||||
encoding_rs = "0.8.28"
|
||||
env_logger = "0.8.3"
|
||||
fancy-regex = "0.5.0"
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
* Following import uses two distinct ways to provide types:
|
||||
* - X-TypeScript-Types headers
|
||||
* - @deno-types directive
|
||||
*
|
||||
*
|
||||
* Because "@deno-types" directive must be placed by user explicitly it
|
||||
* should have higher precedence than type header.
|
||||
*
|
||||
*
|
||||
* This is verified by providing conflicting type declaration
|
||||
* depending on a way. There should be no TS error, otherwise
|
||||
* it means that wrong type declarations are used (from X-TypeScript-Types)
|
||||
|
|
|
@ -178,7 +178,7 @@
|
|||
|
||||
/**
|
||||
* Returns a function that can be used as `Error.prepareStackTrace`.
|
||||
*
|
||||
*
|
||||
* This function accepts an optional argument, a function that performs
|
||||
* source mapping. It is not required to pass this argument, but
|
||||
* in such case only JavaScript sources will have proper position in
|
||||
|
@ -191,7 +191,7 @@
|
|||
* fileName: string,
|
||||
* lineNumber: number,
|
||||
* columnNumber: number
|
||||
* }} sourceMappingFn
|
||||
* }} sourceMappingFn
|
||||
*/
|
||||
function createPrepareStackTrace(sourceMappingFn) {
|
||||
return function prepareStackTrace(
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* @param {string} potentialValue
|
||||
* @param {string} potentialValue
|
||||
* @returns {string}
|
||||
*/
|
||||
function normalizeHeaderValue(potentialValue) {
|
||||
|
@ -72,8 +72,8 @@
|
|||
/**
|
||||
* https://fetch.spec.whatwg.org/#concept-headers-append
|
||||
* @param {Headers} headers
|
||||
* @param {string} name
|
||||
* @param {string} value
|
||||
* @param {string} name
|
||||
* @param {string} value
|
||||
*/
|
||||
function appendHeader(headers, name, value) {
|
||||
// 1.
|
||||
|
@ -224,8 +224,8 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} value
|
||||
* @param {string} name
|
||||
* @param {string} value
|
||||
*/
|
||||
append(name, value) {
|
||||
webidl.assertBranded(this, Headers);
|
||||
|
@ -243,7 +243,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} name
|
||||
*/
|
||||
delete(name) {
|
||||
const prefix = "Failed to execute 'delete' on 'Headers'";
|
||||
|
@ -271,7 +271,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} name
|
||||
*/
|
||||
get(name) {
|
||||
const prefix = "Failed to execute 'get' on 'Headers'";
|
||||
|
@ -290,7 +290,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} name
|
||||
*/
|
||||
has(name) {
|
||||
const prefix = "Failed to execute 'has' on 'Headers'";
|
||||
|
@ -315,8 +315,8 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} value
|
||||
* @param {string} name
|
||||
* @param {string} value
|
||||
*/
|
||||
set(name, value) {
|
||||
webidl.assertBranded(this, Headers);
|
||||
|
|
|
@ -63,8 +63,8 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string | Blob} valueOrBlobValue
|
||||
* @param {string} name
|
||||
* @param {string | Blob} valueOrBlobValue
|
||||
* @param {string} [filename]
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -101,7 +101,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} name
|
||||
* @returns {void}
|
||||
*/
|
||||
delete(name) {
|
||||
|
@ -124,7 +124,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} name
|
||||
* @returns {FormDataEntryValue | null}
|
||||
*/
|
||||
get(name) {
|
||||
|
@ -144,7 +144,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} name
|
||||
* @returns {FormDataEntryValue[]}
|
||||
*/
|
||||
getAll(name) {
|
||||
|
@ -165,7 +165,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string} name
|
||||
* @returns {boolean}
|
||||
*/
|
||||
has(name) {
|
||||
|
@ -185,8 +185,8 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} name
|
||||
* @param {string | Blob} valueOrBlobValue
|
||||
* @param {string} name
|
||||
* @param {string | Blob} valueOrBlobValue
|
||||
* @param {string} [filename]
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -244,7 +244,7 @@
|
|||
|
||||
class MultipartBuilder {
|
||||
/**
|
||||
* @param {FormData} formData
|
||||
* @param {FormData} formData
|
||||
*/
|
||||
constructor(formData) {
|
||||
this.entryList = formData[entryList];
|
||||
|
@ -253,14 +253,14 @@
|
|||
this.chunks = [];
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @returns {string}
|
||||
*/
|
||||
getContentType() {
|
||||
return `multipart/form-data; boundary=${this.boundary}`;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @returns {Uint8Array}
|
||||
*/
|
||||
getBody() {
|
||||
|
@ -296,7 +296,7 @@
|
|||
);
|
||||
};
|
||||
|
||||
/**
|
||||
/**
|
||||
* @param {[string, string][]} headers
|
||||
* @returns {void}
|
||||
*/
|
||||
|
@ -312,7 +312,7 @@
|
|||
this.chunks.push(encoder.encode(buf));
|
||||
};
|
||||
|
||||
/**
|
||||
/**
|
||||
* @param {string} field
|
||||
* @param {string} filename
|
||||
* @param {string} [type]
|
||||
|
@ -366,7 +366,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {FormData} formdata
|
||||
* @param {FormData} formdata
|
||||
* @returns {{body: Uint8Array, contentType: string}}
|
||||
*/
|
||||
function encodeFormData(formdata) {
|
||||
|
@ -401,8 +401,8 @@
|
|||
|
||||
class MultipartParser {
|
||||
/**
|
||||
* @param {Uint8Array} body
|
||||
* @param {string | undefined} boundary
|
||||
* @param {Uint8Array} body
|
||||
* @param {string | undefined} boundary
|
||||
*/
|
||||
constructor(body, boundary) {
|
||||
if (!boundary) {
|
||||
|
@ -521,7 +521,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {Uint8Array} body
|
||||
* @param {Uint8Array} body
|
||||
* @param {string | undefined} boundary
|
||||
* @returns {FormData}
|
||||
*/
|
||||
|
@ -532,7 +532,7 @@
|
|||
|
||||
/**
|
||||
* @param {FormDataEntry[]} entries
|
||||
* @returns {FormData}
|
||||
* @returns {FormData}
|
||||
*/
|
||||
function formDataFromEntries(entries) {
|
||||
const fd = new FormData();
|
||||
|
|
|
@ -120,9 +120,9 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {any} prototype
|
||||
* @param {symbol} bodySymbol
|
||||
* @param {symbol} mimeTypeSymbol
|
||||
* @param {any} prototype
|
||||
* @param {symbol} bodySymbol
|
||||
* @param {symbol} mimeTypeSymbol
|
||||
* @returns {void}
|
||||
*/
|
||||
function mixinBody(prototype, bodySymbol, mimeTypeSymbol) {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
class HttpClient {
|
||||
/**
|
||||
* @param {number} rid
|
||||
* @param {number} rid
|
||||
*/
|
||||
constructor(rid) {
|
||||
this.rid = rid;
|
||||
|
|
|
@ -58,11 +58,11 @@
|
|||
};
|
||||
|
||||
/**
|
||||
* @param {string} method
|
||||
* @param {string} url
|
||||
* @param {[string, string][]} headerList
|
||||
* @param {InnerBody} body
|
||||
* @returns
|
||||
* @param {string} method
|
||||
* @param {string} url
|
||||
* @param {[string, string][]} headerList
|
||||
* @param {InnerBody} body
|
||||
* @returns
|
||||
*/
|
||||
function newInnerRequest(method, url, headerList = [], body = null) {
|
||||
return {
|
||||
|
@ -76,7 +76,7 @@
|
|||
|
||||
/**
|
||||
* https://fetch.spec.whatwg.org/#concept-request-clone
|
||||
* @param {InnerRequest} request
|
||||
* @param {InnerRequest} request
|
||||
* @returns {InnerRequest}
|
||||
*/
|
||||
function cloneInnerRequest(request) {
|
||||
|
@ -185,8 +185,8 @@
|
|||
|
||||
/**
|
||||
* https://fetch.spec.whatwg.org/#dom-request
|
||||
* @param {RequestInfo} input
|
||||
* @param {RequestInit} init
|
||||
* @param {RequestInfo} input
|
||||
* @param {RequestInit} init
|
||||
*/
|
||||
constructor(input, init = {}) {
|
||||
const prefix = "Failed to construct 'Request'";
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
|
||||
/**
|
||||
* @param {number} status
|
||||
* @returns {boolean}
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function nullBodyStatus(status) {
|
||||
return status === 101 || status === 204 || status === 205 || status === 304;
|
||||
|
@ -61,7 +61,7 @@
|
|||
|
||||
/**
|
||||
* @param {number} status
|
||||
* @returns {boolean}
|
||||
* @returns {boolean}
|
||||
*/
|
||||
function redirectStatus(status) {
|
||||
return status === 301 || status === 302 || status === 303 ||
|
||||
|
@ -70,7 +70,7 @@
|
|||
|
||||
/**
|
||||
* https://fetch.spec.whatwg.org/#concept-response-clone
|
||||
* @param {InnerResponse} response
|
||||
* @param {InnerResponse} response
|
||||
* @returns {InnerResponse}
|
||||
*/
|
||||
function cloneInnerResponse(response) {
|
||||
|
@ -220,8 +220,8 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {BodyInit | null} body
|
||||
* @param {ResponseInit} init
|
||||
* @param {BodyInit | null} body
|
||||
* @param {ResponseInit} init
|
||||
*/
|
||||
constructor(body = null, init = {}) {
|
||||
const prefix = "Failed to construct 'Response'";
|
||||
|
|
|
@ -32,8 +32,8 @@
|
|||
];
|
||||
|
||||
/**
|
||||
* @param {{ method: string, url: string, headers: [string, string][], clientRid: number | null, hasBody: boolean }} args
|
||||
* @param {Uint8Array | null} body
|
||||
* @param {{ method: string, url: string, headers: [string, string][], clientRid: number | null, hasBody: boolean }} args
|
||||
* @param {Uint8Array | null} body
|
||||
* @returns {{ requestRid: number, requestBodyRid: number | null }}
|
||||
*/
|
||||
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 }>}
|
||||
*/
|
||||
function opFetchSend(rid) {
|
||||
|
@ -49,8 +49,8 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {number} rid
|
||||
* @param {Uint8Array} body
|
||||
* @param {number} rid
|
||||
* @param {Uint8Array} body
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
function opFetchRequestWrite(rid, body) {
|
||||
|
@ -58,8 +58,8 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {number} rid
|
||||
* @param {Uint8Array} body
|
||||
* @param {number} rid
|
||||
* @param {Uint8Array} body
|
||||
* @returns {Promise<number>}
|
||||
*/
|
||||
function opFetchResponseRead(rid, body) {
|
||||
|
@ -105,7 +105,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {InnerRequest} req
|
||||
* @param {InnerRequest} req
|
||||
* @param {boolean} recursive
|
||||
* @returns {Promise<InnerResponse>}
|
||||
*/
|
||||
|
@ -268,8 +268,8 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {RequestInfo} input
|
||||
* @param {RequestInit} init
|
||||
* @param {RequestInfo} input
|
||||
* @param {RequestInit} init
|
||||
*/
|
||||
async function fetch(input, init = {}) {
|
||||
const prefix = "Failed to call 'fetch'";
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
|
||||
/**
|
||||
* @param {...Uint8Array} bytesArrays
|
||||
* @returns {Uint8Array}
|
||||
* @returns {Uint8Array}
|
||||
*/
|
||||
function concatUint8Arrays(...bytesArrays) {
|
||||
let byteLength = 0;
|
||||
|
@ -90,7 +90,7 @@
|
|||
|
||||
/** @typedef {BufferSource | Blob | string} BlobPart */
|
||||
|
||||
/**
|
||||
/**
|
||||
* @param {BlobPart[]} parts
|
||||
* @param {string} endings
|
||||
* @returns {Uint8Array}
|
||||
|
@ -125,7 +125,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} str
|
||||
* @param {string} str
|
||||
* @returns {string}
|
||||
*/
|
||||
function normalizeType(str) {
|
||||
|
@ -186,7 +186,7 @@
|
|||
return this.#type;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @param {number} [start]
|
||||
* @param {number} [end]
|
||||
* @param {string} [contentType]
|
||||
|
@ -346,9 +346,9 @@
|
|||
[_LastModfied];
|
||||
|
||||
/**
|
||||
* @param {BlobPart[]} fileBits
|
||||
* @param {string} fileName
|
||||
* @param {FilePropertyBag} options
|
||||
* @param {BlobPart[]} fileBits
|
||||
* @param {string} fileName
|
||||
* @param {FilePropertyBag} options
|
||||
*/
|
||||
constructor(fileBits, fileName, options = {}) {
|
||||
const prefix = "Failed to construct 'File'";
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
|
||||
[aborted] = false;
|
||||
|
||||
/**
|
||||
/**
|
||||
* @param {Blob} blob
|
||||
* @param {{kind: "ArrayBuffer" | "Text" | "DataUrl" | "BinaryString", encoding?: string}} readtype
|
||||
*/
|
||||
|
@ -309,7 +309,7 @@
|
|||
this.#readOperation(blob, { kind: "DataUrl" });
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @param {Blob} blob
|
||||
* @param {string} [encoding]
|
||||
*/
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
const { _byteSequence } = window.__bootstrap.file;
|
||||
const { URL } = window.__bootstrap.url;
|
||||
|
||||
/**
|
||||
/**
|
||||
* @param {Blob} blob
|
||||
* @returns {string}
|
||||
*/
|
||||
|
@ -40,7 +40,7 @@
|
|||
return url;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @param {string} url
|
||||
* @returns {void}
|
||||
*/
|
||||
|
|
|
@ -395,7 +395,7 @@
|
|||
* This function implements application/x-www-form-urlencoded parsing.
|
||||
* https://url.spec.whatwg.org/#concept-urlencoded-parser
|
||||
* @param {Uint8Array} bytes
|
||||
* @returns {[string, string][]}
|
||||
* @returns {[string, string][]}
|
||||
*/
|
||||
function parseUrlEncoded(bytes) {
|
||||
return core.opSync("op_url_parse_search_params", null, bytes);
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
|
||||
/**
|
||||
* Turn a string of chars into a regex safe matcher.
|
||||
* @param {string[]} chars
|
||||
* @param {string[]} chars
|
||||
* @returns {string}
|
||||
*/
|
||||
function regexMatcher(chars) {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
} = window.__bootstrap.infra;
|
||||
|
||||
/**
|
||||
* @typedef MimeType
|
||||
* @typedef MimeType
|
||||
* @property {string} type
|
||||
* @property {string} subtype
|
||||
* @property {Map<string,string>} parameters
|
||||
|
@ -160,7 +160,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {MimeType} mimeType
|
||||
* @param {MimeType} mimeType
|
||||
* @returns {string}
|
||||
*/
|
||||
function essence(mimeType) {
|
||||
|
@ -168,7 +168,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {MimeType} mimeType
|
||||
* @param {MimeType} mimeType
|
||||
* @returns {string}
|
||||
*/
|
||||
function serializeMimeType(mimeType) {
|
||||
|
|
|
@ -4529,7 +4529,7 @@
|
|||
};
|
||||
|
||||
/**
|
||||
* @param {Uint8Array} bytes
|
||||
* @param {Uint8Array} bytes
|
||||
*/
|
||||
function decode(bytes, encoding) {
|
||||
const BOMEncoding = BOMSniff(bytes);
|
||||
|
@ -4543,7 +4543,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {Uint8Array} bytes
|
||||
* @param {Uint8Array} bytes
|
||||
*/
|
||||
function BOMSniff(bytes) {
|
||||
const BOM = bytes.subarray(0, 3);
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
];
|
||||
|
||||
/**
|
||||
* @param {Deno.PermissionDescriptor} desc
|
||||
* @param {Deno.PermissionDescriptor} desc
|
||||
* @returns {Deno.PermissionState}
|
||||
*/
|
||||
function opQuery(desc) {
|
||||
|
@ -35,7 +35,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {Deno.PermissionDescriptor} desc
|
||||
* @param {Deno.PermissionDescriptor} desc
|
||||
* @returns {Deno.PermissionState}
|
||||
*/
|
||||
function opRevoke(desc) {
|
||||
|
@ -43,7 +43,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {Deno.PermissionDescriptor} desc
|
||||
* @param {Deno.PermissionDescriptor} desc
|
||||
* @returns {Deno.PermissionState}
|
||||
*/
|
||||
function opRequest(desc) {
|
||||
|
@ -63,8 +63,8 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {{ state: Deno.PermissionState }} state
|
||||
* @param {unknown} key
|
||||
* @param {{ state: Deno.PermissionState }} state
|
||||
* @param {unknown} key
|
||||
*/
|
||||
constructor(state = null, key = null) {
|
||||
if (key != illegalConstructorKey) {
|
||||
|
@ -75,7 +75,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {Event} event
|
||||
* @param {Event} event
|
||||
* @returns {boolean}
|
||||
*/
|
||||
dispatchEvent(event) {
|
||||
|
@ -98,9 +98,9 @@
|
|||
const statusCache = new Map();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param {Deno.PermissionDescriptor} desc
|
||||
* @param {Deno.PermissionState} state
|
||||
*
|
||||
* @param {Deno.PermissionDescriptor} desc
|
||||
* @param {Deno.PermissionState} state
|
||||
* @returns {PermissionStatus}
|
||||
*/
|
||||
function cache(desc, state) {
|
||||
|
@ -126,7 +126,7 @@
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {unknown} desc
|
||||
* @param {unknown} desc
|
||||
* @returns {desc is Deno.PermissionDescriptor}
|
||||
*/
|
||||
function isValidDescriptor(desc) {
|
||||
|
|
|
@ -69,7 +69,7 @@ function gitStaged(baseDir, patterns) {
|
|||
return getFilesFromGit(baseDir, cmd);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* 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
|
||||
* certain extension.
|
||||
|
@ -77,7 +77,7 @@ function gitStaged(baseDir, patterns) {
|
|||
* * Directory names themselves are not listed (but the files inside are).
|
||||
* * Submodules and their contents are ignored entirely.
|
||||
* * This function fails if the query matches no files.
|
||||
*
|
||||
*
|
||||
* If --staged argument was provided when program is run
|
||||
* only staged sources will be returned.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue