Socket
Socket
Sign inDemoInstall

sequelize-es-decorator

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize-es-decorator - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

38

methods/update.js

@@ -17,21 +17,23 @@ const methods = require('../config/constants').methods['sequelize'];

options.keys.map(key => {
body[key] = updatedEntry[key];
});
if (updatedEntry) {
options.keys.map(key => {
body[key] = updatedEntry[key];
});
client.index({
index: `${database}_${options.type}`,
id: updatedEntry.id,
type: 'doc',
body
})
.then(() => resolve(updated))
.catch(err => {
globalOptions.handleError && globalOptions.handleError(err);
if (globalOptions.softMode) {
resolve(updated);
} else {
throw err;
}
});
client.index({
index: `${database}_${options.type}`,
id: updatedEntry.id,
type: 'doc',
body
})
.then(() => resolve(updated))
.catch(err => {
globalOptions.handleError && globalOptions.handleError(err);
if (globalOptions.softMode) {
resolve(updated);
} else {
throw err;
}
});
}
});

@@ -38,0 +40,0 @@ });

{
"name": "sequelize-es-decorator",
"version": "1.0.12",
"version": "1.0.13",
"description": "Decorator for Sequelize models that enables auto-indexing of data that goes through the model.",

@@ -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