@stacksjs/router 0.59.9 → 0.59.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51170,7 +51170,7 @@ var require_lib14 = __commonJS((exports) => {
|
|
|
51170
51170
|
// ../../../../node_modules/enhanced-resolve/lib/CachedInputFileSystem.js
|
|
51171
51171
|
var require_CachedInputFileSystem = __commonJS((exports, module) => {
|
|
51172
51172
|
var nextTick = import.meta.require("process").nextTick;
|
|
51173
|
-
var
|
|
51173
|
+
var dirname = (path3) => {
|
|
51174
51174
|
let idx = path3.length - 1;
|
|
51175
51175
|
while (idx >= 0) {
|
|
51176
51176
|
const c2 = path3.charCodeAt(idx);
|
|
@@ -51373,11 +51373,11 @@ var require_CachedInputFileSystem = __commonJS((exports, module) => {
|
|
|
51373
51373
|
if (!what) {
|
|
51374
51374
|
this.purge();
|
|
51375
51375
|
} else if (typeof what === "string") {
|
|
51376
|
-
this.purge(
|
|
51376
|
+
this.purge(dirname(what));
|
|
51377
51377
|
} else {
|
|
51378
51378
|
const set = new Set;
|
|
51379
51379
|
for (const item of what) {
|
|
51380
|
-
set.add(
|
|
51380
|
+
set.add(dirname(item));
|
|
51381
51381
|
}
|
|
51382
51382
|
this.purge(set);
|
|
51383
51383
|
}
|
|
@@ -57611,7 +57611,7 @@ error: ${text2}`);
|
|
|
57611
57611
|
});
|
|
57612
57612
|
|
|
57613
57613
|
// ../../../../node_modules/export-size/node_modules/rollup/dist/es/shared/node-entry.js
|
|
57614
|
-
import {resolve, basename, extname as extname2, dirname
|
|
57614
|
+
import {resolve, basename, extname as extname2, dirname, relative as relative$1} from "path";
|
|
57615
57615
|
import require$$0$1, {win32, posix, isAbsolute as isAbsolute$1, resolve as resolve$1} from "path";
|
|
57616
57616
|
import process$12, {env as env$1} from "process";
|
|
57617
57617
|
import * as tty3 from "tty";
|
|
@@ -89846,7 +89846,7 @@ import os2 from "os";
|
|
|
89846
89846
|
import {
|
|
89847
89847
|
basename as basename2,
|
|
89848
89848
|
delimiter,
|
|
89849
|
-
dirname as
|
|
89849
|
+
dirname as dirname2,
|
|
89850
89850
|
extname as extname3,
|
|
89851
89851
|
isAbsolute as isAbsolute2,
|
|
89852
89852
|
join as join2,
|
|
@@ -111735,7 +111735,7 @@ var fs2 = __toESM(require_lib(), 1);
|
|
|
111735
111735
|
// ../storage/src/helpers.ts
|
|
111736
111736
|
import {fileURLToPath} from "url";
|
|
111737
111737
|
var __dirname = "/home/runner/work/stacks/stacks/storage/framework/core/storage/src";
|
|
111738
|
-
var _dirname = typeof __dirname !== "undefined" ? __dirname :
|
|
111738
|
+
var _dirname = typeof __dirname !== "undefined" ? __dirname : dirname2(fileURLToPath(import.meta.url));
|
|
111739
111739
|
// ../storage/src/glob.ts
|
|
111740
111740
|
var import_fast_glob = __toESM(require_out4(), 1);
|
|
111741
111741
|
// ../storage/src/move.ts
|
|
@@ -111761,7 +111761,7 @@ class ErrorHandler {
|
|
|
111761
111761
|
const formattedError = `[${new Date().toISOString()}] ${err2.name}: ${err2.message}\n`;
|
|
111762
111762
|
const errorsLogFilePath = logsPath("errors.log");
|
|
111763
111763
|
try {
|
|
111764
|
-
await fs2.mkdir(
|
|
111764
|
+
await fs2.mkdir(dirname2(errorsLogFilePath), { recursive: true });
|
|
111765
111765
|
await fs2.appendFile(errorsLogFilePath, formattedError);
|
|
111766
111766
|
} catch (error) {
|
|
111767
111767
|
console.error("Failed to write to error file:", error);
|
|
@@ -112701,7 +112701,7 @@ var path2 = {
|
|
|
112701
112701
|
homeDir,
|
|
112702
112702
|
basename: basename2,
|
|
112703
112703
|
delimiter,
|
|
112704
|
-
dirname:
|
|
112704
|
+
dirname: dirname2,
|
|
112705
112705
|
extname: extname3,
|
|
112706
112706
|
isAbsolute: isAbsolute2,
|
|
112707
112707
|
join: join2,
|