@sera4/essentia 1.1.23 → 1.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/package.tar.gz +0 -0
- package/paper-trail/index.js +2 -5
package/package.json
CHANGED
package/package.tar.gz
CHANGED
|
Binary file
|
package/paper-trail/index.js
CHANGED
|
@@ -104,7 +104,7 @@ paperTrail.init = (sequelize, sequelizePackage, optionsArg) => {
|
|
|
104
104
|
let previousVersion = {};
|
|
105
105
|
let currentVersion = {};
|
|
106
106
|
if (!destroyOperation && options.enableCompression) {
|
|
107
|
-
_.forEach(opt.
|
|
107
|
+
_.forEach(opt.fields, a => {
|
|
108
108
|
previousVersion[a] = instance._previousDataValues[a];
|
|
109
109
|
currentVersion[a] = instance.dataValues[a];
|
|
110
110
|
});
|
|
@@ -245,7 +245,7 @@ paperTrail.init = (sequelize, sequelizePackage, optionsArg) => {
|
|
|
245
245
|
let previousVersion = {};
|
|
246
246
|
let currentVersion = {};
|
|
247
247
|
if (!destroyOperation && options.enableCompression) {
|
|
248
|
-
_.forEach(opt.
|
|
248
|
+
_.forEach(opt.fields, a => {
|
|
249
249
|
previousVersion[a] = instance._previousDataValues[a];
|
|
250
250
|
currentVersion[a] = instance.dataValues[a];
|
|
251
251
|
});
|
|
@@ -273,9 +273,6 @@ paperTrail.init = (sequelize, sequelizePackage, optionsArg) => {
|
|
|
273
273
|
);
|
|
274
274
|
currentVersion = _.omit(currentVersion, options.exclude);
|
|
275
275
|
|
|
276
|
-
if (!options.als)
|
|
277
|
-
options.als = asyncLocalStorage;
|
|
278
|
-
|
|
279
276
|
const store = options.als && options.als.getStore()
|
|
280
277
|
if (store && !store.has(options.continuationKey)) {
|
|
281
278
|
if (failHard)
|