Thanks to visit codestin.com
Credit goes to github.com

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: npm/package-json
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.1.0
Choose a base ref
...
head repository: npm/package-json
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.1.1
Choose a head ref
  • 7 commits
  • 18 files changed
  • 5 contributors

Commits on May 3, 2024

  1. Configuration menu
    Copy the full SHA
    45a2937 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    90863c1 View commit details
    Browse the repository at this point in the history

Commits on May 23, 2024

  1. Configuration menu
    Copy the full SHA
    191b521 View commit details
    Browse the repository at this point in the history

Commits on May 24, 2024

  1. Configuration menu
    Copy the full SHA
    a974274 View commit details
    Browse the repository at this point in the history
  2. fix: add normalizePackageMan helper (#100)

    Aligns normalization logic with `directories.bin`
    
    See also:
    https://github.com/npm/normalize-package-data/blob/main/lib/fixer.js#L105
    ```js
      fixManField: function (data) {
        if (!data.man) {
          return
        }
        if (typeof data.man === 'string') {
          data.man = [data.man]
        }
      },
    ```
    
    * continues npm/read-package-json#177
    * relates #104
    
    CC @wraithgar
    antongolub authored and wraithgar committed May 24, 2024
    Configuration menu
    Copy the full SHA
    46c563b View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. fix: apply securePath to package bin (#105)

    ## What / Why
    
    * Aligns path normalization logic when processing `bin` and `man` refs.
    * Fixes out of scope path traversals for `bin`
    
    ```js
    function unixifyPath (ref) {
      return ref.replace(/\\|:/g, '/')
    }
    
    function securePath (ref) {
      const secured = path.join('.', path.join('/', unixifyPath(ref)))
      return secured.startsWith('.') ? '' : secured
    }
    
    function secureAndUnixifyPath (ref) {
      return unixifyPath(securePath(ref))
    }
    ```
    
    ## References
    continues
    [#100](#100 (comment)),
    #104
    antongolub authored May 28, 2024
    Configuration menu
    Copy the full SHA
    54756d2 View commit details
    Browse the repository at this point in the history

Commits on May 29, 2024

  1. chore: release 5.1.1 (#103)

    🤖 I have created a release *beep* *boop*
    ---
    
    
    ## [5.1.1](v5.1.0...v5.1.1)
    (2024-05-28)
    
    ### Bug Fixes
    
    *
    [`54756d2`](54756d2)
    [#105](#105) apply `securePath`
    to package bin (#105) (@antongolub)
    *
    [`46c563b`](46c563b)
    add `normalizePackageMan` helper (#100) (@antongolub)
    *
    [`a974274`](a974274)
    prevent `directory.man` referencing outside the package root (#104)
    (@antongolub)
    *
    [`191b521`](191b521)
    [#102](#102) invalid scripts
    warning fixed for undefined scripts (#102) (@milaninfy)
    
    ### Chores
    
    *
    [`45a2937`](45a2937)
    [#98](#98) bump
    @npmcli/template-oss to 4.22.0 (@lukekarrys)
    *
    [`90863c1`](90863c1)
    [#98](#98) postinstall for
    dependabot template-oss PR (@lukekarrys)
    
    ---
    This PR was generated with [Release
    Please](https://github.com/googleapis/release-please). See
    [documentation](https://github.com/googleapis/release-please#release-please).
    
    Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    github-actions[bot] authored May 29, 2024
    Configuration menu
    Copy the full SHA
    e6c2bdd View commit details
    Browse the repository at this point in the history
Loading