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
0
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.25.0 to 0.26.0

2

config.js

@@ -55,3 +55,3 @@ const crypto = require('crypto');

runOlderVersions: false,
migrationAdditionalArgs: [],
hashFunction: function(data) {

@@ -58,0 +58,0 @@ const hash = crypto.createHash('sha1');

@@ -651,3 +651,3 @@ const path = require("path");

warning("Nothing to migrate.");
await finalize(finalizeList, config, opt);
finalize(finalizeList, config, opt);
return;

@@ -658,3 +658,3 @@ }

warning("Nothing to migrate.");
await finalize(finalizeList, config, opt);
finalize(finalizeList, config, opt);
return;

@@ -794,2 +794,3 @@ }

skipErrorDetails: true,
additionalArgs: !config.migrationAdditionalArgs ? [] : config.migrationAdditionalArgs,
//additionalArgs: ["-v", "VERBOSITY=terse", "-v", "ON_ERROR_STOP=1"],

@@ -817,3 +818,3 @@ });

await finalize(finalizeList, config, opt);
finalize(finalizeList, config, opt);
}

@@ -833,21 +834,24 @@

async function finalize(finalizeList, config, opt) {
if (finalizeList && finalizeList.length) {
for (let item of finalizeList) {
info(item.fileName + " ...");
var result = await run({
command: config.psql,
config: config,
file: item.filePath,
verbose: opt.verbose,
skipErrorDetails: false,
//additionalArgs: ["-v", "VERBOSITY=terse", "-v", "ON_ERROR_STOP=1"],
});
if (result != 0) {
error("Finalize failed with exit code " + result + "., File: ", file);
function finalize(finalizeList, config, opt) {
setTimeout(async () => {
if (finalizeList && finalizeList.length) {
for (let item of finalizeList) {
info(item.fileName + " ...");
var result = await run({
command: config.psql,
config: config,
file: item.filePath,
verbose: opt.verbose,
skipErrorDetails: false,
additionalArgs: !config.migrationAdditionalArgs ? [] : config.migrationAdditionalArgs,
//additionalArgs: ["-v", "VERBOSITY=terse", "-v", "ON_ERROR_STOP=1"],
});
if (result != 0) {
error("Finalize failed with exit code " + result + "., File: ", file);
}
}
console.info("Finalize completed successfully.");
}
console.info("Finalize completed successfully.");
}
}, 0);
}
{
"name": "@vbilopav/pgmigrations",
"version": "0.25.0",
"version": "0.26.0",
"description": "PostgreSQL Migration Tool for Node.js and NPM",

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

@@ -336,3 +336,3 @@ # PgMigrations

When `recursiveDirs` is true, order the migrations based on the directory first and second based on mihgration type. Default is true.
When `recursiveDirs` is true, order the migrations based on the directory first and second based on migration type. Default is true.

@@ -533,2 +533,6 @@ #### dirsNaturalOrder

#### migrationAdditionalArgs
Additional psql arguments for migration and finalization. Deafault is nothing.
## Contributing

@@ -535,0 +539,0 @@

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