@stacksjs/path 0.49.3 → 0.51.0

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.d.ts CHANGED
@@ -57,6 +57,7 @@ export declare function collectionsPath(path?: string): any;
57
57
  export declare function componentsPath(path?: string): any;
58
58
  export declare function configPath(path?: string): any;
59
59
  export declare function corePath(path?: string): any;
60
+ export declare function databasePath(path?: string): any;
60
61
  export declare function dashboardPath(path?: string): any;
61
62
  export declare function desktopPath(path?: string): any;
62
63
  export declare function docsPath(path?: string): any;
@@ -65,9 +66,11 @@ export declare function driversPath(path?: string): any;
65
66
  export declare function customElementsDataPath(): any;
66
67
  export declare function emailPath(path?: string): any;
67
68
  export declare function errorHandlingPath(path?: string): any;
69
+ export declare function eventsPath(path?: string): any;
70
+ export declare function healthPath(path?: string): any;
68
71
  export declare function examplesPath(type: 'vue-components' | 'web-components'): any;
69
72
  export declare function frameworkPath(path?: string): any;
70
- export declare function fsPath(path?: string): any;
73
+ export declare function storagePath(path?: string): any;
71
74
  export declare function functionsPath(path?: string): any;
72
75
  export declare function gitPath(path?: string): any;
73
76
  export declare function langPath(path?: string): any;
@@ -78,13 +81,18 @@ export declare function xRayPath(path?: string): any;
78
81
  export declare function modulesPath(path?: string): any;
79
82
  export declare function notificationsPath(path?: string): any;
80
83
  export declare function objectsPath(path?: string): any;
84
+ export declare function onboardingPath(path?: string): any;
81
85
  export declare function packageJsonPath(type: 'vue-components' | 'web-components' | 'functions'): any;
82
86
  export declare function pagesPath(path?: string): any;
83
87
  export declare function pathPath(path?: string): any;
88
+ export declare function paymentsPath(path?: string): any;
84
89
  export declare function projectPath(filePath?: string): any;
85
90
  export declare function pushPath(path?: string): any;
91
+ export declare function queuePath(path?: string): any;
92
+ export declare function realtimePath(path?: string): any;
86
93
  export declare function routerPath(path?: string): any;
87
94
  export declare function searchEnginePath(path?: string): any;
95
+ export declare function settingsPath(path?: string): any;
88
96
  export declare function smsPath(path?: string): any;
89
97
  export declare function routesPath(path?: string): any;
90
98
  export declare function securityPath(path?: string): any;
@@ -99,6 +107,7 @@ export declare function stringsPath(path?: string): any;
99
107
  export declare function scriptsPath(path?: string): any;
100
108
  export declare function uiPath(path?: string): any;
101
109
  export declare function utilsPath(path?: string): any;
