@flowblade/sql-tag-format 0.0.4 β†’ 0.0.5

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.
Files changed (2) hide show
  1. package/README.md +1 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -41,10 +41,7 @@ const query = sql<{
41
41
  }>`
42
42
  SELECT id, username FROM users
43
43
  WHERE country = ${params.country} -- πŸ‘ˆ simple
44
- AND username IN (${sql.join(params.users)}) -- πŸ‘ˆ sql.join
45
-
46
- -- πŸ‘‡ conditional clause with sql.empty
47
- ${params.ids.length > 0 ? sql`AND id IN (${sql.join(params.ids)})` : sql.empty}
44
+ AND username IN (${sql.join(params.users)}) -- πŸ‘ˆ sql.join
48
45
  `;
49
46
 
50
47
  const pgsqlFormatter = new SqlFormatter('postgresql');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@flowblade/sql-tag-format",
3
3
  "description": "Formatter utilities for @flowblade/sql-tag",
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Vanvelthem SΓ©bastien",