[yarn] Update version to 4.2.2

This commit is contained in:
Laura Hausmann 2024-05-13 14:01:29 +02:00
parent dfe01652f0
commit fb0ebd6079
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
4 changed files with 97 additions and 7 deletions

56
.pnp.cjs generated
View file

@ -1,5 +1,6 @@
#!/usr/bin/env node #!/usr/bin/env node
/* eslint-disable */ /* eslint-disable */
// @ts-nocheck
"use strict"; "use strict";
const RAW_RUNTIME_STATE = const RAW_RUNTIME_STATE =
@ -27281,6 +27282,12 @@ class ProxiedFS extends FakeFS {
rmdirSync(p, opts) { rmdirSync(p, opts) {
return this.baseFs.rmdirSync(this.mapToBase(p), opts); return this.baseFs.rmdirSync(this.mapToBase(p), opts);
} }
async rmPromise(p, opts) {
return this.baseFs.rmPromise(this.mapToBase(p), opts);
}
rmSync(p, opts) {
return this.baseFs.rmSync(this.mapToBase(p), opts);
}
async linkPromise(existingP, newP) { async linkPromise(existingP, newP) {
return this.baseFs.linkPromise(this.mapToBase(existingP), this.mapToBase(newP)); return this.baseFs.linkPromise(this.mapToBase(existingP), this.mapToBase(newP));
} }
@ -27662,6 +27669,18 @@ class NodeFS extends BasePortableFakeFS {
rmdirSync(p, opts) { rmdirSync(p, opts) {
return this.realFs.rmdirSync(npath.fromPortablePath(p), opts); return this.realFs.rmdirSync(npath.fromPortablePath(p), opts);
} }
async rmPromise(p, opts) {
return await new Promise((resolve, reject) => {
if (opts) {
this.realFs.rm(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
} else {
this.realFs.rm(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
}
});
}
rmSync(p, opts) {
return this.realFs.rmSync(npath.fromPortablePath(p), opts);
}
async linkPromise(existingP, newP) { async linkPromise(existingP, newP) {
return await new Promise((resolve, reject) => { return await new Promise((resolve, reject) => {
this.realFs.link(npath.fromPortablePath(existingP), npath.fromPortablePath(newP), this.makeCallback(resolve, reject)); this.realFs.link(npath.fromPortablePath(existingP), npath.fromPortablePath(newP), this.makeCallback(resolve, reject));
@ -28317,6 +28336,20 @@ class MountFS extends BasePortableFakeFS {
return mountFs.rmdirSync(subPath, opts); return mountFs.rmdirSync(subPath, opts);
}); });
} }
async rmPromise(p, opts) {
return await this.makeCallPromise(p, async () => {
return await this.baseFs.rmPromise(p, opts);
}, async (mountFs, { subPath }) => {
return await mountFs.rmPromise(subPath, opts);
});
}
rmSync(p, opts) {
return this.makeCallSync(p, () => {
return this.baseFs.rmSync(p, opts);
}, (mountFs, { subPath }) => {
return mountFs.rmSync(subPath, opts);
});
}
async linkPromise(existingP, newP) { async linkPromise(existingP, newP) {
return await this.makeCallPromise(newP, async () => { return await this.makeCallPromise(newP, async () => {
return await this.baseFs.linkPromise(existingP, newP); return await this.baseFs.linkPromise(existingP, newP);
@ -28955,6 +28988,7 @@ const SYNC_IMPLEMENTATIONS = /* @__PURE__ */ new Set([
`realpathSync`, `realpathSync`,
`renameSync`, `renameSync`,
`rmdirSync`, `rmdirSync`,
`rmSync`,
`statSync`, `statSync`,
`symlinkSync`, `symlinkSync`,
`truncateSync`, `truncateSync`,
@ -28990,6 +29024,7 @@ const ASYNC_IMPLEMENTATIONS = /* @__PURE__ */ new Set([
`readlinkPromise`, `readlinkPromise`,
`renamePromise`, `renamePromise`,
`rmdirPromise`, `rmdirPromise`,
`rmPromise`,
`statPromise`, `statPromise`,
`symlinkPromise`, `symlinkPromise`,
`truncatePromise`, `truncatePromise`,
@ -31015,6 +31050,27 @@ class ZipFS extends BasePortableFakeFS {
throw EINVAL(`rmdir '${p}'`); throw EINVAL(`rmdir '${p}'`);
this.deleteEntry(p, index); this.deleteEntry(p, index);
} }
async rmPromise(p, opts) {
return this.rmSync(p, opts);
}
rmSync(p, { recursive = false } = {}) {
if (this.readOnly)
throw EROFS(`rm '${p}'`);
if (recursive) {
this.removeSync(p);
return;
}
const resolvedP = this.resolveFilename(`rm '${p}'`, p);
const directoryListing = this.listings.get(resolvedP);
if (!directoryListing)
throw ENOTDIR(`rm '${p}'`);
if (directoryListing.size > 0)
throw ENOTEMPTY(`rm '${p}'`);
const index = this.entries.get(resolvedP);
if (typeof index === `undefined`)
throw EINVAL(`rm '${p}'`);
this.deleteEntry(p, index);
}
hydrateDirectory(resolvedP) { hydrateDirectory(resolvedP) {
const index = this.libzip.dir.add(this.zip, ppath.relative(PortablePath.root, resolvedP)); const index = this.libzip.dir.add(this.zip, ppath.relative(PortablePath.root, resolvedP));
if (index === -1) if (index === -1)

38
.pnp.loader.mjs generated
View file

@ -1,3 +1,6 @@
/* eslint-disable */
// @ts-nocheck
import fs from 'fs'; import fs from 'fs';
import { URL as URL$1, fileURLToPath, pathToFileURL } from 'url'; import { URL as URL$1, fileURLToPath, pathToFileURL } from 'url';
import path from 'path'; import path from 'path';
@ -830,6 +833,12 @@ class ProxiedFS extends FakeFS {
rmdirSync(p, opts) { rmdirSync(p, opts) {
return this.baseFs.rmdirSync(this.mapToBase(p), opts); return this.baseFs.rmdirSync(this.mapToBase(p), opts);
} }
async rmPromise(p, opts) {
return this.baseFs.rmPromise(this.mapToBase(p), opts);
}
rmSync(p, opts) {
return this.baseFs.rmSync(this.mapToBase(p), opts);
}
async linkPromise(existingP, newP) { async linkPromise(existingP, newP) {
return this.baseFs.linkPromise(this.mapToBase(existingP), this.mapToBase(newP)); return this.baseFs.linkPromise(this.mapToBase(existingP), this.mapToBase(newP));
} }
@ -1211,6 +1220,18 @@ class NodeFS extends BasePortableFakeFS {
rmdirSync(p, opts) { rmdirSync(p, opts) {
return this.realFs.rmdirSync(npath.fromPortablePath(p), opts); return this.realFs.rmdirSync(npath.fromPortablePath(p), opts);
} }
async rmPromise(p, opts) {
return await new Promise((resolve, reject) => {
if (opts) {
this.realFs.rm(npath.fromPortablePath(p), opts, this.makeCallback(resolve, reject));
} else {
this.realFs.rm(npath.fromPortablePath(p), this.makeCallback(resolve, reject));
}
});
}
rmSync(p, opts) {
return this.realFs.rmSync(npath.fromPortablePath(p), opts);
}
async linkPromise(existingP, newP) { async linkPromise(existingP, newP) {
return await new Promise((resolve, reject) => { return await new Promise((resolve, reject) => {
this.realFs.link(npath.fromPortablePath(existingP), npath.fromPortablePath(newP), this.makeCallback(resolve, reject)); this.realFs.link(npath.fromPortablePath(existingP), npath.fromPortablePath(newP), this.makeCallback(resolve, reject));
@ -1403,6 +1424,8 @@ const URL = Number(process.versions.node.split('.', 1)[0]) < 20 ? URL$1 : global
const [major, minor] = process.versions.node.split(`.`).map((value) => parseInt(value, 10)); 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 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; const HAS_LAZY_LOADED_TRANSLATORS = major === 20 && minor < 6 || major === 19 && minor >= 3;
const SUPPORTS_IMPORT_ATTRIBUTES = major >= 21 || major === 20 && minor >= 10 || major === 18 && minor >= 20;
const SUPPORTS_IMPORT_ATTRIBUTES_ONLY = major >= 22;
function readPackageScope(checkPath) { function readPackageScope(checkPath) {
const rootSeparatorIndex = checkPath.indexOf(npath.sep); const rootSeparatorIndex = checkPath.indexOf(npath.sep);
@ -1493,11 +1516,22 @@ async function load$1(urlString, context, nextLoad) {
const format = getFileFormat(filePath); const format = getFileFormat(filePath);
if (!format) if (!format)
return nextLoad(urlString, context, nextLoad); return nextLoad(urlString, context, nextLoad);
if (format === `json` && context.importAssertions?.type !== `json`) { if (format === `json`) {
const err = new TypeError(`[ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "${urlString}" needs an import assertion of type "json"`); if (SUPPORTS_IMPORT_ATTRIBUTES_ONLY) {
if (context.importAttributes?.type !== `json`) {
const err = new TypeError(`[ERR_IMPORT_ATTRIBUTE_MISSING]: Module "${urlString}" needs an import attribute of "type: json"`);
err.code = `ERR_IMPORT_ATTRIBUTE_MISSING`;
throw err;
}
} else {
const type = `importAttributes` in context ? context.importAttributes?.type : context.importAssertions?.type;
if (type !== `json`) {
const err = new TypeError(`[ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "${urlString}" needs an import ${SUPPORTS_IMPORT_ATTRIBUTES ? `attribute` : `assertion`} of type "json"`);
err.code = `ERR_IMPORT_ASSERTION_TYPE_MISSING`; err.code = `ERR_IMPORT_ASSERTION_TYPE_MISSING`;
throw err; throw err;
} }
}
}
if (process.env.WATCH_REPORT_DEPENDENCIES && process.send) { if (process.env.WATCH_REPORT_DEPENDENCIES && process.send) {
const pathToSend = pathToFileURL( const pathToSend = pathToFileURL(
npath.fromPortablePath( npath.fromPortablePath(

BIN
.yarn/corepack.tgz (Stored with Git LFS)

Binary file not shown.

View file

@ -71,7 +71,7 @@
"typescript": "5.1.6", "typescript": "5.1.6",
"yaml": "^2.3.4" "yaml": "^2.3.4"
}, },
"packageManager": "yarn@4.1.1", "packageManager": "yarn@4.2.2",
"dependenciesMeta": { "dependenciesMeta": {
"@discordapp/twemoji@14.1.2": { "@discordapp/twemoji@14.1.2": {
"unplugged": true "unplugged": true