@stacksjs/path 0.46.4 → 0.47.4

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
@@ -6,6 +6,7 @@ import { basename, delimiter, dirname, extname, format, isAbsolute, join, normal
6
6
  *
7
7
  * @param path - relative path to the file or directory
8
8
  * @returns string - absolute path to the file or directory
9
+ *
9
10
  * @example
10
11
  * ```ts
11
12
  * import { aiPath } from '@stacks/paths'
@@ -50,6 +51,7 @@ export declare function buildPath(path?: string): any;
50
51
  export declare function buildEnginePath(path?: string): any;
51
52
  export declare function buildEntriesPath(path?: string): any;
52
53
  export declare function cachePath(path?: string): any;
54
+ export declare function chatPath(path?: string): any;
53
55
  export declare function cliPath(path?: string): any;
54
56
  export declare function collectionsPath(path?: string): any;
55
57
  export declare function componentsPath(path?: string): any;
@@ -61,6 +63,7 @@ export declare function docsPath(path?: string): any;
61
63
  export declare function domainsPath(path?: string): any;
62
64
  export declare function driversPath(path?: string): any;
63
65
  export declare function customElementsDataPath(): any;
66
+ export declare function emailPath(path?: string): any;
64
67
  export declare function errorHandlingPath(path?: string): any;
65
68
  export declare function examplesPath(type: 'vue-components' | 'web-components'): any;
66
69
  export declare function frameworkPath(path?: string): any;
@@ -79,8 +82,10 @@ export declare function packageJsonPath(type: 'vue-components' | 'web-components
79
82
  export declare function pagesPath(path?: string): any;
80
83
  export declare function pathPath(path?: string): any;
81
84
  export declare function projectPath(filePath?: string): any;
85
+ export declare function pushPath(path?: string): any;
82
86
  export declare function routerPath(path?: string): any;
83
87
  export declare function searchEnginePath(path?: string): any;
88
+ export declare function smsPath(path?: string): any;
84
89
  export declare function routesPath(path?: string): any;
85
90
  export declare function securityPath(path?: string): any;
86
91
  export declare function serverPath(path?: string): any;
@@ -103,6 +108,7 @@ export declare const path: {
103
108
  buildEntriesPath: typeof buildEntriesPath;
104
109
  buildPath: typeof buildPath;
105
110
  cachePath: typeof cachePath;
111
+ chatPath: typeof chatPath;
106
112
  cliPath: typeof cliPath;
107
113
  collectionsPath: typeof collectionsPath;
108
114
  componentsPath: typeof componentsPath;
@@ -114,6 +120,7 @@ export declare const path: {
114
120
  docsPath: typeof docsPath;
115
121
  domainsPath: typeof domainsPath;
116
122
  driversPath: typeof driversPath;
123
+ emailPath: typeof emailPath;
117
124
  errorHandlingPath: typeof errorHandlingPath;
118
125
  examplesPath: typeof examplesPath;
119
126
  frameworkPath: typeof frameworkPath;
@@ -132,8 +139,10 @@ export declare const path: {
132
139
  pagesPath: typeof pagesPath;
133
140
  pathPath: typeof pathPath;
134
141
  projectPath: typeof projectPath;
142
+ pushPath: typeof pushPath;
135
143
  routerPath: typeof routerPath;
136
144
  searchEnginePath: typeof searchEnginePath;
145
+ smsPath: typeof smsPath;
137
146
  routesPath: typeof routesPath;
138
147
  scriptsPath: typeof scriptsPath;
139
148
  securityPath: typeof securityPath;
package/dist/index.mjs CHANGED
@@ -29,6 +29,9 @@ export function buildEntriesPath(path2) {
29
29
  export function cachePath(path2) {
30
30
  return corePath(`cache/${path2 || ""}`);
31
31
  }
32
+ export function chatPath(path2) {
33
+ return corePath(`chat/${path2 || ""}`);
34
+ }
32
35
  export function cliPath(path2) {
33
36
  return corePath(`cli/${path2 || ""}`);
34
37
  }
@@ -62,6 +65,9 @@ export function driversPath(path2) {
62
65
  export function customElementsDataPath() {
63
66
  return frameworkPath("custom-elements.json");
64
67
  }
68
+ export function emailPath(path2) {
69
+ return corePath(`email/${path2 || ""}`);
70
+ }
65
71
  export function errorHandlingPath(path2) {
66
72
  return corePath(`error-handling/${path2 || ""}`);
67
73
  }
@@ -131,12 +137,18 @@ export function projectPath(filePath = "") {
131
137
  path2 = resolve(path2, ".");
132
138
  return resolve(path2, filePath);
133
139
  }
140
+ export function pushPath(path2) {
141
+ return corePath(`push/${path2 || ""}`);
142
+ }
134
143
  export function routerPath(path2) {
135
144
  return corePath(`router/${path2 || ""}`);
136
145
  }
137
146
  export function searchEnginePath(path2) {
138
147
  return corePath(`search-engine/${path2 || ""}`);
139
148
  }
149
+ export function smsPath(path2) {
150
+ return corePath(`sms/${path2 || ""}`);
151
+ }
140
152
  export function routesPath(path2) {
141
153
  return projectPath(`routes/${path2 || ""}`);
142
154
  }
@@ -183,6 +195,7 @@ export const path = {
183
195
  buildEntriesPath,
184
196
  buildPath,
185
197
  cachePath,
198
+ chatPath,
186
199
  cliPath,
187
200
  collectionsPath,
188
201
  componentsPath,
@@ -194,6 +207,7 @@ export const path = {
194
207
  docsPath,
195
208
  domainsPath,
196
209
  driversPath,
210
+ emailPath,
197
211
  errorHandlingPath,
198
212
  examplesPath,
199
213
  frameworkPath,
@@ -212,8 +226,10 @@ export const path = {
212
226
  pagesPath,
213
227
  pathPath,
214
228
  projectPath,
229
+ pushPath,
215
230
  routerPath,
216
231
  searchEnginePath,
232
+ smsPath,
217
233
  routesPath,
218
234
  scriptsPath,
219
235
  securityPath,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/path",
3
3
  "type": "module",
4
- "version": "0.46.4",
5
- "packageManager": "pnpm@7.19.0",
4
+ "version": "0.47.4",
5
+ "packageManager": "pnpm@7.21.0",
6
6
  "description": "The Stacks path.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "engines": {
38
38
  "node": ">=v18.12.1",
39
- "pnpm": ">=7.19.0"
39
+ "pnpm": ">=7.21.0"
40
40
  },
41
41
  "dependencies": {
42
42
  "pathe": "^1.0.0"
@@ -44,7 +44,7 @@
44
44
  "devDependencies": {
45
45
  "mkdist": "^1.0.0",
46
46
  "typescript": "^4.9.4",
47
- "@stacksjs/testing": "0.46.4"
47
+ "@stacksjs/testing": "0.47.4"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "mkdist -d",