neosqlite 1.0.11 → 1.0.12

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.11",
4
+ "version": "1.0.12",
5
5
  "main": "lib/src/index.js",
6
6
  "scripts": {
7
7
  "build": "tsc",
@@ -10,11 +10,11 @@ async function New({ name, migrationPath }) {
10
10
  import type { NeosqliteClient } from 'neosqlite';
11
11
 
12
12
  export default class Migration_${epochTime}_${name} {
13
- public static async up(db: NeosqliteClient) {
13
+ public static up(db: NeosqliteClient) {
14
14
  // Add your migration logic here
15
15
  }
16
16
 
17
- public static async down(db: NeosqliteClient) {
17
+ public static down(db: NeosqliteClient) {
18
18
  // Add your rollback logic here
19
19
  }
20
20
  }
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.11",
4
+ "version": "1.0.12",
5
5
  "main": "lib/src/index.js",
6
6
  "scripts": {
7
7
  "build": "tsc",
@@ -15,11 +15,11 @@ export default async function New({ name, migrationPath }: NewCommandOptions) {
15
15
  import type { NeosqliteClient } from 'neosqlite';
16
16
 
17
17
  export default class Migration_${epochTime}_${name} {
18
- public static async up(db: NeosqliteClient) {
18
+ public static up(db: NeosqliteClient) {
19
19
  // Add your migration logic here
20
20
  }
21
21
 
22
- public static async down(db: NeosqliteClient) {
22
+ public static down(db: NeosqliteClient) {
23
23
  // Add your rollback logic here
24
24
  }
25
25
  }
package/tsconfig.json CHANGED
@@ -8,6 +8,6 @@
8
8
  "resolveJsonModule": true,
9
9
  "esModuleInterop": true
10
10
  },
11
- "include": ["src"],
11
+ "include": ["src", "migrations"],
12
12
  "exclude": ["node_modules"]
13
13
  }