UNPKG

@dappnode/dappnodesdk

Version:

dappnodesdk is a tool to make the creation of new dappnode packages as simple as possible. It helps to initialize and publish in ethereum blockchain

15 lines 545 B
import { architectures } from "@dappnode/types"; /** * * @param rawArchs * @returns */ export function parseArchitectures({ rawArchs = ["linux/amd64"] }) { for (const rawArch of rawArchs) if (!architectures.includes(rawArch)) throw Error(`Invalid architecture '${rawArch}', allowed values: ${architectures.join(", ")}`); if (!rawArchs.includes("linux/amd64")) throw Error(`architectures array must include default arch 'linux/amd64'`); return rawArchs; } //# sourceMappingURL=parseArchitectures.js.map