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 3.0.0-rc.48 to 3.0.0-rc.49

3

lib/LinkFetcher.js

@@ -23,3 +23,2 @@ "use strict";

async fetch(locator, opts) {
var _a;
const { parentLocator, path } = core_1.structUtils.parseFileStyleRange(locator.reference, { protocol: constants_1.LINK_PROTOCOL });

@@ -40,3 +39,3 @@ // If the link target is an absolute path we can directly access it via its

const sourceFs = effectiveParentFetch.packageFs;
const sourcePath = fslib_1.ppath.resolve((_a = effectiveParentFetch.localPath) !== null && _a !== void 0 ? _a : effectiveParentFetch.packageFs.getRealPath(), effectiveParentFetch.prefixPath, path);
const sourcePath = fslib_1.ppath.resolve(effectiveParentFetch.localPath ?? effectiveParentFetch.packageFs.getRealPath(), effectiveParentFetch.prefixPath, path);
if (parentFetch.localPath) {

@@ -43,0 +42,0 @@ return { packageFs: new fslib_1.CwdFS(sourcePath, { baseFs: sourceFs }), releaseFs: effectiveParentFetch.releaseFs, prefixPath: fslib_1.PortablePath.dot, discardFromLookup: true, localPath: sourcePath };

@@ -23,3 +23,2 @@ "use strict";

async fetch(locator, opts) {
var _a;
const { parentLocator, path } = core_1.structUtils.parseFileStyleRange(locator.reference, { protocol: constants_1.PORTAL_PROTOCOL });

@@ -40,3 +39,3 @@ // If the portal target is an absolute path we can directly access it via its

const sourceFs = effectiveParentFetch.packageFs;
const sourcePath = fslib_1.ppath.resolve((_a = effectiveParentFetch.localPath) !== null && _a !== void 0 ? _a : effectiveParentFetch.packageFs.getRealPath(), effectiveParentFetch.prefixPath, path);
const sourcePath = fslib_1.ppath.resolve(effectiveParentFetch.localPath ?? effectiveParentFetch.packageFs.getRealPath(), effectiveParentFetch.prefixPath, path);
if (parentFetch.localPath) {

@@ -43,0 +42,0 @@ return { packageFs: new fslib_1.CwdFS(sourcePath, { baseFs: sourceFs }), releaseFs: effectiveParentFetch.releaseFs, prefixPath: fslib_1.PortablePath.dot, localPath: sourcePath };

{
"name": "@yarnpkg/plugin-link",
"version": "3.0.0-rc.48",
"version": "3.0.0-rc.49",
"license": "BSD-2-Clause",

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

"dependencies": {
"@yarnpkg/fslib": "^3.0.0-rc.48",
"@yarnpkg/fslib": "^3.0.0-rc.49",
"tslib": "^2.4.0"
},
"peerDependencies": {
"@yarnpkg/core": "^4.0.0-rc.48"
"@yarnpkg/core": "^4.0.0-rc.49"
},
"devDependencies": {
"@yarnpkg/core": "^4.0.0-rc.48"
"@yarnpkg/core": "^4.0.0-rc.49"
},

@@ -21,0 +21,0 @@ "repository": {

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