Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kmore

Package Overview
Dependencies
Maintainers
1
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kmore - npm Package Compare versions

Comparing version 0.17.1 to 0.18.0

11

CHANGELOG.md

@@ -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 @@

4

dist/index.cjs.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc