Skip to content

Commit d7a6d66

Browse files
renovate[bot]github-actions[bot]malice00
authored
chore(deps): update dependency @biomejs/biome to v2.2.0 (#2178)
* chore(deps): update dependency @biomejs/biome to v2.2.0 * Fixed pnpm-lock after renovate update Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> * Fixed linting warnings Signed-off-by: Roland Asmann <roland.asmann@gmail.com> --------- Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Roland Asmann <roland.asmann@gmail.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Roland Asmann <roland.asmann@gmail.com>
1 parent a0d359f commit d7a6d66

File tree

7 files changed

+67
-59
lines changed

7 files changed

+67
-59
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.2.0/schema.json",
33
"assist": {
44
"actions": {
55
"source": {

lib/cli/index.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2894,7 +2894,8 @@ export async function createNodejsBom(path, options) {
28942894
`${options.multiProject ? "**/" : ""}package.json`,
28952895
options,
28962896
);
2897-
const npmInstallCount = Number.parseInt(process.env.NPM_INSTALL_COUNT) || 2;
2897+
const npmInstallCount =
2898+
Number.parseInt(process.env.NPM_INSTALL_COUNT, 10) || 2;
28982899
// Automatic npm install logic.
28992900
// Only perform npm install for smaller projects (< 2 package.json) without the correct number of lock files
29002901
if (
@@ -5565,8 +5566,10 @@ export async function createCocoaBom(path, options) {
55655566
: targetDependencies.keys(),
55665567
);
55675568
if (process.env.COCOA_EXCLUDED_TARGETS) {
5568-
process.env.COCOA_EXCLUDED_TARGETS.split(",").forEach((excludedTarget) =>
5569-
usedTargets.delete(excludedTarget),
5569+
process.env.COCOA_EXCLUDED_TARGETS.split(",").forEach(
5570+
(excludedTarget) => {
5571+
usedTargets.delete(excludedTarget);
5572+
},
55705573
);
55715574
if (!excludeMessageShown) {
55725575
thoughtLog(

lib/helpers/utils.js

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,11 @@ export const DEBUG_MODE =
202202

203203
// Timeout milliseconds. Default 20 mins
204204
export const TIMEOUT_MS =
205-
Number.parseInt(process.env.CDXGEN_TIMEOUT_MS) || 20 * 60 * 1000;
205+
Number.parseInt(process.env.CDXGEN_TIMEOUT_MS, 10) || 20 * 60 * 1000;
206206

207207
// Max buffer for stdout and stderr. Defaults to 100MB
208208
export const MAX_BUFFER =
209-
Number.parseInt(process.env.CDXGEN_MAX_BUFFER) || 100 * 1024 * 1024;
209+
Number.parseInt(process.env.CDXGEN_MAX_BUFFER, 10) || 100 * 1024 * 1024;
210210

211211
// Metadata cache
212212
export let metadata_cache = {};
@@ -12350,10 +12350,14 @@ export function multiChecksumFile(algorithms, path) {
1235012350
const stream = createReadStream(path);
1235112351
stream.on("error", (err) => reject(err));
1235212352
stream.on("data", (chunk) =>
12353-
algorithms.forEach((alg) => hashes[alg].update(chunk)),
12353+
algorithms.forEach((alg) => {
12354+
hashes[alg].update(chunk);
12355+
}),
1235412356
);
1235512357
stream.on("end", () => {
12356-
algorithms.forEach((alg) => (hashes[alg] = hashes[alg].digest("hex")));
12358+
algorithms.forEach((alg) => {
12359+
hashes[alg] = hashes[alg].digest("hex");
12360+
});
1235712361
resolve(hashes);
1235812362
});
1235912363
});
@@ -13193,9 +13197,9 @@ export async function parsePodfileLock(podfileLock, projectPath) {
1319313197
}
1319413198
for (const [dependencyName, dependency] of dependencies) {
1319513199
if (dependency.dependencies) {
13196-
dependency.dependencies.forEach(
13197-
(dep) => (dep.name = dep.name.split("/")[0]),
13198-
);
13200+
dependency.dependencies.forEach((dep) => {
13201+
dep.name = dep.name.split("/")[0];
13202+
});
1319913203
dependency.dependencies = [
1320013204
...new Map(
1320113205
dependency.dependencies
@@ -13542,13 +13546,15 @@ async function fullScanCocoaPod(dependency, component, options) {
1354213546
if (podspec.authors) {
1354313547
component.authors = [];
1354413548
if (podspec.authors.constructor === Object) {
13545-
Object.entries(podspec.authors).forEach(([name, email]) =>
13549+
Object.entries(podspec.authors).forEach(([name, email]) => {
1354613550
email.includes("@")
1354713551
? component.authors.push({ name, email })
13548-
: component.authors.push({ name }),
13549-
);
13552+
: component.authors.push({ name });
13553+
});
1355013554
} else if (podspec.authors.constructor === Array) {
13551-
podspec.authors.forEach((name) => component.authors.push({ name }));
13555+
podspec.authors.forEach((name) => {
13556+
component.authors.push({ name });
13557+
});
1355213558
} else {
1355313559
component.authors.push({ name: podspec.authors });
1355413560
}

lib/managers/docker.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,12 @@ export const getOnlyDirs = (srcpath, dirName) => {
209209
getDirectories(srcpath)
210210
.map((p) => {
211211
try {
212-
if (safeExistsSync(p)) {
213-
if (lstatSync(p).isDirectory()) {
214-
return getOnlyDirs(p, dirName);
215-
}
212+
if (safeExistsSync(p) && lstatSync(p).isDirectory()) {
213+
return getOnlyDirs(p, dirName);
216214
}
215+
return [];
217216
} catch (_err) {
218-
// ignore
217+
return [];
219218
}
220219
})
221220
.filter((p) => p !== undefined),

lib/server/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { postProcess } from "../stages/postgen/postgen.js";
2222

2323
// Timeout milliseconds. Default 10 mins
2424
const TIMEOUT_MS =
25-
Number.parseInt(process.env.CDXGEN_SERVER_TIMEOUT_MS) || 10 * 60 * 1000;
25+
Number.parseInt(process.env.CDXGEN_SERVER_TIMEOUT_MS, 10) || 10 * 60 * 1000;
2626

2727
const ALLOWED_PARAMS = [
2828
"type",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"index.cjs"
139139
],
140140
"devDependencies": {
141-
"@biomejs/biome": "2.1.4",
141+
"@biomejs/biome": "2.2.0",
142142
"poku": "^3.0.2",
143143
"typescript": "^5.9.2"
144144
},

pnpm-lock.yaml

Lines changed: 37 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)