diff options
Diffstat (limited to 'cli/js/ops')
-rw-r--r-- | cli/js/ops/dispatch_minimal.ts | 8 | ||||
-rw-r--r-- | cli/js/ops/fetch.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/fs/chown.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/fs/copy_file.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/fs/mkdir.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/fs/open.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/fs/remove.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/fs/seek.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/fs/symlink.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/fs/utime.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/fs_events.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/get_random_values.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/idna.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/io.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/net.ts | 4 | ||||
-rw-r--r-- | cli/js/ops/runtime_compiler.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/tls.ts | 2 | ||||
-rw-r--r-- | cli/js/ops/worker_host.ts | 2 |
18 files changed, 29 insertions, 29 deletions
diff --git a/cli/js/ops/dispatch_minimal.ts b/cli/js/ops/dispatch_minimal.ts index ca50b00e9..cc1d97e20 100644 --- a/cli/js/ops/dispatch_minimal.ts +++ b/cli/js/ops/dispatch_minimal.ts @@ -37,7 +37,7 @@ export function recordFromBufMinimal(ui8: Uint8Array): RecordMinimal { const buf32 = new Int32Array( header.buffer, header.byteOffset, - header.byteLength / 4 + header.byteLength / 4, ); const promiseId = buf32[0]; const arg = buf32[1]; @@ -71,7 +71,7 @@ const scratch32 = new Int32Array(3); const scratchBytes = new Uint8Array( scratch32.buffer, scratch32.byteOffset, - scratch32.byteLength + scratch32.byteLength, ); util.assert(scratchBytes.byteLength === scratch32.length * 4); @@ -87,7 +87,7 @@ export function asyncMsgFromRust(ui8: Uint8Array): void { export async function sendAsyncMinimal( opName: string, arg: number, - zeroCopy: Uint8Array + zeroCopy: Uint8Array, ): Promise<number> { const promiseId = nextPromiseId(); // AKA cmdId scratch32[0] = promiseId; @@ -111,7 +111,7 @@ export async function sendAsyncMinimal( export function sendSyncMinimal( opName: string, arg: number, - zeroCopy: Uint8Array + zeroCopy: Uint8Array, ): number { scratch32[0] = 0; // promiseId 0 indicates sync scratch32[1] = arg; diff --git a/cli/js/ops/fetch.ts b/cli/js/ops/fetch.ts index 2f881cc02..e349b9de5 100644 --- a/cli/js/ops/fetch.ts +++ b/cli/js/ops/fetch.ts @@ -17,7 +17,7 @@ export interface FetchResponse { export function fetch( args: FetchRequest, - body?: ArrayBufferView + body?: ArrayBufferView, ): Promise<FetchResponse> { let zeroCopy; if (body != null) { diff --git a/cli/js/ops/fs/chown.ts b/cli/js/ops/fs/chown.ts index 52735e097..054b61f6c 100644 --- a/cli/js/ops/fs/chown.ts +++ b/cli/js/ops/fs/chown.ts @@ -6,7 +6,7 @@ import { pathFromURL } from "../../util.ts"; export function chownSync( path: string | URL, uid: number | null, - gid: number | null + gid: number | null, ): void { sendSync("op_chown", { path: pathFromURL(path), uid, gid }); } @@ -14,7 +14,7 @@ export function chownSync( export async function chown( path: string | URL, uid: number | null, - gid: number | null + gid: number | null, ): Promise<void> { await sendAsync("op_chown", { path: pathFromURL(path), uid, gid }); } diff --git a/cli/js/ops/fs/copy_file.ts b/cli/js/ops/fs/copy_file.ts index fcb147bdd..d2d2d5688 100644 --- a/cli/js/ops/fs/copy_file.ts +++ b/cli/js/ops/fs/copy_file.ts @@ -5,7 +5,7 @@ import { pathFromURL } from "../../util.ts"; export function copyFileSync( fromPath: string | URL, - toPath: string | URL + toPath: string | URL, ): void { sendSync("op_copy_file", { from: pathFromURL(fromPath), @@ -15,7 +15,7 @@ export function copyFileSync( export async function copyFile( fromPath: string | URL, - toPath: string | URL + toPath: string | URL, ): Promise<void> { await sendAsync("op_copy_file", { from: pathFromURL(fromPath), diff --git a/cli/js/ops/fs/mkdir.ts b/cli/js/ops/fs/mkdir.ts index 61ea1c218..790b2ad05 100644 --- a/cli/js/ops/fs/mkdir.ts +++ b/cli/js/ops/fs/mkdir.ts @@ -32,7 +32,7 @@ export function mkdirSync(path: string, options?: MkdirOptions): void { export async function mkdir( path: string, - options?: MkdirOptions + options?: MkdirOptions, ): Promise<void> { await sendAsync("op_mkdir", mkdirArgs(path, options)); } diff --git a/cli/js/ops/fs/open.ts b/cli/js/ops/fs/open.ts index edd52c376..f2cad5988 100644 --- a/cli/js/ops/fs/open.ts +++ b/cli/js/ops/fs/open.ts @@ -24,7 +24,7 @@ export function openSync(path: string | URL, options: OpenOptions): number { export function open( path: string | URL, - options: OpenOptions + options: OpenOptions, ): Promise<number> { const mode: number | undefined = options?.mode; return sendAsync("op_open", { path: pathFromURL(path), options, mode }); diff --git a/cli/js/ops/fs/remove.ts b/cli/js/ops/fs/remove.ts index 52f4cad40..24e23986c 100644 --- a/cli/js/ops/fs/remove.ts +++ b/cli/js/ops/fs/remove.ts @@ -9,7 +9,7 @@ export interface RemoveOptions { export function removeSync( path: string | URL, - options: RemoveOptions = {} + options: RemoveOptions = {}, ): void { sendSync("op_remove", { path: pathFromURL(path), @@ -19,7 +19,7 @@ export function removeSync( export async function remove( path: string | URL, - options: RemoveOptions = {} + options: RemoveOptions = {}, ): Promise<void> { await sendAsync("op_remove", { path: pathFromURL(path), diff --git a/cli/js/ops/fs/seek.ts b/cli/js/ops/fs/seek.ts index 8fd3964fd..4f97514ed 100644 --- a/cli/js/ops/fs/seek.ts +++ b/cli/js/ops/fs/seek.ts @@ -6,7 +6,7 @@ import type { SeekMode } from "../../io.ts"; export function seekSync( rid: number, offset: number, - whence: SeekMode + whence: SeekMode, ): number { return sendSync("op_seek", { rid, offset, whence }); } @@ -14,7 +14,7 @@ export function seekSync( export function seek( rid: number, offset: number, - whence: SeekMode + whence: SeekMode, ): Promise<number> { return sendAsync("op_seek", { rid, offset, whence }); } diff --git a/cli/js/ops/fs/symlink.ts b/cli/js/ops/fs/symlink.ts index 7d4741928..d96e05f24 100644 --- a/cli/js/ops/fs/symlink.ts +++ b/cli/js/ops/fs/symlink.ts @@ -9,7 +9,7 @@ export interface SymlinkOptions { export function symlinkSync( oldpath: string, newpath: string, - options?: SymlinkOptions + options?: SymlinkOptions, ): void { sendSync("op_symlink", { oldpath, newpath, options }); } @@ -17,7 +17,7 @@ export function symlinkSync( export async function symlink( oldpath: string, newpath: string, - options?: SymlinkOptions + options?: SymlinkOptions, ): Promise<void> { await sendAsync("op_symlink", { oldpath, newpath, options }); } diff --git a/cli/js/ops/fs/utime.ts b/cli/js/ops/fs/utime.ts index fa86038c6..bbc023ae9 100644 --- a/cli/js/ops/fs/utime.ts +++ b/cli/js/ops/fs/utime.ts @@ -9,7 +9,7 @@ function toSecondsFromEpoch(v: number | Date): number { export function utimeSync( path: string, atime: number | Date, - mtime: number | Date + mtime: number | Date, ): void { sendSync("op_utime", { path, @@ -22,7 +22,7 @@ export function utimeSync( export async function utime( path: string, atime: number | Date, - mtime: number | Date + mtime: number | Date, ): Promise<void> { await sendAsync("op_utime", { path, diff --git a/cli/js/ops/fs_events.ts b/cli/js/ops/fs_events.ts index fb78c6196..ffe19b4d7 100644 --- a/cli/js/ops/fs_events.ts +++ b/cli/js/ops/fs_events.ts @@ -38,7 +38,7 @@ class FsWatcher implements AsyncIterableIterator<FsEvent> { export function watchFs( paths: string | string[], - options: FsWatcherOptions = { recursive: true } + options: FsWatcherOptions = { recursive: true }, ): AsyncIterableIterator<FsEvent> { return new FsWatcher(Array.isArray(paths) ? paths : [paths], options); } diff --git a/cli/js/ops/get_random_values.ts b/cli/js/ops/get_random_values.ts index 95e4602e6..5a45a79d7 100644 --- a/cli/js/ops/get_random_values.ts +++ b/cli/js/ops/get_random_values.ts @@ -11,14 +11,14 @@ export function getRandomValues< | Int16Array | Uint16Array | Int32Array - | Uint32Array + | Uint32Array, >(typedArray: T): T { assert(typedArray !== null, "Input must not be null"); assert(typedArray.length <= 65536, "Input must not be longer than 65536"); const ui8 = new Uint8Array( typedArray.buffer, typedArray.byteOffset, - typedArray.byteLength + typedArray.byteLength, ); sendSync("op_get_random_values", {}, ui8); return typedArray; diff --git a/cli/js/ops/idna.ts b/cli/js/ops/idna.ts index 8459ca29c..59a9af030 100644 --- a/cli/js/ops/idna.ts +++ b/cli/js/ops/idna.ts @@ -6,7 +6,7 @@ import { sendSync } from "./dispatch_json.ts"; export function domainToAscii( domain: string, - { beStrict = false }: { beStrict?: boolean } = {} + { beStrict = false }: { beStrict?: boolean } = {}, ): string { return sendSync("op_domain_to_ascii", { domain, beStrict }); } diff --git a/cli/js/ops/io.ts b/cli/js/ops/io.ts index ecd1269d5..355a09ae0 100644 --- a/cli/js/ops/io.ts +++ b/cli/js/ops/io.ts @@ -17,7 +17,7 @@ export function readSync(rid: number, buffer: Uint8Array): number | null { export async function read( rid: number, - buffer: Uint8Array + buffer: Uint8Array, ): Promise<number | null> { if (buffer.length === 0) { return 0; diff --git a/cli/js/ops/net.ts b/cli/js/ops/net.ts index 05b1bc2cd..1dfa92bd1 100644 --- a/cli/js/ops/net.ts +++ b/cli/js/ops/net.ts @@ -36,7 +36,7 @@ interface AcceptResponse { export function accept( rid: number, - transport: string + transport: string, ): Promise<AcceptResponse> { return sendAsync("op_accept", { rid, transport }); } @@ -72,7 +72,7 @@ interface ReceiveResponse { export function receive( rid: number, transport: string, - zeroCopy: Uint8Array + zeroCopy: Uint8Array, ): Promise<ReceiveResponse> { return sendAsync("op_datagram_receive", { rid, transport }, zeroCopy); } diff --git a/cli/js/ops/runtime_compiler.ts b/cli/js/ops/runtime_compiler.ts index 671585118..ed439de4a 100644 --- a/cli/js/ops/runtime_compiler.ts +++ b/cli/js/ops/runtime_compiler.ts @@ -31,7 +31,7 @@ export interface TranspileOnlyResult { } export function transpile( - request: TranspileRequest + request: TranspileRequest, ): Promise<Record<string, TranspileOnlyResult>> { return sendAsync("op_transpile", request); } diff --git a/cli/js/ops/tls.ts b/cli/js/ops/tls.ts index b278c2d75..291fe3dd9 100644 --- a/cli/js/ops/tls.ts +++ b/cli/js/ops/tls.ts @@ -24,7 +24,7 @@ interface EstablishTLSResponse { } export function connectTls( - args: ConnectTLSRequest + args: ConnectTLSRequest, ): Promise<EstablishTLSResponse> { return sendAsync("op_connect_tls", args); } diff --git a/cli/js/ops/worker_host.ts b/cli/js/ops/worker_host.ts index 24e6b57ba..d5adfc3d5 100644 --- a/cli/js/ops/worker_host.ts +++ b/cli/js/ops/worker_host.ts @@ -12,7 +12,7 @@ export function createWorker( hasSourceCode: boolean, sourceCode: string, useDenoNamespace: boolean, - name?: string + name?: string, ): CreateWorkerResponse { return sendSync("op_create_worker", { specifier, |