@syncular/tauri 0.15.15 → 0.15.16
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 +5 -0
- package/dist/index.js +1 -0
- package/package.json +3 -3
- package/src/index.ts +1 -0
package/README.md
CHANGED
|
@@ -54,6 +54,11 @@ detaching listeners, so disposing a resource does not leave a key-bearing core
|
|
|
54
54
|
behind. The Rust core overwrites owned key buffers on replacement/drop; the app
|
|
55
55
|
still owns OS secure-store deletion and any key buffers it supplied.
|
|
56
56
|
|
|
57
|
+
Runtime `setHeaders()` is an active-session operation and is rejected during
|
|
58
|
+
preflight at both the JavaScript and native command boundaries. Supply bootstrap
|
|
59
|
+
headers through trusted plugin configuration; rotate them only after successful
|
|
60
|
+
activation.
|
|
61
|
+
|
|
57
62
|
## React availability guard
|
|
58
63
|
|
|
59
64
|
The Tauri bridge carries `currentSchemaVersion`, `schemaFloor`, and migration
|
package/dist/index.js
CHANGED
|
@@ -348,6 +348,7 @@ export class TauriSyncClient {
|
|
|
348
348
|
* the realtime socket applies it on its next (re)connect.
|
|
349
349
|
*/
|
|
350
350
|
async setHeaders(headers) {
|
|
351
|
+
this.#requireActive();
|
|
351
352
|
const reply = await this.#tauri.invoke(`${PLUGIN}syncular_set_headers`, { headers });
|
|
352
353
|
if (reply.error !== undefined) {
|
|
353
354
|
throw new TauriSyncError(reply.error.code, reply.error.message);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/tauri",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.16",
|
|
4
4
|
"description": "Tauri integration for the Syncular client",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"test": "bun test"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@syncular/client": "0.15.
|
|
51
|
+
"@syncular/client": "0.15.16"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@tauri-apps/api": ">=2.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@syncular/react": "0.15.
|
|
57
|
+
"@syncular/react": "0.15.16"
|
|
58
58
|
}
|
|
59
59
|
}
|
package/src/index.ts
CHANGED
|
@@ -509,6 +509,7 @@ export class TauriSyncClient {
|
|
|
509
509
|
* the realtime socket applies it on its next (re)connect.
|
|
510
510
|
*/
|
|
511
511
|
async setHeaders(headers: Readonly<Record<string, string>>): Promise<void> {
|
|
512
|
+
this.#requireActive();
|
|
512
513
|
const reply = await this.#tauri.invoke<CommandReply>(
|
|
513
514
|
`${PLUGIN}syncular_set_headers`,
|
|
514
515
|
{ headers },
|