@trigger.dev/core 0.0.0-cross-runtime-20231201164903 → 0.0.0-cross-runtime-20231201165423
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -25,6 +25,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
25
25
|
|
|
26
26
|
// src/logger.ts
|
|
27
27
|
import { env } from "node:process";
|
|
28
|
+
import { Buffer as Buffer2 } from "node:buffer";
|
|
28
29
|
var logLevels = [
|
|
29
30
|
"log",
|
|
30
31
|
"error",
|
|
@@ -182,7 +183,7 @@ __name(prettyPrintBytes, "prettyPrintBytes");
|
|
|
182
183
|
function getSizeInBytes(value) {
|
|
183
184
|
const jsonString = JSON.stringify(value);
|
|
184
185
|
if (typeof window === "undefined") {
|
|
185
|
-
return
|
|
186
|
+
return Buffer2.byteLength(jsonString, "utf8");
|
|
186
187
|
} else {
|
|
187
188
|
return new TextEncoder().encode(jsonString).length;
|
|
188
189
|
}
|