
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
bookshelf-deep-changed
Advanced tools
Allows bookshelf models to check whether a value you are saving is different than the existing value in the database.
Allows bookshelf models to check whether a value you are saving is different than the existing value in the database.
Usage:
module.exports = Repository.Model.extend({
tableName: 'users',
initialize: function () {
this.on('updating', function (model, attrs, options) {
return this.deepChanged('name', 'email', options)
.then(function (hasDeepChanged) {
if (hasDeepChanged[0]) {
this.set('name_changed_at', new Date());
}
if (hasDeepChanged[1]) {
this.set('email_changed_at', new Date());
}
});
});
}
});
You need to add bookshelf-deep-changed to the list of bookshelf's plugins when you require bookshelf:
var knex = require('knex')({
/// knex initialization
}),
bookshelf = require('bookshelf')(knex);
bookshelf.plugin(require('bookshelf-deep-changed'));
FAQs
Allows bookshelf models to check whether a value you are saving is different than the existing value in the database.
The npm package bookshelf-deep-changed receives a total of 11 weekly downloads. As such, bookshelf-deep-changed popularity was classified as not popular.
We found that bookshelf-deep-changed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.