Socket
Socket
Sign inDemoInstall

knex-on-duplicate-update

Package Overview
Dependencies
26
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.2 to 2.1.0

7

CHANGELOG.md

@@ -7,5 +7,12 @@ ### Changelog

#### [v2.1.0](https://github.com/felixmosh/knex-on-duplicate-update/compare/v2.0.2...v2.1.0)
- feat: Add columns names & types inference [`b9ed0ab`](https://github.com/felixmosh/knex-on-duplicate-update/commit/b9ed0ab5b32d75f52a6f881997f2babf72257c22)
#### [v2.0.2](https://github.com/felixmosh/knex-on-duplicate-update/compare/v2.0.1...v2.0.2)
> 9 March 2021
- Improve value type when override object mode is used [`82e2205`](https://github.com/felixmosh/knex-on-duplicate-update/commit/82e22054e33b0eaeac873752cc625cf0993ffbed)
- Release 2.0.2 [`0c55c58`](https://github.com/felixmosh/knex-on-duplicate-update/commit/0c55c58839d6ccae877b0328b7bfab0cf6f7d1d8)

@@ -12,0 +19,0 @@ #### [v2.0.1](https://github.com/felixmosh/knex-on-duplicate-update/compare/v2.0.0...v2.0.1)

2

package.json
{
"name": "knex-on-duplicate-update",
"version": "2.0.2",
"version": "2.1.0",
"description": "Simple patcher for Knex. It adds the .onDuplicateUpdate() function to knex's query builder.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -5,4 +5,9 @@ import { Knex } from 'knex';

namespace Knex {
interface QueryBuilder {
onDuplicateUpdate(...columnNames: Array<{ [key: string]: any } | string>): Knex.QueryBuilder<any, any>;
interface QueryBuilder<TRecord extends {} = any, TResult = any> {
onDuplicateUpdate(
...columnNames: Array<
| Knex.DbRecord<Knex.ResolveTableType<TRecord, 'insert'>>
| keyof TRecord
>
): Knex.QueryBuilder<TRecord, TResult>;
}

@@ -9,0 +14,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc