Comparing version 0.17.1 to 0.18.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [0.18.0](https://github.com/waitingsong/kmore/compare/v0.17.1...v0.18.0) (2020-06-15) | ||
### Features | ||
* **kmore:** param keyArr of genKnexColumnsParam() accept void ([0fc73fb](https://github.com/waitingsong/kmore/commit/0fc73fb86ab9a79ae8b4d882195e4f8f2678226d)) | ||
## [0.17.1](https://github.com/waitingsong/kmore/compare/v0.17.0...v0.17.1) (2020-06-10) | ||
@@ -8,0 +19,0 @@ |
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 0.17.0 | ||
* @version 0.17.1 | ||
* @author waiting | ||
@@ -69,3 +69,3 @@ * @license MIT | ||
const ret = {}; | ||
if (keyArr.length && keyArr.includes('*')) { | ||
if (!keyArr || keyArr.includes('*')) { | ||
Object.keys(jointTableColumns).forEach((fldName) => { | ||
@@ -72,0 +72,0 @@ const { input, output } = jointTableColumns[fldName]; |
import { MultiTableScopedCols } from 'kmore-types'; | ||
import { TTables, MultiTableAliasCols, TableAliasCols, KnexColumnsParma } from './model'; | ||
export declare function genAliasColumns<T extends TTables>(scopedColumns: MultiTableScopedCols<T>): MultiTableAliasCols<T>; | ||
export declare function genKnexColumnsParam<T extends TableAliasCols = any>(jointTableColumns: T, keyArr: ((keyof T) | '*')[], useColAliasNameAsOutputName?: boolean): KnexColumnsParma; | ||
export declare function genKnexColumnsParam<T extends TableAliasCols = any>(jointTableColumns: T, keyArr: ((keyof T) | '*')[] | void, useColAliasNameAsOutputName?: boolean): KnexColumnsParma; |
@@ -46,3 +46,3 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
const ret = {}; | ||
if (keyArr.length && keyArr.includes('*')) { | ||
if (!keyArr || keyArr.includes('*')) { | ||
Object.keys(jointTableColumns).forEach((fldName) => { | ||
@@ -49,0 +49,0 @@ const { input, output } = jointTableColumns[fldName]; |
{ | ||
"name": "kmore", | ||
"author": "waiting", | ||
"version": "0.17.1", | ||
"version": "0.18.0", | ||
"description": "A Knex little more typed factory of SQL query builder powed by TypeScript, with auto-generated type-safe tables accessor for Node.js", | ||
@@ -39,8 +39,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@waiting/shared-types": "3", | ||
"kmore-types": "^0.17.1", | ||
"@waiting/shared-types": "4", | ||
"kmore-types": "^0.18.0", | ||
"rxjs": "^6.5.2" | ||
}, | ||
"devDependencies": { | ||
"@waiting/shared-core": "3", | ||
"@waiting/shared-core": "4", | ||
"cross-env": "7", | ||
@@ -99,3 +99,3 @@ "knex": "^0.21.0", | ||
}, | ||
"gitHead": "5f81159512d69d298c0fd5e8fd64303e7745a147" | ||
"gitHead": "836a3108ed61288a81f5e3660fc11452ad3cad06" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
106510
+ Added@waiting/shared-core@4.8.1(transitive)
+ Added@waiting/shared-types@4.8.1(transitive)
+ Addedkmore-types@0.18.0(transitive)
- Removed@waiting/shared-core@3.5.1(transitive)
- Removed@waiting/shared-types@3.5.1(transitive)
- Removedkmore-types@0.17.1(transitive)
Updated@waiting/shared-types@4
Updatedkmore-types@^0.18.0