@litebackup/sdk 0.3.23 → 0.3.25
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/launch.d.ts +1 -1
- package/dist/src/launch.js +2 -5
- 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
package/dist/src/launch.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const binaryPathEnvironment = "LITEBACKUP_PATH";
|
|
3
3
|
/** Holds the join token, TOKEN@HOST, a daemon joins with on its first start. */
|
|
4
4
|
export declare const tokenEnvironment = "LITEBACKUP_TOKEN";
|
|
5
|
-
/** The one line that installs the litebackup command
|
|
5
|
+
/** The one line that installs the litebackup command for every user of this machine, on Linux and macOS. */
|
|
6
6
|
export declare function installCommand(): string;
|
|
7
7
|
/**
|
|
8
8
|
* Finds the litebackup binary: LITEBACKUP_PATH, then this platform's
|
package/dist/src/launch.js
CHANGED
|
@@ -14,12 +14,9 @@ const platformPackages = {
|
|
|
14
14
|
"linux-arm64": "@litebackup/bin-linux-arm64",
|
|
15
15
|
"linux-x64": "@litebackup/bin-linux-x64",
|
|
16
16
|
};
|
|
17
|
-
/**
|
|
18
|
-
const downloadArchitectures = { x64: "amd64", arm64: "arm64" };
|
|
19
|
-
/** The one line that installs the litebackup command on this platform. */
|
|
17
|
+
/** The one line that installs the litebackup command for every user of this machine, on Linux and macOS. */
|
|
20
18
|
export function installCommand() {
|
|
21
|
-
|
|
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`;
|
|
19
|
+
return "curl -fsSL https://litebackup.com/cli.sh | sudo bash";
|
|
23
20
|
}
|
|
24
21
|
/** Finds litebackup on PATH, or returns undefined. */
|
|
25
22
|
function onPath(environment) {
|
package/dist/src/release.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createPublicKey, verify } from "node:crypto";
|
|
2
2
|
/** Litebackup's Ed25519 release keys by key ID, base64url without padding, as the litebackup command checks them. */
|
|
3
3
|
export const releaseKeys = {
|
|
4
|
-
"
|
|
4
|
+
"01a1e5ee-e766-700d-a613-0db7abf22669": "FH9MNgTYvim474wA2j45qhAerNvygtuXr-PUCFtU3HU",
|
|
5
5
|
};
|
|
6
6
|
/** Frames a signed document the way Apps signs releases: context, key ID, separator, document. */
|
|
7
7
|
const signatureContext = "clor-apps-v1\u0000";
|
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.25";
|
|
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.25";
|
|
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.25",
|
|
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.25",
|
|
29
|
+
"@litebackup/bin-darwin-x64": "0.3.25",
|
|
30
|
+
"@litebackup/bin-linux-arm64": "0.3.25",
|
|
31
|
+
"@litebackup/bin-linux-x64": "0.3.25"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "24.19.2",
|