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.22.2 to 2.23.0

8

CHANGELOG.md
# Change Log
## [2.23.0] (2018-02-20)
### Changed
- Updating deps, removing vulnerablity status for peer and optional dependencies [#199](https://github.com/salsita/node-pg-migrate/pull/199)
- Removing regex [#198](https://github.com/salsita/node-pg-migrate/pull/198)
- Adding ability to specify database name with 'database' option [#197](https://github.com/salsita/node-pg-migrate/pull/197)
## [2.22.2] (2018-02-20)

@@ -4,0 +12,0 @@

8

dist/operations/indexes.js

@@ -22,5 +22,7 @@ 'use strict';

function generateColumnString(column) {
return (/.+\(.*\)/.test(column) ? column // expression
: _utils.template`"${column}"`
); // single column
var openingBracketPos = column.indexOf('(');
var closingBracketPos = column.indexOf(')');
var isFunction = openingBracketPos >= 0 && closingBracketPos > openingBracketPos;
return isFunction ? column // expression
: _utils.template`"${column}"`; // single column
}

@@ -27,0 +29,0 @@

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

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

@@ -36,0 +36,0 @@ "node": ">=4.0.0"

@@ -5,4 +5,2 @@ # node-pg-migrate

[![devDependency Status](https://img.shields.io/david/dev/salsita/node-pg-migrate.svg)](https://david-dm.org/salsita/node-pg-migrate?type=dev)
[![peerDependencies Status](https://img.shields.io/david/peer/salsita/node-pg-migrate.svg)](https://david-dm.org/salsita/node-pg-migrate?type=peer)
[![optionalDependencies Status](https://img.shields.io/david/optional/salsita/node-pg-migrate.svg)](https://david-dm.org/salsita/node-pg-migrate?type=optional)
[![NPM version](https://img.shields.io/npm/v/node-pg-migrate.svg)](https://www.npmjs.com/package/node-pg-migrate)

@@ -29,3 +27,3 @@ ![Downloads](https://img.shields.io/npm/dm/node-pg-migrate.svg?style=flat)

{
"db": "postgres://postgres:password@localhost:5432/name"
"db": "postgres://postgres:password@localhost:5432/database"
}

@@ -44,3 +42,3 @@ ```

"port": 5432,
"name": "name"
"database": "database"
}

@@ -53,3 +51,3 @@ }

```
DATABASE_URL=postgres://postgres@localhost/name node-pg-migrate
DATABASE_URL=postgres://postgres@localhost/database node-pg-migrate
```

@@ -66,3 +64,3 @@

"port": 5432,
"name": "name"
"database": "database"
}

@@ -121,3 +119,3 @@ ```

* either `url` or [`user`], [`password`], `host` (defaults to localhost), `port` (defaults to 5432), `name` - for connection details
* either `url` or [`user`], [`password`], `host` (defaults to localhost), `port` (defaults to 5432), `database` - for connection details

@@ -124,0 +122,0 @@ * `type-shorthands` - for column type shorthands

Sorry, the diff of this file is not supported yet

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