Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yarnpkg/plugin-link

Package Overview
Dependencies
Maintainers
6
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/plugin-link - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0-rc.1

7

lib/LinkResolver.d.ts

@@ -8,6 +8,9 @@ import { Resolver, ResolveOptions, MinimalResolveOptions } from '@yarnpkg/core';

bindDescriptor(descriptor: Descriptor, fromLocator: Locator, opts: MinimalResolveOptions): Descriptor;
getResolutionDependencies(descriptor: Descriptor, opts: MinimalResolveOptions): never[];
getResolutionDependencies(descriptor: Descriptor, opts: MinimalResolveOptions): {};
getCandidates(descriptor: Descriptor, dependencies: unknown, opts: ResolveOptions): Promise<Locator[]>;
getSatisfying(descriptor: Descriptor, references: Array<string>, opts: ResolveOptions): Promise<null>;
getSatisfying(descriptor: Descriptor, dependencies: Record<string, Package>, locators: Array<Locator>, opts: ResolveOptions): Promise<{
locators: Locator[];
sorted: boolean;
}>;
resolve(locator: Locator, opts: ResolveOptions): Promise<Package>;
}

@@ -29,3 +29,3 @@ "use strict";

getResolutionDependencies(descriptor, opts) {
return [];
return {};
}

@@ -36,4 +36,8 @@ async getCandidates(descriptor, dependencies, opts) {

}
async getSatisfying(descriptor, references, opts) {
return null;
async getSatisfying(descriptor, dependencies, locators, opts) {
const [locator] = await this.getCandidates(descriptor, dependencies, opts);
return {
locators: locators.filter(candidate => candidate.locatorHash === locator.locatorHash),
sorted: false,
};
}

@@ -53,3 +57,3 @@ async resolve(locator, opts) {

conditions: manifest.getConditions(),
dependencies: new Map([...manifest.dependencies]),
dependencies: opts.project.configuration.normalizeDependencyMap(manifest.dependencies),
peerDependencies: manifest.peerDependencies,

@@ -56,0 +60,0 @@ dependenciesMeta: manifest.dependenciesMeta,

@@ -1,2 +0,2 @@

import { Resolver, ResolveOptions, MinimalResolveOptions } from '@yarnpkg/core';
import { Resolver, ResolveOptions, MinimalResolveOptions, Package } from '@yarnpkg/core';
import { Descriptor, Locator } from '@yarnpkg/core';

@@ -9,5 +9,8 @@ import { LinkType } from '@yarnpkg/core';

bindDescriptor(descriptor: Descriptor, fromLocator: Locator, opts: MinimalResolveOptions): Descriptor;
getResolutionDependencies(descriptor: Descriptor, opts: MinimalResolveOptions): never[];
getResolutionDependencies(descriptor: Descriptor, opts: MinimalResolveOptions): {};
getCandidates(descriptor: Descriptor, dependencies: unknown, opts: ResolveOptions): Promise<Locator[]>;
getSatisfying(descriptor: Descriptor, references: Array<string>, opts: ResolveOptions): Promise<null>;
getSatisfying(descriptor: Descriptor, dependencies: Record<string, Package>, locators: Array<Locator>, opts: ResolveOptions): Promise<{
locators: Locator[];
sorted: boolean;
}>;
resolve(locator: Locator, opts: ResolveOptions): Promise<{

@@ -14,0 +17,0 @@ version: string;

@@ -28,3 +28,3 @@ "use strict";

getResolutionDependencies(descriptor, opts) {
return [];
return {};
}

@@ -35,4 +35,8 @@ async getCandidates(descriptor, dependencies, opts) {

}
async getSatisfying(descriptor, references, opts) {
return null;
async getSatisfying(descriptor, dependencies, locators, opts) {
const [locator] = await this.getCandidates(descriptor, dependencies, opts);
return {
locators: locators.filter(candidate => candidate.locatorHash === locator.locatorHash),
sorted: false,
};
}

@@ -39,0 +43,0 @@ async resolve(locator, opts) {

{
"name": "@yarnpkg/plugin-link",
"version": "2.2.0",
"version": "3.0.0-rc.1",
"license": "BSD-2-Clause",
"main": "./lib/index.js",
"dependencies": {
"@yarnpkg/fslib": "^2.6.0",
"@yarnpkg/fslib": "^3.0.0-rc.1",
"tslib": "^1.13.0"
},
"peerDependencies": {
"@yarnpkg/core": "^3.1.0"
"@yarnpkg/core": "^4.0.0-rc.1"
},
"devDependencies": {
"@yarnpkg/core": "^3.1.0"
"@yarnpkg/core": "^4.0.0-rc.1"
},

@@ -33,5 +33,6 @@ "repository": {

"engines": {
"node": ">=12 <14 || 14.2 - 14.9 || >14.10.0"
"node": ">=14.15.0"
},
"stableVersion": "2.2.0",
"typings": "./lib/index.d.ts"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc