@effect/io
Advanced tools
Comparing version 0.29.3 to 0.29.4
@@ -47,6 +47,7 @@ "use strict"; | ||
const performanceNowNanos = /*#__PURE__*/function () { | ||
const bigint1e6 = /*#__PURE__*/BigInt(1000000); | ||
if (typeof performance === "undefined") { | ||
return () => BigInt(Date.now()) * 1000000n; | ||
return () => BigInt(Date.now()) * bigint1e6; | ||
} | ||
const origin = "timeOrigin" in performance && typeof performance.timeOrigin === "number" ? /*#__PURE__*/BigInt( /*#__PURE__*/Math.round(performance.timeOrigin * 1000000)) : /*#__PURE__*/BigInt( /*#__PURE__*/Date.now()) * 1000000n; | ||
const origin = "timeOrigin" in performance && typeof performance.timeOrigin === "number" ? /*#__PURE__*/BigInt( /*#__PURE__*/Math.round(performance.timeOrigin * 1000000)) : /*#__PURE__*/BigInt( /*#__PURE__*/Date.now()) * bigint1e6; | ||
return () => origin + BigInt(Math.round(performance.now() * 1000000)); | ||
@@ -53,0 +54,0 @@ }(); |
{ | ||
"name": "@effect/io", | ||
"version": "0.29.3", | ||
"version": "0.29.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -43,4 +43,6 @@ import * as Context from "@effect/data/Context" | ||
const performanceNowNanos = (function() { | ||
const bigint1e6 = BigInt(1_000_000) | ||
if (typeof performance === "undefined") { | ||
return () => BigInt(Date.now()) * 1_000_000n | ||
return () => BigInt(Date.now()) * bigint1e6 | ||
} | ||
@@ -50,3 +52,3 @@ | ||
BigInt(Math.round(performance.timeOrigin * 1_000_000)) : | ||
BigInt(Date.now()) * 1_000_000n | ||
BigInt(Date.now()) * bigint1e6 | ||
@@ -53,0 +55,0 @@ return () => origin + BigInt(Math.round(performance.now() * 1_000_000)) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6956476
119341