@powersync/react-native 1.14.0 → 1.14.2
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.
|
@@ -16,7 +16,13 @@ export class ReactNativeQuickSqliteOpenFactory {
|
|
|
16
16
|
* in the options (if provided)
|
|
17
17
|
* https://github.com/margelo/react-native-quick-sqlite/blob/main/README.md#loading-existing-dbs
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
try {
|
|
20
|
+
var rnqs = require('@journeyapps/react-native-quick-sqlite');
|
|
21
|
+
}
|
|
22
|
+
catch (e) {
|
|
23
|
+
throw new Error(`Could not resolve @journeyapps/react-native-quick-sqlite.
|
|
24
|
+
To open databases with React Native Quick SQLite please install @journeyapps/react-native-quick-sqlite.`);
|
|
25
|
+
}
|
|
20
26
|
const { dbFilename } = this.options;
|
|
21
27
|
const openOptions = { location: this.options.dbLocation };
|
|
22
28
|
let DB;
|
package/lib/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export * from '@powersync/common';
|
|
|
2
2
|
export * from '@powersync/react';
|
|
3
3
|
export * from './db/PowerSyncDatabase';
|
|
4
4
|
export * from './db/adapters/react-native-quick-sqlite/RNQSDBAdapter';
|
|
5
|
-
export * from './db/adapters/react-native-quick-sqlite
|
|
5
|
+
export * from './db/adapters/react-native-quick-sqlite/RNQSDBOpenFactory';
|
|
6
6
|
export * from './sync/stream/ReactNativeRemote';
|
|
7
7
|
export * from './sync/stream/ReactNativeStreamingSyncImplementation';
|
|
8
8
|
export * from './db/adapters/react-native-quick-sqlite/ReactNativeQuickSQLiteOpenFactory';
|
package/lib/index.js
CHANGED
|
@@ -3,7 +3,7 @@ export * from '@powersync/common';
|
|
|
3
3
|
export * from '@powersync/react';
|
|
4
4
|
export * from './db/PowerSyncDatabase';
|
|
5
5
|
export * from './db/adapters/react-native-quick-sqlite/RNQSDBAdapter';
|
|
6
|
-
export * from './db/adapters/react-native-quick-sqlite
|
|
6
|
+
export * from './db/adapters/react-native-quick-sqlite/RNQSDBOpenFactory';
|
|
7
7
|
export * from './sync/stream/ReactNativeRemote';
|
|
8
8
|
export * from './sync/stream/ReactNativeStreamingSyncImplementation';
|
|
9
9
|
export * from './db/adapters/react-native-quick-sqlite/ReactNativeQuickSQLiteOpenFactory';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/react-native",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@powersync/common": "1.20.0",
|
|
39
|
-
"@powersync/react": "1.
|
|
39
|
+
"@powersync/react": "1.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@craftzdog/react-native-buffer": "^6.0.5",
|