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

knex-utils

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knex-utils - npm Package Compare versions

Comparing version 5.5.1 to 6.0.0

4

dist/lib/diffUtils.d.ts
import { Knex } from 'knex';
export declare type EntityListDiff<T> = {
export type EntityListDiff<T> = {
newEntries: T[];

@@ -7,3 +7,3 @@ removedEntries: T[];

export declare function calculateEntityListDiff<T>(oldList: T[], newList: T[], idFields: string[]): EntityListDiff<T>;
export declare type UpdateJoinTableParams = {
export type UpdateJoinTableParams = {
filterCriteria: Record<string, any>;

@@ -10,0 +10,0 @@ table: string;

@@ -20,2 +20,2 @@ import { Knex } from 'knex';

*/
export declare function checkHeartbeat(knex: Knex, heartbeatQuery?: string): Promise<HeartbeatResult>;
export declare function checkHeartbeat(knex: Knex, heartbeatQuery?: "SELECT 1"): Promise<HeartbeatResult>;
export declare function copyWithoutUndefined<T extends Record<K, V>, K extends string | number | symbol, V>(originalValue: T): T;
export declare function pick<T, K extends string | number | symbol>(source: T, propNames: readonly K[]): Pick<T, Exclude<keyof T, Exclude<keyof T, K>>>;
export declare function pick<T extends object, K extends string | number | symbol>(source: T, propNames: readonly K[]): Pick<T, Exclude<keyof T, Exclude<keyof T, K>>>;
export declare function pickWithoutUndefined<T, K extends string | number | symbol>(source: T, propNames: readonly K[]): Pick<T, Exclude<keyof T, Exclude<keyof T, K>>>;
export declare function validateOnlyWhitelistedFields<T>(source: T, propNames: readonly string[]): void;
export declare function validateOnlyWhitelistedFields<T extends object>(source: T, propNames: readonly string[]): void;
export declare function validateOnlyWhitelistedFieldsSet(source: Record<string, any>, propNames: Set<string>): void;
export declare function strictPickWithoutUndefined<T>(source: T, propNames: readonly string[]): Pick<T, Exclude<keyof T, Exclude<keyof T, string>>>;
export declare function strictPickWithoutUndefined<T extends object>(source: T, propNames: readonly string[]): Pick<T, Exclude<keyof T, Exclude<keyof T, string>>>;
export declare function isEmptyObject(params: Record<string, any>): boolean;
export declare function groupBy<T>(inputArray: T[], propName: string): Record<string, T[]>;
{
"name": "knex-utils",
"version": "5.5.1",
"version": "6.0.0",
"license": "MIT",

@@ -27,25 +27,25 @@ "maintainers": [

"peerDependencies": {
"knex": ">=0.95.4"
"knex": ">=2.0.0"
},
"devDependencies": {
"@types/jest": "^27.0.3",
"@types/node": "^16.11.11",
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"eslint": "^8.4.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"jest": "^27.4.3",
"knex": "^2.1.0",
"@types/jest": "^27.5.2",
"@types/node": "^18.15.0",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.7.0",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^27.5.1",
"knex": "^2.4.2",
"mysql": "^2.18.1",
"mysql2": "^2.3.3",
"pg": "^8.7.1",
"prettier": "^2.5.1",
"sqlite3": "^5.0.2",
"tedious": "^14.5.0",
"ts-jest": "^27.1.0",
"typescript": "4.7.2"
"mysql2": "^3.2.0",
"pg": "^8.10.0",
"prettier": "^2.8.4",
"sqlite3": "^5.1.4",
"tedious": "^14.7.0",
"ts-jest": "^27.1.5",
"typescript": "4.9.5"
},
"engines": {
"node": ">=10"
"node": ">=12"
},

@@ -52,0 +52,0 @@ "homepage": "http://github.com/knex/knex-utils",

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