Skip to content

Commit

Permalink
build: update biomejs (CycloneDX#1138)
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Setch <[email protected]>
  • Loading branch information
setchy authored Jun 5, 2024
1 parent 3b698cd commit e34cfc1
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 46 deletions.
2 changes: 1 addition & 1 deletion analyzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export const findJSImportsExports = async (src, deep) => {
const errFiles = [];
try {
const promiseMap = await getAllSrcJSAndTSFiles(src, deep);
const srcFiles = promiseMap.flatMap((d) => d);
const srcFiles = promiseMap.flat();
for (const file of srcFiles) {
try {
parseFileASTTree(src, file, allImports, allExports);
Expand Down
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.7.0/schema.json",
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"organizeImports": {
"enabled": true
},
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
"scripts": {
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --inject-globals false docker.test.js utils.test.js display.test.js postgen.test.js",
"watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch --inject-globals false",
"lint:check": "biome check *",
"lint": "biome check --apply *",
"lint:errors": "biome check * --diagnostic-level=error",
"lint:check": "biome check",
"lint": "biome check --fix",
"lint:errors": "biome check --diagnostic-level=error",
"gen-types": "npx -p typescript tsc"
},
"engines": {
Expand Down Expand Up @@ -112,7 +112,7 @@
},
"files": ["*.js", "bin/", "data/", "types/"],
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@biomejs/biome": "1.8.0",
"jest": "^29.7.0",
"typescript": "^5.4.5"
}
Expand Down
74 changes: 37 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10277,9 +10277,7 @@ async function queryNuget(p, NUGET_URL) {
let version = `${tmpVersion.major}.${tmpVersion.minor}.${tmpVersion.patch}`;
if (compare(version, upper) === 1) {
if (tmpVersion.patch > 0) {
version = `${tmpVersion.major}.${tmpVersion.minor}.${(
tmpVersion.patch - 1
).toString()}`;
version = `${tmpVersion.major}.${tmpVersion.minor}.${(tmpVersion.patch - 1).toString()}`;
}
}
return version;
Expand Down

0 comments on commit e34cfc1

Please sign in to comment.