diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-10-22 20:36:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-22 20:36:06 +0200 |
commit | 9b20cfbee8d932c2f232f6bad911fe65c8257adc (patch) | |
tree | 5974a4ecd44c224e252a28d18639f00eedb8bc33 /std/node/_fs/_fs_stat.ts | |
parent | d592c128cf42852d2ccffc45574761fd78de8fa7 (diff) |
upgrade: deno_doc, deno_lint, dprint, swc (#8077)
- deno_doc 0.1.13
- deno_lint 0.2.5
- dprint-plugin-typescript 0.32.6
- swc_bundler 0.12.0
- swc_ecmascript 0.11.1
Diffstat (limited to 'std/node/_fs/_fs_stat.ts')
-rw-r--r-- | std/node/_fs/_fs_stat.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/std/node/_fs/_fs_stat.ts b/std/node/_fs/_fs_stat.ts index d823f7ddb..3ca2a9918 100644 --- a/std/node/_fs/_fs_stat.ts +++ b/std/node/_fs/_fs_stat.ts @@ -183,7 +183,7 @@ export function convertFileInfoToStats(origin: Deno.FileInfo): Stats { }; } -function to_BigInt(number?: number | null) { +function toBigInt(number?: number | null) { if (number === null || number === undefined) return null; return BigInt(number); } @@ -192,16 +192,16 @@ export function convertFileInfoToBigIntStats( origin: Deno.FileInfo, ): BigIntStats { return { - dev: to_BigInt(origin.dev), - ino: to_BigInt(origin.ino), - mode: to_BigInt(origin.mode), - nlink: to_BigInt(origin.nlink), - uid: to_BigInt(origin.uid), - gid: to_BigInt(origin.gid), - rdev: to_BigInt(origin.rdev), - size: to_BigInt(origin.size) || 0n, - blksize: to_BigInt(origin.blksize), - blocks: to_BigInt(origin.blocks), + dev: toBigInt(origin.dev), + ino: toBigInt(origin.ino), + mode: toBigInt(origin.mode), + nlink: toBigInt(origin.nlink), + uid: toBigInt(origin.uid), + gid: toBigInt(origin.gid), + rdev: toBigInt(origin.rdev), + size: toBigInt(origin.size) || 0n, + blksize: toBigInt(origin.blksize), + blocks: toBigInt(origin.blocks), mtime: origin.mtime, atime: origin.atime, birthtime: origin.birthtime, |