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

@pnpm/fs.indexed-pkg-importer

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/fs.indexed-pkg-importer - npm Package Compare versions

Comparing version 5.0.12 to 5.0.13

27

lib/index.js

@@ -47,13 +47,18 @@ "use strict";

function initialAuto(to, opts) {
try {
const _clonePkg = clonePkg.bind(null, createCloneFunction());
if (!_clonePkg(to, opts))
return undefined;
core_loggers_1.packageImportMethodLogger.debug({ method: 'clone' });
auto = _clonePkg;
return 'clone';
// Although reflinks are supported on Windows Dev Drives,
// they are 10x slower than hard links.
// Hence, we prefer reflinks by default only on Linux and macOS.
if (process.platform !== 'win32') {
try {
const _clonePkg = clonePkg.bind(null, createCloneFunction());
if (!_clonePkg(to, opts))
return undefined;
core_loggers_1.packageImportMethodLogger.debug({ method: 'clone' });
auto = _clonePkg;
return 'clone';
}
catch (err) { // eslint-disable-line
// ignore
}
}
catch (err) { // eslint-disable-line
// ignore
}
try {

@@ -123,3 +128,3 @@ if (!hardlinkPkg(graceful_fs_1.default.linkSync, to, opts))

// For instance: { "index.js": "hash", "./index.js": "hash" }
if (!err.message.startsWith('File exists'))
if (!err.message.startsWith('File exists') && !err.message.includes('-2147024816'))
throw err;

@@ -126,0 +131,0 @@ }

{
"name": "@pnpm/fs.indexed-pkg-importer",
"description": "Replicates indexed directories using hard links, copies, or cloning",
"version": "5.0.12",
"version": "5.0.13",
"bugs": {

@@ -29,8 +29,8 @@ "url": "https://github.com/pnpm/pnpm/issues"

"@pnpm/graceful-fs": "3.2.0",
"@pnpm/store-controller-types": "17.1.4"
"@pnpm/store-controller-types": "17.2.0"
},
"devDependencies": {
"@types/fs-extra": "^9.0.13",
"@pnpm/fs.indexed-pkg-importer": "5.0.12",
"@pnpm/prepare": "0.0.87"
"@pnpm/fs.indexed-pkg-importer": "5.0.13",
"@pnpm/prepare": "0.0.89"
},

@@ -37,0 +37,0 @@ "directories": {

Sorry, the diff of this file is not supported yet

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