mobbdev 1.0.194 → 1.0.195

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.
@@ -4614,8 +4614,8 @@ var Logger = class {
4614
4614
  * Migrates logs from unknown path to known workspace path
4615
4615
  */
4616
4616
  migrateLogs(fromPath, toPath) {
4617
- const existingLogs = this.mobbConfigStore.get(fromPath) || [];
4618
- const targetLogs = this.mobbConfigStore.get(toPath) || [];
4617
+ const existingLogs = this.mobbConfigStore.get(fromPath) ?? [];
4618
+ const targetLogs = this.mobbConfigStore.get(toPath) ?? [];
4619
4619
  if (existingLogs.length > 0) {
4620
4620
  const combinedLogs = [...targetLogs, ...existingLogs];
4621
4621
  const finalLogs = combinedLogs.slice(-MAX_LOGS_SIZE);
@@ -4646,7 +4646,7 @@ var Logger = class {
4646
4646
  message,
4647
4647
  data
4648
4648
  };
4649
- const logs = this.mobbConfigStore.get(currentPath) || [];
4649
+ const logs = this.mobbConfigStore.get(currentPath) ?? [];
4650
4650
  if (logs.length >= MAX_LOGS_SIZE) {
4651
4651
  logs.shift();
4652
4652
  }
package/dist/index.mjs CHANGED
@@ -11926,7 +11926,7 @@ async function _scan(params, { skipPrompts = false } = {}) {
11926
11926
  const { createSpinner: createSpinner5 } = Spinner2({ ci });
11927
11927
  skipPrompts = skipPrompts || ci;
11928
11928
  let gqlClient = new GQLClient({
11929
- apiKey: apiKey || config2.get("apiToken"),
11929
+ apiKey: apiKey ?? config2.get("apiToken") ?? "",
11930
11930
  type: "apiKey"
11931
11931
  });
11932
11932
  gqlClient = await handleMobbLogin({
@@ -12452,7 +12452,7 @@ var config3 = new Configstore2(packageJson.name, { apiToken: "" });
12452
12452
  async function addScmToken(addScmTokenOptions) {
12453
12453
  const { apiKey, token, organization, scmType, url, refreshToken, ci } = addScmTokenOptions;
12454
12454
  let gqlClient = new GQLClient({
12455
- apiKey: apiKey || config3.get("apiToken"),
12455
+ apiKey: apiKey ?? config3.get("apiToken") ?? "",
12456
12456
  type: "apiKey"
12457
12457
  });
12458
12458
  gqlClient = await handleMobbLogin({
@@ -12846,8 +12846,8 @@ var Logger = class {
12846
12846
  * Migrates logs from unknown path to known workspace path
12847
12847
  */
12848
12848
  migrateLogs(fromPath, toPath) {
12849
- const existingLogs = this.mobbConfigStore.get(fromPath) || [];
12850
- const targetLogs = this.mobbConfigStore.get(toPath) || [];
12849
+ const existingLogs = this.mobbConfigStore.get(fromPath) ?? [];
12850
+ const targetLogs = this.mobbConfigStore.get(toPath) ?? [];
12851
12851
  if (existingLogs.length > 0) {
12852
12852
  const combinedLogs = [...targetLogs, ...existingLogs];
12853
12853
  const finalLogs = combinedLogs.slice(-MAX_LOGS_SIZE);
@@ -12878,7 +12878,7 @@ var Logger = class {
12878
12878
  message,
12879
12879
  data
12880
12880
  };
12881
- const logs = this.mobbConfigStore.get(currentPath) || [];
12881
+ const logs = this.mobbConfigStore.get(currentPath) ?? [];
12882
12882
  if (logs.length >= MAX_LOGS_SIZE) {
12883
12883
  logs.shift();
12884
12884
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "1.0.194",
3
+ "version": "1.0.195",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "git+https://github.com/mobb-dev/bugsy.git",
6
6
  "main": "dist/index.mjs",
@@ -53,18 +53,18 @@
53
53
  "dependencies": {
54
54
  "@gitbeaker/requester-utils": "43.5.0",
55
55
  "@gitbeaker/rest": "43.5.0",
56
- "@modelcontextprotocol/sdk": "1.17.5",
56
+ "@modelcontextprotocol/sdk": "1.20.1",
57
57
  "@octokit/core": "5.2.0",
58
58
  "@octokit/request-error": "5.1.1",
59
59
  "adm-zip": "0.5.16",
60
- "axios": "1.11.0",
60
+ "axios": "1.12.2",
61
61
  "azure-devops-node-api": "15.1.1",
62
62
  "bitbucket": "2.11.0",
63
63
  "chalk": "5.6.2",
64
64
  "chalk-animation": "2.0.3",
65
- "configstore": "7.0.0",
65
+ "configstore": "7.1.0",
66
66
  "cross-fetch": "4.1.0",
67
- "debug": "4.4.1",
67
+ "debug": "4.4.3",
68
68
  "dotenv": "16.6.1",
69
69
  "extract-zip": "2.0.1",
70
70
  "globby": "14.1.0",
@@ -86,9 +86,9 @@
86
86
  "open": "8.4.2",
87
87
  "parse-diff": "0.11.1",
88
88
  "sax": "1.4.1",
89
- "semver": "7.7.2",
89
+ "semver": "7.7.3",
90
90
  "simple-git": "3.28.0",
91
- "snyk": "1.1299.0",
91
+ "snyk": "1.1300.0",
92
92
  "tar": "6.2.1",
93
93
  "tmp": "0.2.5",
94
94
  "undici": "6.21.3",
@@ -132,7 +132,7 @@
132
132
  "nock": "14.0.10",
133
133
  "prettier": "3.6.2",
134
134
  "tsup": "8.5.0",
135
- "typescript": "5.9.2",
135
+ "typescript": "5.9.3",
136
136
  "vitest": "3.2.4"
137
137
  },
138
138
  "engines": {