@stacksjs/types 0.52.0 → 0.52.1

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/cli.d.ts CHANGED
@@ -7,6 +7,7 @@ import type { Err, Ok } from './errors';
7
7
  export type CommandReturnValue = ExecaReturnValue<string>;
8
8
  export type CommandResult = Ok<ExecaReturnValue<string>, Error | void> | Err<ExecaReturnValue<string>, Error | string | void>;
9
9
  export interface OutroOptions {
10
+ type?: 'success' | 'error' | 'warning' | 'info';
10
11
  startTime?: number;
11
12
  useSeconds?: boolean;
12
13
  isError?: boolean;
@@ -182,7 +183,7 @@ export declare const enum NpmScript {
182
183
  BuildFunctions = "build:functions",
183
184
  BuildDocs = "build:docs",
184
185
  BuildStacks = "build:stacks",
185
- Clean = "rimraf ./pnpm-lock.yaml ./node_modules/ ./.stacks/**/node_modules ./.stacks/**/dist",
186
+ Clean = "rimraf pnpm-lock.yaml node_modules/ .stacks/**/node_modules .stacks/**/dist",
186
187
  Dev = "dev",
187
188
  DevComponents = "vite --config ./core/build/src/vue-components.ts",
188
189
  DevDocs = "npx vitepress dev ./docs/src",
package/dist/cli.mjs CHANGED
@@ -5,7 +5,7 @@ export var NpmScript = /* @__PURE__ */ ((NpmScript2) => {
5
5
  NpmScript2["BuildFunctions"] = "build:functions";
6
6
  NpmScript2["BuildDocs"] = "build:docs";
7
7
  NpmScript2["BuildStacks"] = "build:stacks";
8
- NpmScript2["Clean"] = "rimraf ./pnpm-lock.yaml ./node_modules/ ./.stacks/**/node_modules ./.stacks/**/dist";
8
+ NpmScript2["Clean"] = "rimraf pnpm-lock.yaml node_modules/ .stacks/**/node_modules .stacks/**/dist";
9
9
  NpmScript2["Dev"] = "dev";
10
10
  NpmScript2["DevComponents"] = "vite --config ./core/build/src/vue-components.ts";
11
11
  NpmScript2["DevDocs"] = "npx vitepress dev ./docs/src";
package/dist/fs.d.ts CHANGED
@@ -14,3 +14,9 @@ export interface JsonFile {
14
14
  indent: string;
15
15
  newline: string | undefined;
16
16
  }
17
+ /**
18
+ * Describes a package.json file.
19
+ */
20
+ export interface PackageJson {
21
+ packageManager: string;
22
+ }
package/dist/router.d.ts CHANGED
@@ -24,3 +24,19 @@ export interface NitroEventHandler {
24
24
  */
25
25
  method?: string;
26
26
  }
27
+ export type HttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete' | 'before' | 'after' | 'view';
28
+ export type RouteCallback = (params: Record<string, any>) => any;
29
+ export interface Route {
30
+ method: HttpMethod;
31
+ pattern: RegExp;
32
+ callback: RouteCallback;
33
+ paramNames: string[];
34
+ }
35
+ export interface Middleware {
36
+ before?: RouteCallback;
37
+ after?: RouteCallback;
38
+ }
39
+ export interface RouteGroupOptions {
40
+ prefix?: string;
41
+ middleware?: Middleware[];
42
+ }
package/dist/stacks.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { AppOptions, CacheOptions, CdnOptions, UserCliOptions, DatabaseOptions, DebugOptions, DnsOptions, DocsOptions, EmailOptions, EventOptions, GitOptions, HashingOptions, LibraryOptions, NotificationOptions, PaymentOptions, SearchEngineOptions, ServicesOptions, StorageOptions, UiOptions } from "./";
1
+ import type { AppOptions, CacheOptions, CdnOptions, DatabaseOptions, DebugOptions, DnsOptions, DocsOptions, EmailOptions, EventOptions, GitOptions, HashingOptions, LibraryOptions, NotificationOptions, PaymentOptions, SearchEngineOptions, ServicesOptions, StorageOptions, UiOptions, UserCliOptions } from './';
2
2
  /**
3
3
  * **Stacks Options**
4
4
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.52.0",
4
+ "version": "0.52.1",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks framework types.",
7
7
  "author": "Chris Breuer",
@@ -42,7 +42,7 @@
42
42
  "@mdit-vue/plugin-component": "^0.12.0",
43
43
  "@mdit-vue/plugin-frontmatter": "^0.12.0",
44
44
  "@mdit-vue/types": "^0.12.0",
45
- "@novu/stateless": "^0.14.0",
45
+ "@novu/stateless": "^0.15.0",
46
46
  "@rollup/pluginutils": "^5.0.2",
47
47
  "@types/bcryptjs": "^2.4.2",
48
48
  "@types/crypto-js": "^4.1.1",
@@ -50,7 +50,7 @@
50
50
  "@types/fs-extra": "^11.0.1",
51
51
  "@types/markdown-it-link-attributes": "^3.0.1",
52
52
  "@types/minimatch": "^5.1.2",
53
- "@types/node": "^18.16.10",
53
+ "@types/node": "^18.16.13",
54
54
  "@types/nprogress": "^0.2.0",
55
55
  "@types/pluralize": "^0.0.29",
56
56
  "cac": "^6.7.14",
@@ -62,15 +62,15 @@
62
62
  "unocss": "^0.51.13",
63
63
  "unplugin-auto-import": "^0.16.0",
64
64
  "unplugin-vue-components": "^0.24.1",
65
- "vite": "^4.3.7",
65
+ "vite": "^4.3.8",
66
66
  "vite-plugin-inspect": "^0.7.26",
67
- "vite-plugin-pwa": "^0.14.7",
67
+ "vite-plugin-pwa": "^0.15.0",
68
68
  "vite-plugin-vue-layouts": "^0.8.0",
69
69
  "vite-ssg": "^0.22.2",
70
- "vitepress": "1.0.0-alpha.75",
71
- "vue": "^3.3.2",
70
+ "vitepress": "1.0.0-alpha.76",
71
+ "vue": "^3.3.4",
72
72
  "zod": "^3.21.4",
73
- "@stacksjs/development": "0.52.0"
73
+ "@stacksjs/development": "0.52.1"
74
74
  },
75
75
  "scripts": {
76
76
  "build": "unbuild",