@yarnpkg/fslib
Advanced tools
Comparing version 2.6.1-rc.8 to 2.6.1-rc.9
@@ -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 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248498
50
6359
Updated@yarnpkg/libzip@^2.2.3-rc.9