Socket
Socket
Sign inDemoInstall

knex-on-duplicate-update

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knex-on-duplicate-update - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

lib/index.js
const KnexQueryBuilder = require('knex/lib/query/builder');
const escapeKnexBinding = input => input.replace(/\?/g, '\\?');
module.exports.attachOnDuplicateUpdate = function attachOnDuplicateUpdate() {

@@ -30,3 +32,3 @@ KnexQueryBuilder.prototype.onDuplicateUpdate = function (...columns) {

return this.client.raw(
`${this.toString()} on duplicate key update ${placeholders.join(', ')}`,
`${escapeKnexBinding(this.toString())} on duplicate key update ${placeholders.join(', ')}`,
bindings

@@ -33,0 +35,0 @@ );

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

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

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