@litebackup/sdk 0.3.20 → 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.
@@ -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/packages/cli/channels/stable/litebackup-${process.platform}-${architecture} && sudo chmod +x /usr/local/bin/litebackup`;
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) {
@@ -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/packages/metadata serves
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
  */
@@ -42,7 +42,7 @@ function verifyRelease(signed, keys) {
42
42
  }
43
43
  }
44
44
  /**
45
- * Reads package metadata, as https://litebackup.com/packages/metadata serves
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
  */
@@ -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.20";
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.20";
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.20",
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.20",
29
- "@litebackup/bin-darwin-x64": "0.3.20",
30
- "@litebackup/bin-linux-arm64": "0.3.20",
31
- "@litebackup/bin-linux-x64": "0.3.20"
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",