Comparing version 1.2.6 to 1.3.0
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15220
309
104