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

knex-model

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

knex-model - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

8

lib/builder.js

@@ -63,5 +63,5 @@ 'use strict';

KnexBuilder.prototype.update = function(params) {
KnexBuilder.prototype.update = function() {
this._method = 'update';
this._updateParams = params;
this._updateArguments = arguments;

@@ -103,7 +103,7 @@ return this;

var cbQueue = model._eventQueue.beforeUpdate;
var params = self._updateParams;
var args = self._updateArguments;
return Promise
.map(cbQueue, function(callback) { return callback(params); })
.then(function() {
return self.knex.update.call(self.knex, params);
return self.knex.update.apply(self.knex, args);
});

@@ -110,0 +110,0 @@ }

{
"name": "knex-model",
"version": "0.1.3",
"version": "0.1.4",
"description": "Small ORM",

@@ -5,0 +5,0 @@ "main": "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