Comparing version 0.0.4 to 0.0.5
@@ -8,2 +8,4 @@ 'use strict'; | ||
Object.freeze(parsingErrorCode); | ||
function SQLParsingError(code, error, position) { | ||
@@ -10,0 +12,0 @@ var temp = Error.apply(this, arguments); |
@@ -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 @@ |
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
14698
340