neosqlite 1.0.13 → 1.0.14
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/lib/package.json +1 -1
- package/lib/src/client/util.d.ts +1 -1
- package/package.json +1 -1
- package/src/client/util.ts +1 -1
package/lib/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neosqlite",
|
|
3
3
|
"description": "A lightweight wrapper around better-sqlite3 that adds developer-friendly features like job scheduling, migrations, error handling, query logging, SQL utilities, and more",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.14",
|
|
5
5
|
"main": "lib/src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc",
|
package/lib/src/client/util.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const runQuery: (config: NeosqliteConfig, params: ExecuteQueryPar
|
|
|
16
16
|
* // Returns
|
|
17
17
|
* "SELECT * FROM users WHERE id = :id"
|
|
18
18
|
*/
|
|
19
|
-
export declare const queryString: (...args: (string | boolean | undefined)[]) => string;
|
|
19
|
+
export declare const queryString: (...args: (string | boolean | undefined | null)[]) => string;
|
|
20
20
|
/**
|
|
21
21
|
* Take a list and return an object with its sql placeholder names, and
|
|
22
22
|
* its prepared arguments
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neosqlite",
|
|
3
3
|
"description": "A lightweight wrapper around better-sqlite3 that adds developer-friendly features like job scheduling, migrations, error handling, query logging, SQL utilities, and more",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.14",
|
|
5
5
|
"main": "lib/src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc",
|
package/src/client/util.ts
CHANGED
|
@@ -50,7 +50,7 @@ export const runQuery = (config: NeosqliteConfig, params: ExecuteQueryParams, fn
|
|
|
50
50
|
* // Returns
|
|
51
51
|
* "SELECT * FROM users WHERE id = :id"
|
|
52
52
|
*/
|
|
53
|
-
export const queryString = (...args: (string | boolean | undefined)[]) => {
|
|
53
|
+
export const queryString = (...args: (string | boolean | undefined | null)[]) => {
|
|
54
54
|
const filteredArgs = args.filter(Boolean);
|
|
55
55
|
return filteredArgs.join(NEWLINE_CHAR);
|
|
56
56
|
};
|