@socketsecurity/cli-with-sentry 1.1.73 → 1.1.75

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/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
6
 
7
+ ## [1.1.74](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.74) - 2026-03-19
8
+
9
+ ### Fixed
10
+ - Fixed `socket scan create --reach` failing with input validation errors when no explicit target is passed. In non-TTY environments (e.g. Jenkins CI), the interactive prompt to confirm the current directory would silently fail, causing all reach validations to error. Now defaults to `.` (cwd) when `--reach` is used without a target.
11
+
12
+ ### Changed
13
+ - Updated the Coana CLI to v `14.12.200`.
14
+
7
15
  ## [1.1.73](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.73) - 2026-03-13
8
16
 
9
17
  ### Changed
package/dist/cli.js CHANGED
@@ -11365,12 +11365,21 @@ async function run$d(argv, importMeta, {
11365
11365
  let updatedInput = false;
11366
11366
 
11367
11367
  // Accept zero or more paths. Default to cwd() if none given.
11368
- let targets = cli.input || [cwd];
11368
+ let targets = cli.input.length ? cli.input : [];
11369
11369
  if (!targets.length && !dryRun && interactive) {
11370
11370
  targets = await suggestTarget();
11371
11371
  updatedInput = true;
11372
11372
  }
11373
11373
 
11374
+ // Fallback: if targets is still empty after the interactive prompt (e.g. the
11375
+ // select() prompt silently fails in non-TTY environments like Jenkins CI
11376
+ // because wrapPrompt swallows non-TypeError errors and returns undefined),
11377
+ // default to '.' so that downstream validations don't fail with confusing
11378
+ // "At least one TARGET (missing)" errors.
11379
+ if (!targets.length && !dryRun) {
11380
+ targets = ['.'];
11381
+ }
11382
+
11374
11383
  // We're going to need an api token to suggest data because those suggestions
11375
11384
  // must come from data we already know. Don't error on missing api token yet.
11376
11385
  // If the api-token is not set, ignore it for the sake of suggestions.
@@ -12291,7 +12300,7 @@ async function downloadManifestFile({
12291
12300
  utils.debugApiRequest('GET', fileUrl);
12292
12301
  let downloadUrlResponse;
12293
12302
  try {
12294
- downloadUrlResponse = await fetch(fileUrl, {
12303
+ downloadUrlResponse = await utils.apiFetch(fileUrl, {
12295
12304
  method: 'GET',
12296
12305
  headers: {
12297
12306
  Authorization: `Bearer ${githubToken}`
@@ -12339,7 +12348,7 @@ async function streamDownloadWithFetch(localPath, downloadUrl) {
12339
12348
 
12340
12349
  try {
12341
12350
  utils.debugApiRequest('GET', downloadUrl);
12342
- response = await fetch(downloadUrl);
12351
+ response = await utils.apiFetch(downloadUrl);
12343
12352
  utils.debugApiResponse('GET', downloadUrl, response.status);
12344
12353
  if (!response.ok) {
12345
12354
  const errorMsg = `Download failed due to bad server response: ${response.status} ${response.statusText} for ${downloadUrl}`;
@@ -12426,7 +12435,7 @@ async function getLastCommitDetails({
12426
12435
  utils.debugApiRequest('GET', commitApiUrl);
12427
12436
  let commitResponse;
12428
12437
  try {
12429
- commitResponse = await fetch(commitApiUrl, {
12438
+ commitResponse = await utils.apiFetch(commitApiUrl, {
12430
12439
  headers: {
12431
12440
  Authorization: `Bearer ${githubToken}`
12432
12441
  }
@@ -12530,7 +12539,7 @@ async function getRepoDetails({
12530
12539
  let repoDetailsResponse;
12531
12540
  try {
12532
12541
  utils.debugApiRequest('GET', repoApiUrl);
12533
- repoDetailsResponse = await fetch(repoApiUrl, {
12542
+ repoDetailsResponse = await utils.apiFetch(repoApiUrl, {
12534
12543
  method: 'GET',
12535
12544
  headers: {
12536
12545
  Authorization: `Bearer ${githubToken}`
@@ -12586,7 +12595,7 @@ async function getRepoBranchTree({
12586
12595
  let treeResponse;
12587
12596
  try {
12588
12597
  utils.debugApiRequest('GET', treeApiUrl);
12589
- treeResponse = await fetch(treeApiUrl, {
12598
+ treeResponse = await utils.apiFetch(treeApiUrl, {
12590
12599
  method: 'GET',
12591
12600
  headers: {
12592
12601
  Authorization: `Bearer ${githubToken}`
@@ -15498,5 +15507,5 @@ process.on('unhandledRejection', async (reason, promise) => {
15498
15507
  // eslint-disable-next-line n/no-process-exit
15499
15508
  process.exit(1);
15500
15509
  });
15501
- //# debugId=1b8d864a-84a9-4c68-bd33-68e2ce165fd0
15510
+ //# debugId=19d5ebed-3e81-4f49-9ae1-2f169c3b6c3d
15502
15511
  //# sourceMappingURL=cli.js.map