Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-pg-migrate

Package Overview
Dependencies
Maintainers
3
Versions
179
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pg-migrate - npm Package Compare versions

Comparing version 2.23.0 to 2.23.1

6

CHANGELOG.md
# Change Log
## [2.23.1] (2018-02-21)
### Fixed
- Correct handling of multiline constraints [#202](https://github.com/salsita/node-pg-migrate/pull/202)
## [2.23.0] (2018-02-20)

@@ -4,0 +10,0 @@

8

dist/operations/tables.js

@@ -21,4 +21,6 @@ 'use strict';

var formatLines = function formatLines(lines, replace) {
var separator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ',\n';
return lines.join(separator).replace(/^/gm, replace);
var separator = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : ',';
return lines.map(function (line) {
return line.replace(/(?:\r\n|\r|\n)+/g, ' ');
}).join(`${separator}\n`).replace(/^/gm, replace);
};

@@ -224,3 +226,3 @@

return _utils.template`ALTER TABLE "${tableName}"
${formatLines((0, _utils.quote)(columns), ` DROP ${ifExists ? ' IF EXISTS' : ''}`, `${cascade ? ' CASCADE' : ''},\n`)};`;
${formatLines((0, _utils.quote)(columns), ` DROP ${ifExists ? ' IF EXISTS' : ''}`, `${cascade ? ' CASCADE' : ''},`)};`;
};

@@ -227,0 +229,0 @@

@@ -33,3 +33,3 @@ {

],
"version": "2.23.0",
"version": "2.23.1",
"engines": {

@@ -36,0 +36,0 @@ "node": ">=4.0.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