@thi.ng/markdown-table 0.3.5 → 0.3.6

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2021-12-13T10:26:00Z
3
+ - **Last updated**: 2022-03-11T12:13:49Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -58,7 +58,7 @@ node --experimental-repl-await
58
58
  > const markdownTable = await import("@thi.ng/markdown-table");
59
59
  ```
60
60
 
61
- Package sizes (gzipped, pre-treeshake): ESM: 643 bytes
61
+ Package sizes (gzipped, pre-treeshake): ESM: 645 bytes
62
62
 
63
63
  ## Dependencies
64
64
 
@@ -139,4 +139,4 @@ If this project contributes to an academic publication, please cite it as:
139
139
 
140
140
  ## License
141
141
 
142
- © 2021 Karsten Schmidt // Apache Software License 2.0
142
+ © 2021 - 2022 Karsten Schmidt // Apache Software License 2.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/markdown-table",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Markdown table formatter/generator with support for column alignments",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,20 +34,20 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.3",
38
- "@thi.ng/checks": "^3.1.3",
39
- "@thi.ng/compose": "^2.1.3",
40
- "@thi.ng/errors": "^2.1.3",
41
- "@thi.ng/strings": "^3.3.1",
42
- "@thi.ng/transducers": "^8.2.0"
37
+ "@thi.ng/api": "^8.3.4",
38
+ "@thi.ng/checks": "^3.1.4",
39
+ "@thi.ng/compose": "^2.1.4",
40
+ "@thi.ng/errors": "^2.1.4",
41
+ "@thi.ng/strings": "^3.3.2",
42
+ "@thi.ng/transducers": "^8.3.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@microsoft/api-extractor": "^7.19.2",
46
- "@thi.ng/testament": "^0.2.3",
45
+ "@microsoft/api-extractor": "^7.19.4",
46
+ "@thi.ng/testament": "^0.2.4",
47
47
  "rimraf": "^3.0.2",
48
48
  "tools": "^0.0.1",
49
- "typedoc": "^0.22.10",
50
- "typescript": "^4.5.3"
49
+ "typedoc": "^0.22.13",
50
+ "typescript": "^4.6.2"
51
51
  },
52
52
  "keywords": [
53
53
  "align",
@@ -87,5 +87,5 @@
87
87
  ],
88
88
  "year": 2021
89
89
  },
90
- "gitHead": "1ba92c6b9509e74e509b4c0b875fc380a97bbbc1\n"
90
+ "gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
91
91
  }
package/table.d.ts CHANGED
@@ -29,9 +29,9 @@ import type { Column, Row, TableOpts } from "./api.js";
29
29
  * // | 44 | Dora | (recipient) |
30
30
  * ```
31
31
  *
32
- * @param header
33
- * @param rows
34
- * @param opts
32
+ * @param header -
33
+ * @param rows -
34
+ * @param opts -
35
35
  */
36
36
  export declare const table: (header: string[], rows: Iterable<Row>, opts?: Partial<TableOpts>) => string;
37
37
  /**
@@ -60,10 +60,10 @@ export declare const table: (header: string[], rows: Iterable<Row>, opts?: Parti
60
60
  * // | 44 | Dora | (recipient) |
61
61
  * ```
62
62
  *
63
- * @param headers
64
- * @param keys
65
- * @param items
66
- * @param opts
63
+ * @param headers -
64
+ * @param keys -
65
+ * @param items -
66
+ * @param opts -
67
67
  */
68
68
  export declare const tableKeys: <T>(headers: string[], keys: (keyof T | Fn<T, Column>)[], items: Iterable<T>, opts?: Partial<TableOpts> | undefined) => string;
69
69
  //# sourceMappingURL=table.d.ts.map
package/table.js CHANGED
@@ -54,9 +54,9 @@ const SEPS = {
54
54
  * // | 44 | Dora | (recipient) |
55
55
  * ```
56
56
  *
57
- * @param header
58
- * @param rows
59
- * @param opts
57
+ * @param header -
58
+ * @param rows -
59
+ * @param opts -
60
60
  */
61
61
  export const table = (header, rows, opts = {}) => {
62
62
  const numColumns = header.length;
@@ -99,10 +99,10 @@ export const table = (header, rows, opts = {}) => {
99
99
  * // | 44 | Dora | (recipient) |
100
100
  * ```
101
101
  *
102
- * @param headers
103
- * @param keys
104
- * @param items
105
- * @param opts
102
+ * @param headers -
103
+ * @param keys -
104
+ * @param items -
105
+ * @param opts -
106
106
  */
107
107
  export const tableKeys = (headers, keys, items, opts) => table(headers, map(juxt(
108
108
  // @ts-ignore