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.0.4 to 0.0.5

2

lib/error.js

@@ -8,2 +8,4 @@ 'use strict';

Object.freeze(parsingErrorCode);
function SQLParsingError(code, error, position) {

@@ -10,0 +12,0 @@ var temp = Error.apply(this, arguments);

3

lib/index.js

@@ -6,4 +6,5 @@ 'use strict';

parser.minify.SQLParsingError = error;
parser.minify.SQLParsingError = error.SQLParsingError;
parser.minify.parsingErrorCode = error.parsingErrorCode;
module.exports = parser.minify;
{
"name": "pg-minify",
"version": "0.0.4",
"version": "0.0.5",
"description": "Minifies PostgreSQL scripts.",

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

@@ -45,3 +45,3 @@ pg-minify

[SQLParsingError] is thrown on failed SQL parsing.
[SQLParsingError] is thrown on failed SQL parsing:

@@ -63,2 +63,2 @@ ```js

[SQLParsingError]:https://github.com/vitaly-t/pg-minify/blob/master/lib/error.js#L8
[SQLParsingError]:https://github.com/vitaly-t/pg-minify/blob/master/lib/error.js#L10

@@ -8,2 +8,18 @@ 'use strict';

describe("Protocol", function () {
it("must have a function at the root", function () {
expect(minify instanceof Function).toBe(true);
});
it("must expose SQLParsingError type from the root", function () {
expect(minify.SQLParsingError instanceof Function).toBe(true);
});
it("must expose parsingErrorCode enum from the root", function () {
expect(minify.parsingErrorCode && typeof minify.parsingErrorCode === 'object').toBeTruthy();
});
});
describe("Minify/Positive", function () {

@@ -10,0 +26,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