
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@blackglory/better-sqlite3-migrations
Advanced tools
A utility for database migrations with better-sqlite3
A utility for database migrations with better-sqlite3.
The module using user_version to record the schema version.
npm install --save @blackglory/better-sqlite3-migrations
# or
yarn add @blackglory/better-sqlite3-migrations
interface IMigration {
version: number
up: string | ((db: Database) => void)
down: string | ((db: Database) => void)
}
You may need migration-files.
function migrate(db: Database, migrations: IMigration[], targetVersion?: number): void
If targetVersion is undefined, then use the maximum version of migrations.
Yes, the user_version update is visible to every database connection.
When the maximum migration version is less than the user_version (which means it is an obsolete instance), it will skip the migration.
You may need a proper retry strategy,
because each migration uses BEGIN IMMEDIATE to ensure that parallel write transactions fail early.
FAQs
A utility for database migrations with better-sqlite3
The npm package @blackglory/better-sqlite3-migrations receives a total of 36 weekly downloads. As such, @blackglory/better-sqlite3-migrations popularity was classified as not popular.
We found that @blackglory/better-sqlite3-migrations demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.