pg-promise
Advanced tools
Comparing version 10.9.0 to 10.9.1
@@ -29,3 +29,3 @@ /* | ||
static get instance() { | ||
const s = Symbol.for(`pgPromise`); | ||
const s = Symbol.for(`pgPromiseDatabasePool`); | ||
let scope = global[s]; | ||
@@ -32,0 +32,0 @@ if (!scope) { |
@@ -121,2 +121,4 @@ /* | ||
const {usedPath} = QueryFile.instance; | ||
// istanbul ignore next: | ||
@@ -148,2 +150,19 @@ if (!options.noWarnings) { | ||
/** | ||
* Global instance of the file-path repository. | ||
* | ||
* @return {{usedPath: {}}} | ||
*/ | ||
static get instance() { | ||
const s = Symbol.for(`pgPromiseQueryFile`); | ||
let scope = global[s]; | ||
if (!scope) { | ||
scope = { | ||
usedPath: {} // used-path look-up dictionary | ||
}; | ||
global[s] = scope; | ||
} | ||
return scope; | ||
} | ||
/** | ||
* @name QueryFile#Symbol(QueryFile.$query) | ||
@@ -268,4 +287,2 @@ * @type {string} | ||
const usedPath = {}; | ||
/** | ||
@@ -272,0 +289,0 @@ * @method QueryFile#toPostgres |
{ | ||
"name": "pg-promise", | ||
"version": "10.9.0", | ||
"version": "10.9.1", | ||
"description": "PostgreSQL interface for Node.js", | ||
@@ -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
421092
9700