Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SocketDev/socket-patch
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: SocketDev/socket-patch
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: add-typescript-schema-lib
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 5 files changed
  • 2 contributors

Commits on Mar 5, 2026

  1. feat: add TypeScript schema library to npm wrapper package

    Add pared-down TypeScript library to npm/socket-patch/ for use by
    depscan. Includes schema validation (zod), git-compatible hashing,
    manifest operations, recovery, and package-json postinstall helpers.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    mikolalysenko and claude committed Mar 5, 2026
    Configuration menu
    Copy the full SHA
    f46314c View commit details
    Browse the repository at this point in the history
  2. fix: normalize path separators in Go crawler PURLs on Windows

    On Windows, `Path::strip_prefix` + `to_string_lossy()` produces
    backslashes in the relative path, which get embedded in the PURL
    (e.g., `pkg:golang/github.com\\gin-gonic\\gin@v1.9.1`). Replace
    backslashes with forward slashes to produce correct PURLs on all
    platforms.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    mikolalysenko and claude committed Mar 5, 2026
    Configuration menu
    Copy the full SHA
    651344c View commit details
    Browse the repository at this point in the history
  3. refactor: remove depscan-specific TS utilities, keep only schema

    Move operational code (constants, hashing, manifest operations,
    recovery, postinstall detection) back to depscan. Only the Zod
    schema and its tests remain in the npm wrapper package.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    mikolalysenko and claude committed Mar 5, 2026
    Configuration menu
    Copy the full SHA
    79e56c1 View commit details
    Browse the repository at this point in the history
  4. chore: remove bin and optionalDependencies from package.json

    The platform-specific binary packages and bin entry are only
    needed for the published npm package, not for the workspace
    submodule which is used solely as a schema library.
    
    Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
    mikolalysenko and claude committed Mar 5, 2026
    Configuration menu
    Copy the full SHA
    abf8a3a View commit details
    Browse the repository at this point in the history
Loading