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.3.1 to 0.3.2

16

lib/error.js

@@ -39,9 +39,11 @@ 'use strict';

SQLParsingError.prototype.toString = function () {
SQLParsingError.prototype.toString = function (level) {
level = level > 0 ? parseInt(level) : 0;
var gap = messageGap(level + 1);
var lines = [
'SQLParsingError {',
' code: parsingErrorCode.' + errorMessages[this.code].name,
' error: "' + this.error + '"',
' position: {line: ' + this.position.line + ", col: " + this.position.column + '}',
'}'
gap + 'code: parsingErrorCode.' + errorMessages[this.code].name,
gap + 'error: "' + this.error + '"',
gap + 'position: {line: ' + this.position.line + ", col: " + this.position.column + '}',
messageGap(level) + '}'
];

@@ -51,2 +53,6 @@ return lines.join(EOL);

function messageGap(level) {
return Array(level * 4).join(' ');
}
SQLParsingError.prototype.inspect = function () {

@@ -53,0 +59,0 @@ return this.toString();

{
"name": "pg-minify",
"version": "0.3.1",
"version": "0.3.2",
"description": "Minifies PostgreSQL scripts.",

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

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