@litebackup/sdk 0.3.19 → 0.3.21
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/src/generated/client.d.ts +1 -1
- package/dist/src/launch.js +1 -1
- package/dist/src/release.d.ts +1 -1
- package/dist/src/release.js +1 -1
- package/dist/src/types.d.ts +1 -1
- package/dist/src/types.js +1 -1
- package/package.json +5 -5
|
@@ -114,7 +114,7 @@ export interface paths {
|
|
|
114
114
|
};
|
|
115
115
|
get?: never;
|
|
116
116
|
put?: never;
|
|
117
|
-
/** @description Take the write lock on a database and make the local file the server head, for worker pools that move databases between machines. An existing file becomes the first version when the server has none, is adopted when its hashes match the head, and is fast-forwarded when it is a clean but stale copy. Any other existing file is a conflict and is left untouched. A copy this machine wrote that diverged is saved as the conflict copy <path>.conflict-<time>.sqlite and the head is written in its place. Without a path, the path this machine already uses is taken, which brings an offloaded database back. */
|
|
117
|
+
/** @description Take the write lock on a database and make the local file the server head, for worker pools that move databases between machines. An existing file becomes the first version when the server has none, is adopted when its hashes match the head, and is fast-forwarded when it is a clean but stale copy. An empty file, as an app leaves after opening a new database without writing, counts as no copy; it becomes a new database when the server has none and is replaced by the head otherwise. Any other existing file is a conflict and is left untouched. A copy this machine wrote that diverged is saved as the conflict copy <path>.conflict-<time>.sqlite and the head is written in its place. Without a path, the path this machine already uses is taken, which brings an offloaded database back. */
|
|
118
118
|
post: operations["acquireDatabase"];
|
|
119
119
|
delete?: never;
|
|
120
120
|
options?: never;
|
package/dist/src/launch.js
CHANGED
|
@@ -19,7 +19,7 @@ const downloadArchitectures = { x64: "amd64", arm64: "arm64" };
|
|
|
19
19
|
/** The one line that installs the litebackup command on this platform. */
|
|
20
20
|
export function installCommand() {
|
|
21
21
|
const architecture = downloadArchitectures[process.arch] ?? process.arch;
|
|
22
|
-
return `sudo curl -fsSL -o /usr/local/bin/litebackup https://litebackup.com/
|
|
22
|
+
return `sudo curl -fsSL -o /usr/local/bin/litebackup https://litebackup.com/pkg/cli/stable/litebackup-${process.platform}-${architecture} && sudo chmod +x /usr/local/bin/litebackup`;
|
|
23
23
|
}
|
|
24
24
|
/** Finds litebackup on PATH, or returns undefined. */
|
|
25
25
|
function onPath(environment) {
|
package/dist/src/release.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare class SignatureError extends Error {
|
|
|
32
32
|
constructor();
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
* Reads package metadata, as https://litebackup.com/
|
|
35
|
+
* Reads package metadata, as https://litebackup.com/pkg/metadata serves
|
|
36
36
|
* it, and returns the selected release taken from its signed document, never
|
|
37
37
|
* the unsigned listing. Throws SignatureError when the signature does not verify.
|
|
38
38
|
*/
|
package/dist/src/release.js
CHANGED
|
@@ -42,7 +42,7 @@ function verifyRelease(signed, keys) {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
/**
|
|
45
|
-
* Reads package metadata, as https://litebackup.com/
|
|
45
|
+
* Reads package metadata, as https://litebackup.com/pkg/metadata serves
|
|
46
46
|
* it, and returns the selected release taken from its signed document, never
|
|
47
47
|
* the unsigned listing. Throws SignatureError when the signature does not verify.
|
|
48
48
|
*/
|
package/dist/src/types.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export type LitebackupEvent = Camelize<Schemas["Event"]>;
|
|
|
28
28
|
export type EventList = Camelize<Schemas["EventList"]>;
|
|
29
29
|
export type ShutdownResult = Camelize<Schemas["ShutdownResult"]>;
|
|
30
30
|
/** The SDK version sent with every call. */
|
|
31
|
-
export declare const sdkVersion = "0.3.
|
|
31
|
+
export declare const sdkVersion = "0.3.21";
|
|
32
32
|
/** An error the Litebackup daemon answered with, carrying its code. */
|
|
33
33
|
export declare class LitebackupError extends Error {
|
|
34
34
|
/** Such as name_in_use, exists, in_use, not_found, still_open, timeout, or sdk_unsupported. */
|
package/dist/src/types.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** The SDK version sent with every call. */
|
|
2
|
-
export const sdkVersion = "0.3.
|
|
2
|
+
export const sdkVersion = "0.3.21";
|
|
3
3
|
/** An error the Litebackup daemon answered with, carrying its code. */
|
|
4
4
|
export class LitebackupError extends Error {
|
|
5
5
|
/** Such as name_in_use, exists, in_use, not_found, still_open, timeout, or sdk_unsupported. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@litebackup/sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.21",
|
|
4
4
|
"description": "Back up, replicate, and restore SQLite databases with Litebackup",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"prepack": "npm run build"
|
|
26
26
|
},
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"@litebackup/bin-darwin-arm64": "0.3.
|
|
29
|
-
"@litebackup/bin-darwin-x64": "0.3.
|
|
30
|
-
"@litebackup/bin-linux-arm64": "0.3.
|
|
31
|
-
"@litebackup/bin-linux-x64": "0.3.
|
|
28
|
+
"@litebackup/bin-darwin-arm64": "0.3.21",
|
|
29
|
+
"@litebackup/bin-darwin-x64": "0.3.21",
|
|
30
|
+
"@litebackup/bin-linux-arm64": "0.3.21",
|
|
31
|
+
"@litebackup/bin-linux-x64": "0.3.21"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "24.19.2",
|