web-sqlite-js 1.0.8 → 1.0.10

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
@@ -66,7 +66,7 @@ For quick demos or plain HTML pages you can load the prebuilt module directly:
66
66
 
67
67
  ```html
68
68
  <script type="module">
69
- import openDB from "https://cdn.jsdelivr.net/npm/web-sqlite-js@1.0.8/dist/index.js";
69
+ import openDB from "https://cdn.jsdelivr.net/npm/web-sqlite-js@1.0.10/dist/index.js";
70
70
  // ...
71
71
  </script>
72
72
  ```
package/dist/index.d.ts CHANGED
@@ -34,21 +34,12 @@ declare type ExecResult = {
34
34
  };
35
35
 
36
36
  /**
37
+ * PUBLIC API (Client End)
37
38
  * Opens a SQLite database connection.
38
- *
39
- * @param filename - The path to the SQLite database file to open.
40
- * @param options - Optional configuration options for opening the database.
41
- * @returns A promise that resolves to a DBInterface object providing methods to interact with the database.
42
- *
43
- * @example
44
- * ```typescript
45
- * const db = await openDB('./mydata.db');
46
- * const results = await db.query('SELECT * FROM users');
47
- * await db.close();
48
- * ```
49
39
  */
50
40
  declare const openDB: (filename: string, options?: WorkerOpenDBOptions) => Promise<DBInterface>;
51
41
  export default openDB;
42
+ export { openDB as open }
52
43
  export { openDB }
53
44
 
54
45
  /** A bindable parameter collection: positional or named. */