Comparing version 0.2.0 to 0.2.1
@@ -5,4 +5,8 @@ 'use strict'; | ||
var errorLib = require('./error'); | ||
var PEC = errorLib.parsingErrorCode; | ||
// symbols that need no spaces around them: | ||
var compressors = '.,;:()[]=<>+-*/|!?@#'; | ||
/////////////////////////////////////////// | ||
@@ -27,5 +31,4 @@ // Parses and minifies a PostgreSQL script. | ||
len = sql.length, // sql length | ||
EOL = getEOL(sql), // End-Of-Line | ||
space = false, // add a space on the next step; | ||
compressors = '.,;:()[]=<>+-*/|!', // symbols for which surrounding spaces have no meaning: | ||
EOL = getEOL(sql), // end-of-line | ||
space = false, // add a space on the next step | ||
compress = options && options.compress; // options 'compress' | ||
@@ -32,0 +35,0 @@ |
{ | ||
"name": "pg-minify", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Minifies PostgreSQL scripts.", | ||
@@ -25,3 +25,4 @@ "main": "lib/index.js", | ||
"minify SQL", | ||
"uglify SQL" | ||
"uglify SQL", | ||
"compress SQL" | ||
], | ||
@@ -28,0 +29,0 @@ "author": { |
@@ -67,4 +67,3 @@ pg-minify | ||
Compresses the SQL to its bare minimum that PostgreSQL can understand, | ||
by removing all unnecessary spaces. | ||
Compresses / uglifies the SQL to its bare minimum, by removing all unnecessary spaces. | ||
@@ -71,0 +70,0 @@ * `false (default)` - keep minimum spaces, for easier read |
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
225
10358
78