dprint 0.50.2 → 0.51.1
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/install_api.js +2 -2
- package/package.json +12 -10
package/install_api.js
CHANGED
|
@@ -81,8 +81,8 @@ function getTarget() {
|
|
|
81
81
|
|
|
82
82
|
function getArch() {
|
|
83
83
|
const arch = os.arch();
|
|
84
|
-
if (arch !== "arm64" && arch !== "x64" && arch !== "riscv64") {
|
|
85
|
-
throw new Error("Unsupported architecture " + os.arch() + ". Only x64, aarch64, and
|
|
84
|
+
if (arch !== "arm64" && arch !== "x64" && arch !== "riscv64" && arch !== "loong64") {
|
|
85
|
+
throw new Error("Unsupported architecture " + os.arch() + ". Only x64, aarch64, riscv64 and loong64 binaries are available.");
|
|
86
86
|
}
|
|
87
87
|
return arch;
|
|
88
88
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dprint",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.1",
|
|
4
4
|
"description": "Pluggable and configurable code formatting platform written in Rust.",
|
|
5
5
|
"bin": "bin.js",
|
|
6
6
|
"repository": {
|
|
@@ -22,14 +22,16 @@
|
|
|
22
22
|
"postinstall": "node ./install.js"
|
|
23
23
|
},
|
|
24
24
|
"optionalDependencies": {
|
|
25
|
-
"@dprint/win32-x64": "0.
|
|
26
|
-
"@dprint/win32-arm64": "0.
|
|
27
|
-
"@dprint/darwin-x64": "0.
|
|
28
|
-
"@dprint/darwin-arm64": "0.
|
|
29
|
-
"@dprint/linux-x64-glibc": "0.
|
|
30
|
-
"@dprint/linux-x64-musl": "0.
|
|
31
|
-
"@dprint/linux-arm64-glibc": "0.
|
|
32
|
-
"@dprint/linux-arm64-musl": "0.
|
|
33
|
-
"@dprint/linux-riscv64-glibc": "0.
|
|
25
|
+
"@dprint/win32-x64": "0.51.1",
|
|
26
|
+
"@dprint/win32-arm64": "0.51.1",
|
|
27
|
+
"@dprint/darwin-x64": "0.51.1",
|
|
28
|
+
"@dprint/darwin-arm64": "0.51.1",
|
|
29
|
+
"@dprint/linux-x64-glibc": "0.51.1",
|
|
30
|
+
"@dprint/linux-x64-musl": "0.51.1",
|
|
31
|
+
"@dprint/linux-arm64-glibc": "0.51.1",
|
|
32
|
+
"@dprint/linux-arm64-musl": "0.51.1",
|
|
33
|
+
"@dprint/linux-riscv64-glibc": "0.51.1",
|
|
34
|
+
"@dprint/linux-loong64-glibc": "0.51.1",
|
|
35
|
+
"@dprint/linux-loong64-musl": "0.51.1"
|
|
34
36
|
}
|
|
35
37
|
}
|