Skip to content

Commit

Permalink
feat(csv/unstable): infer column names from object arrays for stringi…
Browse files Browse the repository at this point in the history
…fy() (#6122)
  • Loading branch information
efekrskl authored Nov 14, 2024
1 parent 60b4917 commit 7490085
Show file tree
Hide file tree
Showing 5 changed files with 397 additions and 14 deletions.
1 change: 1 addition & 0 deletions _tools/check_docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const ENTRY_POINTS = [
"../crypto/mod.ts",
"../collections/mod.ts",
"../csv/mod.ts",
"../csv/unstable_stringify.ts",
"../data_structures/mod.ts",
"../data_structures/unstable_bidirectional_map.ts",
"../datetime/mod.ts",
Expand Down
3 changes: 2 additions & 1 deletion csv/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"./parse": "./parse.ts",
"./parse-stream": "./parse_stream.ts",
"./stringify": "./stringify.ts",
"./stringify-stream": "./stringify_stream.ts"
"./stringify-stream": "./stringify_stream.ts",
"./unstable-stringify": "./unstable_stringify.ts"
}
}
13 changes: 0 additions & 13 deletions csv/stringify_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,6 @@ Deno.test({
},
},
);
await t.step(
{
name: "Invalid data, no columns",
fn() {
const data = [{ a: 1 }, { a: 2 }];
assertThrows(
() => stringify(data),
TypeError,
"No property accessor function was provided for object",
);
},
},
);
await t.step(
{
name: "No data, no columns",
Expand Down
Loading

0 comments on commit 7490085

Please sign in to comment.