Merge branch 'refs/heads/release'
# Conflicts: # src/Commands/learn.ts
This commit is contained in:
commit
141b41f4b3
199 changed files with 2930 additions and 2921 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -138,4 +138,4 @@ config.json
|
|||
db/
|
||||
|
||||
.idea/
|
||||
database/
|
||||
./database/
|
86
.pnp.loader.mjs
generated
86
.pnp.loader.mjs
generated
|
@ -1,3 +1,6 @@
|
|||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
import fs from 'fs';
|
||||
import { URL as URL$1, fileURLToPath, pathToFileURL } from 'url';
|
||||
import path from 'path';
|
||||
|
@ -109,10 +112,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 +177,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 +236,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);
|
||||
}
|
||||
|
@ -824,6 +833,12 @@ class ProxiedFS extends FakeFS {
|
|||
rmdirSync(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) {
|
||||
return this.baseFs.linkPromise(this.mapToBase(existingP), this.mapToBase(newP));
|
||||
}
|
||||
|
@ -1205,6 +1220,18 @@ class NodeFS extends BasePortableFakeFS {
|
|||
rmdirSync(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) {
|
||||
return await new Promise((resolve, reject) => {
|
||||
this.realFs.link(npath.fromPortablePath(existingP), npath.fromPortablePath(newP), this.makeCallback(resolve, reject));
|
||||
|
@ -1392,9 +1419,13 @@ 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;
|
||||
const SUPPORTS_IMPORT_ATTRIBUTES = major >= 21 || major === 20 && minor >= 10 || major === 18 && minor >= 20;
|
||||
const SUPPORTS_IMPORT_ATTRIBUTES_ONLY = major >= 22;
|
||||
|
||||
function readPackageScope(checkPath) {
|
||||
const rootSeparatorIndex = checkPath.indexOf(npath.sep);
|
||||
|
@ -1432,7 +1463,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;
|
||||
}
|
||||
|
@ -1485,10 +1516,21 @@ async function load$1(urlString, context, nextLoad) {
|
|||
const format = getFileFormat(filePath);
|
||||
if (!format)
|
||||
return nextLoad(urlString, context, nextLoad);
|
||||
if (format === `json` && context.importAssertions?.type !== `json`) {
|
||||
const err = new TypeError(`[ERR_IMPORT_ASSERTION_TYPE_MISSING]: Module "${urlString}" needs an import assertion of type "json"`);
|
||||
err.code = `ERR_IMPORT_ASSERTION_TYPE_MISSING`;
|
||||
throw err;
|
||||
if (format === `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`;
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (process.env.WATCH_REPORT_DEPENDENCIES && process.send) {
|
||||
const pathToSend = pathToFileURL(
|
||||
|
@ -1676,28 +1718,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,
|
||||
|
|
Binary file not shown.
BIN
.yarn/cache/@discordjs-builders-npm-1.8.1-d7366e8d68-5540939f5e.zip
vendored
Normal file
BIN
.yarn/cache/@discordjs-builders-npm-1.8.1-d7366e8d68-5540939f5e.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@discordjs-collection-npm-2.1.0-4303223bdc-386b508a0e.zip
vendored
Normal file
BIN
.yarn/cache/@discordjs-collection-npm-2.1.0-4303223bdc-386b508a0e.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@discordjs-formatters-npm-0.4.0-8330da5fdd-dbc75cf104.zip
vendored
Normal file
BIN
.yarn/cache/@discordjs-formatters-npm-0.4.0-8330da5fdd-dbc75cf104.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@discordjs-rest-npm-2.3.0-8ca5e9d236-55932ed312.zip
vendored
Normal file
BIN
.yarn/cache/@discordjs-rest-npm-2.3.0-8ca5e9d236-55932ed312.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@discordjs-util-npm-1.1.0-508dbc4aa9-ce76daa238.zip
vendored
Normal file
BIN
.yarn/cache/@discordjs-util-npm-1.1.0-508dbc4aa9-ce76daa238.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@discordjs-ws-npm-1.1.0-47c747948f-d22b6b82ac.zip
vendored
Normal file
BIN
.yarn/cache/@discordjs-ws-npm-1.1.0-47c747948f-d22b6b82ac.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@esbuild-darwin-x64-npm-0.19.12-b0a4fc6ed4-10.zip
vendored
Normal file
BIN
.yarn/cache/@esbuild-darwin-x64-npm-0.19.12-b0a4fc6ed4-10.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jridgewell-gen-mapping-npm-0.3.5-d8b85ebeaf-81587b3c4d.zip
vendored
Normal file
BIN
.yarn/cache/@jridgewell-gen-mapping-npm-0.3.5-d8b85ebeaf-81587b3c4d.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@jridgewell-resolve-uri-npm-3.1.2-5bc4245992-97106439d7.zip
vendored
Normal file
BIN
.yarn/cache/@jridgewell-resolve-uri-npm-3.1.2-5bc4245992-97106439d7.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jridgewell-set-array-npm-1.2.1-2312928209-832e513a85.zip
vendored
Normal file
BIN
.yarn/cache/@jridgewell-set-array-npm-1.2.1-2312928209-832e513a85.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@jridgewell-trace-mapping-npm-0.3.25-c076fd2279-dced32160a.zip
vendored
Normal file
BIN
.yarn/cache/@jridgewell-trace-mapping-npm-0.3.25-c076fd2279-dced32160a.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@npmcli-agent-npm-2.2.2-e2f559d6c0-96fc0036b1.zip
vendored
Normal file
BIN
.yarn/cache/@npmcli-agent-npm-2.2.2-e2f559d6c0-96fc0036b1.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@rollup-rollup-darwin-x64-npm-4.18.0-4f171ac978-10.zip
vendored
Normal file
BIN
.yarn/cache/@rollup-rollup-darwin-x64-npm-4.18.0-4f171ac978-10.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@sapphire-async-queue-npm-1.5.2-ea45a21892-55e0785997.zip
vendored
Normal file
BIN
.yarn/cache/@sapphire-async-queue-npm-1.5.2-ea45a21892-55e0785997.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@sapphire-shapeshift-npm-3.9.7-8f524c782d-f90f8e2592.zip
vendored
Normal file
BIN
.yarn/cache/@sapphire-shapeshift-npm-3.9.7-8f524c782d-f90f8e2592.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@sapphire-snowflake-npm-3.5.3-427ca2a4ee-f306626f76.zip
vendored
Normal file
BIN
.yarn/cache/@sapphire-snowflake-npm-3.5.3-427ca2a4ee-f306626f76.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@types-estree-npm-1.0.5-5b7faed3b4-7de6d928dd.zip
vendored
Normal file
BIN
.yarn/cache/@types-estree-npm-1.0.5-5b7faed3b4-7de6d928dd.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/@types-node-npm-20.12.13-2b5576f45f-c9f02cfe34.zip
vendored
Normal file
BIN
.yarn/cache/@types-node-npm-20.12.13-2b5576f45f-c9f02cfe34.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/@vladfrangu-async_event_emitter-npm-2.2.4-0297e524e2-06de49380d.zip
vendored
Normal file
BIN
.yarn/cache/@vladfrangu-async_event_emitter-npm-2.2.4-0297e524e2-06de49380d.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/abbrev-npm-2.0.0-0eb38a17e5-ca0a54e35b.zip
vendored
Normal file
BIN
.yarn/cache/abbrev-npm-2.0.0-0eb38a17e5-ca0a54e35b.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/agent-base-npm-7.1.1-c9e1a4b59e-c478fec8f7.zip
vendored
Normal file
BIN
.yarn/cache/agent-base-npm-7.1.1-c9e1a4b59e-c478fec8f7.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/binary-extensions-npm-2.3.0-bd3f20d865-bcad01494e.zip
vendored
Normal file
BIN
.yarn/cache/binary-extensions-npm-2.3.0-bd3f20d865-bcad01494e.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/braces-npm-3.0.3-582c14023c-fad11a0d46.zip
vendored
Normal file
BIN
.yarn/cache/braces-npm-3.0.3-582c14023c-fad11a0d46.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/bundle-require-npm-4.1.0-f0b6010bad-9d01d30cf7.zip
vendored
Normal file
BIN
.yarn/cache/bundle-require-npm-4.1.0-f0b6010bad-9d01d30cf7.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/cacache-npm-18.0.3-7936f526c3-d4c161f071.zip
vendored
Normal file
BIN
.yarn/cache/cacache-npm-18.0.3-7936f526c3-d4c161f071.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/chokidar-npm-3.6.0-3c413a828f-c327fb0770.zip
vendored
Normal file
BIN
.yarn/cache/chokidar-npm-3.6.0-3c413a828f-c327fb0770.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/discord-api-types-npm-0.37.83-c5e73ca06d-63aee8b463.zip
vendored
Normal file
BIN
.yarn/cache/discord-api-types-npm-0.37.83-c5e73ca06d-63aee8b463.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/discord.js-npm-14.15.2-da10f95790-041ffe7b92.zip
vendored
Normal file
BIN
.yarn/cache/discord.js-npm-14.15.2-da10f95790-041ffe7b92.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/dokdo-npm-0.6.2-5c0c9aaf76-bc3b62b83a.zip
vendored
Normal file
BIN
.yarn/cache/dokdo-npm-0.6.2-5c0c9aaf76-bc3b62b83a.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/esbuild-npm-0.19.12-fb5a3a4313-861fa8eb24.zip
vendored
Normal file
BIN
.yarn/cache/esbuild-npm-0.19.12-fb5a3a4313-861fa8eb24.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/fastq-npm-1.17.1-56d4554993-a443180068.zip
vendored
Normal file
BIN
.yarn/cache/fastq-npm-1.17.1-56d4554993-a443180068.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/fill-range-npm-7.1.1-bf491486db-a7095cb39e.zip
vendored
Normal file
BIN
.yarn/cache/fill-range-npm-7.1.1-bf491486db-a7095cb39e.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/fsevents-patch-6b67494872-10.zip
vendored
Normal file
BIN
.yarn/cache/fsevents-patch-6b67494872-10.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/glob-npm-10.4.1-a0d030e0a9-d7bb49d2b4.zip
vendored
Normal file
BIN
.yarn/cache/glob-npm-10.4.1-a0d030e0a9-d7bb49d2b4.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/glob-npm-7.1.6-1ce3a5189a-7d6ec98bc7.zip
vendored
BIN
.yarn/cache/glob-npm-7.1.6-1ce3a5189a-7d6ec98bc7.zip
vendored
Binary file not shown.
BIN
.yarn/cache/glob-npm-7.2.3-2d866d17a5-59452a9202.zip
vendored
BIN
.yarn/cache/glob-npm-7.2.3-2d866d17a5-59452a9202.zip
vendored
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/http-proxy-agent-npm-7.0.2-643ed7cc33-d062acfa0c.zip
vendored
Normal file
BIN
.yarn/cache/http-proxy-agent-npm-7.0.2-643ed7cc33-d062acfa0c.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/https-proxy-agent-npm-7.0.4-a51e13f5dc-405fe582bb.zip
vendored
Normal file
BIN
.yarn/cache/https-proxy-agent-npm-7.0.4-a51e13f5dc-405fe582bb.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/ignore-npm-5.3.1-f6947c5df7-0a884c2fbc.zip
vendored
Normal file
BIN
.yarn/cache/ignore-npm-5.3.1-f6947c5df7-0a884c2fbc.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/ip-address-npm-9.0.5-9fa024d42a-1ed81e0672.zip
vendored
Normal file
BIN
.yarn/cache/ip-address-npm-9.0.5-9fa024d42a-1ed81e0672.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/ip-npm-2.0.0-204facb3cc-1270b11e53.zip
vendored
BIN
.yarn/cache/ip-npm-2.0.0-204facb3cc-1270b11e53.zip
vendored
Binary file not shown.
BIN
.yarn/cache/isexe-npm-3.1.1-9c0061eead-7fe1931ee4.zip
vendored
Normal file
BIN
.yarn/cache/isexe-npm-3.1.1-9c0061eead-7fe1931ee4.zip
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
.yarn/cache/jackspeak-npm-3.1.2-dbb3ed8474-7e6b94103e.zip
vendored
Normal file
BIN
.yarn/cache/jackspeak-npm-3.1.2-dbb3ed8474-7e6b94103e.zip
vendored
Normal file
Binary file not shown.
BIN
.yarn/cache/jsbn-npm-1.1.0-1da0181838-bebe7ae829.zip
vendored
Normal file
BIN
.yarn/cache/jsbn-npm-1.1.0-1da0181838-bebe7ae829.zip
vendored
Normal file
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue