New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@yarnpkg/core

Package Overview
Dependencies
Maintainers
6
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/core - npm Package Compare versions

Comparing version 3.2.0-rc.8 to 3.2.0-rc.9

6

lib/LegacyMigrationResolver.d.ts
import { Project } from './Project';
import { Report } from './Report';
import { Resolver, ResolveOptions, MinimalResolveOptions } from './Resolver';
import { Descriptor, Locator } from './types';
import { DescriptorHash, Descriptor, Locator, Package } from './types';
export declare const IMPORTED_PATTERNS: Array<[RegExp, (version: string, ...args: Array<string>) => string]>;
export declare class LegacyMigrationResolver implements Resolver {
private readonly resolver;
private resolutions;
constructor(resolver: Resolver);
setup(project: Project, { report }: {

@@ -16,5 +18,5 @@ report: Report;

getResolutionDependencies(descriptor: Descriptor, opts: MinimalResolveOptions): never[];
getCandidates(descriptor: Descriptor, dependencies: unknown, opts: ResolveOptions): Promise<Locator[]>;
getCandidates(descriptor: Descriptor, dependencies: Map<DescriptorHash, Package>, opts: ResolveOptions): Promise<Locator[]>;
getSatisfying(descriptor: Descriptor, references: Array<string>, opts: ResolveOptions): Promise<null>;
resolve(locator: Locator, opts: ResolveOptions): Promise<never>;
}

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

class LegacyMigrationResolver {
constructor() {
constructor(resolver) {
this.resolver = resolver;
this.resolutions = null;

@@ -108,3 +109,3 @@ }

throw new Error(`Assertion failed: The resolution should have been registered`);
return [resolution];
return await this.resolver.getCandidates(structUtils.convertLocatorToDescriptor(resolution), dependencies, opts);
}

@@ -111,0 +112,0 @@ async getSatisfying(descriptor, references, opts) {

{
"name": "@yarnpkg/core",
"version": "3.2.0-rc.8",
"version": "3.2.0-rc.9",
"license": "BSD-2-Clause",

@@ -11,8 +11,8 @@ "main": "./lib/index.js",

"@types/treeify": "^1.0.0",
"@yarnpkg/fslib": "^2.6.1-rc.3",
"@yarnpkg/fslib": "^2.6.1-rc.4",
"@yarnpkg/json-proxy": "^2.1.1",
"@yarnpkg/libzip": "^2.2.3-rc.3",
"@yarnpkg/parsers": "^2.5.0-rc.6",
"@yarnpkg/pnp": "^3.1.1-rc.8",
"@yarnpkg/shell": "^3.2.0-rc.6",
"@yarnpkg/libzip": "^2.2.3-rc.4",
"@yarnpkg/parsers": "^2.5.0-rc.7",
"@yarnpkg/pnp": "^3.1.1-rc.9",
"@yarnpkg/shell": "^3.2.0-rc.7",
"camelcase": "^5.3.1",

@@ -53,6 +53,6 @@ "chalk": "^3.0.0",

"@types/tunnel": "^0.0.0",
"@yarnpkg/cli": "^3.2.0-rc.8",
"@yarnpkg/cli": "^3.2.0-rc.9",
"@yarnpkg/plugin-link": "^2.2.0",
"@yarnpkg/plugin-npm": "^2.7.0-rc.1",
"@yarnpkg/plugin-pnp": "^3.1.2-rc.8",
"@yarnpkg/plugin-npm": "^2.7.0-rc.2",
"@yarnpkg/plugin-pnp": "^3.1.2-rc.9",
"esbuild": "npm:esbuild-wasm@^0.11.20",

@@ -59,0 +59,0 @@ "rollup": "^2.59.0",

Sorry, the diff of this file is too big to display

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