mobbdev 1.0.20 → 1.0.23
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 +22 -15
- package/package.json +9 -9
package/dist/index.mjs
CHANGED
|
@@ -4200,23 +4200,28 @@ async function getAdoSdk(params) {
|
|
|
4200
4200
|
};
|
|
4201
4201
|
})(),
|
|
4202
4202
|
(async () => {
|
|
4203
|
-
const res = await git.getRefs(
|
|
4204
|
-
|
|
4203
|
+
const res = await git.getRefs(
|
|
4204
|
+
repo,
|
|
4205
|
+
projectName,
|
|
4206
|
+
`tags/${ref}`,
|
|
4207
|
+
false,
|
|
4208
|
+
false,
|
|
4209
|
+
false,
|
|
4210
|
+
false,
|
|
4211
|
+
true
|
|
4212
|
+
);
|
|
4213
|
+
if (!res[0] || !res[0].objectId && !res[0].peeledObjectId) {
|
|
4205
4214
|
throw new Error("no tag ref");
|
|
4206
4215
|
}
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
if (tag.taggedObject?.objectId) {
|
|
4211
|
-
objectId = tag.taggedObject.objectId;
|
|
4212
|
-
}
|
|
4213
|
-
} catch (e) {
|
|
4216
|
+
const sha = res[0].peeledObjectId || res[0].objectId;
|
|
4217
|
+
if (!sha) {
|
|
4218
|
+
throw new Error("no sha");
|
|
4214
4219
|
}
|
|
4215
4220
|
const commitRes2 = await git.getCommits(
|
|
4216
4221
|
repo,
|
|
4217
4222
|
{
|
|
4218
|
-
fromCommitId:
|
|
4219
|
-
toCommitId:
|
|
4223
|
+
fromCommitId: sha,
|
|
4224
|
+
toCommitId: sha,
|
|
4220
4225
|
$top: 1
|
|
4221
4226
|
},
|
|
4222
4227
|
projectName
|
|
@@ -4226,7 +4231,7 @@ async function getAdoSdk(params) {
|
|
|
4226
4231
|
throw new Error("no commit");
|
|
4227
4232
|
}
|
|
4228
4233
|
return {
|
|
4229
|
-
sha
|
|
4234
|
+
sha,
|
|
4230
4235
|
type: "TAG" /* TAG */,
|
|
4231
4236
|
date: commit.committer?.date || /* @__PURE__ */ new Date()
|
|
4232
4237
|
};
|
|
@@ -8630,14 +8635,16 @@ async function handleMobbLogin({
|
|
|
8630
8635
|
const { createSpinner: createSpinner5 } = Spinner({ ci: skipPrompts });
|
|
8631
8636
|
if (await inGqlClient.verifyToken()) {
|
|
8632
8637
|
createSpinner5().start().success({
|
|
8633
|
-
text: "\u{1F513}
|
|
8638
|
+
text: "\u{1F513} Login to Mobb succeeded"
|
|
8634
8639
|
});
|
|
8635
8640
|
return inGqlClient;
|
|
8636
8641
|
} else if (apiKey) {
|
|
8637
8642
|
createSpinner5().start().error({
|
|
8638
|
-
text: "\u{1F513}
|
|
8643
|
+
text: "\u{1F513} Login to Mobb failed: The provided API key does not match any configured API key on the system"
|
|
8639
8644
|
});
|
|
8640
|
-
throw new CliError(
|
|
8645
|
+
throw new CliError(
|
|
8646
|
+
"Login to Mobb failed: The provided API key does not match any configured API key on the system"
|
|
8647
|
+
);
|
|
8641
8648
|
}
|
|
8642
8649
|
const loginSpinner = createSpinner5().start();
|
|
8643
8650
|
if (!skipPrompts) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mobbdev",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"description": "Automated secure code remediation tool",
|
|
5
5
|
"repository": "git+https://github.com/mobb-dev/bugsy.git",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"author": "",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@gitbeaker/core": "42.0
|
|
33
|
-
"@gitbeaker/requester-utils": "42.0
|
|
34
|
-
"@gitbeaker/rest": "42.0
|
|
32
|
+
"@gitbeaker/core": "42.1.0",
|
|
33
|
+
"@gitbeaker/requester-utils": "42.1.0",
|
|
34
|
+
"@gitbeaker/rest": "42.1.0",
|
|
35
35
|
"@octokit/core": "5.2.0",
|
|
36
36
|
"@octokit/graphql": "5.0.6",
|
|
37
37
|
"@octokit/plugin-rest-endpoint-methods": "7.2.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"parse-diff": "0.11.1",
|
|
64
64
|
"semver": "7.6.3",
|
|
65
65
|
"simple-git": "3.27.0",
|
|
66
|
-
"snyk": "1.1295.
|
|
66
|
+
"snyk": "1.1295.2",
|
|
67
67
|
"supports-color": "10.0.0",
|
|
68
68
|
"tar": "6.2.1",
|
|
69
69
|
"tmp": "0.2.3",
|
|
@@ -88,12 +88,12 @@
|
|
|
88
88
|
"@types/tar": "6.1.13",
|
|
89
89
|
"@types/tmp": "0.2.6",
|
|
90
90
|
"@types/uuid": "10.0.0",
|
|
91
|
-
"@types/ws": "8.5.
|
|
91
|
+
"@types/ws": "8.5.14",
|
|
92
92
|
"@types/yargs": "17.0.33",
|
|
93
93
|
"@typescript-eslint/eslint-plugin": "7.17.0",
|
|
94
94
|
"@typescript-eslint/parser": "7.17.0",
|
|
95
|
-
"@vitest/coverage-istanbul": "3.0.
|
|
96
|
-
"@vitest/ui": "3.0.
|
|
95
|
+
"@vitest/coverage-istanbul": "3.0.4",
|
|
96
|
+
"@vitest/ui": "3.0.4",
|
|
97
97
|
"eslint": "8.57.0",
|
|
98
98
|
"eslint-plugin-import": "2.31.0",
|
|
99
99
|
"eslint-plugin-prettier": "5.2.3",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"prettier": "3.4.2",
|
|
102
102
|
"tsup": "7.2.0",
|
|
103
103
|
"typescript": "4.9.5",
|
|
104
|
-
"vitest": "3.0.
|
|
104
|
+
"vitest": "3.0.4"
|
|
105
105
|
},
|
|
106
106
|
"engines": {
|
|
107
107
|
"node": ">=18.20.4"
|