@stacksjs/router 0.58.22 → 0.58.27

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.
Files changed (2) hide show
  1. package/dist/index.js +8 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  import fs from "fs";
4
4
  import {promisify} from "util";
5
5
 
6
- // /home/runner/work/stacks/stacks/storage/framework/core/src/path/src/index.ts
6
+ // /home/runner/work/stacks/stacks/storage/framework/core/path/src/index.ts
7
7
  import process2 from "process";
8
8
 
9
9
  // /home/runner/work/stacks/stacks/node_modules/pathe/dist/shared/pathe.ff20891b.mjs
@@ -207,7 +207,7 @@ var parse = function(p) {
207
207
  name: base.slice(0, base.length - extension.length)
208
208
  };
209
209
  };
210
- // /home/runner/work/stacks/stacks/storage/framework/core/src/path/src/index.ts
210
+ // /home/runner/work/stacks/stacks/storage/framework/core/path/src/index.ts
211
211
  function actionsPath(path2) {
212
212
  return corePath(`actions/src/${path2 || ""}`);
213
213
  }
@@ -269,10 +269,10 @@ function configPath(path2) {
269
269
  return corePath(`config/${path2 || ""}`);
270
270
  }
271
271
  function corePath(path2) {
272
- return frameworkPath(`core/src/${path2 || ""}`);
272
+ return frameworkPath(`core/${path2 || ""}`);
273
273
  }
274
274
  function customElementsDataPath() {
275
- return corePath("custom-elements.json");
275
+ return frameworkPath("core/custom-elements.json");
276
276
  }
277
277
  function databasePath(path2) {
278
278
  return corePath(`database/${path2 || ""}`);
@@ -328,6 +328,9 @@ function gitPath(path2) {
328
328
  function langPath(path2) {
329
329
  return projectPath(`lang/${path2 || ""}`);
330
330
  }
331
+ function layoutsPath(path2) {
332
+ return resourcesPath(`layouts/${path2 || ""}`);
333
+ }
331
334
  function libraryEntryPath(type) {
332
335
  return libsEntriesPath(`${type}.ts`);
333
336
  }
@@ -518,6 +521,7 @@ var path2 = {
518
521
  functionsPath,
519
522
  gitPath,
520
523
  langPath,
524
+ layoutsPath,
521
525
  libsPath,
522
526
  libraryEntryPath,
523
527
  lintPath,
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@stacksjs/router",
3
3
  "type": "module",
4
- "version": "0.58.22",
4
+ "version": "0.58.27",
5
5
  "description": "The Stacks framework router.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/chrisbbreuer",
9
- "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/src/router#readme",
9
+ "homepage": "https://github.com/stacksjs/stacks/tree/main/storage/framework/core/router#readme",
10
10
  "repository": {
11
11
  "type": "git",
12
12
  "url": "git+https://github.com/stacksjs/stacks.git",
13
- "directory": "./storage/framework/core/src/router"
13
+ "directory": "./storage/framework/core/router"
14
14
  },
15
15
  "bugs": {
16
16
  "url": "https://github.com/stacksjs/stacks/issues"