chore(deps): update yarn to v4.1.0 #33
@ -29,7 +29,7 @@ steps:
|
||||
- name: test
|
||||
image: 'node:21.6.1-slim'
|
||||
commands:
|
||||
- yarn set version 4.0.2
|
||||
- yarn set version 4.1.0
|
||||
- yarn install
|
||||
- yarn run jest
|
||||
|
||||
|
52
.pnp.cjs
generated
52
.pnp.cjs
generated
@ -5286,10 +5286,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()) {
|
||||
@ -5352,7 +5351,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";
|
||||
@ -5408,8 +5410,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);
|
||||
}
|
||||
@ -7613,6 +7619,8 @@ class VirtualFS extends ProxiedFS {
|
||||
}
|
||||
}
|
||||
|
||||
const URL = Number(process.versions.node.split('.', 1)[0]) < 20 ? url.URL : globalThis.URL;
|
||||
|
||||
class NodePathFS extends ProxiedFS {
|
||||
constructor(baseFs) {
|
||||
super(npath);
|
||||
@ -7624,7 +7632,7 @@ class NodePathFS extends ProxiedFS {
|
||||
mapToBase(path) {
|
||||
if (typeof path === `string`)
|
||||
return path;
|
||||
if (path instanceof url.URL)
|
||||
if (path instanceof URL)
|
||||
return url.fileURLToPath(path);
|
||||
if (Buffer.isBuffer(path)) {
|
||||
const str = path.toString();
|
||||
@ -9190,8 +9198,10 @@ class ZipFS extends BasePortableFakeFS {
|
||||
throw new Error(`Incomplete read`);
|
||||
else if (rc > size)
|
||||
throw new Error(`Overread`);
|
||||
const memory = this.libzip.HEAPU8.subarray(buffer, buffer + size);
|
||||
return Buffer.from(memory);
|
||||
let result = Buffer.from(this.libzip.HEAPU8.subarray(buffer, buffer + size));
|
||||
if (process.env.YARN_IS_TEST_ENV && process.env.YARN_ZIP_DATA_EPILOGUE)
|
||||
result = Buffer.concat([result, Buffer.from(process.env.YARN_ZIP_DATA_EPILOGUE)]);
|
||||
return result;
|
||||
} finally {
|
||||
this.libzip.free(buffer);
|
||||
}
|
||||
@ -10249,7 +10259,7 @@ function applyPatch(pnpapi, opts) {
|
||||
process.versions.pnp = String(pnpapi.VERSIONS.std);
|
||||
const moduleExports = require$$0__default.default;
|
||||
moduleExports.findPnpApi = (lookupSource) => {
|
||||
const lookupPath = lookupSource instanceof url.URL ? url.fileURLToPath(lookupSource) : lookupSource;
|
||||
const lookupPath = lookupSource instanceof URL ? url.fileURLToPath(lookupSource) : lookupSource;
|
||||
const apiPath = opts.manager.findApiPathFor(lookupPath);
|
||||
if (apiPath === null)
|
||||
return null;
|
||||
@ -10671,28 +10681,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,
|
||||
|
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,
|
||||
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
yarnPath: .yarn/releases/yarn-4.0.2.cjs
|
||||
yarnPath: .yarn/releases/yarn-4.1.0.cjs
|
||||
|
2
Makefile
2
Makefile
@ -6,7 +6,7 @@ asdf_install:
|
||||
|
||||
.PHONY: yarn_setup
|
||||
yarn_setup:
|
||||
@yarn set version 4.0.2
|
||||
@yarn set version 4.1.0
|
||||
@yarn init -2
|
||||
@yarn add typescript jest @types/jest ts-node ts-jest
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "clean-architecture",
|
||||
"packageManager": "yarn@4.0.2",
|
||||
"packageManager": "yarn@4.1.0",
|
||||
"dependencies": {
|
||||
"@types/jest": "^29.5.4",
|
||||
"@types/node": "^20.6.3",
|
||||
|
Loading…
x
Reference in New Issue
Block a user