dprint 0.30.0 → 0.30.3

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/info.json +6 -5
  2. package/install.js +12 -2
  3. package/package.json +1 -1
package/info.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
- "version": "0.30.0",
2
+ "version": "0.30.3",
3
3
  "checksums": {
4
- "windows-x86_64": "d1faf9884094b476af6a37b121b76d7714c44704a9b2d8b468d60f63b6b59efd",
5
- "darwin-x86_64": "6b1d425284c6b0d162b0c13b02f3183aff4f923662bbc37181b1697582f0c59c",
6
- "darwin-aarch64": "63736a49a7b1bb07a10e653cdb936511f7b5fe30863f6691d0786f5fbe3c2fe0",
7
- "linux-x86_64": "8ca8c0d834f8e7c6f7be10c32e1c54fd99067997b0a15f22f598ad492029abb9"
4
+ "windows-x86_64": "1d9fa9b6ec8b3afe102a6f9c818114d3f96644261c7dfc4df93dd293d44b2fc1",
5
+ "darwin-x86_64": "a4e27daea3d28052f2ea9585ed962b238af214d7367abb59c14c711e39de737d",
6
+ "darwin-aarch64": "2cdde2accc7fe8f6890ad8632be930987e0e925d8f5e21af0aa2b730b0164c84",
7
+ "linux-x86_64": "cefdc43953d9e20ec136219a33f9b866d67620e11975135a57562c3beb5b4842",
8
+ "linux-aarch64": "98303e7e7a401423605a30df4d403ad7b250e707b94f150b7e04636979bb9ded"
8
9
  }
9
10
  }
package/install.js CHANGED
@@ -65,7 +65,13 @@ function getTarget() {
65
65
  throw new Error("Unsupported architecture " + os.arch() + ". Only x64 and M1 binaries are available.");
66
66
  }
67
67
  } else {
68
- return "x86_64-unknown-linux-gnu";
68
+ if (os.arch() === "arm64") {
69
+ return "aarch64-unknown-linux-gnu";
70
+ } else if (os.arch() === "x64") {
71
+ return "x86_64-unknown-linux-gnu";
72
+ } else {
73
+ throw new Error("Unsupported architecture " + os.arch() + ". Only x64 and aarch64 binaries are available.");
74
+ }
69
75
  }
70
76
  }
71
77
 
@@ -134,7 +140,11 @@ function verifyZipChecksum() {
134
140
  return info.checksums["darwin-x86_64"];
135
141
  }
136
142
  default:
137
- return info.checksums["linux-x86_64"];
143
+ if (os.arch() === "arm64") {
144
+ return info.checksums["linux-aarch64"];
145
+ } else {
146
+ return info.checksums["linux-x86_64"];
147
+ }
138
148
  }
139
149
  }
140
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dprint",
3
- "version": "0.30.0",
3
+ "version": "0.30.3",
4
4
  "description": "Pluggable and configurable code formatting platform written in Rust.",
5
5
  "bin": "bin.js",
6
6
  "scripts": {