
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
node-migrate-mongo-orzfly
Advanced tools
Migrations for MongoDB
node-migrate-mongo enables data migrations in your existing project. The state of your migrations is stored in the database specified in the mongo
property of your Migratefile.coffee
. By default, this collection is called migration_versions
. See the Usage section (and let's be honest: the code) for more information.
Despite the name, this module does not borrow from TJ's node-migrate, though it follows very similar conventions.
In your existing project where you'd like to have migrations:
npm install --save node-migrate-mongo
cat << EOF- > Migratefile.coffee
module.exports =
mongo: 'mongodb://localhost/your_db'
EOF
migrate generate --name my_first_migration
# edit it
migrate all
NODE_ENV=test
.MigrationVersion
model.migrations
.coffee
.this
within all migration functions (up
, down
, and test
)before/after callbacks are called in this order: [ beforeTest, before, after, afterTest ]
One way to accomplish this is with a Migratefile
that looks like this, which
will allow you to define migrations with upPromise
, downPromise
, and
testPromise
functions:
var Promise = require 'bluebird';
module.exports = {
transform: function(migration) {
['up', 'down', 'test'].forEach(function(fn) {
var promiseVersion = migration[fn + "Promise"];
if (promiseVersion) {
migration[fn] = function(done) {
return Promise.resolve(promiseVersion()).nodeify(done);
};
}
});
return migration;
}
}
Please follow our Code of Conduct when contributing to this project.
$ git clone https://github.com/goodeggs/node-migrate-mongo && cd node-migrate-mongo
$ npm install
$ npm test
Module scaffold generated by generator-goodeggs-npm.
FAQs
Migrations for MongoDB
The npm package node-migrate-mongo-orzfly receives a total of 1 weekly downloads. As such, node-migrate-mongo-orzfly popularity was classified as not popular.
We found that node-migrate-mongo-orzfly 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.