@h3ravel/core 1.21.6 → 1.22.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/core",
3
- "version": "1.21.6",
3
+ "version": "1.22.0-alpha.1",
4
4
  "description": "Core application container, lifecycle management and service providers for H3ravel.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -54,15 +54,16 @@
54
54
  "semver": "^7.7.2",
55
55
  "srvx": "^0.8.7",
56
56
  "tslib": "^2.8.1",
57
- "@h3ravel/support": "^0.15.6",
58
- "@h3ravel/shared": "^0.27.7"
57
+ "@h3ravel/shared": "^0.29.0-alpha.1",
58
+ "@h3ravel/support": "^0.17.0-alpha.1",
59
+ "@h3ravel/foundation": "^0.1.0-alpha.1"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@types/semver": "^7.7.1",
62
- "typescript": "^5.9.2"
63
+ "typescript": "^5.9.2",
64
+ "@h3ravel/contracts": "^0.29.0-alpha.1"
63
65
  },
64
66
  "scripts": {
65
- "barrel": "barrelsby --directory src --delete --singleQuotes",
66
67
  "build": "tsdown --config-loader unconfig",
67
68
  "dev": "tsx watch src/index.ts",
68
69
  "start": "node dist/index.js",
@@ -1,84 +0,0 @@
1
- import { HTTPResponse } from 'h3'
2
-
3
- export { }
4
-
5
- declare global {
6
- /**
7
- * Dump something and kill the process for quick debugging. Based on Laravel's dd()
8
- *
9
- * @param args
10
- */
11
- function dd (...args: any[]): never
12
- /**
13
- * Dump something but keep the process for quick debugging. Based on Laravel's dump()
14
- *
15
- * @param args
16
- */
17
- function dump (...args: any[]): void
18
-
19
- /**
20
- * Global env variable
21
- *
22
- * @param path
23
- */
24
- function env (): NodeJS.ProcessEnv;
25
- function env<T extends string> (key: T, def?: any): any;
26
-
27
- /**
28
- * Load config option
29
- */
30
- function config<X extends Record<string, any>> (): X;
31
- function config<X extends Record<string, any>, T extends Extract<keyof X, string>> (key: T, def?: any): X[T];
32
- function config<T extends Record<string, any>> (key: T): void;
33
-
34
- /**
35
- * Render a view
36
- *
37
- * @param viewPath
38
- * @param params
39
- */
40
- function view (viewPath: string, params?: Record<string, any> | undefined): Promise<HTTPResponse>
41
-
42
- /**
43
- * Get static asset
44
- *
45
- * @param asset Name of the asset to serve
46
- * @param def Default asset to serve if asset does not exist
47
- */
48
- function asset (asset: string, def: string): string
49
-
50
- /**
51
- * Get app path
52
- *
53
- * @param path
54
- */
55
- function app_path (path?: string): string
56
-
57
- /**
58
- * Get base path
59
- *
60
- * @param path
61
- */
62
- function base_path (path?: string): string
63
-
64
- /**
65
- * Get public path
66
- *
67
- * @param path
68
- */
69
- function public_path (path?: string): string
70
-
71
- /**
72
- * Get storage path
73
- *
74
- * @param path
75
- */
76
- function storage_path (path?: string): string
77
-
78
- /**
79
- * Get the database path
80
- *
81
- * @param path
82
- */
83
- function database_path (path?: string): string
84
- }