neon 8.3.2 → 8.3.3

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.
@@ -132,8 +132,28 @@ function flattenCell(value) {
132
132
  if (isObject(value)) return JSON.stringify(value);
133
133
  return String(value).replace(/\s+/g, " ").trim();
134
134
  }
135
+ const LABEL_WORDS = {
136
+ api: "API",
137
+ cname: "CNAME",
138
+ cors: "CORS",
139
+ db: "DB",
140
+ id: "ID",
141
+ jwks: "JWKS",
142
+ jwt: "JWT",
143
+ lfc: "LFC",
144
+ lsn: "LSN",
145
+ mib: "MiB",
146
+ openapi: "OpenAPI",
147
+ pid: "PID",
148
+ pids: "PIDs",
149
+ s3: "S3",
150
+ ttl: "TTL",
151
+ uri: "URI",
152
+ url: "URL",
153
+ vpc: "VPC"
154
+ };
135
155
  function titleCaseField(field) {
136
- return field.split("_").map((word) => word ? word[0]?.toUpperCase() + word.slice(1) : word).join(" ");
156
+ return field.split("_").map((word) => LABEL_WORDS[word] ?? (word ? word[0]?.toUpperCase() + word.slice(1) : word)).join(" ");
137
157
  }
138
158
  const WIDE_RANGES = [
139
159
  [4352, 4447],
@@ -206,4 +226,4 @@ function charWidth(code) {
206
226
  return 1;
207
227
  }
208
228
  //#endregion
209
- export { displayWidth, formatHumanChunk, parseColumns, resolveOutputWidth, stripAnsi };
229
+ export { displayWidth, formatHumanChunk, parseColumns, resolveOutputWidth, stripAnsi, titleCaseField };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neon",
3
- "version": "8.3.2",
3
+ "version": "8.3.3",
4
4
  "description": "CLI tool for Neon, the cloud backend primitives built around Lakebase Postgres",
5
5
  "keywords": [
6
6
  "neon",
@@ -64,8 +64,8 @@
64
64
  "yaml": "^2.9.0",
65
65
  "yargs": "17.7.2",
66
66
  "yoctocolors": "^2.1.2",
67
- "@neon/config-runtime": "1.8.0",
68
67
  "@neon/config": "1.8.6",
68
+ "@neon/config-runtime": "1.8.0",
69
69
  "@neon/sdk": "7.0.1"
70
70
  },
71
71
  "optionalDependencies": {
@@ -101,8 +101,8 @@
101
101
  "typescript": "^5.9.0",
102
102
  "vitest": "^3.0.9",
103
103
  "@neon-internals/cli-core": "0.0.0",
104
- "@neon/e2e-harness": "0.0.0",
105
104
  "@neon-internals/env-core": "0.0.29",
105
+ "@neon/e2e-harness": "0.0.0",
106
106
  "@neon/functions": "0.11.0"
107
107
  },
108
108
  "publishConfig": {