chore(deps): update yarn to v4.1.0 (#33)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [yarn](https://github.com/yarnpkg/berry) ([source](https://github.com/yarnpkg/berry/tree/HEAD/packages/yarnpkg-cli)) | packageManager | minor | [`4.0.2` -> `4.1.0`](https://renovatebot.com/diffs/npm/yarn/4.0.2/4.1.0) | --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNS4xMTcuMyIsInVwZGF0ZWRJblZlciI6IjM3LjE2Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9--> Co-authored-by: Joao P Dubas <joao.dubas+gitea@gmail.com> Reviewed-on: #33 Co-authored-by: renovate-bot <renovate-bot@dubas.dev> Co-committed-by: renovate-bot <renovate-bot@dubas.dev>
This commit is contained in:
44
.pnp.loader.mjs
generated
44
.pnp.loader.mjs
generated
@@ -109,10 +109,9 @@ async function copyImpl(prelayout, postlayout, destinationFs, destination, sourc
|
||||
updated = await copySymlink(prelayout, postlayout, destinationFs, destination, destinationStat, sourceFs, source, sourceStat, opts);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
{
|
||||
throw new Error(`Unsupported file type (${sourceStat.mode})`);
|
||||
}
|
||||
default: {
|
||||
throw new Error(`Unsupported file type (${sourceStat.mode})`);
|
||||
}
|
||||
}
|
||||
if (opts.linkStrategy?.type !== `HardlinkFromIndex` || !sourceStat.isFile()) {
|
||||
if (updated || destinationStat?.mtime?.getTime() !== mtime.getTime() || destinationStat?.atime?.getTime() !== atime.getTime()) {
|
||||
@@ -175,7 +174,10 @@ async function copyFolder(prelayout, postlayout, destinationFs, destination, des
|
||||
}
|
||||
async function copyFileViaIndex(prelayout, postlayout, destinationFs, destination, destinationStat, sourceFs, source, sourceStat, opts, linkStrategy) {
|
||||
const sourceHash = await sourceFs.checksumFilePromise(source, { algorithm: `sha1` });
|
||||
const indexPath = destinationFs.pathUtils.join(linkStrategy.indexPath, sourceHash.slice(0, 2), `${sourceHash}.dat`);
|
||||
const defaultMode = 420;
|
||||
const sourceMode = sourceStat.mode & 511;
|
||||
const indexFileName = `${sourceHash}${sourceMode !== defaultMode ? sourceMode.toString(8) : ``}`;
|
||||
const indexPath = destinationFs.pathUtils.join(linkStrategy.indexPath, sourceHash.slice(0, 2), `${indexFileName}.dat`);
|
||||
let AtomicBehavior;
|
||||
((AtomicBehavior2) => {
|
||||
AtomicBehavior2[AtomicBehavior2["Lock"] = 0] = "Lock";
|
||||
@@ -231,8 +233,12 @@ async function copyFileViaIndex(prelayout, postlayout, destinationFs, destinatio
|
||||
}
|
||||
});
|
||||
postlayout.push(async () => {
|
||||
if (!indexStat)
|
||||
if (!indexStat) {
|
||||
await destinationFs.lutimesPromise(indexPath, defaultTime, defaultTime);
|
||||
if (sourceMode !== defaultMode) {
|
||||
await destinationFs.chmodPromise(indexPath, sourceMode);
|
||||
}
|
||||
}
|
||||
if (tempPath && !tempPathCleaned) {
|
||||
await destinationFs.unlinkPromise(tempPath);
|
||||
}
|
||||
@@ -1392,6 +1398,8 @@ class VirtualFS extends ProxiedFS {
|
||||
}
|
||||
}
|
||||
|
||||
const URL = Number(process.versions.node.split('.', 1)[0]) < 20 ? URL$1 : globalThis.URL;
|
||||
|
||||
const [major, minor] = process.versions.node.split(`.`).map((value) => parseInt(value, 10));
|
||||
const WATCH_MODE_MESSAGE_USES_ARRAYS = major > 19 || major === 19 && minor >= 2 || major === 18 && minor >= 13;
|
||||
const HAS_LAZY_LOADED_TRANSLATORS = major === 20 && minor < 6 || major === 19 && minor >= 3;
|
||||
@@ -1432,7 +1440,7 @@ async function tryReadFile$1(path2) {
|
||||
}
|
||||
function tryParseURL(str, base) {
|
||||
try {
|
||||
return new URL$1(str, base);
|
||||
return new URL(str, base);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
@@ -1676,28 +1684,6 @@ function getPackageScopeConfig(resolved, readFileSyncFn) {
|
||||
return packageConfig;
|
||||
}
|
||||
|
||||
/**
|
||||
@license
|
||||
Copyright Node.js contributors. All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to
|
||||
deal in the Software without restriction, including without limitation the
|
||||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
sell copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
IN THE SOFTWARE.
|
||||
*/
|
||||
function throwImportNotDefined(specifier, packageJSONUrl, base) {
|
||||
throw new ERR_PACKAGE_IMPORT_NOT_DEFINED(
|
||||
specifier,
|
||||
|
Reference in New Issue
Block a user