sequelize-temporal
Advanced tools
Comparing version 1.0.6 to 1.0.7
20
index.js
@@ -91,13 +91,13 @@ var _ = require('lodash'); | ||
if (temporalOptions.full) { | ||
model.hook('afterCreate', insertHook); | ||
model.hook('afterUpdate', insertHook); | ||
model.hook('afterDestroy', insertHook); | ||
model.hook('afterRestore', insertHook); | ||
model.addHook('afterCreate', insertHook); | ||
model.addHook('afterUpdate', insertHook); | ||
model.addHook('afterDestroy', insertHook); | ||
model.addHook('afterRestore', insertHook); | ||
} else { | ||
model.hook('beforeUpdate', insertHook); | ||
model.hook('beforeDestroy', insertHook); | ||
model.addHook('beforeUpdate', insertHook); | ||
model.addHook('beforeDestroy', insertHook); | ||
} | ||
model.hook('beforeBulkUpdate', insertBulkHook); | ||
model.hook('beforeBulkDestroy', insertBulkHook); | ||
model.addHook('beforeBulkUpdate', insertBulkHook); | ||
model.addHook('beforeBulkDestroy', insertBulkHook); | ||
@@ -108,4 +108,4 @@ var readOnlyHook = function(){ | ||
modelHistory.hook('beforeUpdate', readOnlyHook); | ||
modelHistory.hook('beforeDestroy', readOnlyHook); | ||
modelHistory.addHook('beforeUpdate', readOnlyHook); | ||
modelHistory.addHook('beforeDestroy', readOnlyHook); | ||
@@ -112,0 +112,0 @@ return model; |
{ | ||
"name": "sequelize-temporal", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Temporal tables for Sequelize", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
21183
7
410
1