Skip to content

Commit f3942d4

Browse files
committed
refactor: use detectExecutableType from @socketsecurity/lib and remove duplicates
- Replace manual file extension checks with detectExecutableType() for binary vs package detection - Use detectExecutableType in spawnCoanaDlx, spawnCdxgenDlx, spawnSfwDlx, and spawnSocketPatchDlx - Remove duplicate binary.mts (now in @socketsecurity/lib/dlx/binary) - Remove duplicate detection.mts (now in @socketsecurity/lib/shadow and temporary-executor) - Update imports to use @socketsecurity/lib versions - Remove spawnNode usage in favor of direct spawn calls - Remove dynamic spawn import - Update test mocks to reference @socketsecurity/lib paths This eliminates ~900 lines of duplicate code and provides more robust detection using package.json, file extensions, and executable permissions.
1 parent 286279d commit f3942d4

File tree

7 files changed

+30
-900
lines changed

7 files changed

+30
-900
lines changed

0 commit comments

Comments
 (0)