@storecraft/database-sqlite 1.0.14 → 1.0.16

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 CHANGED
@@ -27,8 +27,6 @@ import { migrateToLatest } from '@storecraft/database-sqlite/migrate.js'
27
27
  const app = new App(
28
28
  {
29
29
  auth_admins_emails: ['admin@sc.com'],
30
- auth_secret_access_token: 'auth_secret_access_token',
31
- auth_secret_refresh_token: 'auth_secret_refresh_token'
32
30
  }
33
31
  )
34
32
  .withPlatform(new NodePlatform())
@@ -53,6 +51,20 @@ const server = http.createServer(app.handler).listen(
53
51
 
54
52
  ```
55
53
 
54
+ Storecraft will search the following `env` variables
55
+
56
+ ```bash
57
+ SQLITE_FILEPATH=./data.db
58
+ ```
59
+
60
+ So, you can instantiate with empty config
61
+ ```ts
62
+ .withDatabase(
63
+ new SQLite()
64
+ )
65
+ ```
66
+
67
+
56
68
  ## Testing Locally
57
69
 
58
70
  Simply run `tests/runner.test.js`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storecraft/database-sqlite",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "Official SQLite Database driver for storecraft",
5
5
  "license": "MIT",
6
6
  "author": "Tomer Shalev (https://github.com/store-craft)",
@@ -11,7 +11,9 @@ export const create_app = async () => {
11
11
  {
12
12
  auth_admins_emails: ['admin@sc.com'],
13
13
  auth_secret_access_token: 'auth_secret_access_token',
14
- auth_secret_refresh_token: 'auth_secret_refresh_token'
14
+ auth_secret_refresh_token: 'auth_secret_refresh_token',
15
+ auth_secret_confirm_email_token: 'auth_secret_confirm_email_token',
16
+ auth_secret_forgot_password_token: 'auth_secret_forgot_password_token',
15
17
  }
16
18
  )
17
19
  .withPlatform(new NodePlatform())