mobbdev 0.0.127 → 0.0.128
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/dist/index.mjs +11 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -118,7 +118,7 @@ var VUL_REPORT_DIGEST_TIMEOUT_MS = 1e3 * 60 * 20;
|
|
|
118
118
|
// src/features/analysis/index.ts
|
|
119
119
|
import crypto from "node:crypto";
|
|
120
120
|
import fs3 from "node:fs";
|
|
121
|
-
import
|
|
121
|
+
import os from "node:os";
|
|
122
122
|
import path6 from "node:path";
|
|
123
123
|
import { pipeline } from "node:stream/promises";
|
|
124
124
|
|
|
@@ -2657,7 +2657,6 @@ initGitlabFetchMock();
|
|
|
2657
2657
|
|
|
2658
2658
|
// src/features/analysis/scm/scmSubmit/index.ts
|
|
2659
2659
|
import fs from "node:fs/promises";
|
|
2660
|
-
import os from "os";
|
|
2661
2660
|
import parseDiff from "parse-diff";
|
|
2662
2661
|
import path3 from "path";
|
|
2663
2662
|
import { simpleGit as simpleGit2 } from "simple-git";
|
|
@@ -2671,7 +2670,7 @@ var BaseSubmitToScmMessageZ = z7.object({
|
|
|
2671
2670
|
fixes: z7.array(
|
|
2672
2671
|
z7.object({
|
|
2673
2672
|
fixId: z7.string().uuid(),
|
|
2674
|
-
|
|
2673
|
+
patches: z7.array(z7.string())
|
|
2675
2674
|
})
|
|
2676
2675
|
),
|
|
2677
2676
|
commitHash: z7.string(),
|
|
@@ -2756,7 +2755,12 @@ var isValidBranchName = async (branchName) => {
|
|
|
2756
2755
|
return false;
|
|
2757
2756
|
}
|
|
2758
2757
|
};
|
|
2759
|
-
var FixesZ = z8.array(
|
|
2758
|
+
var FixesZ = z8.array(
|
|
2759
|
+
z8.object({
|
|
2760
|
+
fixId: z8.string(),
|
|
2761
|
+
patches: z8.array(z8.string())
|
|
2762
|
+
})
|
|
2763
|
+
).nonempty();
|
|
2760
2764
|
|
|
2761
2765
|
// src/features/analysis/scm/scm.ts
|
|
2762
2766
|
var GetRefererenceResultZ = z9.object({
|
|
@@ -4713,8 +4717,8 @@ import path5 from "path";
|
|
|
4713
4717
|
var debug7 = Debug8("mobbdev:checkmarx");
|
|
4714
4718
|
var require2 = createRequire(import.meta.url);
|
|
4715
4719
|
var getCheckmarxPath = () => {
|
|
4716
|
-
const
|
|
4717
|
-
const cxFileName =
|
|
4720
|
+
const os2 = type();
|
|
4721
|
+
const cxFileName = os2 === "Windows_NT" ? "cx.exe" : "cx";
|
|
4718
4722
|
try {
|
|
4719
4723
|
return require2.resolve(`.bin/${cxFileName}`);
|
|
4720
4724
|
} catch (e) {
|
|
@@ -5256,7 +5260,7 @@ async function _scan(params, { skipPrompts = false } = {}) {
|
|
|
5256
5260
|
const loginId = await gqlClient.createCliLogin({
|
|
5257
5261
|
publicKey: publicKey.export({ format: "pem", type: "pkcs1" }).toString()
|
|
5258
5262
|
});
|
|
5259
|
-
const browserUrl = `${webLoginUrl}/${loginId}?hostname=${
|
|
5263
|
+
const browserUrl = `${webLoginUrl}/${loginId}?hostname=${os.hostname()}`;
|
|
5260
5264
|
!ci && console.log(
|
|
5261
5265
|
`If the page does not open automatically, kindly access it through ${browserUrl}.`
|
|
5262
5266
|
);
|