Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "pg-cursor", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
11
pg.js
@@ -1,3 +0,1 @@ | ||
var path = require('path') | ||
var pgPath; | ||
//support both pg & pg.js | ||
@@ -7,8 +5,7 @@ //this will eventually go away when i break native bindings | ||
try { | ||
pgPath = path.dirname(require.resolve('pg')) | ||
module.exports.Result = require('pg/lib/result.js') | ||
module.exports.prepareValue = require('pg/lib/utils.js').prepareValue | ||
} catch(e) { | ||
pgPath = path.dirname(require.resolve('pg.js')) + '/lib' | ||
module.exports.Result = require('pg.js/lib/result.js') | ||
module.exports.prepareValue = require('pg.js/lib/utils.js').prepareValue | ||
} | ||
module.exports.Result = require(path.join(pgPath, 'result.js')) | ||
module.exports.prepareValue = require(path.join(pgPath, 'utils.js')).prepareValue |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
1
14531
354