sequelize-temporal
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -12,3 +12,3 @@ var _ = require('lodash'); | ||
// fancy way to exclude attributes | ||
return _.omit(obj, _.partial(_.rearg(_.contains,0,2,1), attrsToExclude)); | ||
return _.omit(obj, attrsToExclude); | ||
} | ||
@@ -58,3 +58,3 @@ | ||
var historyOptions = _.assign({}, modelOptions, historyOwnOptions); | ||
// We want to delete indexes that have unique constraint | ||
@@ -80,3 +80,3 @@ var indexes = historyOptions.indexes; | ||
if(hits){ | ||
hits = _.pluck(hits, 'dataValues'); | ||
hits = _.map(hits, 'dataValues'); | ||
return modelHistory.bulkCreate(hits, {transaction: options.transaction}); | ||
@@ -107,3 +107,3 @@ } | ||
var readOnlyHook = function(){ | ||
throw new Error("This is a read-only history database. You aren't allowed to modify it."); | ||
throw new Error("This is a read-only history database. You aren't allowed to modify it."); | ||
}; | ||
@@ -110,0 +110,0 @@ |
{ | ||
"name": "sequelize-temporal", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Temporal tables for Sequelize", | ||
@@ -32,11 +32,11 @@ "main": "index.js", | ||
"dependencies": { | ||
"lodash": "^3.10.1" | ||
"lodash": "^4.17.15" | ||
}, | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"chai": "^4.2.0", | ||
"chai-as-promised": "^7.1.1", | ||
"mocha": "^5.2.0", | ||
"sequelize": "^4.38.0", | ||
"sqlite3": "^4.0.1" | ||
"mocha": "^6.2.1", | ||
"sequelize": "^5.19.5", | ||
"sqlite3": "^4.1.0" | ||
} | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22232
11
0
+ Addedlodash@4.17.21(transitive)
- Removedlodash@3.10.1(transitive)
Updatedlodash@^4.17.15