Comparing version 0.17.2 to 0.17.3
{ | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"checksums": { | ||
"windows": "322af517b437ab2719f66993f6b1dde6fbfc885cb541846b8a311f022f5e0519", | ||
"linux": "4c40db2ea98c8c950568a4883054ce950ee523346936ed9e200e3b2ae86b0e3b", | ||
"mac": "1dbc3c47243d4a55db719a7bc67218eabf8693d14b3e54dbf7eab6c9efed6493" | ||
"windows": "9c98092ec4af5bdbaccbb12d2532e4506d21dbfb0704fd64bc4488a37f4f1695", | ||
"linux": "dc8ee039ecdcadd2b5abe5c1b96e220ffc04aeb43a6b1461db5fc3940f18884d", | ||
"mac": "7630e976f9100898100f47ca6399885049be5c1efbdba2e5b9aec798b1c84531" | ||
} | ||
} |
@@ -10,3 +10,3 @@ // @ts-check | ||
if (os.arch() !== "x64") { | ||
if (!isM1Mac() && os.arch() !== "x64") { | ||
throw new Error("Unsupported architecture " + os.arch() + ". Only x64 binaries are available."); | ||
@@ -38,1 +38,6 @@ } | ||
} | ||
function isM1Mac() { | ||
// works on mac via rosetta | ||
return os.arch() === "arm64" && os.platform() === "darwin"; | ||
} |
{ | ||
"name": "dprint", | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"description": "Pluggable and configurable code formatting platform written in Rust.", | ||
@@ -5,0 +5,0 @@ "bin": "bin.js", |
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
6306
100