@db-auto/tables
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -8,2 +8,3 @@ "use strict"; | ||
"table": { title: "Table", dataFn: (t) => t[1].table }, | ||
"pk": { title: "PK", dataFn: (t) => t[1].primary }, | ||
"links": { title: "Links", dataFn: (t) => (0, utils_1.mapEntries)(t[1].links, (l, name) => name).join(',') }, | ||
@@ -10,0 +11,0 @@ "params": { title: "Params", dataFn: (t) => (0, utils_1.mapEntries)(t[1].queries, (q, name) => name).join(',') }, |
@@ -35,5 +35,4 @@ "use strict"; | ||
function nameOfKey(k) { | ||
if (typeof k === 'string') | ||
return k; | ||
return k.name; | ||
let result = typeof k === 'string' ? k : k.name; | ||
return result; | ||
} | ||
@@ -40,0 +39,0 @@ exports.nameOfKey = nameOfKey; |
{ | ||
"name": "@db-auto/tables", | ||
"description": "", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"main": "dist/index", | ||
@@ -20,3 +20,3 @@ "types": "dist/index", | ||
"dependencies": { | ||
"@db-auto/utils": "0.0.19" | ||
"@db-auto/utils": "0.0.20" | ||
}, | ||
@@ -23,0 +23,0 @@ "devDependencies": { |
34191
+ Added@db-auto/utils@0.0.20(transitive)
- Removed@db-auto/utils@0.0.19(transitive)
Updated@db-auto/utils@0.0.20