mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-09-25 15:25:44 +00:00
Apply consistent project formatting
This commit is contained in:
@@ -201,7 +201,12 @@ function parseExportQuality(rawValue) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (rawValue === "medium" || rawValue === "good" || rawValue === "high" || rawValue === "source") {
|
||||
if (
|
||||
rawValue === "medium" ||
|
||||
rawValue === "good" ||
|
||||
rawValue === "high" ||
|
||||
rawValue === "source"
|
||||
) {
|
||||
return rawValue;
|
||||
}
|
||||
|
||||
@@ -928,7 +933,9 @@ async function main() {
|
||||
printRequestedConfigTable(benchmarkRequests);
|
||||
|
||||
if (providedInputPath) {
|
||||
console.log(`[benchmark-export-queues] Using provided input video: ${providedInputPath}`);
|
||||
console.log(
|
||||
`[benchmark-export-queues] Using provided input video: ${providedInputPath}`,
|
||||
);
|
||||
await fs.copyFile(providedInputPath, inputPath);
|
||||
} else {
|
||||
console.log(`[benchmark-export-queues] Generating fixture video: ${inputPath}`);
|
||||
|
||||
@@ -128,11 +128,14 @@ try {
|
||||
prefix: "build-windows-capture",
|
||||
clearCache: clearCmakeCache,
|
||||
configure: (generator, toolset) =>
|
||||
execSync(`${cmake} .. -G "${generator}" -A ${generatorArch}${toolset ? ` -T ${toolset}` : ""}`, {
|
||||
cwd: buildDir,
|
||||
stdio: "inherit",
|
||||
timeout: 120000,
|
||||
}),
|
||||
execSync(
|
||||
`${cmake} .. -G "${generator}" -A ${generatorArch}${toolset ? ` -T ${toolset}` : ""}`,
|
||||
{
|
||||
cwd: buildDir,
|
||||
stdio: "inherit",
|
||||
timeout: 120000,
|
||||
},
|
||||
),
|
||||
});
|
||||
} catch (error) {
|
||||
console.error("[build-windows-capture] CMake configure failed:", error.message);
|
||||
|
||||
@@ -97,7 +97,9 @@ if (!cmake) {
|
||||
binaryName: "recordly-gpu-export.exe",
|
||||
});
|
||||
if (!verification.ok) {
|
||||
console.error(formatNativeHelperManifestWarning("build-windows-gpu-export", verification));
|
||||
console.error(
|
||||
formatNativeHelperManifestWarning("build-windows-gpu-export", verification),
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
console.log(`[build-windows-gpu-export] Using bundled helper: ${bundledExePath}`);
|
||||
@@ -123,11 +125,14 @@ try {
|
||||
prefix: "build-windows-gpu-export",
|
||||
clearCache: clearCmakeCache,
|
||||
configure: (generator, toolset) =>
|
||||
execSync(`${cmake} .. -G "${generator}" -A ${generatorArch}${toolset ? ` -T ${toolset}` : ""}`, {
|
||||
cwd: buildDir,
|
||||
stdio: "inherit",
|
||||
timeout: 120000,
|
||||
}),
|
||||
execSync(
|
||||
`${cmake} .. -G "${generator}" -A ${generatorArch}${toolset ? ` -T ${toolset}` : ""}`,
|
||||
{
|
||||
cwd: buildDir,
|
||||
stdio: "inherit",
|
||||
timeout: 120000,
|
||||
},
|
||||
),
|
||||
});
|
||||
} catch (error) {
|
||||
console.error("[build-windows-gpu-export] CMake configure failed:", error.message);
|
||||
|
||||
@@ -72,9 +72,12 @@ function loadNotes({ notes, notesFile }) {
|
||||
}
|
||||
|
||||
function resolveGhBinary() {
|
||||
const candidates = [process.env.GH_BIN, "gh", "/opt/homebrew/bin/gh", "/usr/local/bin/gh"].filter(
|
||||
Boolean,
|
||||
);
|
||||
const candidates = [
|
||||
process.env.GH_BIN,
|
||||
"gh",
|
||||
"/opt/homebrew/bin/gh",
|
||||
"/usr/local/bin/gh",
|
||||
].filter(Boolean);
|
||||
|
||||
for (const candidate of candidates) {
|
||||
try {
|
||||
|
||||
@@ -76,9 +76,7 @@ function convertNamedExports(namedSpec, indent = "") {
|
||||
}
|
||||
|
||||
function convertExportLine(line) {
|
||||
const singleLineMatch = line.match(
|
||||
/^([ \t]*)export\s*\{\s*([^}]*)\s*\}\s*;?[ \t]*$/,
|
||||
);
|
||||
const singleLineMatch = line.match(/^([ \t]*)export\s*\{\s*([^}]*)\s*\}\s*;?[ \t]*$/);
|
||||
if (singleLineMatch) {
|
||||
const [, indent, namedSpec] = singleLineMatch;
|
||||
return convertNamedExports(namedSpec, indent);
|
||||
@@ -235,10 +233,7 @@ function replaceImportMetaUrlInCode(line, state) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (
|
||||
line.startsWith(token, index) &&
|
||||
hasTokenBoundary(line, index, index + token.length)
|
||||
) {
|
||||
if (line.startsWith(token, index) && hasTokenBoundary(line, index, index + token.length)) {
|
||||
normalizedLine += IMPORT_META_URL_CJS_REPLACEMENT;
|
||||
changed = true;
|
||||
index += token.length - 1;
|
||||
@@ -322,10 +317,7 @@ function containsImportMetaInCode(line, state) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (
|
||||
line.startsWith(token, index) &&
|
||||
hasTokenBoundary(line, index, index + token.length)
|
||||
) {
|
||||
if (line.startsWith(token, index) && hasTokenBoundary(line, index, index + token.length)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user