@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sera4/essentia",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "description": "A library of utilities for Teleporte Web Services",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/package.tar.gz CHANGED
Binary file
@@ -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.defaultFields, a => {
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.defaultFields, a => {
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)