@h3ravel/config 1.4.14 → 1.4.17

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/config",
3
- "version": "1.4.14",
3
+ "version": "1.4.17",
4
4
  "description": "Environment/config loading and management system for H3ravel.",
5
5
  "h3ravel": {
6
6
  "providers": [
@@ -8,15 +8,15 @@
8
8
  ]
9
9
  },
10
10
  "type": "module",
11
- "main": "./dist/index.js",
11
+ "main": "./dist/index.cjs",
12
12
  "types": "./dist/index.d.ts",
13
13
  "module": "./dist/index.js",
14
14
  "exports": {
15
15
  ".": {
16
- "types": "./dist/index.d.ts",
17
16
  "import": "./dist/index.js",
18
17
  "require": "./dist/index.cjs"
19
- }
18
+ },
19
+ "./*": "./*"
20
20
  },
21
21
  "files": [
22
22
  "dist"
@@ -41,16 +41,17 @@
41
41
  "laravel"
42
42
  ],
43
43
  "dependencies": {
44
- "@h3ravel/musket": "^0.3.2",
45
- "@h3ravel/support": "^0.15.2",
46
- "@h3ravel/shared": "^0.27.2"
44
+ "@h3ravel/musket": "^0.3.9",
45
+ "@h3ravel/shared": "^0.27.6",
46
+ "@h3ravel/support": "^0.15.5"
47
47
  },
48
48
  "devDependencies": {
49
49
  "tsx": "^4.20.6",
50
50
  "typescript": "^5.9.2",
51
- "@h3ravel/core": "^1.21.2"
51
+ "@h3ravel/core": "^1.21.5"
52
52
  },
53
53
  "scripts": {
54
+ "barrel": "barrelsby --directory src --delete --singleQuotes",
54
55
  "build": "tsdown --config-loader unconfig",
55
56
  "dev": "tsx watch src/index.ts",
56
57
  "start": "node dist/index.js",
package/dist/index.d.mts DELETED
@@ -1,87 +0,0 @@
1
- /// <reference path="./app.globals.d.ts" />
2
- import { DotNestedKeys, DotNestedValue } from "@h3ravel/shared";
3
- import { Command } from "@h3ravel/musket";
4
- import { Application, ServiceProvider } from "@h3ravel/core";
5
-
6
- //#region src/Commands/ConfigPublishCommand.d.ts
7
- declare class ConfigPublishCommand extends Command {
8
- /**
9
- * The name and signature of the console command.
10
- *
11
- * @var string
12
- */
13
- protected signature: string;
14
- /**
15
- * The console command description.
16
- *
17
- * @var string
18
- */
19
- protected description: string;
20
- /**
21
- * List available config files
22
- */
23
- protected configs: readonly ["hashing"];
24
- /**
25
- * Create a new seeder class
26
- */
27
- handle(): Promise<void>;
28
- /**
29
- * Create a new seeder class
30
- */
31
- protected publish(name: 'hashing'): Promise<void>;
32
- /**
33
- * Get the configuration file to publish
34
- *
35
- * @param name
36
- * @returns
37
- */
38
- getStubName(name: 'hashing'): string;
39
- }
40
- //#endregion
41
- //#region src/ConfigRepository.d.ts
42
- declare class ConfigRepository {
43
- protected app: Application;
44
- private loaded;
45
- private configs;
46
- constructor(app: Application);
47
- /**
48
- * Get the defined configurations
49
- */
50
- get<X extends Record<string, any>>(): X;
51
- get<X extends Record<string, any>, K extends DotNestedKeys<X>>(key: K, def?: any): DotNestedValue<X, K>;
52
- /**
53
- * Modify the defined configurations
54
- */
55
- set<T extends string>(key: T, value: any): void;
56
- load(): Promise<this>;
57
- }
58
- //#endregion
59
- //#region src/EnvLoader.d.ts
60
- declare class EnvLoader {
61
- protected app?: Application | undefined;
62
- constructor(app?: Application | undefined);
63
- /**
64
- * Get the defined environment vars
65
- */
66
- get<X extends NodeJS.ProcessEnv>(): X;
67
- get<X extends NodeJS.ProcessEnv, K extends DotNestedKeys<X>>(key: K, def?: any): DotNestedValue<X, K>;
68
- }
69
- //#endregion
70
- //#region src/Helpers.d.ts
71
- declare class Helpers {}
72
- //#endregion
73
- //#region src/Providers/ConfigServiceProvider.d.ts
74
- /**
75
- * Loads configuration and environment files.
76
- *
77
- * Load .env and merge with config files.
78
- * Bind ConfigRepository to the container.
79
- *
80
- * Auto-Registered
81
- */
82
- declare class ConfigServiceProvider extends ServiceProvider {
83
- static priority: number;
84
- register(): Promise<void>;
85
- }
86
- //#endregion
87
- export { ConfigPublishCommand, ConfigRepository, ConfigServiceProvider, EnvLoader, Helpers };
File without changes
File without changes