socket 1.1.76 → 1.1.77

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.77](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.77) - 2026-04-01
8
+
9
+ ### Fixed
10
+ - Improved error message when using `--reach` with an invalid, expired, or revoked API token. Previously showed a misleading "Unable to verify plan permissions" error; now clearly indicates the authentication failure.
11
+
12
+ ### Changed
13
+ - Updated the Coana CLI to v `14.12.201`.
14
+
7
15
  ## [1.1.74](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.74) - 2026-03-19
8
16
 
9
17
  ### Fixed
package/dist/cli.js CHANGED
@@ -1592,6 +1592,14 @@ async function performReachabilityAnalysis(options) {
1592
1592
  // Check if user has enterprise plan for reachability analysis.
1593
1593
  const orgsCResult = await utils.fetchOrganization();
1594
1594
  if (!orgsCResult.ok) {
1595
+ const httpCode = orgsCResult.data?.code;
1596
+ if (httpCode === constants.default.HTTP_STATUS_UNAUTHORIZED) {
1597
+ return {
1598
+ ok: false,
1599
+ message: 'Authentication failed',
1600
+ cause: 'Your API token appears to be invalid, expired, or revoked. Please check your token and try again.'
1601
+ };
1602
+ }
1595
1603
  return {
1596
1604
  ok: false,
1597
1605
  message: 'Unable to verify plan permissions',
@@ -15507,5 +15515,5 @@ process.on('unhandledRejection', async (reason, promise) => {
15507
15515
  // eslint-disable-next-line n/no-process-exit
15508
15516
  process.exit(1);
15509
15517
  });
15510
- //# debugId=19d5ebed-3e81-4f49-9ae1-2f169c3b6c3d
15518
+ //# debugId=2e8b0e58-10dd-4133-8246-12b5cdb37c09
15511
15519
  //# sourceMappingURL=cli.js.map