
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@tomkcey/pg-migrate
Advanced tools
For creating migration files you can use the CLI.
npx @tomkcey/pg-migrate create <migration_filename>
While database access is not required at this step, kkowing where to store those migrations is. In any case, here's all the environment variables you will need to use this program through the CLI.
PGUSER=<username>
PGPASSWORD=<password>
PGHOST=localhost
PGPORT=5432
PGDATABASE=<database>
PGSSL=<true/false>
MIGRATION_PATH=<absolute-path-to-migrations-dir>
MIGRATION_TABLE=<tablename>
Only MIGRATION_PATH
is required if only using migration file creation through the CLI.
import { Migrator, MigratorOptions } from "@tomkcey/pg-migrate";
const options: MigratorOptions = { ... }
const migrator = new Migrator(options, someLogger);
await migrator.up();
or npx @tomkcey/pg-migrate up
import { Migrator, MigratorOptions } from "@tomkcey/pg-migrate";
const options: MigratorOptions = { ... }
const migrator = new Migrator(options, someLogger);
await migrator.down();
or npx @tomkcey/pg-migrate down
FAQs
A small typed library for managing PostgreSQL migrations.
We found that @tomkcey/pg-migrate 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.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.