New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More →
Socket
Sign inDemoInstall
Socket

@biomejs/biome

Package Overview
Dependencies
Maintainers
4
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@biomejs/biome - npm Package Compare versions

Comparing version

to
1.4.1-nightly.e087146

2

package.json

@@ -1,1 +0,1 @@

{"name":"@biomejs/biome","version":"1.4.1-nightly.bc772a3","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT OR Apache-2.0","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md","LICENSE-APACHE","LICENSE-MIT","ROME-LICENSE-MIT"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.4.1-nightly.bc772a3","@biomejs/cli-win32-arm64":"1.4.1-nightly.bc772a3","@biomejs/cli-darwin-x64":"1.4.1-nightly.bc772a3","@biomejs/cli-darwin-arm64":"1.4.1-nightly.bc772a3","@biomejs/cli-linux-x64":"1.4.1-nightly.bc772a3","@biomejs/cli-linux-arm64":"1.4.1-nightly.bc772a3"}}
{"name":"@biomejs/biome","version":"1.4.1-nightly.e087146","bin":"bin/biome","scripts":{"postinstall":"node scripts/postinstall.js"},"homepage":"https://biomejs.dev","repository":{"type":"git","url":"https://github.com/biomejs/biome.git","directory":"packages/@biomejs/biome"},"author":"Emanuele Stoppa","license":"MIT OR Apache-2.0","bugs":"https://github.com/biomejs/biome/issues","description":"Biome is a toolchain for the web: formatter, linter and more","files":["bin/biome","scripts/postinstall.js","configuration_schema.json","README.md","LICENSE-APACHE","LICENSE-MIT","ROME-LICENSE-MIT"],"keywords":["JavaScript","TypeScript","format","lint","toolchain","JSON"],"engines":{"node":">=14.*"},"funding":{"type":"opencollective","url":"https://opencollective.com/biome"},"optionalDependencies":{"@biomejs/cli-win32-x64":"1.4.1-nightly.e087146","@biomejs/cli-win32-arm64":"1.4.1-nightly.e087146","@biomejs/cli-darwin-x64":"1.4.1-nightly.e087146","@biomejs/cli-darwin-arm64":"1.4.1-nightly.e087146","@biomejs/cli-linux-x64":"1.4.1-nightly.e087146","@biomejs/cli-linux-arm64":"1.4.1-nightly.e087146","@biomejs/cli-linux-x64-musl":"1.4.1-nightly.e087146","@biomejs/cli-linux-arm64-musl":"1.4.1-nightly.e087146"}}

@@ -112,2 +112,5 @@ <p align="center">

</td>
<td align="center" valign="middle">
<a href="https://nanabit.dev/" target="_blank"><img src="https://images.opencollective.com/nanabit/d15fd98/logo/256.png?height=80" width="80"></a>
</td>
</tr>

@@ -114,0 +117,0 @@ </tbody>

const { platform, arch } = process;
const { execSync } = require("child_process");
function isMusl() {
let stderr;
try {
stderr = execSync("ldd --version", {
stdio: ['pipe', 'pipe', 'pipe']
});
} catch (err) {
stderr = err.stderr;
}
if (stderr.indexOf("musl") > -1) {
return true;
}
return false;
}
const PLATFORMS = {

@@ -16,5 +32,13 @@ win32: {

},
"linux-musl": {
x64: "@biomejs/cli-linux-x64-musl/biome",
arm64: "@biomejs/cli-linux-arm64-musl/biome",
},
};
const binName = PLATFORMS?.[platform]?.[arch];
const binName =
platform === "linux" && isMusl()
? PLATFORMS?.["linux-musl"]?.[arch]
: PLATFORMS?.[platform]?.[arch];
if (binName) {

@@ -21,0 +45,0 @@ let binPath;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet