@verbatims/cli 0.1.3 → 0.1.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verbatims/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "CLI for the Verbatims quotes API",
5
5
  "type": "module",
6
6
  "bin": {
@@ -13,8 +13,7 @@
13
13
  ],
14
14
  "scripts": {
15
15
  "dev": "tsx src/index.ts",
16
- "typecheck": "tsc --noEmit",
17
- "prepublishOnly": "tsc --noEmit"
16
+ "typecheck": "tsc --noEmit"
18
17
  },
19
18
  "dependencies": {
20
19
  "@verbatims/sdk": "^1.0.0",
@@ -32,7 +32,7 @@ export async function browse(fetchPage: PageFetcher, format: Format): Promise<vo
32
32
  }
33
33
 
34
34
  const allKeys = Object.keys(items[0] as Record<string, unknown>)
35
- const keyOrder = ['id', 'content', 'name', 'language', 'type', 'author', 'reference']
35
+ const keyOrder = ['id', 'content', 'name', 'language', 'type', 'author', 'reference', 'quotes_count']
36
36
  const columns = keyOrder
37
37
  .filter((k) => allKeys.includes(k))
38
38
  .map((k) => ({ key: k, label: k }))
@@ -137,7 +137,7 @@ export function output(data: unknown, format: Format): void {
137
137
  }
138
138
 
139
139
  const allKeys = Object.keys(data[0] as Record<string, unknown>)
140
- const keyOrder = ['id', 'content', 'name', 'language', 'type', 'author', 'reference']
140
+ const keyOrder = ['id', 'content', 'name', 'language', 'type', 'author', 'reference', 'quotes_count']
141
141
  const columns = keyOrder
142
142
  .filter((k) => allKeys.includes(k))
143
143
  .map((k) => ({ key: k, label: k }))