Comparing version 1.5.0 to 1.5.1
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
const EOL = require('os').EOL; | ||
@@ -48,3 +46,3 @@ const utils = require('./utils'); | ||
utils.addInspection(SQLParsingError, function () { | ||
utils.addInspection(SQLParsingError.prototype, function () { | ||
return this.toString(); | ||
@@ -51,0 +49,0 @@ }); |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
const parser = require('./parser'); | ||
@@ -4,0 +2,0 @@ const error = require('./error'); |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
const errorLib = require('./error'); | ||
@@ -4,0 +2,0 @@ const utils = require('./utils'); |
@@ -1,3 +0,1 @@ | ||
'use strict'; | ||
const util = require('util'); | ||
@@ -31,10 +29,5 @@ | ||
//////////////////////////////////////////////////// | ||
// Legacy type inspection, to support Node.js < 6.x | ||
// Type inspection | ||
function addInspection(type, cb) { | ||
// istanbul ignore else; | ||
if (util.inspect.custom) { | ||
type.prototype[util.inspect.custom] = cb; | ||
} else { | ||
type.prototype.inspect = cb; | ||
} | ||
type[util.inspect.custom] = cb; | ||
} | ||
@@ -41,0 +34,0 @@ |
{ | ||
"name": "pg-minify", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Minifies PostgreSQL scripts.", | ||
@@ -46,7 +46,7 @@ "main": "lib/index.js", | ||
"coveralls": "3.0.6", | ||
"eslint": "6.1.0", | ||
"eslint": "6.3.0", | ||
"istanbul": "0.4.5", | ||
"jasmine-node": "3.0.0", | ||
"typescript": "3.5.3" | ||
"typescript": "3.6.2" | ||
} | ||
} |
@@ -13,4 +13,4 @@ //////////////////////////////////////// | ||
interface IErrorPosition { | ||
line: number, | ||
column: number | ||
line: number; | ||
column: number; | ||
} | ||
@@ -17,0 +17,0 @@ |
## TypeScript for pg-minify | ||
Complete TypeScript 3.x declarations for the module. | ||
Complete TypeScript 3.x (`strict` mode) declarations for the module. | ||
@@ -5,0 +5,0 @@ ### Inclusion |
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
14550
287