Comparing version 28.0.2 to 28.1.0
@@ -18,3 +18,3 @@ import { RecordCamelKeys, RecordSnakeKeys } from '@waiting/shared-types'; | ||
*/ | ||
export declare function mergeDoWithInitData<T extends Record<string, unknown>>(initDoData: T, input?: Record<string, unknown>): T; | ||
export declare function mergeDoWithInitData<T extends Record<string, unknown> | object>(initDoData: T, input?: Record<string, unknown> | object): T; | ||
//# sourceMappingURL=helper.d.ts.map |
@@ -79,2 +79,3 @@ "use strict"; | ||
Object.keys(ret).forEach((key) => { | ||
// @ts-ignore | ||
if (Object.hasOwn(input, key) && typeof input[key] !== 'undefined') { | ||
@@ -85,2 +86,3 @@ Object.defineProperty(ret, key, { | ||
writable: true, | ||
// @ts-ignore | ||
value: input[key], | ||
@@ -87,0 +89,0 @@ }); |
{ | ||
"name": "kmore", | ||
"author": "waiting", | ||
"version": "28.0.2", | ||
"version": "28.1.0", | ||
"description": "A SQL query builder based on knex with powerful TypeScript type support", | ||
@@ -70,3 +70,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "9c5065ce83dcac4d8b9b777510aa6f0cbd19455d" | ||
"gitHead": "a556058d48e9ac633c2f421d68ba2791b03f5b01" | ||
} |
@@ -110,5 +110,5 @@ import { | ||
*/ | ||
export function mergeDoWithInitData<T extends Record<string, unknown>>( | ||
export function mergeDoWithInitData<T extends Record<string, unknown> | object>( | ||
initDoData: T, | ||
input?: Record<string, unknown>, | ||
input?: Record<string, unknown> | object, | ||
): T { | ||
@@ -128,4 +128,4 @@ | ||
Object.keys(ret).forEach((key) => { | ||
// @ts-ignore | ||
if (Object.hasOwn(input, key) && typeof input[key] !== 'undefined') { | ||
@@ -136,2 +136,3 @@ Object.defineProperty(ret, key, { | ||
writable: true, | ||
// @ts-ignore | ||
value: input[key], | ||
@@ -138,0 +139,0 @@ }) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
74681
1212