@kprint/kprint 0.60.5 → 0.60.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.
package/bin.cjs CHANGED
@@ -51,7 +51,7 @@ function platformDir(platform3) {
51
51
  // deployment/npm/install_api.ts
52
52
  var cachedIsMusl;
53
53
  function runInstall() {
54
- const dprintFileName = os.platform() === "win32" ? "dprint.exe" : "dprint";
54
+ const dprintFileName = os.platform() === "win32" ? "kprint.exe" : "kprint";
55
55
  const targetExecutablePath = path.join(__dirname, dprintFileName);
56
56
  if (fs.existsSync(targetExecutablePath)) return targetExecutablePath;
57
57
  const target = getTarget();
@@ -160,7 +160,7 @@ function f(u) {
160
160
  return;
161
161
  }
162
162
  if (s !== 200) {
163
- console.error(\`[dprint] Unexpected status code \${s} downloading \${u}\`);
163
+ console.error(\`[kprint] Unexpected status code \${s} downloading \${u}\`);
164
164
  process.exit(1);
165
165
  }
166
166
  r.pipe(process.stdout);
@@ -336,7 +336,7 @@ function atomicCopyFile(sourcePath, destinationPath) {
336
336
  }
337
337
 
338
338
  // deployment/npm/bin.ts
339
- var exePath = (0, import_node_path.join)(__dirname, (0, import_node_os.platform)() === "win32" ? "dprint.exe" : "dprint");
339
+ var exePath = (0, import_node_path.join)(__dirname, (0, import_node_os.platform)() === "win32" ? "kprint.exe" : "kprint");
340
340
  if (!(0, import_node_fs.existsSync)(exePath)) {
341
341
  try {
342
342
  runDprintExe(runInstall());
@@ -357,7 +357,7 @@ function runDprintExe(exePath2) {
357
357
  });
358
358
  if (result.error) {
359
359
  if (!(0, import_node_fs.existsSync)(exePath2)) {
360
- throw new Error("Could not find exe at path '" + exePath2 + "'. Maybe try installing dprint again.");
360
+ throw new Error("Could not find exe at path '" + exePath2 + "'. Maybe try installing kprint again.");
361
361
  }
362
362
  throw result.error;
363
363
  }
package/hashes.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
- "freebsd-x64": "8035f9ebce20c395ab36d0ffc7fabe58002350dc4e4d1bee352705847087bc03",
3
- "win32-x64": "c0a1b99f96dd1b91492cd7c51012eac168eea585ede8df926162246af34ae8fb",
4
- "win32-arm64": "46fe7c815bf3d499ed226264bfbe83e9a06ae30b5ca65ce2a22df5041257966b",
5
- "darwin-x64": "9fd88441b97303149e52c8c4aabb72939ac776c2c2e253c1ba2ebe4903f29c7a",
6
- "darwin-arm64": "9add2be4e77d2f225c5189e233f95d6a3af618d003f4dd2accc79f04f33dffca",
7
- "linux-x64-glibc": "9d50b39f70fafa44990b8a2c5a2dd6b86693c9441454e6ca8649eed3c3f3f25b",
8
- "linux-x64-musl": "8c1284a87a2310f87353060ff666015e3f7ee9ba17e70779aeb7fcecf9ddd71e",
9
- "linux-arm64-glibc": "0dd60ccc7f52949e0937e0cd0175dd84e5ca5ca8172664f374c9c227ff453b46",
10
- "linux-arm64-musl": "f2c409bd11adeec43c3f077ecbcc76fc8e7f8fc0ea8ef022040211aa5ecb265b",
11
- "linux-riscv64-glibc": "a4e674fcb1412b01d13073151016fcba4f22cfb0fd704d07fb8e02c871cc4f5f",
12
- "linux-loong64-glibc": "8d7c23984de0cd5027833a656048f50793ecfd84025083e4174450fa770a8299",
13
- "linux-loong64-musl": "be54f8dbb2736309c6318d4ec0273d8e7a7167fb00bd693cc9ca59df418025a9",
14
- "linux-ppc64-glibc": "7125b0e993dd0b781adb00a115b21f96841ab9574d9c2ff2d7cc76f5529b9fc2",
15
- "linux-ppc64-musl": "99f9c842e3fceb338e76ec0cfa9b323f65d700dca29568a7cf1720d9c9449683",
16
- "android-arm64": "6262e51831f0904224fce38ff53d37ecf201ba2930f071a7eb4e2573bc73024b",
17
- "android-x64": "5f1686274ff02e21d4d4f6f4e42decdcf309a861bd733620bf025d57bc2a4e08"
2
+ "freebsd-x64": "b4f113c0ed36f2bc225f3008020a3f2d4e1708bb109b1ae8fa577a721c32c7df",
3
+ "win32-x64": "d8f725136aa4ea0e4c0cea3568df06935731296eb49356f2570386b93e584990",
4
+ "win32-arm64": "4f76f977865bfa877a99737c3ffa73e052a9e25f5bf25c00c453fb40cf6b0f7c",
5
+ "darwin-x64": "793e7e41dd562c8467486207773f260ab53e75130058b4d962e7f96272a7cc29",
6
+ "darwin-arm64": "91cce0bc4403844c8f22919bb1cff6217b9b70061f953b506f7b7592372533ba",
7
+ "linux-x64-glibc": "9b40a3b5d1b88e61f4cd344af0db27e73ed191b4c6877557957cbfa8fb16e5a3",
8
+ "linux-x64-musl": "9862dbe85354068e3e1875d9feab963ba36a6ce53d995000472273598c23645d",
9
+ "linux-arm64-glibc": "29ca735535518e1c2a2bfa25fa8f796c99a9a5eb729a86332e5f569902a6760e",
10
+ "linux-arm64-musl": "11bd8e75168110f6a2a4018a36fd7cd2cb0c103de2b11d5cd93175ee9da4f5a6",
11
+ "linux-riscv64-glibc": "4979d3d68fb7fb339f3a950987bfb90a47fd48210c484c269617f7340f621921",
12
+ "linux-loong64-glibc": "a691bf35b5ca1b514a0addefa6b3c1d7ba1d46e16a5c71bdf2092e15336c8d32",
13
+ "linux-loong64-musl": "bde33362abc59ba321ad132f37dfcf3b9afa2509f7de089a97609f6c67effbc2",
14
+ "linux-ppc64-glibc": "5fa333f5994e3bf017c99be84a318837697d21d5d4a1f149ef3706bbf2fd9536",
15
+ "linux-ppc64-musl": "7859bbb430136a319c60ad820250cd063c667e5e16bb2ba82ff538da406bc27c",
16
+ "android-arm64": "7182eb339e928aed3bf3ecac0b7e096bff2c7411514b4d414dc4d361a65f7fae",
17
+ "android-x64": "05d2d8ed5b4f1572fce26b1441c31e0b6e56c2b63f3e5a3560e549a326b4c894"
18
18
  }
package/install.cjs CHANGED
@@ -48,7 +48,7 @@ var BIN_COMMANDS = [
48
48
  ];
49
49
  var cachedIsMusl;
50
50
  function runInstall() {
51
- const dprintFileName = os.platform() === "win32" ? "dprint.exe" : "dprint";
51
+ const dprintFileName = os.platform() === "win32" ? "kprint.exe" : "kprint";
52
52
  const targetExecutablePath = path.join(__dirname, dprintFileName);
53
53
  if (fs.existsSync(targetExecutablePath)) return targetExecutablePath;
54
54
  const target = getTarget();
@@ -157,7 +157,7 @@ function f(u) {
157
157
  return;
158
158
  }
159
159
  if (s !== 200) {
160
- console.error(\`[dprint] Unexpected status code \${s} downloading \${u}\`);
160
+ console.error(\`[kprint] Unexpected status code \${s} downloading \${u}\`);
161
161
  process.exit(1);
162
162
  }
163
163
  r.pipe(process.stdout);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kprint/kprint",
3
- "version": "0.60.5",
3
+ "version": "0.60.6",
4
4
  "description": "kprint: a pluggable and configurable code formatter written in Rust, forked from dprint.",
5
5
  "bin": {
6
6
  "kprint": "bin.cjs",
@@ -10,11 +10,6 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/kjanat/dprint.git"
12
12
  },
13
- "author": "Kaj Kowalski",
14
- "license": "MIT",
15
- "bugs": {
16
- "url": "https://github.com/kjanat/dprint/issues"
17
- },
18
13
  "keywords": [
19
14
  "dprint",
20
15
  "formatter",
@@ -22,27 +17,32 @@
22
17
  "code",
23
18
  "cli"
24
19
  ],
20
+ "author": "Kaj Kowalski",
21
+ "license": "MIT",
22
+ "bugs": {
23
+ "url": "https://github.com/kjanat/dprint/issues"
24
+ },
25
25
  "homepage": "https://dprint.kjanat.dev",
26
26
  "preferUnplugged": true,
27
27
  "scripts": {
28
28
  "postinstall": "node ./install.cjs"
29
29
  },
30
30
  "optionalDependencies": {
31
- "@kprint/kprint-freebsd-x64": "0.60.5",
32
- "@kprint/kprint-win32-x64": "0.60.5",
33
- "@kprint/kprint-win32-arm64": "0.60.5",
34
- "@kprint/kprint-darwin-x64": "0.60.5",
35
- "@kprint/kprint-darwin-arm64": "0.60.5",
36
- "@kprint/kprint-linux-x64-glibc": "0.60.5",
37
- "@kprint/kprint-linux-x64-musl": "0.60.5",
38
- "@kprint/kprint-linux-arm64-glibc": "0.60.5",
39
- "@kprint/kprint-linux-arm64-musl": "0.60.5",
40
- "@kprint/kprint-linux-riscv64-glibc": "0.60.5",
41
- "@kprint/kprint-linux-loong64-glibc": "0.60.5",
42
- "@kprint/kprint-linux-loong64-musl": "0.60.5",
43
- "@kprint/kprint-linux-ppc64-glibc": "0.60.5",
44
- "@kprint/kprint-linux-ppc64-musl": "0.60.5",
45
- "@kprint/kprint-android-arm64": "0.60.5",
46
- "@kprint/kprint-android-x64": "0.60.5"
31
+ "@kprint/kprint-freebsd-x64": "0.60.6",
32
+ "@kprint/kprint-win32-x64": "0.60.6",
33
+ "@kprint/kprint-win32-arm64": "0.60.6",
34
+ "@kprint/kprint-darwin-x64": "0.60.6",
35
+ "@kprint/kprint-darwin-arm64": "0.60.6",
36
+ "@kprint/kprint-linux-x64-glibc": "0.60.6",
37
+ "@kprint/kprint-linux-x64-musl": "0.60.6",
38
+ "@kprint/kprint-linux-arm64-glibc": "0.60.6",
39
+ "@kprint/kprint-linux-arm64-musl": "0.60.6",
40
+ "@kprint/kprint-linux-riscv64-glibc": "0.60.6",
41
+ "@kprint/kprint-linux-loong64-glibc": "0.60.6",
42
+ "@kprint/kprint-linux-loong64-musl": "0.60.6",
43
+ "@kprint/kprint-linux-ppc64-glibc": "0.60.6",
44
+ "@kprint/kprint-linux-ppc64-musl": "0.60.6",
45
+ "@kprint/kprint-android-arm64": "0.60.6",
46
+ "@kprint/kprint-android-x64": "0.60.6"
47
47
  }
48
48
  }