@bytecodealliance/wizer
Advanced tools
| import { endianness } from "node:os"; | ||
| import { platform, arch } from "node:process"; | ||
| const knownPackages = { | ||
| "win32 x64 LE": "@bytecodealliance/wizer-win32-x64", | ||
| "darwin arm64 LE": "@bytecodealliance/wizer-darwin-arm64", | ||
| "darwin x64 LE": "@bytecodealliance/wizer-darwin-x64", | ||
| "linux arm64 LE": "@bytecodealliance/wizer-linux-arm64", | ||
| "linux s390x BE": "@bytecodealliance/wizer-linux-s390x", | ||
| "linux x64 LE": "@bytecodealliance/wizer-linux-x64", | ||
| }; | ||
| export function pkgForCurrentPlatform() { | ||
| let platformKey = `${platform} ${arch} ${endianness()}`; | ||
| if (platformKey in knownPackages) { | ||
| return knownPackages[platformKey]; | ||
| } | ||
| throw new Error(`Unsupported platform: "${platformKey}". "@bytecodealliance/wizer does not have a precompiled binary for the platform/architecture you are using. You can open an issue on https://github.com/bytecodealliance/wizer/issues to request for your platform/architecture to be included."`); | ||
| } |
+1
-18
@@ -1,20 +0,3 @@ | ||
| import { endianness } from "node:os"; | ||
| import { platform, arch } from "node:process"; | ||
| import { pkgForCurrentPlatform } from "./package-helpers.js"; | ||
| const knownPackages = { | ||
| "win32 x64 LE": "@bytecodealliance/wizer-win32-x64", | ||
| "darwin arm64 LE": "@bytecodealliance/wizer-darwin-arm64", | ||
| "darwin x64 LE": "@bytecodealliance/wizer-darwin-x64", | ||
| "linux x64 LE": "@bytecodealliance/wizer-linux-x64", | ||
| }; | ||
| function pkgForCurrentPlatform() { | ||
| let platformKey = `${platform} ${arch} ${endianness()}`; | ||
| if (platformKey in knownPackages) { | ||
| return knownPackages[platformKey]; | ||
| } | ||
| throw new Error(`Unsupported platform: "${platformKey}". "@bytecodealliance/wizer does not have a precompiled binary for the platform/architecture you are using. You can open an issue on https://github.com/bytecodealliance/wizer/issues to request for your platform/architecture to be included."`); | ||
| } | ||
| const pkg = pkgForCurrentPlatform(); | ||
@@ -21,0 +4,0 @@ |
+7
-7
| { | ||
| "name": "@bytecodealliance/wizer", | ||
| "version": "3.0.0", | ||
| "version": "3.0.1", | ||
| "description": "The WebAssembly Pre-Initializer", | ||
@@ -23,8 +23,8 @@ "type": "module", | ||
| "optionalDependencies": { | ||
| "@bytecodealliance/wizer-darwin-arm64": "3.0.0", | ||
| "@bytecodealliance/wizer-darwin-x64": "3.0.0", | ||
| "@bytecodealliance/wizer-linux-x64": "3.0.0", | ||
| "@bytecodealliance/wizer-linux-arm64": "3.0.0", | ||
| "@bytecodealliance/wizer-linux-s390x": "3.0.0", | ||
| "@bytecodealliance/wizer-win32-x64": "3.0.0" | ||
| "@bytecodealliance/wizer-darwin-arm64": "3.0.1", | ||
| "@bytecodealliance/wizer-darwin-x64": "3.0.1", | ||
| "@bytecodealliance/wizer-linux-x64": "3.0.1", | ||
| "@bytecodealliance/wizer-linux-arm64": "3.0.1", | ||
| "@bytecodealliance/wizer-linux-s390x": "3.0.1", | ||
| "@bytecodealliance/wizer-win32-x64": "3.0.1" | ||
| }, | ||
@@ -31,0 +31,0 @@ "license": "Apache-2.0", |
+1
-18
| #!/usr/bin/env node | ||
| import { endianness } from "node:os"; | ||
| import { platform, arch } from "node:process"; | ||
| import { execFileSync } from "node:child_process"; | ||
| const knownPackages = { | ||
| "win32 x64 LE": "@bytecodealliance/wizer-win32-x64", | ||
| "darwin arm64 LE": "@bytecodealliance/wizer-darwin-arm64", | ||
| "darwin x64 LE": "@bytecodealliance/wizer-darwin-x64", | ||
| "linux arm64 LE": "@bytecodealliance/wizer-linux-arm64", | ||
| "linux x64 LE": "@bytecodealliance/wizer-linux-x64", | ||
| "linux s390x BE": "@bytecodealliance/wizer-linux-s390x", | ||
| }; | ||
| function pkgForCurrentPlatform() { | ||
| let platformKey = `${platform} ${arch} ${endianness()}`; | ||
| import { pkgForCurrentPlatform } from "./package-helpers.js"; | ||
| if (platformKey in knownPackages) { | ||
| return knownPackages[platformKey]; | ||
| } | ||
| throw new Error(`Unsupported platform: "${platformKey}". "@bytecodealliance/wizer does not have a precompiled binary for the platform/architecture you are using. You can open an issue on https://github.com/bytecodealliance/wizer/issues to request for your platform/architecture to be included."`); | ||
| } | ||
| const pkg = pkgForCurrentPlatform(); | ||
@@ -24,0 +7,0 @@ |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
7
16.67%21812
-3.05%186
-7%