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

pg-minify

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-minify - npm Package Compare versions

Comparing version 1.2.6 to 1.3.0

2

lib/parser.js

@@ -74,3 +74,3 @@ 'use strict';

}
if (sql[idx + 2] === '!') {
if (sql[idx + 2] === '!' && !options.removeAll) {
if (options.compress) {

@@ -77,0 +77,0 @@ space = false;

{
"name": "pg-minify",
"version": "1.2.6",
"version": "1.3.0",
"description": "Minifies PostgreSQL scripts.",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -74,7 +74,11 @@ pg-minify

* `false (default)` - keep minimum spaces, for easier read
* `true` - remove all unnecessary spaces
* `false (default)` - keeps minimum spaces, for easier read
* `true` - removes all unnecessary spaces
See also: [SQL Compression].
##### options.removeAll ⇒ Boolean
Removes everything, i.e. special/copyright multi-line comments that start with `/*!` will be removed as well.
## Testing

@@ -81,0 +85,0 @@

////////////////////////////////////////
// For pg-minify v1.2.1 or later.
// For pg-minify v1.3.0 or later.
////////////////////////////////////////

@@ -9,2 +9,3 @@

compress?: boolean;
removeAll?: boolean;
};

@@ -11,0 +12,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