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

@yarnpkg/fslib

Package Overview
Dependencies
Maintainers
6
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yarnpkg/fslib - npm Package Compare versions

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

9

lib/algorithms/copyPromise.js

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

: destinationFs.utimesPromise.bind(destinationFs);
await copyImpl(prelayout, postlayout, updateTime, destinationFs, normalizedDestination, sourceFs, normalizedSource, opts);
await copyImpl(prelayout, postlayout, updateTime, destinationFs, normalizedDestination, sourceFs, normalizedSource, { ...opts, didParentExist: true });
for (const operation of prelayout)

@@ -37,3 +37,3 @@ await operation();

var _a, _b;
const destinationStat = await maybeLStat(destinationFs, destination);
const destinationStat = opts.didParentExist ? await maybeLStat(destinationFs, destination) : null;
const sourceStat = await sourceFs.lstatPromise(source);

@@ -109,5 +109,6 @@ const referenceTime = opts.stableTime

const entries = await sourceFs.readdirPromise(source);
const nextOpts = opts.didParentExist && !destinationStat ? { ...opts, didParentExist: false } : opts;
if (opts.stableSort) {
for (const entry of entries.sort()) {
if (await copyImpl(prelayout, postlayout, updateTime, destinationFs, destinationFs.pathUtils.join(destination, entry), sourceFs, sourceFs.pathUtils.join(source, entry), opts)) {
if (await copyImpl(prelayout, postlayout, updateTime, destinationFs, destinationFs.pathUtils.join(destination, entry), sourceFs, sourceFs.pathUtils.join(source, entry), nextOpts)) {
updated = true;

@@ -119,3 +120,3 @@ }

const entriesUpdateStatus = await Promise.all(entries.map(async (entry) => {
await copyImpl(prelayout, postlayout, updateTime, destinationFs, destinationFs.pathUtils.join(destination, entry), sourceFs, sourceFs.pathUtils.join(source, entry), opts);
await copyImpl(prelayout, postlayout, updateTime, destinationFs, destinationFs.pathUtils.join(destination, entry), sourceFs, sourceFs.pathUtils.join(source, entry), nextOpts);
}));

@@ -122,0 +123,0 @@ if (entriesUpdateStatus.some(status => status)) {

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

// convert to 123.456 UNIX timestamp
if ((0, util_1.isDate)(time))
if (util_1.types.isDate(time))
return time.getTime() / 1000;

@@ -33,0 +33,0 @@ throw new Error(`Invalid time`);

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

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

"dependencies": {
"@yarnpkg/libzip": "^2.2.3-rc.8",
"@yarnpkg/libzip": "^2.2.3-rc.9",
"tslib": "^1.13.0"

@@ -11,0 +11,0 @@ },

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