@yarnpkg/fslib
Advanced tools
+5
-5
@@ -170,3 +170,3 @@ "use strict"; | ||
| // @ts-expect-error Typescript isn't able to tell this is valid | ||
| bigintStats[key] = BigInt(element); | ||
| bigintStats[key] = BigInt(Math.floor(element)); | ||
| } | ||
@@ -179,6 +179,6 @@ else if (nodeUtils.types.isDate(element)) { | ||
| } | ||
| bigintStats.atimeNs = bigintStats.atimeMs * BigInt(1e6); | ||
| bigintStats.mtimeNs = bigintStats.mtimeMs * BigInt(1e6); | ||
| bigintStats.ctimeNs = bigintStats.ctimeMs * BigInt(1e6); | ||
| bigintStats.birthtimeNs = bigintStats.birthtimeMs * BigInt(1e6); | ||
| bigintStats.atimeNs = bigintStats.atimeMs * BigInt(1e6) + BigInt(Math.floor((stats.atimeMs % 1) * 1e3)) * BigInt(1e3); | ||
| bigintStats.mtimeNs = bigintStats.mtimeMs * BigInt(1e6) + BigInt(Math.floor((stats.mtimeMs % 1) * 1e3)) * BigInt(1e3); | ||
| bigintStats.ctimeNs = bigintStats.ctimeMs * BigInt(1e6) + BigInt(Math.floor((stats.ctimeMs % 1) * 1e3)) * BigInt(1e3); | ||
| bigintStats.birthtimeNs = bigintStats.birthtimeMs * BigInt(1e6) + BigInt(Math.floor((stats.birthtimeMs % 1) * 1e3)) * BigInt(1e3); | ||
| return bigintStats; | ||
@@ -185,0 +185,0 @@ } |
+1
-1
| { | ||
| "name": "@yarnpkg/fslib", | ||
| "version": "3.1.4", | ||
| "version": "3.1.5", | ||
| "license": "BSD-2-Clause", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
232583
0.11%