diff --git a/gleam.toml b/gleam.toml index 913a6a2..fed1ebf 100644 --- a/gleam.toml +++ b/gleam.toml @@ -1,5 +1,5 @@ name = "string_width" -version = "3.4.0" +version = "3.4.2" gleam = ">= 1.13.0" description = "Layout and measure the sizes of a strings printed in the terminal!" licences = ["BSD-3-Clause"] diff --git a/src/string_width_ffi.mjs b/src/string_width_ffi.mjs index a9e2440..b211b57 100644 --- a/src/string_width_ffi.mjs +++ b/src/string_width_ffi.mjs @@ -14,7 +14,7 @@ export function get_terminal_size() { try { const consoleSize = Deno.consoleSize(); if (consoleSize) { - return new Ok([consoleSize.rows, consoleSize.columns]); + return Result$Ok([consoleSize.rows, consoleSize.columns]); } } catch {}