diff --git a/.pnp.cjs b/.pnp.cjs index a13789d..40e836f 100755 --- a/.pnp.cjs +++ b/.pnp.cjs @@ -1039,16 +1039,16 @@ function convertToBigIntStats(stats) { if (Object.hasOwn(stats, key)) { const element = stats[key]; if (typeof element === `number`) { - bigintStats[key] = BigInt(element); + bigintStats[key] = BigInt(Math.floor(element)); } else if (nodeUtils__namespace.types.isDate(element)) { bigintStats[key] = new Date(element); } } } - bigintStats.atimeNs = bigintStats.atimeMs * BigInt(1e6); - bigintStats.mtimeNs = bigintStats.mtimeMs * BigInt(1e6); - bigintStats.ctimeNs = bigintStats.ctimeMs * BigInt(1e6); - bigintStats.birthtimeNs = bigintStats.birthtimeMs * BigInt(1e6); + bigintStats.atimeNs = bigintStats.atimeMs * BigInt(1e6) + BigInt(Math.floor(stats.atimeMs % 1 * 1e3)) * BigInt(1e3); + bigintStats.mtimeNs = bigintStats.mtimeMs * BigInt(1e6) + BigInt(Math.floor(stats.mtimeMs % 1 * 1e3)) * BigInt(1e3); + bigintStats.ctimeNs = bigintStats.ctimeMs * BigInt(1e6) + BigInt(Math.floor(stats.ctimeMs % 1 * 1e3)) * BigInt(1e3); + bigintStats.birthtimeNs = bigintStats.birthtimeMs * BigInt(1e6) + BigInt(Math.floor(stats.birthtimeMs % 1 * 1e3)) * BigInt(1e3); return bigintStats; } function areStatsEqual(a, b) { @@ -6536,7 +6536,7 @@ function getPathForDisplay(p) { return npath.normalize(npath.fromPortablePath(p)); } -const [major, minor] = process.versions.node.split(`.`).map((value) => parseInt(value, 10)); +const [major, minor, patch] = 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; function readPackageScope(checkPath) { @@ -6571,9 +6571,9 @@ Instead change the require of ${basename} in ${parentPath} to a dynamic import() err.code = `ERR_REQUIRE_ESM`; return err; } -function reportRequiredFilesToWatchMode(files) { +function reportRequiredFilesToWatchMode(paths) { if (process.env.WATCH_REPORT_DEPENDENCIES && process.send) { - files = files.map((filename) => npath.fromPortablePath(VirtualFS.resolveVirtual(npath.toPortablePath(filename)))); + const files = paths.map((filename) => npath.fromPortablePath(VirtualFS.resolveVirtual(filename))); if (WATCH_MODE_MESSAGE_USES_ARRAYS) { process.send({ "watch:require": files }); } else { @@ -8216,9 +8216,10 @@ Required by: ${issuerLocator.name}@${issuerLocator.reference} (via ${issuerForDi const candidates = []; const qualifiedPath = applyNodeExtensionResolution(unqualifiedPath, candidates, { extensions }); if (qualifiedPath) { + reportRequiredFilesToWatchMode([qualifiedPath]); return ppath.normalize(qualifiedPath); } else { - reportRequiredFilesToWatchMode(candidates.map((candidate) => npath.fromPortablePath(candidate))); + reportRequiredFilesToWatchMode(candidates); const unqualifiedPathForDisplay = getPathForDisplay(unqualifiedPath); const containingPackage = findPackageLocator(unqualifiedPath); if (containingPackage) { diff --git a/.pnp.loader.mjs b/.pnp.loader.mjs index 2d5a584..15cab03 100644 --- a/.pnp.loader.mjs +++ b/.pnp.loader.mjs @@ -1428,11 +1428,12 @@ 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 [major, minor, patch] = 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; +const HAS_BROKEN_FSTAT_FOR_ZIP_FDS = major === 26 && minor < 1 || major === 25 && minor >= 7 || major === 24 && minor === 15 || major === 22 && (minor > 22 || minor === 22 && patch >= 3); function readPackageScope(checkPath) { const rootSeparatorIndex = checkPath.indexOf(npath.sep); @@ -1549,9 +1550,11 @@ async function load$1(urlString, context, nextLoad) { "watch:import": WATCH_MODE_MESSAGE_USES_ARRAYS ? [pathToSend] : pathToSend }); } + const shouldReadSource = format === `commonjs` && HAS_BROKEN_FSTAT_FOR_ZIP_FDS && filePath.includes(`.zip/`); + const source = format !== `commonjs` || shouldReadSource ? await fs.promises.readFile(filePath, `utf8`) : void 0; return { format, - source: format === `commonjs` ? void 0 : await fs.promises.readFile(filePath, `utf8`), + source, shortCircuit: true }; } diff --git a/.yarn/install-state.gz b/.yarn/install-state.gz index 4056ac4..a21c75d 100644 Binary files a/.yarn/install-state.gz and b/.yarn/install-state.gz differ diff --git a/package.json b/package.json index 2c2fddf..3ef999c 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "planar-vagabond", - "version": "0.24.0", + "version": "0.24.1", "description": "", "main": "index.js", "scripts": { @@ -20,5 +20,5 @@ "devDependencies": { "web-weevr": "git+ssh://git@git.itsericwoodward.com:eric/web-weevr.git" }, - "packageManager": "yarn@4.12.0" + "packageManager": "yarn@4.18.1" } diff --git a/src/assets/fragments/bestiary/skeletons/base-info.md b/src/assets/fragments/bestiary/skeletons/base-info.md new file mode 100644 index 0000000..431214f --- /dev/null +++ b/src/assets/fragments/bestiary/skeletons/base-info.md @@ -0,0 +1,3 @@ +- Always attack. +- Takes double damage from blunt weapons. +- Takes half damage from edged weapons. diff --git a/yarn.lock b/yarn.lock index f534565..a93b44e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,7 +2,7 @@ # Manual changes might be lost - proceed with caution! __metadata: - version: 8 + version: 10 cacheKey: 10c0 "@commander-js/extra-typings@npm:^14.0.0":