New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@vbilopav/pgmigrations

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vbilopav/pgmigrations - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

config.js
const crypto = require('crypto');
const migration = require('./migration');

@@ -33,2 +34,3 @@ module.exports = {

separatorPrefix: "__",
migrationExtensions: [".sql"],

@@ -35,0 +37,0 @@ tmpDir: "./tmp",

10

migration.js

@@ -229,4 +229,10 @@ const path = require("path");

if (!fileName.toLocaleLowerCase().endsWith('.sql')) {
return;
for (let j = 0; j < config.migrationExtensions.length; j++) {
const ext = config.migrationExtensions[j].toLowerCase();
if (!fileName.toLowerCase().endsWith(ext)) {
if (opt.verbose) {
warning(`Skipping file ${fileName} with invalid extension. Valid extensions are ${config.migrationExtensions.join(", ")}.`);
}
return;
}
}

@@ -233,0 +239,0 @@

{
"name": "@vbilopav/pgmigrations",
"version": "0.2.1",
"version": "0.2.2",
"description": "PostgreSQL Migration Tool for Node.js and NPM",

@@ -5,0 +5,0 @@ "author": "vb-consulting",

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