@stacksjs/router 0.58.43 → 0.58.44
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 +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
// /
|
|
2
|
+
// /home/runner/work/stacks/stacks/storage/framework/core/path/src/index.ts
|
|
3
3
|
import process2 from "process";
|
|
4
4
|
|
|
5
|
-
// /
|
|
5
|
+
// /home/runner/work/stacks/stacks/node_modules/pathe/dist/shared/pathe.ff20891b.mjs
|
|
6
6
|
var normalizeWindowsPath = function(input = "") {
|
|
7
7
|
if (!input) {
|
|
8
8
|
return input;
|
|
@@ -99,16 +99,16 @@ var resolve = function(...arguments_) {
|
|
|
99
99
|
var isAbsolute = function(p) {
|
|
100
100
|
return _IS_ABSOLUTE_RE.test(p);
|
|
101
101
|
};
|
|
102
|
-
// /
|
|
103
|
-
|
|
102
|
+
// /home/runner/work/stacks/stacks/storage/framework/core/path/src/index.ts
|
|
103
|
+
function appPath(path2) {
|
|
104
104
|
return projectPath(`app/${path2 || ""}`);
|
|
105
|
-
}
|
|
106
|
-
|
|
105
|
+
}
|
|
106
|
+
function projectPath(filePath = "") {
|
|
107
107
|
let path2 = process2.cwd();
|
|
108
108
|
while (path2.includes("storage"))
|
|
109
109
|
path2 = resolve(path2, "..");
|
|
110
110
|
return resolve(path2, filePath);
|
|
111
|
-
}
|
|
111
|
+
}
|
|
112
112
|
|
|
113
113
|
// src/middleware.ts
|
|
114
114
|
async function importMiddlewares(directory) {
|