Socket
Socket
Sign inDemoInstall

@pnpm/resolver-base

Package Overview
Dependencies
1
Maintainers
2
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @pnpm/resolver-base

Types for pnpm-compatible resolvers


Version published
Weekly downloads
352K
decreased by-13.31%
Maintainers
2
Install size
16.7 kB
Created
Weekly downloads
 

Readme

Source

@pnpm/resolver-base

Types for pnpm-compatible resolvers

npm version

Installation

pnpm add @pnpm/resolver-base

Usage

Here's a template of a resolver using types from @pnpm/resolver-base:

import {
  ResolveOptions,
  ResolveResult,
  WantedDependency,
} from '@pnpm/resolver-base'

export async function testResolver (
  wantedDependency: WantedDependency,
  opts: ResolveOptions,
): Promise<ResolveResult> {
  // ...
  return {
    id,
    resolution,
    package,
    latest,
    normalizedPref,
  }
}

License

MIT

Keywords

FAQs

Last updated on 09 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc