@powersync/web 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.
- package/bin/powersync.js +8 -12
- package/dist/{f9c8ada26c59f5bf4339.wasm → 62ffcc2ca7f4fa8085d8.wasm} +0 -0
- package/dist/719548eb50ea4e8909c4.wasm +0 -0
- package/dist/{fe5693c7678cf12e05ac.wasm → 77105fb8e0a4d47d3409.wasm} +0 -0
- package/dist/be04348e2d592b86ed80.wasm +0 -0
- package/dist/index.umd.js +212 -189
- package/dist/index.umd.js.map +1 -1
- package/dist/worker/SharedSyncImplementation.umd.js +91 -73
- package/dist/worker/SharedSyncImplementation.umd.js.map +1 -1
- package/dist/worker/WASQLiteDB.umd.js +80 -79
- package/dist/worker/WASQLiteDB.umd.js.map +1 -1
- package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_mc-wa-sqlite-async_mjs.umd.js +11 -11
- package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_mc-wa-sqlite-async_mjs.umd.js.map +1 -1
- package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_mc-wa-sqlite_mjs.umd.js +11 -11
- package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_mc-wa-sqlite_mjs.umd.js.map +1 -1
- package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_wa-sqlite-async_mjs.umd.js +11 -11
- package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_wa-sqlite-async_mjs.umd.js.map +1 -1
- package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_wa-sqlite_mjs.umd.js +11 -11
- package/dist/worker/node_modules_journeyapps_wa-sqlite_dist_wa-sqlite_mjs.umd.js.map +1 -1
- package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js.umd.js +16 -16
- package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_AccessHandlePoolVFS_js.umd.js.map +1 -1
- package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js.umd.js +22 -22
- package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_IDBBatchAtomicVFS_js.umd.js.map +1 -1
- package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_OPFSCoopSyncVFS_js.umd.js +16 -16
- package/dist/worker/node_modules_journeyapps_wa-sqlite_src_examples_OPFSCoopSyncVFS_js.umd.js.map +1 -1
- package/lib/package.json +6 -10
- package/lib/src/db/PowerSyncDatabase.js +1 -1
- package/lib/src/db/adapters/LockedAsyncDatabaseAdapter.d.ts +1 -1
- package/lib/src/db/adapters/LockedAsyncDatabaseAdapter.js +2 -2
- package/lib/src/db/sync/SSRWebStreamingSyncImplementation.d.ts +4 -0
- package/lib/src/db/sync/SSRWebStreamingSyncImplementation.js +7 -1
- package/lib/src/worker/sync/SharedSyncImplementation.d.ts +1 -0
- package/lib/src/worker/sync/SharedSyncImplementation.js +27 -10
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -11
- package/dist/3cb48be086dd9edd02ff.wasm +0 -0
- package/dist/df958358cadf945bd0fe.wasm +0 -0
package/bin/powersync.js
CHANGED
|
@@ -5,31 +5,27 @@ const program = new Command();
|
|
|
5
5
|
const path = require('path');
|
|
6
6
|
const fsPromise = require('fs/promises');
|
|
7
7
|
const { version } = require('../package.json');
|
|
8
|
-
|
|
9
|
-
program
|
|
10
|
-
.name('powersync-web')
|
|
11
|
-
.description('CLI for PowerSync Web SDK utilities')
|
|
12
|
-
.version(version);
|
|
8
|
+
|
|
9
|
+
program.name('powersync-web').description('CLI for PowerSync Web SDK utilities').version(version);
|
|
13
10
|
|
|
14
11
|
program
|
|
15
12
|
.command('copy-assets')
|
|
16
13
|
.description('Copy assets to the specified output directory')
|
|
17
14
|
.option('-o, --output <directory>', 'output directory for assets', 'public')
|
|
18
|
-
.action(async(options) => {
|
|
15
|
+
.action(async (options) => {
|
|
19
16
|
const outputDir = options.output;
|
|
20
|
-
|
|
17
|
+
|
|
21
18
|
console.log(`Target directory: ${outputDir}`);
|
|
22
|
-
|
|
19
|
+
|
|
23
20
|
const cwd = process.cwd();
|
|
24
21
|
const source = path.join(cwd, 'node_modules', '@powersync', 'web', 'dist');
|
|
25
22
|
const destination = path.join(cwd, outputDir, '@powersync');
|
|
26
|
-
|
|
23
|
+
|
|
27
24
|
await fsPromise.rm(destination, { recursive: true, force: true }); // Clear old assets
|
|
28
25
|
|
|
29
|
-
await copyDirectory(source, destination)
|
|
26
|
+
await copyDirectory(source, destination);
|
|
30
27
|
});
|
|
31
28
|
|
|
32
|
-
|
|
33
29
|
program.parse(process.argv);
|
|
34
30
|
|
|
35
31
|
async function copyDirectory(source, destination) {
|
|
@@ -40,4 +36,4 @@ async function copyDirectory(source, destination) {
|
|
|
40
36
|
console.error(`Error copying assets: ${err.message}`);
|
|
41
37
|
process.exit(1);
|
|
42
38
|
}
|
|
43
|
-
}
|
|
39
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|