@coana-tech/cli 13.17.18 → 13.17.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +17 -7
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -89031,7 +89031,7 @@ var init_nuget_fixing_manager = __esm({
|
|
|
89031
89031
|
throw new Error(`fixing data for ecosystem 'NUGET' required, got ${fixingInfo.ecosystem}`);
|
|
89032
89032
|
}
|
|
89033
89033
|
const workspacePaths = Object.keys(fixes);
|
|
89034
|
-
const
|
|
89034
|
+
const solutionFiles = fixingInfo.solutionFiles;
|
|
89035
89035
|
const workspaceToResults = await computeWorkspaceTo(
|
|
89036
89036
|
workspacePaths,
|
|
89037
89037
|
async (wsPath) => {
|
|
@@ -89057,11 +89057,21 @@ var init_nuget_fixing_manager = __esm({
|
|
|
89057
89057
|
await (0, import_promises9.writeFile)((0, import_path10.join)(this.getAbsWsPath(wsPath), fixingInfo.projectFiles[wsPath]), finalProjectFile);
|
|
89058
89058
|
await (0, import_promises9.writeFile)(this.getLockFilePath(wsPath), JSON.stringify(finalLockFile, null, 2));
|
|
89059
89059
|
});
|
|
89060
|
-
|
|
89061
|
-
|
|
89062
|
-
|
|
89063
|
-
|
|
89064
|
-
|
|
89060
|
+
if (solutionFiles) {
|
|
89061
|
+
for (const solutionFile of solutionFiles) {
|
|
89062
|
+
const succeeded = await execAndLogOnFailure(
|
|
89063
|
+
cmdt`dotnet restore ${solutionFile} --use-lock-file`,
|
|
89064
|
+
(0, import_path10.join)(this.rootDir, this.subprojectPath)
|
|
89065
|
+
);
|
|
89066
|
+
if (!succeeded) throw new Error(`Error applying fix - could not restore project ${this.subprojectPath}`);
|
|
89067
|
+
}
|
|
89068
|
+
} else {
|
|
89069
|
+
const succeeded = await execAndLogOnFailure(
|
|
89070
|
+
"dotnet restore --use-lock-file",
|
|
89071
|
+
(0, import_path10.join)(this.rootDir, this.subprojectPath)
|
|
89072
|
+
);
|
|
89073
|
+
if (!succeeded) throw new Error(`Error applying fix - could not restore project ${this.subprojectPath}`);
|
|
89074
|
+
}
|
|
89065
89075
|
}
|
|
89066
89076
|
async applySecurityFixesForWorkspace(wsPath, projectFilePath, vulnFixes, dependencyTree) {
|
|
89067
89077
|
const initialProjectFile = await (0, import_promises9.readFile)(projectFilePath, "utf-8");
|
|
@@ -185203,7 +185213,7 @@ var require_version = __commonJS({
|
|
|
185203
185213
|
"use strict";
|
|
185204
185214
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
185205
185215
|
exports2.version = void 0;
|
|
185206
|
-
exports2.version = "13.17.
|
|
185216
|
+
exports2.version = "13.17.19";
|
|
185207
185217
|
}
|
|
185208
185218
|
});
|
|
185209
185219
|
|