@powersync/web 1.34.0 → 1.36.0
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/dist/_journeyapps_wa-sqlite-_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapp-89f0ba.index.umd.js +79 -76
- package/dist/_journeyapps_wa-sqlite-_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapp-89f0ba.index.umd.js.map +1 -1
- package/dist/{_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-2530150.index.umd.js → _journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-97ebe9.index.umd.js} +77 -77
- package/dist/_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-97ebe9.index.umd.js.map +1 -0
- package/dist/index.umd.js +135 -118
- package/dist/index.umd.js.map +1 -1
- package/dist/worker/SharedSyncImplementation.umd.js +18317 -18177
- package/dist/worker/SharedSyncImplementation.umd.js.map +1 -1
- package/dist/worker/WASQLiteDB.umd.js +17032 -16895
- package/dist/worker/WASQLiteDB.umd.js.map +1 -1
- package/dist/worker/node_modules_pnpm_bson_6_10_4_node_modules_bson_lib_bson_mjs.umd.js.map +1 -1
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_dist_mc-wa-s-b9c070.umd.js +10 -10
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_dist_mc-wa-s-b9c070.umd.js.map +1 -1
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_dist_mc-wa-s-c99c07.umd.js +10 -10
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_dist_mc-wa-s-c99c07.umd.js.map +1 -1
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_dist_wa-sqli-cc5fcc.umd.js +10 -10
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_dist_wa-sqli-cc5fcc.umd.js.map +1 -1
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_dist_wa-sqlite_mjs.umd.js +10 -10
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_dist_wa-sqlite_mjs.umd.js.map +1 -1
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_src_examples-0df390.umd.js.map +1 -1
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_src_examples-151024.umd.js.map +1 -1
- package/dist/worker/node_modules_pnpm_journeyapps_wa-sqlite_1_5_0_node_modules_journeyapps_wa-sqlite_src_examples-c01ef0.umd.js.map +1 -1
- package/lib/package.json +2 -2
- package/lib/src/db/adapters/LockedAsyncDatabaseAdapter.js +9 -6
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/db/adapters/LockedAsyncDatabaseAdapter.ts +14 -15
- package/src/index.ts +1 -0
- package/dist/_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-2530150.index.umd.js.map +0 -1
- package/dist/_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-2530151.index.umd.js +0 -555
- package/dist/_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-2530151.index.umd.js.map +0 -1
|
@@ -1,17 +1,87 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("@journeyapps/wa-sqlite"), require("@journeyapps/wa-sqlite/src/examples/
|
|
3
|
+
module.exports = factory(require("@journeyapps/wa-sqlite"), require("@powersync/common"), require("comlink"), require("async-mutex"), require("@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js"), require("@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js"), require("@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["@journeyapps/wa-sqlite", "@journeyapps/wa-sqlite/src/examples/
|
|
5
|
+
define(["@journeyapps/wa-sqlite", "@powersync/common", "comlink", "async-mutex", "@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js", "@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js", "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"], factory);
|
|
6
6
|
else if(typeof exports === 'object')
|
|
7
|
-
exports["sdk_web"] = factory(require("@journeyapps/wa-sqlite"), require("@journeyapps/wa-sqlite/src/examples/
|
|
7
|
+
exports["sdk_web"] = factory(require("@journeyapps/wa-sqlite"), require("@powersync/common"), require("comlink"), require("async-mutex"), require("@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js"), require("@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js"), require("@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"));
|
|
8
8
|
else
|
|
9
|
-
root["sdk_web"] = factory(root["@journeyapps/wa-sqlite"], root["@journeyapps/wa-sqlite/src/examples/
|
|
10
|
-
})(self, (__WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__,
|
|
9
|
+
root["sdk_web"] = factory(root["@journeyapps/wa-sqlite"], root["@powersync/common"], root["comlink"], root["async-mutex"], root["@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js"], root["@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js"], root["@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"]);
|
|
10
|
+
})(self, (__WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__, __WEBPACK_EXTERNAL_MODULE__powersync_common__, __WEBPACK_EXTERNAL_MODULE_comlink__, __WEBPACK_EXTERNAL_MODULE_async_mutex__, __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_OPFSCoopSyncVFS_js__, __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_AccessHandlePoolVFS_js__, __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__) => {
|
|
11
11
|
return /******/ (() => { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ "@journeyapps/wa-sqlite"
|
|
16
|
+
/*!*****************************************!*\
|
|
17
|
+
!*** external "@journeyapps/wa-sqlite" ***!
|
|
18
|
+
\*****************************************/
|
|
19
|
+
(module) {
|
|
20
|
+
|
|
21
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__;
|
|
22
|
+
|
|
23
|
+
/***/ },
|
|
24
|
+
|
|
25
|
+
/***/ "@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js"
|
|
26
|
+
/*!*****************************************************************************!*\
|
|
27
|
+
!*** external "@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js" ***!
|
|
28
|
+
\*****************************************************************************/
|
|
29
|
+
(module) {
|
|
30
|
+
|
|
31
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_AccessHandlePoolVFS_js__;
|
|
32
|
+
|
|
33
|
+
/***/ },
|
|
34
|
+
|
|
35
|
+
/***/ "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"
|
|
36
|
+
/*!***************************************************************************!*\
|
|
37
|
+
!*** external "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js" ***!
|
|
38
|
+
\***************************************************************************/
|
|
39
|
+
(module) {
|
|
40
|
+
|
|
41
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__;
|
|
42
|
+
|
|
43
|
+
/***/ },
|
|
44
|
+
|
|
45
|
+
/***/ "@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js"
|
|
46
|
+
/*!*************************************************************************!*\
|
|
47
|
+
!*** external "@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js" ***!
|
|
48
|
+
\*************************************************************************/
|
|
49
|
+
(module) {
|
|
50
|
+
|
|
51
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_OPFSCoopSyncVFS_js__;
|
|
52
|
+
|
|
53
|
+
/***/ },
|
|
54
|
+
|
|
55
|
+
/***/ "@powersync/common"
|
|
56
|
+
/*!************************************!*\
|
|
57
|
+
!*** external "@powersync/common" ***!
|
|
58
|
+
\************************************/
|
|
59
|
+
(module) {
|
|
60
|
+
|
|
61
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__powersync_common__;
|
|
62
|
+
|
|
63
|
+
/***/ },
|
|
64
|
+
|
|
65
|
+
/***/ "async-mutex"
|
|
66
|
+
/*!******************************!*\
|
|
67
|
+
!*** external "async-mutex" ***!
|
|
68
|
+
\******************************/
|
|
69
|
+
(module) {
|
|
70
|
+
|
|
71
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_async_mutex__;
|
|
72
|
+
|
|
73
|
+
/***/ },
|
|
74
|
+
|
|
75
|
+
/***/ "comlink"
|
|
76
|
+
/*!**************************!*\
|
|
77
|
+
!*** external "comlink" ***!
|
|
78
|
+
\**************************/
|
|
79
|
+
(module) {
|
|
80
|
+
|
|
81
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_comlink__;
|
|
82
|
+
|
|
83
|
+
/***/ },
|
|
84
|
+
|
|
15
85
|
/***/ "./lib/src/worker/db/SharedWASQLiteConnection.js"
|
|
16
86
|
/*!*******************************************************!*\
|
|
17
87
|
!*** ./lib/src/worker/db/SharedWASQLiteConnection.js ***!
|
|
@@ -228,76 +298,6 @@ class WorkerWASQLiteConnection extends _db_adapters_wa_sqlite_WASQLiteConnection
|
|
|
228
298
|
}
|
|
229
299
|
|
|
230
300
|
|
|
231
|
-
/***/ },
|
|
232
|
-
|
|
233
|
-
/***/ "@journeyapps/wa-sqlite"
|
|
234
|
-
/*!*****************************************!*\
|
|
235
|
-
!*** external "@journeyapps/wa-sqlite" ***!
|
|
236
|
-
\*****************************************/
|
|
237
|
-
(module) {
|
|
238
|
-
|
|
239
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__;
|
|
240
|
-
|
|
241
|
-
/***/ },
|
|
242
|
-
|
|
243
|
-
/***/ "@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js"
|
|
244
|
-
/*!*****************************************************************************!*\
|
|
245
|
-
!*** external "@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js" ***!
|
|
246
|
-
\*****************************************************************************/
|
|
247
|
-
(module) {
|
|
248
|
-
|
|
249
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_AccessHandlePoolVFS_js__;
|
|
250
|
-
|
|
251
|
-
/***/ },
|
|
252
|
-
|
|
253
|
-
/***/ "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"
|
|
254
|
-
/*!***************************************************************************!*\
|
|
255
|
-
!*** external "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js" ***!
|
|
256
|
-
\***************************************************************************/
|
|
257
|
-
(module) {
|
|
258
|
-
|
|
259
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__;
|
|
260
|
-
|
|
261
|
-
/***/ },
|
|
262
|
-
|
|
263
|
-
/***/ "@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js"
|
|
264
|
-
/*!*************************************************************************!*\
|
|
265
|
-
!*** external "@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js" ***!
|
|
266
|
-
\*************************************************************************/
|
|
267
|
-
(module) {
|
|
268
|
-
|
|
269
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_OPFSCoopSyncVFS_js__;
|
|
270
|
-
|
|
271
|
-
/***/ },
|
|
272
|
-
|
|
273
|
-
/***/ "@powersync/common"
|
|
274
|
-
/*!************************************!*\
|
|
275
|
-
!*** external "@powersync/common" ***!
|
|
276
|
-
\************************************/
|
|
277
|
-
(module) {
|
|
278
|
-
|
|
279
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__powersync_common__;
|
|
280
|
-
|
|
281
|
-
/***/ },
|
|
282
|
-
|
|
283
|
-
/***/ "async-mutex"
|
|
284
|
-
/*!******************************!*\
|
|
285
|
-
!*** external "async-mutex" ***!
|
|
286
|
-
\******************************/
|
|
287
|
-
(module) {
|
|
288
|
-
|
|
289
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_async_mutex__;
|
|
290
|
-
|
|
291
|
-
/***/ },
|
|
292
|
-
|
|
293
|
-
/***/ "comlink"
|
|
294
|
-
/*!**************************!*\
|
|
295
|
-
!*** external "comlink" ***!
|
|
296
|
-
\**************************/
|
|
297
|
-
(module) {
|
|
298
|
-
|
|
299
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_comlink__;
|
|
300
|
-
|
|
301
301
|
/***/ }
|
|
302
302
|
|
|
303
303
|
/******/ });
|
|
@@ -499,7 +499,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_comlink__;
|
|
|
499
499
|
/******/ // object to store loaded chunks
|
|
500
500
|
/******/ // "1" means "already loaded"
|
|
501
501
|
/******/ var installedChunks = {
|
|
502
|
-
/******/ "_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-
|
|
502
|
+
/******/ "_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-97ebe9": 1
|
|
503
503
|
/******/ };
|
|
504
504
|
/******/
|
|
505
505
|
/******/ // importScripts chunk loading
|
|
@@ -552,4 +552,4 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_comlink__;
|
|
|
552
552
|
/******/ })()
|
|
553
553
|
;
|
|
554
554
|
});
|
|
555
|
-
//# sourceMappingURL=_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-
|
|
555
|
+
//# sourceMappingURL=_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-97ebe9.index.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-97ebe9.index.umd.js","mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;ACVA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;ACAA;;;;;;;;;;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;ACzFA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;;;;ACpEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;ACXA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;ACzCA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AC3BA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACzBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACRA;AACA;AACA;AACA;AACA;;;;;ACJA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACPA;;;;;ACAA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACNA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;AClBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;ACpCA;AACA;AACA;AACA;AACA;AACA;;;;;AELA;AACA","sources":["webpack://sdk_web/webpack/universalModuleDefinition","webpack://sdk_web/external umd \"@journeyapps/wa-sqlite\"","webpack://sdk_web/external umd \"@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js\"","webpack://sdk_web/external umd \"@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js\"","webpack://sdk_web/external umd \"@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js\"","webpack://sdk_web/external umd \"@powersync/common\"","webpack://sdk_web/external umd \"async-mutex\"","webpack://sdk_web/external umd \"comlink\"","webpack://sdk_web/./lib/src/worker/db/SharedWASQLiteConnection.js","webpack://sdk_web/./lib/src/worker/db/WASQLiteDB.worker.js","webpack://sdk_web/./lib/src/worker/db/WorkerWASQLiteConnection.js","webpack://sdk_web/webpack/bootstrap","webpack://sdk_web/webpack/runtime/chunk loaded","webpack://sdk_web/webpack/runtime/create fake namespace object","webpack://sdk_web/webpack/runtime/define property getters","webpack://sdk_web/webpack/runtime/ensure chunk","webpack://sdk_web/webpack/runtime/get javascript chunk filename","webpack://sdk_web/webpack/runtime/global","webpack://sdk_web/webpack/runtime/hasOwnProperty shorthand","webpack://sdk_web/webpack/runtime/make namespace object","webpack://sdk_web/webpack/runtime/publicPath","webpack://sdk_web/webpack/runtime/importScripts chunk loading","webpack://sdk_web/webpack/runtime/startup chunk dependencies","webpack://sdk_web/webpack/before-startup","webpack://sdk_web/webpack/startup","webpack://sdk_web/webpack/after-startup"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@journeyapps/wa-sqlite\"), require(\"@powersync/common\"), require(\"comlink\"), require(\"async-mutex\"), require(\"@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js\"), require(\"@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js\"), require(\"@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"@journeyapps/wa-sqlite\", \"@powersync/common\", \"comlink\", \"async-mutex\", \"@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js\", \"@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js\", \"@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"sdk_web\"] = factory(require(\"@journeyapps/wa-sqlite\"), require(\"@powersync/common\"), require(\"comlink\"), require(\"async-mutex\"), require(\"@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js\"), require(\"@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js\"), require(\"@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js\"));\n\telse\n\t\troot[\"sdk_web\"] = factory(root[\"@journeyapps/wa-sqlite\"], root[\"@powersync/common\"], root[\"comlink\"], root[\"async-mutex\"], root[\"@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js\"], root[\"@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js\"], root[\"@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js\"]);\n})(self, (__WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__, __WEBPACK_EXTERNAL_MODULE__powersync_common__, __WEBPACK_EXTERNAL_MODULE_comlink__, __WEBPACK_EXTERNAL_MODULE_async_mutex__, __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_OPFSCoopSyncVFS_js__, __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_AccessHandlePoolVFS_js__, __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__;","module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_AccessHandlePoolVFS_js__;","module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__;","module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_OPFSCoopSyncVFS_js__;","module.exports = __WEBPACK_EXTERNAL_MODULE__powersync_common__;","module.exports = __WEBPACK_EXTERNAL_MODULE_async_mutex__;","module.exports = __WEBPACK_EXTERNAL_MODULE_comlink__;","export class SharedWASQLiteConnection {\n options;\n isClosing;\n // Keeps track if this current hold if the shared connection has a hold\n activeHoldId;\n constructor(options) {\n this.options = options;\n // Add this client ID to the set of known clients\n this.clientIds.add(options.clientId);\n this.isClosing = false;\n this.activeHoldId = null;\n }\n get logger() {\n return this.options.logger;\n }\n get dbEntry() {\n return this.options.dbMap.get(this.options.dbFilename);\n }\n get connection() {\n return this.dbEntry.db;\n }\n get clientIds() {\n return this.dbEntry.clientIds;\n }\n async init() {\n // No-op since the connection is already initialized when it was created\n }\n async markHold() {\n this.activeHoldId = await this.connection.markHold();\n return this.activeHoldId;\n }\n async releaseHold(id) {\n try {\n await this.connection.releaseHold(id);\n }\n finally {\n this.activeHoldId = null;\n }\n }\n async isAutoCommit() {\n return this.connection.isAutoCommit();\n }\n /**\n * Handles closing of a shared connection.\n * The connection is only closed if there are no active clients using it.\n */\n async close() {\n // This prevents further statements on this connection from being executed\n this.isClosing = true;\n const { clientIds, logger } = this;\n const { clientId, dbFilename, dbMap } = this.options;\n logger.debug(`Close requested from client ${clientId} of ${[...clientIds]}`);\n clientIds.delete(clientId);\n if (this.activeHoldId) {\n // We can't cleanup here since we're not in a lock context.\n // The cleanup will occur once a new hold is acquired.\n this.logger.info(`Hold ${this.activeHoldId} was still active when the connection was closed. Cleanup will occur once a new hold is acquired.`);\n }\n if (clientIds.size == 0) {\n logger.debug(`Closing connection to ${this.options}.`);\n const connection = this.connection;\n dbMap.delete(dbFilename);\n await connection.close();\n return;\n }\n logger.debug(`Connection to ${dbFilename} not closed yet due to active clients.`);\n return;\n }\n async withClosing(action) {\n if (this.isClosing) {\n throw new Error('Connection is closing');\n }\n return action();\n }\n async execute(sql, params) {\n return this.withClosing(() => this.connection.execute(sql, params));\n }\n async executeRaw(sql, params) {\n return this.withClosing(() => this.connection.executeRaw(sql, params));\n }\n executeBatch(sql, params) {\n return this.withClosing(() => this.connection.executeBatch(sql, params));\n }\n registerOnTableChange(callback) {\n return this.connection.registerOnTableChange(callback);\n }\n getConfig() {\n return this.connection.getConfig();\n }\n}\n","/**\n * Supports both shared and dedicated workers, based on how the worker is constructed (new SharedWorker vs new Worker()).\n */\nimport '@journeyapps/wa-sqlite';\nimport { createBaseLogger, createLogger } from '@powersync/common';\nimport * as Comlink from 'comlink';\nimport { getNavigatorLocks } from '../../shared/navigator.js';\nimport { SharedWASQLiteConnection } from './SharedWASQLiteConnection.js';\nimport { WorkerWASQLiteConnection } from './WorkerWASQLiteConnection.js';\nconst baseLogger = createBaseLogger();\nbaseLogger.useDefaults();\nconst logger = createLogger('db-worker');\nconst DBMap = new Map();\nconst OPEN_DB_LOCK = 'open-wasqlite-db';\nlet nextClientId = 1;\nconst openDBShared = async (options) => {\n // Prevent multiple simultaneous opens from causing race conditions\n return getNavigatorLocks().request(OPEN_DB_LOCK, async () => {\n const clientId = nextClientId++;\n const { dbFilename, logLevel } = options;\n logger.setLevel(logLevel);\n if (!DBMap.has(dbFilename)) {\n const clientIds = new Set();\n // This format returns proxy objects for function callbacks\n const connection = new WorkerWASQLiteConnection(options);\n await connection.init();\n connection.registerListener({\n holdOverwritten: async () => {\n /**\n * The previous hold has been overwritten, without being released.\n * we need to cleanup any resources associated with it.\n * We can perform a rollback to release any potential transactions that were started.\n */\n await connection.execute('ROLLBACK').catch(() => { });\n }\n });\n DBMap.set(dbFilename, {\n clientIds,\n db: connection\n });\n }\n // Associates this clientId with the shared connection entry\n const sharedConnection = new SharedWASQLiteConnection({\n dbMap: DBMap,\n dbFilename,\n clientId,\n logger\n });\n return Comlink.proxy(sharedConnection);\n });\n};\n// Check if we're in a SharedWorker context\nif (typeof SharedWorkerGlobalScope !== 'undefined') {\n const _self = self;\n _self.onconnect = function (event) {\n const port = event.ports[0];\n Comlink.expose(openDBShared, port);\n };\n}\nelse {\n // A dedicated worker can be shared externally\n Comlink.expose(openDBShared);\n}\naddEventListener('unload', () => {\n Array.from(DBMap.values()).forEach(async (dbConnection) => {\n const { db } = dbConnection;\n db.close?.();\n });\n});\n","import * as Comlink from 'comlink';\nimport { WASqliteConnection } from '../../db/adapters/wa-sqlite/WASQLiteConnection.js';\n/**\n * A Small proxy wrapper around the WASqliteConnection.\n * This ensures that certain return types are properly proxied.\n */\nexport class WorkerWASQLiteConnection extends WASqliteConnection {\n async registerOnTableChange(callback) {\n // Proxy the callback remove function\n return Comlink.proxy(await super.registerOnTableChange(callback));\n }\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Check if module exists (development only)\n\tif (__webpack_modules__[moduleId] === undefined) {\n\t\tvar e = new Error(\"Cannot find module '\" + moduleId + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n// the startup function\n__webpack_require__.x = () => {\n\t// Load entry module and return exports\n\t// This entry module depends on other loaded chunks and execution need to be delayed\n\tvar __webpack_exports__ = __webpack_require__.O(undefined, [\"main\"], () => (__webpack_require__(\"./lib/src/worker/db/WASQLiteDB.worker.js\")))\n\t__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n\treturn __webpack_exports__;\n};\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","var getProto = Object.getPrototypeOf ? (obj) => (Object.getPrototypeOf(obj)) : (obj) => (obj.__proto__);\nvar leafPrototypes;\n// create a fake namespace object\n// mode & 1: value is a module id, require it\n// mode & 2: merge all properties of value into the ns\n// mode & 4: return value when already ns object\n// mode & 16: return value when it's Promise-like\n// mode & 8|1: behave like require\n__webpack_require__.t = function(value, mode) {\n\tif(mode & 1) value = this(value);\n\tif(mode & 8) return value;\n\tif(typeof value === 'object' && value) {\n\t\tif((mode & 4) && value.__esModule) return value;\n\t\tif((mode & 16) && typeof value.then === 'function') return value;\n\t}\n\tvar ns = Object.create(null);\n\t__webpack_require__.r(ns);\n\tvar def = {};\n\tleafPrototypes = leafPrototypes || [null, getProto({}), getProto([]), getProto(getProto)];\n\tfor(var current = mode & 2 && value; (typeof current == 'object' || typeof current == 'function') && !~leafPrototypes.indexOf(current); current = getProto(current)) {\n\t\tObject.getOwnPropertyNames(current).forEach((key) => (def[key] = () => (value[key])));\n\t}\n\tdef['default'] = () => (value);\n\t__webpack_require__.d(ns, def);\n\treturn ns;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.f = {};\n// This file contains only the entry chunk.\n// The chunk loading function for additional chunks\n__webpack_require__.e = (chunkId) => {\n\treturn Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {\n\t\t__webpack_require__.f[key](chunkId, promises);\n\t\treturn promises;\n\t}, []));\n};","// This function allow to reference async chunks and chunks that the entrypoint depends on\n__webpack_require__.u = (chunkId) => {\n\t// return url for filenames based on template\n\treturn undefined;\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","var scriptUrl;\nif (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + \"\";\nvar document = __webpack_require__.g.document;\nif (!scriptUrl && document) {\n\tif (document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT')\n\t\tscriptUrl = document.currentScript.src;\n\tif (!scriptUrl) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tif(scripts.length) {\n\t\t\tvar i = scripts.length - 1;\n\t\t\twhile (i > -1 && (!scriptUrl || !/^http(s?):/.test(scriptUrl))) scriptUrl = scripts[i--].src;\n\t\t}\n\t}\n}\n// When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration\n// or pass an empty string (\"\") and set the __webpack_public_path__ variable from your code to use your own logic.\nif (!scriptUrl) throw new Error(\"Automatic publicPath is not supported in this browser\");\nscriptUrl = scriptUrl.replace(/^blob:/, \"\").replace(/#.*$/, \"\").replace(/\\?.*$/, \"\").replace(/\\/[^\\/]+$/, \"/\");\n__webpack_require__.p = scriptUrl;","__webpack_require__.b = self.location + \"\";\n\n// object to store loaded chunks\n// \"1\" means \"already loaded\"\nvar installedChunks = {\n\t\"_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-97ebe9\": 1\n};\n\n// importScripts chunk loading\nvar installChunk = (data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\tfor(var moduleId in moreModules) {\n\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t}\n\t}\n\tif(runtime) runtime(__webpack_require__);\n\twhile(chunkIds.length)\n\t\tinstalledChunks[chunkIds.pop()] = 1;\n\tparentChunkLoadingFunction(data);\n};\n__webpack_require__.f.i = (chunkId, promises) => {\n\t// \"1\" is the signal for \"already loaded\"\n\tif(!installedChunks[chunkId]) {\n\t\tif(true) { // all chunks have JS\n\t\t\timportScripts(__webpack_require__.p + __webpack_require__.u(chunkId));\n\t\t}\n\t}\n};\n\nvar chunkLoadingGlobal = self[\"webpackChunksdk_web\"] = self[\"webpackChunksdk_web\"] || [];\nvar parentChunkLoadingFunction = chunkLoadingGlobal.push.bind(chunkLoadingGlobal);\nchunkLoadingGlobal.push = installChunk;\n\n// no HMR\n\n// no HMR manifest","var next = __webpack_require__.x;\n__webpack_require__.x = () => {\n\treturn Promise.all([\n\n\t]).then(next);\n};","","// run startup\nvar __webpack_exports__ = __webpack_require__.x();\n",""],"names":[],"sourceRoot":""}
|
package/dist/index.umd.js
CHANGED
|
@@ -12,6 +12,116 @@ return /******/ (() => { // webpackBootstrap
|
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
+
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite-async.wasm"
|
|
16
|
+
/*!******************************************************************************************************************************!*\
|
|
17
|
+
!*** ../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite-async.wasm ***!
|
|
18
|
+
\******************************************************************************************************************************/
|
|
19
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
20
|
+
|
|
21
|
+
module.exports = __webpack_require__.p + "b4c6283dc473b6b3fd24.wasm";
|
|
22
|
+
|
|
23
|
+
/***/ },
|
|
24
|
+
|
|
25
|
+
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite.wasm"
|
|
26
|
+
/*!************************************************************************************************************************!*\
|
|
27
|
+
!*** ../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite.wasm ***!
|
|
28
|
+
\************************************************************************************************************************/
|
|
29
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
30
|
+
|
|
31
|
+
module.exports = __webpack_require__.p + "26d61ca9f5694d064635.wasm";
|
|
32
|
+
|
|
33
|
+
/***/ },
|
|
34
|
+
|
|
35
|
+
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite-async.wasm"
|
|
36
|
+
/*!***************************************************************************************************************************!*\
|
|
37
|
+
!*** ../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite-async.wasm ***!
|
|
38
|
+
\***************************************************************************************************************************/
|
|
39
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
40
|
+
|
|
41
|
+
module.exports = __webpack_require__.p + "ca59e199e1138b553fad.wasm";
|
|
42
|
+
|
|
43
|
+
/***/ },
|
|
44
|
+
|
|
45
|
+
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite.wasm"
|
|
46
|
+
/*!*********************************************************************************************************************!*\
|
|
47
|
+
!*** ../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite.wasm ***!
|
|
48
|
+
\*********************************************************************************************************************/
|
|
49
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
50
|
+
|
|
51
|
+
module.exports = __webpack_require__.p + "c78985091a0b22aaef03.wasm";
|
|
52
|
+
|
|
53
|
+
/***/ },
|
|
54
|
+
|
|
55
|
+
/***/ "@journeyapps/wa-sqlite"
|
|
56
|
+
/*!*****************************************!*\
|
|
57
|
+
!*** external "@journeyapps/wa-sqlite" ***!
|
|
58
|
+
\*****************************************/
|
|
59
|
+
(module) {
|
|
60
|
+
|
|
61
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__;
|
|
62
|
+
|
|
63
|
+
/***/ },
|
|
64
|
+
|
|
65
|
+
/***/ "@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js"
|
|
66
|
+
/*!*****************************************************************************!*\
|
|
67
|
+
!*** external "@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js" ***!
|
|
68
|
+
\*****************************************************************************/
|
|
69
|
+
(module) {
|
|
70
|
+
|
|
71
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_AccessHandlePoolVFS_js__;
|
|
72
|
+
|
|
73
|
+
/***/ },
|
|
74
|
+
|
|
75
|
+
/***/ "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"
|
|
76
|
+
/*!***************************************************************************!*\
|
|
77
|
+
!*** external "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js" ***!
|
|
78
|
+
\***************************************************************************/
|
|
79
|
+
(module) {
|
|
80
|
+
|
|
81
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__;
|
|
82
|
+
|
|
83
|
+
/***/ },
|
|
84
|
+
|
|
85
|
+
/***/ "@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js"
|
|
86
|
+
/*!*************************************************************************!*\
|
|
87
|
+
!*** external "@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js" ***!
|
|
88
|
+
\*************************************************************************/
|
|
89
|
+
(module) {
|
|
90
|
+
|
|
91
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_OPFSCoopSyncVFS_js__;
|
|
92
|
+
|
|
93
|
+
/***/ },
|
|
94
|
+
|
|
95
|
+
/***/ "@powersync/common"
|
|
96
|
+
/*!************************************!*\
|
|
97
|
+
!*** external "@powersync/common" ***!
|
|
98
|
+
\************************************/
|
|
99
|
+
(module) {
|
|
100
|
+
|
|
101
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__powersync_common__;
|
|
102
|
+
|
|
103
|
+
/***/ },
|
|
104
|
+
|
|
105
|
+
/***/ "async-mutex"
|
|
106
|
+
/*!******************************!*\
|
|
107
|
+
!*** external "async-mutex" ***!
|
|
108
|
+
\******************************/
|
|
109
|
+
(module) {
|
|
110
|
+
|
|
111
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_async_mutex__;
|
|
112
|
+
|
|
113
|
+
/***/ },
|
|
114
|
+
|
|
115
|
+
/***/ "comlink"
|
|
116
|
+
/*!**************************!*\
|
|
117
|
+
!*** external "comlink" ***!
|
|
118
|
+
\**************************/
|
|
119
|
+
(module) {
|
|
120
|
+
|
|
121
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE_comlink__;
|
|
122
|
+
|
|
123
|
+
/***/ },
|
|
124
|
+
|
|
15
125
|
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite-async.mjs"
|
|
16
126
|
/*!*****************************************************************************************************************************!*\
|
|
17
127
|
!*** ../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite-async.mjs ***!
|
|
@@ -26,16 +136,6 @@ async function Module(moduleArg={}){var moduleRtn;var Module=moduleArg;var ENVIR
|
|
|
26
136
|
;return moduleRtn}/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Module);
|
|
27
137
|
|
|
28
138
|
|
|
29
|
-
/***/ },
|
|
30
|
-
|
|
31
|
-
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite-async.wasm"
|
|
32
|
-
/*!******************************************************************************************************************************!*\
|
|
33
|
-
!*** ../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite-async.wasm ***!
|
|
34
|
-
\******************************************************************************************************************************/
|
|
35
|
-
(module, __unused_webpack_exports, __webpack_require__) {
|
|
36
|
-
|
|
37
|
-
module.exports = __webpack_require__.p + "b4c6283dc473b6b3fd24.wasm";
|
|
38
|
-
|
|
39
139
|
/***/ },
|
|
40
140
|
|
|
41
141
|
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite.mjs"
|
|
@@ -52,16 +152,6 @@ async function Module(moduleArg={}){var moduleRtn;var Module=moduleArg;var ENVIR
|
|
|
52
152
|
;return moduleRtn}/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Module);
|
|
53
153
|
|
|
54
154
|
|
|
55
|
-
/***/ },
|
|
56
|
-
|
|
57
|
-
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite.wasm"
|
|
58
|
-
/*!************************************************************************************************************************!*\
|
|
59
|
-
!*** ../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/mc-wa-sqlite.wasm ***!
|
|
60
|
-
\************************************************************************************************************************/
|
|
61
|
-
(module, __unused_webpack_exports, __webpack_require__) {
|
|
62
|
-
|
|
63
|
-
module.exports = __webpack_require__.p + "26d61ca9f5694d064635.wasm";
|
|
64
|
-
|
|
65
155
|
/***/ },
|
|
66
156
|
|
|
67
157
|
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite-async.mjs"
|
|
@@ -78,16 +168,6 @@ async function Module(moduleArg={}){var moduleRtn;var Module=moduleArg;var ENVIR
|
|
|
78
168
|
;return moduleRtn}/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Module);
|
|
79
169
|
|
|
80
170
|
|
|
81
|
-
/***/ },
|
|
82
|
-
|
|
83
|
-
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite-async.wasm"
|
|
84
|
-
/*!***************************************************************************************************************************!*\
|
|
85
|
-
!*** ../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite-async.wasm ***!
|
|
86
|
-
\***************************************************************************************************************************/
|
|
87
|
-
(module, __unused_webpack_exports, __webpack_require__) {
|
|
88
|
-
|
|
89
|
-
module.exports = __webpack_require__.p + "ca59e199e1138b553fad.wasm";
|
|
90
|
-
|
|
91
171
|
/***/ },
|
|
92
172
|
|
|
93
173
|
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite.mjs"
|
|
@@ -104,16 +184,6 @@ async function Module(moduleArg={}){var moduleRtn;var Module=moduleArg;var ENVIR
|
|
|
104
184
|
;return moduleRtn}/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Module);
|
|
105
185
|
|
|
106
186
|
|
|
107
|
-
/***/ },
|
|
108
|
-
|
|
109
|
-
/***/ "../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite.wasm"
|
|
110
|
-
/*!*********************************************************************************************************************!*\
|
|
111
|
-
!*** ../../node_modules/.pnpm/@journeyapps+wa-sqlite@1.5.0/node_modules/@journeyapps/wa-sqlite/dist/wa-sqlite.wasm ***!
|
|
112
|
-
\*********************************************************************************************************************/
|
|
113
|
-
(module, __unused_webpack_exports, __webpack_require__) {
|
|
114
|
-
|
|
115
|
-
module.exports = __webpack_require__.p + "c78985091a0b22aaef03.wasm";
|
|
116
|
-
|
|
117
187
|
/***/ },
|
|
118
188
|
|
|
119
189
|
/***/ "../../node_modules/.pnpm/bson@6.10.4/node_modules/bson/lib/bson.mjs"
|
|
@@ -5273,7 +5343,8 @@ class LockedAsyncDatabaseAdapter extends _powersync_common__WEBPACK_IMPORTED_MOD
|
|
|
5273
5343
|
}
|
|
5274
5344
|
this.dbGetHelpers = this.generateDBHelpers({
|
|
5275
5345
|
execute: (query, params) => this.acquireLock(() => this._execute(query, params)),
|
|
5276
|
-
executeRaw: (query, params) => this.acquireLock(() => this._executeRaw(query, params))
|
|
5346
|
+
executeRaw: (query, params) => this.acquireLock(() => this._executeRaw(query, params)),
|
|
5347
|
+
executeBatch: (query, params) => this.acquireLock(() => this._executeBatch(query, params))
|
|
5277
5348
|
});
|
|
5278
5349
|
this.initPromise = this._init();
|
|
5279
5350
|
}
|
|
@@ -5434,14 +5505,16 @@ class LockedAsyncDatabaseAdapter extends _powersync_common__WEBPACK_IMPORTED_MOD
|
|
|
5434
5505
|
return this.dbGetHelpers.get(sql, parameters);
|
|
5435
5506
|
}
|
|
5436
5507
|
async readLock(fn, options) {
|
|
5437
|
-
|
|
5438
|
-
return this.
|
|
5439
|
-
timeoutMs: options?.timeoutMs ?? this.options.defaultLockTimeoutMs
|
|
5440
|
-
});
|
|
5508
|
+
// Read and write locks are the same because we only have one underlying connection.
|
|
5509
|
+
return this.writeLock(fn, options);
|
|
5441
5510
|
}
|
|
5442
5511
|
async writeLock(fn, options) {
|
|
5443
5512
|
await this.waitForInitialized();
|
|
5444
|
-
return this.acquireLock(async () => fn(this.generateDBHelpers({
|
|
5513
|
+
return this.acquireLock(async () => fn(this.generateDBHelpers({
|
|
5514
|
+
execute: this._execute,
|
|
5515
|
+
executeRaw: this._executeRaw,
|
|
5516
|
+
executeBatch: this._executeBatch
|
|
5517
|
+
})), {
|
|
5445
5518
|
timeoutMs: options?.timeoutMs ?? this.options.defaultLockTimeoutMs
|
|
5446
5519
|
});
|
|
5447
5520
|
}
|
|
@@ -5709,6 +5782,18 @@ class SSRDBAdapter extends _powersync_common__WEBPACK_IMPORTED_MODULE_0__.BaseOb
|
|
|
5709
5782
|
}
|
|
5710
5783
|
|
|
5711
5784
|
|
|
5785
|
+
/***/ },
|
|
5786
|
+
|
|
5787
|
+
/***/ "./lib/src/db/adapters/WebDBAdapter.js"
|
|
5788
|
+
/*!*********************************************!*\
|
|
5789
|
+
!*** ./lib/src/db/adapters/WebDBAdapter.js ***!
|
|
5790
|
+
\*********************************************/
|
|
5791
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
5792
|
+
|
|
5793
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5794
|
+
|
|
5795
|
+
|
|
5796
|
+
|
|
5712
5797
|
/***/ },
|
|
5713
5798
|
|
|
5714
5799
|
/***/ "./lib/src/db/adapters/WorkerWrappedAsyncDatabaseConnection.js"
|
|
@@ -7182,12 +7267,12 @@ function openWorkerDatabasePort(workerIdentifier, multipleTabs = true, worker =
|
|
|
7182
7267
|
* (in the case of Android)
|
|
7183
7268
|
*/
|
|
7184
7269
|
return !needsDedicated && multipleTabs
|
|
7185
|
-
? new SharedWorker(new URL(/* worker import */ __webpack_require__.p + __webpack_require__.u("_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-
|
|
7270
|
+
? new SharedWorker(new URL(/* worker import */ __webpack_require__.p + __webpack_require__.u("_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-97ebe9"), __webpack_require__.b), {
|
|
7186
7271
|
/* @vite-ignore */
|
|
7187
7272
|
name: `shared-DB-worker-${workerIdentifier}`,
|
|
7188
7273
|
type: undefined
|
|
7189
7274
|
}).port
|
|
7190
|
-
: new Worker(new URL(/* worker import */ __webpack_require__.p + __webpack_require__.u("_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-
|
|
7275
|
+
: new Worker(new URL(/* worker import */ __webpack_require__.p + __webpack_require__.u("_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js-_journeyapps_wa-sqlite_src_example-97ebe9"), __webpack_require__.b), {
|
|
7191
7276
|
/* @vite-ignore */
|
|
7192
7277
|
name: `DB-worker-${workerIdentifier}`,
|
|
7193
7278
|
type: undefined
|
|
@@ -7890,76 +7975,6 @@ function withAbort(options) {
|
|
|
7890
7975
|
}
|
|
7891
7976
|
|
|
7892
7977
|
|
|
7893
|
-
/***/ },
|
|
7894
|
-
|
|
7895
|
-
/***/ "@journeyapps/wa-sqlite"
|
|
7896
|
-
/*!*****************************************!*\
|
|
7897
|
-
!*** external "@journeyapps/wa-sqlite" ***!
|
|
7898
|
-
\*****************************************/
|
|
7899
|
-
(module) {
|
|
7900
|
-
|
|
7901
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite__;
|
|
7902
|
-
|
|
7903
|
-
/***/ },
|
|
7904
|
-
|
|
7905
|
-
/***/ "@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js"
|
|
7906
|
-
/*!*****************************************************************************!*\
|
|
7907
|
-
!*** external "@journeyapps/wa-sqlite/src/examples/AccessHandlePoolVFS.js" ***!
|
|
7908
|
-
\*****************************************************************************/
|
|
7909
|
-
(module) {
|
|
7910
|
-
|
|
7911
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_AccessHandlePoolVFS_js__;
|
|
7912
|
-
|
|
7913
|
-
/***/ },
|
|
7914
|
-
|
|
7915
|
-
/***/ "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js"
|
|
7916
|
-
/*!***************************************************************************!*\
|
|
7917
|
-
!*** external "@journeyapps/wa-sqlite/src/examples/IDBBatchAtomicVFS.js" ***!
|
|
7918
|
-
\***************************************************************************/
|
|
7919
|
-
(module) {
|
|
7920
|
-
|
|
7921
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_IDBBatchAtomicVFS_js__;
|
|
7922
|
-
|
|
7923
|
-
/***/ },
|
|
7924
|
-
|
|
7925
|
-
/***/ "@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js"
|
|
7926
|
-
/*!*************************************************************************!*\
|
|
7927
|
-
!*** external "@journeyapps/wa-sqlite/src/examples/OPFSCoopSyncVFS.js" ***!
|
|
7928
|
-
\*************************************************************************/
|
|
7929
|
-
(module) {
|
|
7930
|
-
|
|
7931
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__journeyapps_wa_sqlite_src_examples_OPFSCoopSyncVFS_js__;
|
|
7932
|
-
|
|
7933
|
-
/***/ },
|
|
7934
|
-
|
|
7935
|
-
/***/ "@powersync/common"
|
|
7936
|
-
/*!************************************!*\
|
|
7937
|
-
!*** external "@powersync/common" ***!
|
|
7938
|
-
\************************************/
|
|
7939
|
-
(module) {
|
|
7940
|
-
|
|
7941
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__powersync_common__;
|
|
7942
|
-
|
|
7943
|
-
/***/ },
|
|
7944
|
-
|
|
7945
|
-
/***/ "async-mutex"
|
|
7946
|
-
/*!******************************!*\
|
|
7947
|
-
!*** external "async-mutex" ***!
|
|
7948
|
-
\******************************/
|
|
7949
|
-
(module) {
|
|
7950
|
-
|
|
7951
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_async_mutex__;
|
|
7952
|
-
|
|
7953
|
-
/***/ },
|
|
7954
|
-
|
|
7955
|
-
/***/ "comlink"
|
|
7956
|
-
/*!**************************!*\
|
|
7957
|
-
!*** external "comlink" ***!
|
|
7958
|
-
\**************************/
|
|
7959
|
-
(module) {
|
|
7960
|
-
|
|
7961
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE_comlink__;
|
|
7962
|
-
|
|
7963
7978
|
/***/ }
|
|
7964
7979
|
|
|
7965
7980
|
/******/ });
|
|
@@ -8177,6 +8192,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8177
8192
|
/* harmony import */ var _db_sync_SharedWebStreamingSyncImplementation_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./db/sync/SharedWebStreamingSyncImplementation.js */ "./lib/src/db/sync/SharedWebStreamingSyncImplementation.js");
|
|
8178
8193
|
/* harmony import */ var _db_sync_WebRemote_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./db/sync/WebRemote.js */ "./lib/src/db/sync/WebRemote.js");
|
|
8179
8194
|
/* harmony import */ var _db_sync_WebStreamingSyncImplementation_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./db/sync/WebStreamingSyncImplementation.js */ "./lib/src/db/sync/WebStreamingSyncImplementation.js");
|
|
8195
|
+
/* harmony import */ var _db_adapters_WebDBAdapter_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./db/adapters/WebDBAdapter.js */ "./lib/src/db/adapters/WebDBAdapter.js");
|
|
8196
|
+
|
|
8180
8197
|
|
|
8181
8198
|
|
|
8182
8199
|
|