@flowblade/sql-tag-format 0.0.4 β 0.0.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.
- package/README.md +1 -4
- package/package.json +3 -3
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
|
+
"version": "0.0.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Vanvelthem SΓ©bastien",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@arethetypeswrong/cli": "0.17.3",
|
|
74
|
-
"@belgattitude/eslint-config-bases": "6.
|
|
74
|
+
"@belgattitude/eslint-config-bases": "6.19.0",
|
|
75
75
|
"@codspeed/vitest-plugin": "4.0.0",
|
|
76
76
|
"@edge-runtime/vm": "5.0.0",
|
|
77
77
|
"@size-limit/file": "11.1.6",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"execa": "9.5.2",
|
|
88
88
|
"npm-run-all2": "7.0.2",
|
|
89
89
|
"prettier": "3.4.2",
|
|
90
|
-
"publint": "0.3.
|
|
90
|
+
"publint": "0.3.2",
|
|
91
91
|
"rimraf": "6.0.1",
|
|
92
92
|
"rollup": "4.30.1",
|
|
93
93
|
"size-limit": "11.1.6",
|