hunk.code_window: {
     "pkg": {
       "assets": "dist/pnpmrc",
       "targets": ["node14-macos-arm64"],
       "outputPath": "../artifacts/macos-arm64"
     }
   }
hunk.labels: keep keep replace keep keep keep keep
hunk.after_edit:     "assets": ["dist/pnpmrc", "dist/scripts/*"],
  
hunk.file_path: packages/pnpm/package-macos-arm64.json
hunk.type: replace
file: import { Registries } from '@pnpm/types'
  import normalizeRegistryUrl from 'normalize-registry-url'
  
  export const DEFAULT_REGISTRIES = {
    default: 'https://registry.npmjs.org/',
  }
  
  export default function normalizeRegistries (registries?: { [scope: string]: string }): Registries {
    if (registries == null) return DEFAULT_REGISTRIES
  
    const normalizeRegistries = {}
    for (const scope of Object.keys(registries)) {
      normalizeRegistries[scope] = normalizeRegistryUrl(registries[scope])
    }
  
    return {
      ...DEFAULT_REGISTRIES,
      ...normalizeRegistries,
    }
  }
  