110
+ export declare function validationPath(path?: string): any;
102
111
  export declare const path: {
103
112
  aiPath: typeof aiPath;
104
113
  actionsPath: typeof actionsPath;
@@ -116,6 +125,7 @@ export declare const path: {
116
125
  configPath: typeof configPath;
117
126
  corePath: typeof corePath;
118
127
  customElementsDataPath: typeof customElementsDataPath;
128
+ databasePath: typeof databasePath;
119
129
  dashboardPath: typeof dashboardPath;
120
130
  desktopPath: typeof desktopPath;
121
131
  docsPath: typeof docsPath;
@@ -123,9 +133,11 @@ export declare const path: {
123
133
  driversPath: typeof driversPath;
124
134
  emailPath: typeof emailPath;
125
135
  errorHandlingPath: typeof errorHandlingPath;
136
+ eventsPath: typeof eventsPath;
137
+ healthPath: typeof healthPath;
126
138
  examplesPath: typeof examplesPath;
127
139
  frameworkPath: typeof frameworkPath;
128
- fsPath: typeof fsPath;
140
+ storagePath: typeof storagePath;
129
141
  functionsPath: typeof functionsPath;
130
142
  gitPath: typeof gitPath;
131
143
  langPath: typeof langPath;
@@ -135,16 +147,21 @@ export declare const path: {
135
147
  xRayPath: typeof xRayPath;
136
148
  modulesPath: typeof modulesPath;
137
149
  objectsPath: typeof objectsPath;
150
+ onboardingPath: typeof onboardingPath;
138
151
  notificationsPath: typeof notificationsPath;
139
152
  packageJsonPath: typeof packageJsonPath;
140
153
  pagesPath: typeof pagesPath;
141
154
  pathPath: typeof pathPath;
155
+ paymentsPath: typeof paymentsPath;
142
156
  projectPath: typeof projectPath;
143
157
  pushPath: typeof pushPath;
158
+ queuePath: typeof queuePath;
159
+ realtimePath: typeof realtimePath;
144
160
  routerPath: typeof routerPath;
161
+ routesPath: typeof routesPath;
145
162
  searchEnginePath: typeof searchEnginePath;
163
+ settingsPath: typeof settingsPath;
146
164
  smsPath: typeof smsPath;
147
- routesPath: typeof routesPath;
148
165
  scriptsPath: typeof scriptsPath;
149
166
  securityPath: typeof securityPath;
150
167
  serverPath: typeof serverPath;
@@ -157,6 +174,7 @@ export declare const path: {
157
174
  typesPath: typeof typesPath;
158
175
  uiPath: typeof uiPath;
159
176
  utilsPath: typeof utilsPath;
177
+ validationPath: typeof validationPath;
160
178
  basename: any;
161
179
  delimiter: string;
162
180
  dirname: any;
package/dist/index.mjs CHANGED
@@ -47,6 +47,9 @@ export function configPath(path2) {
47
47
  export function corePath(path2) {
48
48
  return frameworkPath(`core/${path2 || ""}`);
49
49
  }
50
+ export function databasePath(path2) {
51
+ return corePath(`database/${path2 || ""}`);
52
+ }
50
53
  export function dashboardPath(path2) {
51
54
  return corePath(`dashboard/${path2 || ""}`);
52
55
  }
@@ -71,13 +74,19 @@ export function emailPath(path2) {
71
74
  export function errorHandlingPath(path2) {
72
75
  return corePath(`error-handling/${path2 || ""}`);
73
76
  }
77
+ export function eventsPath(path2) {
78
+ return corePath(`events/${path2 || ""}`);
79
+ }
80
+ export function healthPath(path2) {
81
+ return corePath(`health/${path2 || ""}`);
82
+ }
74
83
  export function examplesPath(type) {
75
84
  return frameworkPath(`examples/${type || ""}`);
76
85
  }
77
86
  export function frameworkPath(path2) {
78
87
  return projectPath(`.stacks/${path2 || ""}`);
79
88
  }
80
- export function fsPath(path2) {
89
+ export function storagePath(path2) {
81
90
  return corePath(`storage/${path2 || ""}`);
82
91
  }
83
92
  export function functionsPath(path2) {
@@ -110,6 +119,9 @@ export function notificationsPath(path2) {
110
119
  export function objectsPath(path2) {
111
120
  return corePath(`objects/${path2 || ""}`);
112
121
  }
122
+ export function onboardingPath(path2) {
123
+ return projectPath(`${path2 || "pages/dashboard/onboarding"}`);
124
+ }
113
125
  export function packageJsonPath(type) {
114
126
  if (type === "vue-components")
115
127
  return frameworkPath("components/vue/package.json");
@@ -125,6 +137,9 @@ export function pagesPath(path2) {
125
137
  export function pathPath(path2) {
126
138
  return corePath(`path/${path2 || ""}`);
127
139
  }
140
+ export function paymentsPath(path2) {
141
+ return corePath(`payments/${path2 || ""}`);
142
+ }
128
143
  export function projectPath(filePath = "") {
129
144
  let path2 = process.cwd();
130
145
  if (path2.includes(".stacks"))
@@ -140,12 +155,21 @@ export function projectPath(filePath = "") {
140
155
  export function pushPath(path2) {
141
156
  return corePath(`push/${path2 || ""}`);
142
157
  }
158
+ export function queuePath(path2) {
159
+ return corePath(`queue/${path2 || ""}`);
160
+ }
161
+ export function realtimePath(path2) {
162
+ return corePath(`realtime/${path2 || ""}`);
163
+ }
143
164
  export function routerPath(path2) {
144
165
  return corePath(`router/${path2 || ""}`);
145
166
  }
146
167
  export function searchEnginePath(path2) {
147
168
  return corePath(`search-engine/${path2 || ""}`);
148
169
  }
170
+ export function settingsPath(path2) {
171
+ return projectPath(`${path2 || "pages/dashboard/settings"}`);
172
+ }
149
173
  export function smsPath(path2) {
150
174
  return corePath(`sms/${path2 || ""}`);
151
175
  }
@@ -188,6 +212,9 @@ export function uiPath(path2) {
188
212
  export function utilsPath(path2) {
189
213
  return corePath(`utils/${path2 || ""}`);
190
214
  }
215
+ export function validationPath(path2) {
216
+ return corePath(`validation/${path2 || ""}`);
217
+ }
191
218
  export const path = {
192
219
  aiPath,
193
220
  actionsPath,
@@ -205,6 +232,7 @@ export const path = {
205
232
  configPath,
206
233
  corePath,
207
234
  customElementsDataPath,
235
+ databasePath,
208
236
  dashboardPath,
209
237
  desktopPath,
210
238
  docsPath,
@@ -212,9 +240,11 @@ export const path = {
212
240
  driversPath,
213
241
  emailPath,
214
242
  errorHandlingPath,
243
+ eventsPath,
244
+ healthPath,
215
245
  examplesPath,
216
246
  frameworkPath,
217
- fsPath,
247
+ storagePath,
218
248
  functionsPath,
219
249
  gitPath,
220
250
  langPath,
@@ -224,16 +254,21 @@ export const path = {
224
254
  xRayPath,
225
255
  modulesPath,
226
256
  objectsPath,
257
+ onboardingPath,
227
258
  notificationsPath,
228
259
  packageJsonPath,
229
260
  pagesPath,
230
261
  pathPath,
262
+ paymentsPath,
231
263
  projectPath,
232
264
  pushPath,
265
+ queuePath,
266
+ realtimePath,
233
267
  routerPath,
268
+ routesPath,
234
269
  searchEnginePath,
270
+ settingsPath,
235
271
  smsPath,
236
- routesPath,
237
272
  scriptsPath,
238
273
  securityPath,
239
274
  serverPath,
@@ -246,6 +281,7 @@ export const path = {
246
281
  typesPath,
247
282
  uiPath,
248
283
  utilsPath,
284
+ validationPath,
249
285
  // path utils
250
286
  basename,
251
287
  delimiter,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.49.3",
5
- "packageManager": "pnpm@7.25.1",
4
+ "version": "0.51.0",
5
+ "packageManager": "pnpm@7.26.3",
6
6
  "description": "The Stacks path.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -35,16 +35,16 @@
35
35
  "README.md"
36
36
  ],
37
37
  "engines": {
38
- "node": ">=v18.13.0",
39
- "pnpm": ">=7.25.1"
38
+ "node": ">=v18.14.0",
39
+ "pnpm": ">=7.26.3"
40
40
  },
41
41
  "dependencies": {
42
- "pathe": "^1.0.0"
42
+ "pathe": "^1.1.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "mkdist": "^1.1.0",
46
- "typescript": "^4.9.4",
47
- "@stacksjs/testing": "0.49.3"
46
+ "typescript": "^4.9.5",
47
+ "@stacksjs/testing": "0.51.0"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "mkdist -d",