betterdisplaycli 0.1.4 → 0.1.6

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.
Files changed (3) hide show
  1. package/bun.lock +2 -2
  2. package/package.json +2 -2
  3. package/src/get.ts +2 -8
package/bun.lock CHANGED
@@ -4,7 +4,7 @@
4
4
  "workspaces": {
5
5
  "": {
6
6
  "dependencies": {
7
- "printable-shell-command": "^2.3.2",
7
+ "printable-shell-command": "^2.6.3",
8
8
  },
9
9
  "devDependencies": {
10
10
  "@biomejs/biome": "^2.3.4",
@@ -99,7 +99,7 @@
99
99
 
100
100
  "path-class": ["path-class@0.6.1", "", { "dependencies": { "@types/node": "^24.7.1", "xdg-basedir": "^5.1.0" } }, "sha512-38ZYmRh38kFSKivJCHk9S4ZHOK4Wf6ocxHfYBdDmVN7GWVOXrYsxwMBQpjhGyPNBdiPo4W3X91x2TzGmxHBlUg=="],
101
101
 
102
- "printable-shell-command": ["printable-shell-command@2.3.2", "", { "dependencies": { "path-class": ">=0.6.1", "type-fest": ">=5.1.0" }, "optionalDependencies": { "@types/bun": "^1.2.20", "@types/node": "^24.2.0" } }, "sha512-ugY8+l1C1qWuo5OIcm841JT0LIqDIVYDQwymf9zecx+ukp1KCh0UUXL7HMnBEl+Ej7jI7qQXHJ0TwzQeSDR7Dw=="],
102
+ "printable-shell-command": ["printable-shell-command@2.6.3", "", { "dependencies": { "path-class": ">=0.6.1", "type-fest": ">=5.1.0" }, "optionalDependencies": { "@types/bun": "^1.2.20", "@types/node": "^24.2.0" } }, "sha512-u49zQsdil1clG2RKs+PQvoU64FfRXziMi8cTjrL7Cv92q1eYwyNnHM9PAux0qIme2ucWxn3gIYshkXhyS54y5A=="],
103
103
 
104
104
  "tagged-tag": ["tagged-tag@1.0.0", "", {}, "sha512-yEFYrVhod+hdNyx7g5Bnkkb0G6si8HJurOoOEgC8B/O0uXLHlaey/65KRv6cuWBNhBgHKAROVpc7QyYqE5gFng=="],
105
105
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "betterdisplaycli",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "description": "TypeScript bindings for `betterdisplaycli`.",
5
5
  "author": "Lucas Garron <code@garron.net>",
6
6
  "exports": {
@@ -9,7 +9,7 @@
9
9
  }
10
10
  },
11
11
  "dependencies": {
12
- "printable-shell-command": "^2.3.2"
12
+ "printable-shell-command": "^2.6.3"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@biomejs/biome": "^2.3.4",
package/src/get.ts CHANGED
@@ -1,4 +1,3 @@
1
- import type { styleText } from "node:util";
2
1
  import { PrintableShellCommand } from "printable-shell-command";
3
2
  import {
4
3
  type Device,
@@ -8,11 +7,6 @@ import {
8
7
  type VirtualScreen,
9
8
  } from "./Device";
10
9
 
11
- const styleTextFormat: Parameters<typeof styleText>[0] = [
12
- "bold",
13
- "gray",
14
- ] as const;
15
-
16
10
  export async function getAllDevices(options?: {
17
11
  ignoreDisplayGroups: true;
18
12
  }): Promise<(Display | VirtualScreen)[]>;
@@ -22,7 +16,7 @@ export async function getAllDevices(options?: {
22
16
  const jsonStream = await new PrintableShellCommand("betterdisplaycli", [
23
17
  ["get", "--identifiers"],
24
18
  ])
25
- .print({ styleTextFormat })
19
+ .print({ argumentLineWrapping: "inline" })
26
20
  .stdout()
27
21
  .text();
28
22
  const deviceInfos: DeviceInfo[] = JSON.parse(`[${jsonStream}]`);
@@ -40,6 +34,6 @@ export async function connectAllDisplays(): Promise<void> {
40
34
  await new PrintableShellCommand("betterdisplaycli", [
41
35
  ["perform", "--connectAllDisplays"],
42
36
  ])
43
- .print({ styleTextFormat })
37
+ .print({ argumentLineWrapping: "inline" })
44
38
  .spawnTransparently().success;
45
39
  }