Comparing version 0.22.1 to 0.22.2
{ | ||
"version": "0.22.1", | ||
"version": "0.22.2", | ||
"checksums": { | ||
"windows": "b622edf5318057aa54f278696904cb8ef030cc04ec662ee4bc75f1e849f6f0d1", | ||
"linux": "20178b34672777805960ca56643e74e0dbf07cdca648c923b4292d70131db7b5", | ||
"mac": "d52e4399a81576181fb9cdaf7f2c12de94b53c88394bed287f07a891020bb634" | ||
"windows-x86_64": "a8740fa8e131fdc163725f712a9d4d5ef426294c9c5d0b672251e950e9e2b2e5", | ||
"mac-x86_64": "ab087ad3c89c11f8dbd60b810012a6d3944acef91cfc3eec028607c137868ac8", | ||
"mac-aarch64": "c93be255a084b552314b011469c8549cdcbf548b147256eb392199cf7e31a611", | ||
"linux-x86_64": "e57168da7a15efd980bc433afba2815697f51c4708313526fe95a25c83a5ba85" | ||
} | ||
} |
@@ -28,8 +28,12 @@ // @ts-check | ||
case "win32": | ||
return info.checksums.windows; | ||
return info.checksums["windows-x86_64"]; | ||
case "darwin": | ||
return info.checksums.mac; | ||
if (os.arch() === "arm64") { | ||
return info.checksums["mac-aarch64"]; | ||
} else { | ||
return info.checksums["mac-x86_64"]; | ||
} | ||
default: | ||
return info.checksums.linux; | ||
return info.checksums["linux-x86_64"]; | ||
} | ||
} |
@@ -11,3 +11,3 @@ // @ts-check | ||
if (!isM1Mac() && os.arch() !== "x64") { | ||
throw new Error("Unsupported architecture " + os.arch() + ". Only x64 binaries are available."); | ||
throw new Error("Unsupported architecture " + os.arch() + ". Only x64 and M1 binaries are available."); | ||
} | ||
@@ -40,4 +40,3 @@ | ||
function isM1Mac() { | ||
// works on mac via rosetta | ||
return os.arch() === "arm64" && os.platform() === "darwin"; | ||
} |
{ | ||
"name": "dprint", | ||
"version": "0.22.1", | ||
"version": "0.22.2", | ||
"description": "Pluggable and configurable code formatting platform written in Rust.", | ||
@@ -5,0 +5,0 @@ "bin": "bin.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6586
104