pg-promise 11.7.5 → 11.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -159,7 +159,10 @@ function _TN(a, ...args) {
159
159
  a = a.map((b, i) => b + (i < args.length ? args[i] : '')).join('');
160
160
  } // else 'a' is a string
161
161
  const [schema, table] = a.split('.');
162
- return table === undefined ? {table: schema} : {schema, table};
162
+ if(table === undefined) {
163
+ return {table: schema};
164
+ }
165
+ return schema ? {schema, table} : {table};
163
166
  }
164
167
 
165
168
  module.exports = {TableName, _TN};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-promise",
3
- "version": "11.7.5",
3
+ "version": "11.7.6",
4
4
  "description": "PostgreSQL interface for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "typings": "typescript/pg-promise.d.ts",