neosqlite 1.0.10 → 1.0.11

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 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.10",
4
+ "version": "1.0.11",
5
5
  "main": "lib/src/index.js",
6
6
  "scripts": {
7
7
  "build": "tsc",
@@ -1,5 +1,8 @@
1
1
  import { ExecuteQueryParams, NeosqliteConfig } from "../types";
2
- export declare const parseQuery: (params: ExecuteQueryParams) => import("../types").QueryParams;
2
+ export declare const parseQuery: (params: ExecuteQueryParams) => {
3
+ sql: string;
4
+ args: Record<string, string | number | boolean | null>;
5
+ };
3
6
  export declare const runQuery: (config: NeosqliteConfig, params: ExecuteQueryParams, fn: Function) => any;
4
7
  /**
5
8
  * Join a list of strings into a single string for
@@ -13,7 +13,7 @@ const parseQuery = (params) => {
13
13
  args[key] = value ? 1 : 0;
14
14
  }
15
15
  }
16
- return params;
16
+ return { sql: params.sql, args };
17
17
  };
18
18
  exports.parseQuery = parseQuery;
19
19
  const runQuery = (config, params, fn) => {
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.10",
4
+ "version": "1.0.11",
5
5
  "main": "lib/src/index.js",
6
6
  "scripts": {
7
7
  "build": "tsc",
@@ -16,7 +16,7 @@ export const parseQuery = (params: ExecuteQueryParams) => {
16
16
  }
17
17
  }
18
18
 
19
- return params;
19
+ return { sql: params.sql, args };
20
20
  };
21
21
 
22
22
  export const runQuery = (config: NeosqliteConfig, params: ExecuteQueryParams, fn: Function) => {