@trigger.dev/core 0.0.0-cross-runtime-20231201164903 → 0.0.0-cross-runtime-20231201165945

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 CHANGED
@@ -228,6 +228,7 @@ module.exports = __toCommonJS(src_exports);
228
228
 
229
229
  // src/logger.ts
230
230
  var import_node_process = require("node:process");
231
+ var import_node_buffer = require("node:buffer");
231
232
  var logLevels = [
232
233
  "log",
233
234
  "error",
@@ -385,7 +386,7 @@ __name(prettyPrintBytes, "prettyPrintBytes");
385
386
  function getSizeInBytes(value) {
386
387
  const jsonString = JSON.stringify(value);
387
388
  if (typeof window === "undefined") {
388
- return Buffer.byteLength(jsonString, "utf8");
389
+ return import_node_buffer.Buffer.byteLength(jsonString, "utf8");
389
390
  } else {
390
391
  return new TextEncoder().encode(jsonString).length;
391
392
  }