selectstar
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -138,3 +138,3 @@ /// <reference types="node" /> | ||
export declare type Template = (fn: typeof subsql) => Subsql; | ||
export declare type SqlLiteralParams = Identifier | List | Unsafe | Template | Literal | SqlLiteralParams[]; | ||
export declare type SqlLiteralParams = Identifier | List | Unsafe | Template | Literal; | ||
/** | ||
@@ -141,0 +141,0 @@ * Using a template literal, generate a query with arguments that can be passed |
@@ -213,6 +213,2 @@ "use strict"; | ||
} | ||
else if (Array.isArray(param)) { | ||
// If the param is an array, it is a shorthand for `list(param, ', ')` | ||
processParam(list(param)); | ||
} | ||
else { | ||
@@ -219,0 +215,0 @@ throw new RangeError(`Value ${param} is not a valid pg literal`); |
{ | ||
"name": "selectstar", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"description": "Generate safe SQL statements with tagged literals", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
32553
463