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 0.2.1 to 0.2.2

2

lib/parser.js

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

if (prev !== 'E' && prev !== 'e') {
result += 'E';
result += (result && compress) ? ' E' : 'E';
}

@@ -121,0 +121,0 @@ if (hasTabs) {

{
"name": "pg-minify",
"version": "0.2.1",
"version": "0.2.2",
"description": "Minifies PostgreSQL scripts.",

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

@@ -10,6 +10,7 @@ pg-minify

1. Removes both `/*multi-line*/` and `--single-line` comments
2. Concatenates multi-line strings into single-line with `\n`
2. Concatenates multi-line strings into a single line with `\n`
3. Removes redundant line gaps: line breaks, tabs and spaces
4. Flattens the resulting script into a single line
It also provides basic parsing and error reporting for invalid SQL.

@@ -16,0 +17,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