Skip to content

Commit 78650c6

Browse files
authored
Merge branch 'main' into socket_logo
2 parents 32835a1 + 80a4114 commit 78650c6

File tree

10 files changed

+303
-140
lines changed

10 files changed

+303
-140
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
66

7+
## [1.1.5](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.5) - 2025-09-10
8+
9+
### Fixed
10+
- Fixed reachability analysis spinner behavior in certain scenarios
11+
- Improved `--cwd` current working directory override handling
12+
713
## [1.1.4](https://github.com/SocketDev/socket-cli/releases/tag/v1.1.4) - 2025-09-09
814

915
### Added

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "socket",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "CLI for Socket.dev",
55
"homepage": "https://github.com/SocketDev/socket-cli",
66
"license": "MIT",

src/commands/patch/cmd-patch.mts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { arrayUnique } from '@socketsecurity/registry/lib/arrays'
55
import { logger } from '@socketsecurity/registry/lib/logger'
66

77
import { handlePatch } from './handle-patch.mts'
8-
import constants from '../../constants.mts'
8+
import constants, { DOT_SOCKET, MANIFEST_JSON } from '../../constants.mts'
99
import { commonFlags, outputFlags } from '../../flags.mts'
1010
import { checkCommandInput } from '../../utils/check-input.mts'
1111
import { cmdFlagValueToArray } from '../../utils/cmd.mts'
@@ -97,15 +97,16 @@ async function run(
9797
// If given path is absolute then cwd should not affect it.
9898
cwd = path.resolve(process.cwd(), cwd)
9999

100-
const dotSocketDirPath = path.join(cwd, '.socket')
100+
const dotSocketDirPath = path.join(cwd, DOT_SOCKET)
101101
if (!existsSync(dotSocketDirPath)) {
102-
logger.error('Error: No .socket directory found in current directory')
102+
logger.error(`Error: No ${DOT_SOCKET} directory found in current directory`)
103103
return
104104
}
105105

106-
const manifestPath = path.join(dotSocketDirPath, 'manifest.json')
106+
const manifestPath = path.join(dotSocketDirPath, MANIFEST_JSON)
107107
if (!existsSync(manifestPath)) {
108-
logger.error('Error: No manifest.json found in .socket directory')
108+
logger.error(`Error: No ${MANIFEST_JSON} found in ${DOT_SOCKET} directory`)
109+
return
109110
}
110111

111112
const { spinner } = constants

0 commit comments

Comments
 (0)