@lunarhue/react-native-web-wa-sqlite 1.0.10 → 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/README.md CHANGED
@@ -35,8 +35,8 @@ The default build produces ES6 modules + WASM, [synchronous and asynchronous](ht
35
35
  Javascript wrappers for core SQLITE C API functions (and some others) are provided. Some convenience functions are also provided to reduce boilerplate. Here is sample code to load the library and call the API:
36
36
 
37
37
  ```javascript
38
- import SQLiteESMFactory from 'wa-sqlite/dist/wa-sqlite.mjs';
39
- import * as SQLite from 'wa-sqlite';
38
+ import SQLiteESMFactory from '@lunarhue/react-native-web-wa-sqlite/dist/wa-sqlite.mjs';
39
+ import * as SQLite from '@lunarhue/react-native-web-wa-sqlite';
40
40
 
41
41
  async function hello() {
42
42
  const module = await SQLiteESMFactory();
@@ -0,0 +1,2 @@
1
+ declare const _default: any;
2
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunarhue/react-native-web-wa-sqlite",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "type": "module",
5
5
  "main": "src/sqlite-api.js",
6
6
  "types": "src/types/index.d.ts",
@@ -0,0 +1,6 @@
1
+ declare module '@lunarhue/react-native-web-wa-sqlite/src/examples/IDBBatchAtomicVFS.js' {
2
+ export class IDBBatchAtomicVFS {
3
+ constructor(name: string, options?: any);
4
+ static create(name: string, module: any, options?: any): Promise<any>;
5
+ }
6
+ }
@@ -12,13 +12,6 @@ export {};
12
12
  * @module
13
13
  */
14
14
 
15
- declare module '@lunarhue/react-native-web-wa-sqlite/dist/wa-sqlite-async.mjs';
16
- declare module '@lunarhue/react-native-web-wa-sqlite/src/examples/IDBBatchAtomicVFS.js' {
17
- export class IDBBatchAtomicVFS {
18
- constructor(name: string, options?: any);
19
- static create(name: string, module: any, options?: any): Promise<any>;
20
- }
21
- }
22
15
 
23
16
  /**
24
17
  * Javascript types that SQLite can use
@@ -164,14 +157,14 @@ declare interface SQLitePrepareOptions {
164
157
  *
165
158
  * ```javascript
166
159
  * // Import an ES6 module factory function from one of the
167
- * // package builds, either 'wa-sqlite.mjs' (synchronous) or
168
- * // 'wa-sqlite-async.mjs' (asynchronous). You should only
160
+ * // package builds, either '@lunarhue/react-native-web-wa-sqlite.mjs' (synchronous) or
161
+ * // '@lunarhue/react-native-web-wa-sqlite-async.mjs' (asynchronous). You should only
169
162
  * // use the asynchronous build if you plan to use an
170
163
  * // asynchronous VFS or module.
171
- * import SQLiteESMFactory from 'wa-sqlite/dist/wa-sqlite.mjs';
164
+ * import SQLiteESMFactory from '@lunarhue/react-native-web-wa-sqlite/dist/wa-sqlite.mjs';
172
165
  *
173
166
  * // Import the Javascript API wrappers.
174
- * import * as SQLite from 'wa-sqlite';
167
+ * import * as SQLite from '@lunarhue/react-native-web-wa-sqlite';
175
168
  *
176
169
  * // Use an async function to simplify Promise handling.
177
170
  * (async function() {
@@ -865,7 +858,7 @@ declare interface SQLiteAPI {
865
858
  }
866
859
 
867
860
  /** @ignore */
868
- declare module 'wa-sqlite/src/sqlite-constants.js' {
861
+ declare module '@lunarhue/react-native-web-wa-sqlite/src/sqlite-constants.js' {
869
862
  export const SQLITE_OK: 0;
870
863
  export const SQLITE_ERROR: 1;
871
864
  export const SQLITE_INTERNAL: 2;
@@ -1100,8 +1093,8 @@ declare module 'wa-sqlite/src/sqlite-constants.js' {
1100
1093
  export const SQLITE_PREPARE_NO_VTAB: 0x04;
1101
1094
  }
1102
1095
 
1103
- declare module 'wa-sqlite' {
1104
- export * from 'wa-sqlite/src/sqlite-constants.js';
1096
+ declare module '@lunarhue/react-native-web-wa-sqlite' {
1097
+ export * from '@lunarhue/react-native-web-wa-sqlite/src/sqlite-constants.js';
1105
1098
 
1106
1099
  /**
1107
1100
  * @ignore
@@ -1120,20 +1113,20 @@ declare module 'wa-sqlite' {
1120
1113
  }
1121
1114
 
1122
1115
  /** @ignore */
1123
- declare module 'wa-sqlite/dist/wa-sqlite.mjs' {
1116
+ declare module '@lunarhue/react-native-web-wa-sqlite/dist/wa-sqlite.mjs' {
1124
1117
  function ModuleFactory(config?: object): Promise<any>;
1125
1118
  export = ModuleFactory;
1126
1119
  }
1127
1120
 
1128
1121
  /** @ignore */
1129
- declare module 'wa-sqlite/dist/wa-sqlite-async.mjs' {
1122
+ declare module '@lunarhue/react-native-web-wa-sqlite/dist/wa-sqlite-async.mjs' {
1130
1123
  function ModuleFactory(config?: object): Promise<any>;
1131
1124
  export = ModuleFactory;
1132
1125
  }
1133
1126
 
1134
1127
  /** @ignore */
1135
- declare module 'wa-sqlite/src/VFS.js' {
1136
- export * from 'wa-sqlite/src/sqlite-constants.js';
1128
+ declare module '@lunarhue/react-native-web-wa-sqlite/src/VFS.js' {
1129
+ export * from '@lunarhue/react-native-web-wa-sqlite/src/sqlite-constants.js';
1137
1130
 
1138
1131
  export class Base {
1139
1132
  mxPathName: number;
@@ -1248,7 +1241,7 @@ declare module 'wa-sqlite/src/VFS.js' {
1248
1241
  }
1249
1242
 
1250
1243
  /** @ignore */
1251
- declare module 'wa-sqlite/src/examples/IndexedDbVFS.js' {
1244
+ declare module '@lunarhue/react-native-web-wa-sqlite/src/examples/IndexedDbVFS.js' {
1252
1245
  import * as VFS from "wa-sqlite/src/VFS.js";
1253
1246
  export class IndexedDbVFS extends VFS.Base {
1254
1247
  /**
@@ -1301,7 +1294,7 @@ declare module 'wa-sqlite/src/examples/IndexedDbVFS.js' {
1301
1294
  }
1302
1295
 
1303
1296
  /** @ignore */
1304
- declare module 'wa-sqlite/src/examples/MemoryVFS.js' {
1297
+ declare module '@lunarhue/react-native-web-wa-sqlite/src/examples/MemoryVFS.js' {
1305
1298
  import * as VFS from "wa-sqlite/src/VFS.js";
1306
1299
  /** @ignore */
1307
1300
  export class MemoryVFS extends VFS.Base {
@@ -1312,14 +1305,14 @@ declare module 'wa-sqlite/src/examples/MemoryVFS.js' {
1312
1305
  }
1313
1306
 
1314
1307
  /** @ignore */
1315
- declare module 'wa-sqlite/src/examples/MemoryAsyncVFS.js' {
1308
+ declare module '@lunarhue/react-native-web-wa-sqlite/src/examples/MemoryAsyncVFS.js' {
1316
1309
  import { MemoryVFS } from "wa-sqlite/src/examples/MemoryVFS.js";
1317
1310
  export class MemoryAsyncVFS extends MemoryVFS {
1318
1311
  }
1319
1312
  }
1320
1313
 
1321
1314
  /** @ignore */
1322
- declare module 'wa-sqlite/src/examples/tag.js' {
1315
+ declare module '@lunarhue/react-native-web-wa-sqlite/src/examples/tag.js' {
1323
1316
  /**
1324
1317
  * @ignore
1325
1318
  * Template tag builder. This function creates a tag with an API and
@@ -1,6 +1,6 @@
1
1
  import { TestContext } from "./TestContext.js";
2
- import AsyncifyFactory from 'wa-sqlite/dist/wa-sqlite-async.mjs';
3
- import JSPIFactory from 'wa-sqlite/dist/wa-sqlite-jspi.mjs';
2
+ import AsyncifyFactory from '@lunarhue/react-native-web-wa-sqlite/dist/wa-sqlite-async.mjs';
3
+ import JSPIFactory from '@lunarhue/react-native-web-wa-sqlite/dist/wa-sqlite-jspi.mjs';
4
4
  import * as SQLite from '../src/sqlite-api.js';
5
5
 
6
6
  const FACTORIES = new Map([