@h3ravel/core 1.21.7 → 1.22.0-alpha.10
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/env.d.ts +1 -0
- package/dist/index.cjs +771 -320
- package/dist/index.d.ts +493 -148
- package/dist/index.js +746 -313
- package/package.json +6 -5
- package/dist/app.globals.d.ts +0 -84
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0-alpha.10",
|
|
4
4
|
"description": "Core application container, lifecycle management and service providers for H3ravel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
"laravel"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
+
"@h3ravel/shared": "^0.29.0-alpha.10",
|
|
47
|
+
"@h3ravel/support": "^0.17.0-alpha.10",
|
|
48
|
+
"@h3ravel/foundation": "^0.1.0-alpha.10",
|
|
46
49
|
"chalk": "^5.6.2",
|
|
47
50
|
"commander": "^14.0.1",
|
|
48
51
|
"detect-port": "^2.1.0",
|
|
@@ -53,16 +56,14 @@
|
|
|
53
56
|
"reflect-metadata": "^0.2.2",
|
|
54
57
|
"semver": "^7.7.2",
|
|
55
58
|
"srvx": "^0.8.7",
|
|
56
|
-
"tslib": "^2.8.1"
|
|
57
|
-
"@h3ravel/shared": "^0.27.7",
|
|
58
|
-
"@h3ravel/support": "^0.15.6"
|
|
59
|
+
"tslib": "^2.8.1"
|
|
59
60
|
},
|
|
60
61
|
"devDependencies": {
|
|
62
|
+
"@h3ravel/contracts": "^0.29.0-alpha.10",
|
|
61
63
|
"@types/semver": "^7.7.1",
|
|
62
64
|
"typescript": "^5.9.2"
|
|
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",
|
package/dist/app.globals.d.ts
DELETED
|
@@ -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
|
-
}
|