masume 0.0.9 → 0.0.11

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  A database client for the terminal. PostgreSQL, MySQL, SQL Server, ClickHouse, SQLite and MongoDB, with an SQL editor, notebooks, an AI chat and an MCP server.
4
4
 
5
- See the [project README](https://github.com/turanmahmudov/masume#readme) for the full description, the screenshots and the configuration.
5
+ See the [project README](https://github.com/masumedb/masume#readme) for the full description, the screenshots and the configuration.
6
6
 
7
7
  ## Install
8
8
 
@@ -17,9 +17,9 @@ Or run it without an install:
17
17
  npx masume
18
18
  ```
19
19
 
20
- macOS and Linux, on x64 and arm64. Node 18 or later.
20
+ macOS, Linux and Windows, on x64 and arm64. Node 18 or later.
21
21
 
22
- The package holds no binary. On install it downloads the release archive for the current platform from [GitHub](https://github.com/turanmahmudov/masume/releases) and checks it against the `checksums.txt` copy inside the package. With `--ignore-scripts` the download runs on the first `masume` command instead.
22
+ The package holds no binary. On install it downloads the release archive for the current platform from [GitHub](https://github.com/masumedb/masume/releases) and checks it against the `checksums.txt` copy inside the package. With `--ignore-scripts` the download runs on the first `masume` command instead.
23
23
 
24
24
  ## License
25
25
 
package/bin/masume.js CHANGED
@@ -7,9 +7,11 @@ const path = require("node:path");
7
7
 
8
8
  const packageDirectory = path.join(__dirname, "..");
9
9
  const { version, goBinary } = require("../package.json");
10
- const binaryPath = path.join(__dirname, goBinary.name);
10
+ const onWindows = process.platform === "win32";
11
+ const binaryName = onWindows ? `${goBinary.name}.exe` : goBinary.name;
12
+ const binaryPath = path.join(__dirname, binaryName);
11
13
 
12
- const operatingSystems = { darwin: "darwin", linux: "linux" };
14
+ const operatingSystems = { darwin: "darwin", linux: "linux", win32: "windows" };
13
15
  const architectures = { x64: "amd64", arm64: "arm64" };
14
16
 
15
17
  function buildDownloadUrl() {
@@ -21,7 +23,8 @@ function buildDownloadUrl() {
21
23
  return goBinary.url
22
24
  .replace(/{{version}}/g, version)
23
25
  .replace(/{{platform}}/g, operatingSystem)
24
- .replace(/{{arch}}/g, architecture);
26
+ .replace(/{{arch}}/g, architecture)
27
+ .replace(/{{ext}}/g, onWindows ? "zip" : "tar.gz");
25
28
  }
26
29
 
27
30
  function findExpectedChecksum(archiveName) {
@@ -52,7 +55,9 @@ async function downloadArchive(url, expectedChecksum) {
52
55
  }
53
56
 
54
57
  function extractBinary(directory, archiveName) {
55
- const extraction = spawnSync("tar", ["-xzf", archiveName, goBinary.name], {
58
+ // Windows 10 and later ship bsdtar as tar, which reads a zip as well as a tar.gz.
59
+ const flags = onWindows ? "-xf" : "-xzf";
60
+ const extraction = spawnSync("tar", [flags, archiveName, binaryName], {
56
61
  cwd: directory,
57
62
  stdio: "inherit",
58
63
  });
@@ -60,10 +65,13 @@ function extractBinary(directory, archiveName) {
60
65
  throw new Error(`tar cannot run: ${extraction.error.message}`);
61
66
  }
62
67
  if (extraction.status !== 0) {
63
- throw new Error(`${archiveName} holds no ${goBinary.name} binary`);
68
+ throw new Error(`${archiveName} holds no ${binaryName} binary`);
64
69
  }
65
- fs.copyFileSync(path.join(directory, goBinary.name), `${binaryPath}.download`);
66
- fs.chmodSync(`${binaryPath}.download`, 0o755);
70
+ fs.copyFileSync(path.join(directory, binaryName), `${binaryPath}.download`);
71
+ if (!onWindows) {
72
+ fs.chmodSync(`${binaryPath}.download`, 0o755);
73
+ }
74
+ fs.rmSync(binaryPath, { force: true });
67
75
  fs.renameSync(`${binaryPath}.download`, binaryPath);
68
76
  }
69
77
 
package/checksums.txt CHANGED
@@ -1,10 +1,12 @@
1
- 96aee2fd36967394be7f741f4010d5348c0d769faa8717b9244ea55c25570f68 masume_0.0.9_darwin_amd64.tar.gz
2
- f3bd220ed84a2e065757b157eac006b0d2fa919eb322d3092c843599ebbe8a0d masume_0.0.9_darwin_arm64.tar.gz
3
- 2564568e560e550b40ffe17ec2bf5d4f31a32be8e42caa9c0399111163fa6b5d masume_0.0.9_linux_amd64.apk
4
- 571ad87a547e0af66f111e25203b042ed324cbcdad12b503b478c15cbeaf8665 masume_0.0.9_linux_amd64.deb
5
- 6fa8b9424bad1d36b38e4de9c6d8e6a79fc67af30aa9e3aa935629f366939ba1 masume_0.0.9_linux_amd64.rpm
6
- 3ccbdab36f85c08cdba38e7336ce5c5527aa49dab6ff2efa43a32e1cf3dd1d66 masume_0.0.9_linux_amd64.tar.gz
7
- 7f954c8f9305dc2985b8499fc66c44b566aa3b0525148e98ef6c2b847aa308e8 masume_0.0.9_linux_arm64.apk
8
- d9f8c8662edbccfd177b2a6c32d99ba8b128786a37d6359db3cd16a52b46a8e6 masume_0.0.9_linux_arm64.deb
9
- 41376b5589a0216501b85f6ce5a37e66fbb813bd51bf2d592eabd88d5f6d4baa masume_0.0.9_linux_arm64.rpm
10
- 28d651ef89f3916aad417db43d48144d94e23b76958015d76196470d1e87f994 masume_0.0.9_linux_arm64.tar.gz
1
+ d1ec0b853f64b02ee71f158d5b8a4a89b6c2fd3fffe1ea94314c3e8829bc448b masume_0.0.11_darwin_amd64.tar.gz
2
+ 65643f7e207fd7507572ae386c27fc1bc901db04769bd17e068668e561aa7783 masume_0.0.11_darwin_arm64.tar.gz
3
+ d64b406c865a755c2e10bdb622ea37198cac0d8102f104d709eaa9e29aa3dd09 masume_0.0.11_linux_amd64.apk
4
+ 6b0e58db256c13d7055e5c1502172778223721eba1bacb3e43ae69476d472dcd masume_0.0.11_linux_amd64.deb
5
+ 3432f79bb67d7233221eac7a262bc57241d1f3d0ef2b89411cf7bd6c7a9c1e37 masume_0.0.11_linux_amd64.rpm
6
+ 58dc38cbb86500efb8c65285f518ba484c071b4f415aeaf7f2b3987c0f816387 masume_0.0.11_linux_amd64.tar.gz
7
+ bfc935b999b6b4e42a725eefd3496f0acda1ed8e1ba6245732efc681bc3c017f masume_0.0.11_linux_arm64.apk
8
+ d392172912c7bfa7b95b7d68249852c6ca4656d686e69cd841f8e44494cdae59 masume_0.0.11_linux_arm64.deb
9
+ 82b4afd5eab7a7c33c2c7461701d3460ab5abd8ecf70a68066012875a4b91c69 masume_0.0.11_linux_arm64.rpm
10
+ 665175047636924d3409136bde6d9628628070a95bf2756e81713cfca6a3b1e7 masume_0.0.11_linux_arm64.tar.gz
11
+ c20df34a6fb700f3f1997a8548672ea0d60b1f2343dda09af39b122a6eba8cae masume_0.0.11_windows_amd64.zip
12
+ d397fb79e018e1031c8d86e854382eb81f51f8024d84624c2d6da8f320cc60f1 masume_0.0.11_windows_arm64.zip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "masume",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "A database client for the terminal",
5
5
  "keywords": [
6
6
  "database",
@@ -16,18 +16,18 @@
16
16
  "mongodb",
17
17
  "mcp"
18
18
  ],
19
- "homepage": "https://github.com/turanmahmudov/masume",
20
- "bugs": "https://github.com/turanmahmudov/masume/issues",
19
+ "homepage": "https://github.com/masumedb/masume",
20
+ "bugs": "https://github.com/masumedb/masume/issues",
21
21
  "repository": {
22
22
  "type": "git",
23
- "url": "git+https://github.com/turanmahmudov/masume.git"
23
+ "url": "git+https://github.com/masumedb/masume.git"
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "author": "Turan Mahmudov",
27
27
  "type": "commonjs",
28
28
  "goBinary": {
29
29
  "name": "masume",
30
- "url": "https://github.com/turanmahmudov/masume/releases/download/v{{version}}/masume_{{version}}_{{platform}}_{{arch}}.tar.gz"
30
+ "url": "https://github.com/masumedb/masume/releases/download/v{{version}}/masume_{{version}}_{{platform}}_{{arch}}.{{ext}}"
31
31
  },
32
32
  "bin": {
33
33
  "masume": "bin/masume.js"
@@ -44,7 +44,8 @@
44
44
  },
45
45
  "os": [
46
46
  "darwin",
47
- "linux"
47
+ "linux",
48
+ "win32"
48
49
  ],
49
50
  "cpu": [
50
51
  "x64",