@powersync/op-sqlite 0.2.0 → 0.2.1
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/android/build.gradle +1 -1
- package/lib/commonjs/db/OPSqliteAdapter.js +1 -3
- package/lib/commonjs/db/OPSqliteAdapter.js.map +1 -1
- package/lib/module/db/OPSqliteAdapter.js +1 -3
- package/lib/module/db/OPSqliteAdapter.js.map +1 -1
- package/lib/typescript/commonjs/src/db/OPSqliteAdapter.d.ts.map +1 -1
- package/lib/typescript/commonjs/tsconfig.build.tsbuildinfo +1 -1
- package/lib/typescript/module/src/db/OPSqliteAdapter.d.ts.map +1 -1
- package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/powersync-op-sqlite.podspec +1 -1
- package/src/db/OPSqliteAdapter.ts +1 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/op-sqlite",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "PowerSync - sync Postgres or MongoDB with SQLite in your React Native app for offline-first and real-time data",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -58,17 +58,17 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@op-engineering/op-sqlite": "^
|
|
62
|
-
"@powersync/common": "^1.22.
|
|
61
|
+
"@op-engineering/op-sqlite": "^11.2.13",
|
|
62
|
+
"@powersync/common": "^1.22.2",
|
|
63
63
|
"react": "*",
|
|
64
64
|
"react-native": "*"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"async-lock": "^1.4.0",
|
|
68
|
-
"@powersync/common": "1.22.
|
|
68
|
+
"@powersync/common": "1.22.2"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@op-engineering/op-sqlite": "^
|
|
71
|
+
"@op-engineering/op-sqlite": "^11.2.13",
|
|
72
72
|
"@react-native/eslint-config": "^0.73.1",
|
|
73
73
|
"@types/async-lock": "^1.4.0",
|
|
74
74
|
"@types/react": "^18.2.44",
|
|
@@ -131,6 +131,6 @@
|
|
|
131
131
|
"build:prod": "bob build",
|
|
132
132
|
"typecheck": "tsc",
|
|
133
133
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
134
|
-
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib"
|
|
134
|
+
"clean": "del-cli android/build example/android/build example/android/app/build example/ios/build lib node_modules"
|
|
135
135
|
}
|
|
136
136
|
}
|
|
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
|
|
|
17
17
|
|
|
18
18
|
s.dependency "React-callinvoker"
|
|
19
19
|
s.dependency "React"
|
|
20
|
-
s.dependency "powersync-sqlite-core", "~> 0.3.
|
|
20
|
+
s.dependency "powersync-sqlite-core", "~> 0.3.8"
|
|
21
21
|
if defined?(install_modules_dependencies())
|
|
22
22
|
install_modules_dependencies(s)
|
|
23
23
|
else
|
|
@@ -78,9 +78,7 @@ export class OPSQLiteDBAdapter extends BaseObserver<DBAdapterListener> implement
|
|
|
78
78
|
|
|
79
79
|
this.readConnections = [];
|
|
80
80
|
for (let i = 0; i < READ_CONNECTIONS; i++) {
|
|
81
|
-
|
|
82
|
-
let dbName = './'.repeat(i + 1) + dbFilename;
|
|
83
|
-
const conn = await this.openConnection(dbName);
|
|
81
|
+
const conn = await this.openConnection(dbFilename);
|
|
84
82
|
await conn.execute('PRAGMA query_only = true');
|
|
85
83
|
this.readConnections.push({ busy: false, connection: conn });
|
|
86
84
|
}
|