pg-promise 11.7.1 → 11.7.3

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.
@@ -153,8 +153,11 @@ npm.utils.addInspection(TableName, function () {
153
153
  *
154
154
  * @returns {Table}
155
155
  */
156
- function _TN(s) {
157
- const [schema, table] = (s.raw ? s[0] : s).split('.');
156
+ function _TN(a, ...args) {
157
+ if (Array.isArray(a) && a.raw) {
158
+ a = args.length ? a.map((b, i) => b + (args[i] || '')).join('') : a[0];
159
+ }
160
+ const [schema, table] = a.split('.');
158
161
  return table === undefined ? {table: schema} : {schema, table};
159
162
  }
160
163
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pg-promise",
3
- "version": "11.7.1",
3
+ "version": "11.7.3",
4
4
  "description": "PostgreSQL interface for Node.js",
5
5
  "main": "lib/index.js",
6
6
  "typings": "typescript/pg-promise.d.ts",
@@ -708,7 +708,7 @@ declare namespace pgPromise {
708
708
  ColumnSet: typeof ColumnSet
709
709
  TableName: typeof TableName
710
710
 
711
- _TN: (data: TemplateStringsArray | string) => ITable
711
+ _TN: (data: TemplateStringsArray | string, ...args: Array<any>) => ITable
712
712
  }
713
713
 
714
714
  interface IGenericPromise {