@marimo-team/islands 0.23.9-dev36 → 0.23.9-dev37

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.
@@ -66,36 +66,6 @@ export function jsonParseWithSpecialChar<T = unknown>(
66
66
  }
67
67
  }
68
68
 
69
- /**
70
- * Formats a value for TSV export, respecting user's locale for numbers
71
- */
72
- function formatValueForTSV(value: unknown, locale: string): string {
73
- if (value === null || value === undefined) {
74
- return "";
75
- }
76
- if (typeof value === "number" && !Number.isNaN(value)) {
77
- // Use toLocaleString to format numbers according to user's locale
78
- // This will use the appropriate decimal separator (e.g., "," in European locales)
79
- return value.toLocaleString(locale, {
80
- useGrouping: false,
81
- maximumFractionDigits: 20,
82
- });
83
- }
84
- return String(value);
85
- }
86
-
87
- export function jsonToTSV(json: Record<string, unknown>[], locale: string) {
88
- if (json.length === 0) {
89
- return "";
90
- }
91
-
92
- const keys = Object.keys(json[0]);
93
- const values = json.map((row) =>
94
- keys.map((key) => formatValueForTSV(row[key], locale)).join("\t"),
95
- );
96
- return `${keys.join("\t")}\n${values.join("\n")}`;
97
- }
98
-
99
69
  /**
100
70
  * Converts JSON data to a Markdown table format
101
71
  * Detects URLs and converts them to markdown links [url](url)