Comparing version 1.2.0 to 1.2.1
@@ -48,5 +48,5 @@ 'use strict'; | ||
SQLParsingError.prototype.inspect = function () { | ||
utils.addInspection(SQLParsingError, function () { | ||
return this.toString(); | ||
}; | ||
}); | ||
@@ -53,0 +53,0 @@ module.exports = { |
'use strict'; | ||
const os = require('os'); | ||
const util = require('util'); | ||
@@ -52,6 +53,18 @@ ////////////////////////////////////// | ||
//////////////////////////////////////////////////// | ||
// Legacy type inspection, to support Node.js < 6.x | ||
function addInspection(type, cb) { | ||
// istanbul ignore else; | ||
if (util.inspect.custom) { | ||
type.prototype[util.inspect.custom] = cb; | ||
} else { | ||
type.prototype.inspect = cb; | ||
} | ||
} | ||
module.exports = { | ||
getEOL, | ||
getIndexPos, | ||
messageGap | ||
messageGap, | ||
addInspection | ||
}; |
{ | ||
"name": "pg-minify", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Minifies PostgreSQL scripts.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
14733
313