@stacksjs/path 0.58.62 → 0.58.64

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 CHANGED
@@ -8,6 +8,27 @@ function actionsPath(path) {
8
8
  function relativeActionsPath(path) {
9
9
  return relative(projectPath(), actionsPath(path));
10
10
  }
11
+ function userActionsPath(path) {
12
+ return appPath(`Actions/${path || ""}`);
13
+ }
14
+ function userJobsPath(path) {
15
+ return appPath(`Jobs/${path || ""}`);
16
+ }
17
+ function userListenersPath(path) {
18
+ return appPath(`Listeners/${path || ""}`);
19
+ }
20
+ function userMiddlewarePath(path) {
21
+ return appPath(`Middleware/${path || ""}`);
22
+ }
23
+ function userModelsPath(path) {
24
+ return appPath(`Models/${path || ""}`);
25
+ }
26
+ function userNotificationsPath(path) {
27
+ return appPath(`Notifications/${path || ""}`);
28
+ }
29
+ function userEventsPath() {
30
+ return appPath(`Events.ts`);
31
+ }
11
32
  function aiPath(path) {
12
33
  return corePath(`ai/${path || ""}`);
13
34
  }
@@ -311,6 +332,7 @@ function xRayPath(path) {
311
332
  }
312
333
  var path = {
313
334
  actionsPath,
335
+ userActionsPath,
314
336
  aiPath,
315
337
  assetsPath,
316
338
  relativeActionsPath,
@@ -400,6 +422,12 @@ var path = {
400
422
  tinkerPath,
401
423
  typesPath,
402
424
  uiPath,
425
+ userEventsPath,
426
+ userJobsPath,
427
+ userListenersPath,
428
+ userMiddlewarePath,
429
+ userModelsPath,
430
+ userNotificationsPath,
403
431
  utilsPath,
404
432
  validationPath,
405
433
  vitePath,
@@ -425,6 +453,13 @@ export {
425
453
  viewsPath,
426
454
  validationPath,
427
455
  utilsPath,
456
+ userNotificationsPath,
457
+ userModelsPath,
458
+ userMiddlewarePath,
459
+ userListenersPath,
460
+ userJobsPath,
461
+ userEventsPath,
462
+ userActionsPath,
428
463
  uiPath,
429
464
  typesPath,
430
465
  toNamespacedPath,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.58.62",
4
+ "version": "0.58.64",
5
5
  "description": "The Stacks path.",
6
6
  "author": "Chris Breuer",
7
7
  "license": "MIT",
package/src/index.ts CHANGED
@@ -23,6 +23,34 @@ export function relativeActionsPath(path?: string) {
23
23
  return relative(projectPath(), actionsPath(path))
24
24
  }
25
25
 
26
+ export function userActionsPath(path?: string) {
27
+ return appPath(`Actions/${path || ''}`)
28
+ }
29
+
30
+ export function userJobsPath(path?: string) {
31
+ return appPath(`Jobs/${path || ''}`)
32
+ }
33
+
34
+ export function userListenersPath(path?: string) {
35
+ return appPath(`Listeners/${path || ''}`)
36
+ }
37
+
38
+ export function userMiddlewarePath(path?: string) {
39
+ return appPath(`Middleware/${path || ''}`)
40
+ }
41
+
42
+ export function userModelsPath(path?: string) {
43
+ return appPath(`Models/${path || ''}`)
44
+ }
45
+
46
+ export function userNotificationsPath(path?: string) {
47
+ return appPath(`Notifications/${path || ''}`)
48
+ }
49
+
50
+ export function userEventsPath() {
51
+ return appPath(`Events.ts`)
52
+ }
53
+
26
54
  /**
27
55
  * Returns the path to the `ai` directory. The AI directory
28
56
  * contains the core Stacks' AI logic which currently
@@ -460,6 +488,7 @@ export function xRayPath(path?: string) {
460
488
 
461
489
  export const path = {
462
490
  actionsPath,
491
+ userActionsPath,
463
492
  aiPath,
464
493
  assetsPath,
465
494
  relativeActionsPath,
@@ -549,6 +578,12 @@ export const path = {
549
578
  tinkerPath,
550
579
  typesPath,
551
580
  uiPath,
581
+ userEventsPath,
582
+ userJobsPath,
583
+ userListenersPath,
584
+ userMiddlewarePath,
585
+ userModelsPath,
586
+ userNotificationsPath,
552
587
  utilsPath,
553
588
  validationPath,
554
589
  vitePath,