Skip to content

Commit 73e0d19

Browse files
committed
Upgrade NodeJS dependencies to latest
1 parent 893217f commit 73e0d19

File tree

5 files changed

+322
-73
lines changed

5 files changed

+322
-73
lines changed

client/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"js-yaml": "^4.1.1"
3333
},
3434
"devDependencies": {
35-
"@eslint/js": "^9.39.2",
36-
"eslint": "^9.39.2",
35+
"@eslint/js": "^10.0.1",
36+
"eslint": "^10.0.0",
3737
"eslint-config-prettier": "^10.1.8",
3838
"eslint-plugin-prettier": "^5.5.5",
3939
"prettier": "^3.8.1"

client/src/lib/commands/basic-commands.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ export async function executeSourceRootValidateCommand(_client, _options = {}) {
151151
// Write file with UTF-8 encoding
152152
await writeFile(outputFile, output, "utf-8");
153153
} catch (error) {
154-
throw new Error(`Failed to write output file ${outputFile}: ${error.message}`);
154+
throw new Error(`Failed to write output file ${outputFile}: ${error.message}`, {
155+
cause: error
156+
});
155157
}
156158
}
157159

client/src/lib/commands/metadata-commands.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ export async function executeQueriesMetadataCollectCommand(client, _options = {}
6767
// Write file with UTF-8 encoding
6868
await writeFile(outputFile, output, "utf-8");
6969
} catch (error) {
70-
throw new Error(`Failed to write output file ${outputFile}: ${error.message}`);
70+
throw new Error(`Failed to write output file ${outputFile}: ${error.message}`, {
71+
cause: error
72+
});
7173
}
7274

7375
// Log summary to stderr
@@ -123,7 +125,9 @@ export async function executeQueriesMetadataProcessCommand(_client, _options = {
123125
// Write file with UTF-8 encoding
124126
await writeFile(outputFile, output, "utf-8");
125127
} catch (error) {
126-
throw new Error(`Failed to write output file ${outputFile}: ${error.message}`);
128+
throw new Error(`Failed to write output file ${outputFile}: ${error.message}`, {
129+
cause: error
130+
});
127131
}
128132
} else {
129133
throw new Error(
@@ -179,7 +183,9 @@ export async function executeQueriesMetadataFilterCommand(_client, _options = {}
179183
// Write file with UTF-8 encoding
180184
await writeFile(outputFile, output, "utf-8");
181185
} catch (error) {
182-
throw new Error(`Failed to write output file ${outputFile}: ${error.message}`);
186+
throw new Error(`Failed to write output file ${outputFile}: ${error.message}`, {
187+
cause: error
188+
});
183189
}
184190

185191
// Log summary to stderr
@@ -232,7 +238,9 @@ export async function executeResolveAllQueriesCommand(client, _options = {}) {
232238
// Write file with UTF-8 encoding
233239
await writeFile(outputFile, output, "utf-8");
234240
} catch (error) {
235-
throw new Error(`Failed to write output file ${outputFile}: ${error.message}`);
241+
throw new Error(`Failed to write output file ${outputFile}: ${error.message}`, {
242+
cause: error
243+
});
236244
}
237245

238246
// Log summary to stderr

0 commit comments

Comments
 (0)