pg-promise 11.7.6 → 11.7.7

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.
@@ -156,10 +156,10 @@ npm.utils.addInspection(TableName, function () {
156
156
  */
157
157
  function _TN(a, ...args) {
158
158
  if (Array.isArray(a) && a.raw) {
159
- a = a.map((b, i) => b + (i < args.length ? args[i] : '')).join('');
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
- if(table === undefined) {
162
+ if (table === undefined) {
163
163
  return {table: schema};
164
164
  }
165
165
  return schema ? {schema, table} : {table};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-promise",
3
- "version": "11.7.6",
3
+ "version": "11.7.7",
4
4
  "description": "PostgreSQL interface for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "typings": "typescript/pg-promise.d.ts",