@gigadrive/network-config 3.1.1 → 3.1.2
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.mts +35 -3
- package/dist/index.d.ts +35 -3
- package/dist/index.js +728 -607
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
|
@@ -262,7 +262,11 @@ interface DetectionResult {
|
|
|
262
262
|
* @param projectFolder - Absolute path to the project root
|
|
263
263
|
* @returns DetectionResult with framework, package manager, and generated config
|
|
264
264
|
*/
|
|
265
|
-
declare const detectFramework: (projectFolder: string) => Effect.Effect<
|
|
265
|
+
declare const detectFramework: (projectFolder: string) => Effect.Effect<{
|
|
266
|
+
framework: FrameworkDefinition;
|
|
267
|
+
packageManager: PackageManager;
|
|
268
|
+
config: NormalizedConfig;
|
|
269
|
+
}, ManifestReadError | ManifestParseError | FrameworkNotDetectedError, FileSystem.FileSystem | Path.Path>;
|
|
266
270
|
|
|
267
271
|
/**
|
|
268
272
|
* Detects the package manager by checking for lockfiles in the project folder.
|
|
@@ -550,7 +554,21 @@ declare const V4ConfigParser_base: Effect.Service.Class<V4ConfigParser, "V4Confi
|
|
|
550
554
|
* @param config - The raw V4 config object
|
|
551
555
|
* @param projectFolder - Absolute path to the project root
|
|
552
556
|
*/
|
|
553
|
-
parse: (config: ConfigV4, projectFolder: string) => Effect.Effect<
|
|
557
|
+
parse: (config: ConfigV4, projectFolder: string) => Effect.Effect<{
|
|
558
|
+
regions: ("us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "ap-south-1" | "ap-northeast-3" | "ap-northeast-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ca-central-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-north-1" | "sa-east-1")[];
|
|
559
|
+
assets: {
|
|
560
|
+
paths: string[];
|
|
561
|
+
prefixToStrip: string;
|
|
562
|
+
dynamicRoutes: boolean;
|
|
563
|
+
populateCache: boolean;
|
|
564
|
+
};
|
|
565
|
+
environmentVariables: Record<string, string>;
|
|
566
|
+
commands: string[];
|
|
567
|
+
entrypoints: NormalizedConfigEntrypoint[];
|
|
568
|
+
errors: never[];
|
|
569
|
+
warnings: never[];
|
|
570
|
+
routes: NormalizedConfigRoute[];
|
|
571
|
+
}, FunctionConfigError, FileSystem.FileSystem | Path.Path>;
|
|
554
572
|
}, never, never>;
|
|
555
573
|
}>;
|
|
556
574
|
declare class V4ConfigParser extends V4ConfigParser_base {
|
|
@@ -578,7 +596,21 @@ interface Config {
|
|
|
578
596
|
* @param filePath - Absolute path to the config file
|
|
579
597
|
* @param projectFolder - Absolute path to the project root
|
|
580
598
|
*/
|
|
581
|
-
declare const parseConfigRaw: (filePath: string, projectFolder: string) => Effect.Effect<
|
|
599
|
+
declare const parseConfigRaw: (filePath: string, projectFolder: string) => Effect.Effect<{
|
|
600
|
+
regions: ("us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "ap-south-1" | "ap-northeast-3" | "ap-northeast-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ca-central-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-north-1" | "sa-east-1")[];
|
|
601
|
+
assets: {
|
|
602
|
+
paths: string[];
|
|
603
|
+
prefixToStrip: string;
|
|
604
|
+
dynamicRoutes: boolean;
|
|
605
|
+
populateCache: boolean;
|
|
606
|
+
};
|
|
607
|
+
environmentVariables: Record<string, string>;
|
|
608
|
+
commands: string[];
|
|
609
|
+
entrypoints: NormalizedConfigEntrypoint[];
|
|
610
|
+
errors: never[];
|
|
611
|
+
warnings: never[];
|
|
612
|
+
routes: NormalizedConfigRoute[];
|
|
613
|
+
}, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigVersionError | ConfigSchemaValidationError | FunctionConfigError, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path | RawConfigReader | SchemaValidator | V4ConfigParser>;
|
|
582
614
|
/**
|
|
583
615
|
* Parses a config file at the given path, validates it against the appropriate
|
|
584
616
|
* JSON Schema, converts it to a NormalizedConfig, and applies post-processing.
|
package/dist/index.d.ts
CHANGED
|
@@ -262,7 +262,11 @@ interface DetectionResult {
|
|
|
262
262
|
* @param projectFolder - Absolute path to the project root
|
|
263
263
|
* @returns DetectionResult with framework, package manager, and generated config
|
|
264
264
|
*/
|
|
265
|
-
declare const detectFramework: (projectFolder: string) => Effect.Effect<
|
|
265
|
+
declare const detectFramework: (projectFolder: string) => Effect.Effect<{
|
|
266
|
+
framework: FrameworkDefinition;
|
|
267
|
+
packageManager: PackageManager;
|
|
268
|
+
config: NormalizedConfig;
|
|
269
|
+
}, ManifestReadError | ManifestParseError | FrameworkNotDetectedError, FileSystem.FileSystem | Path.Path>;
|
|
266
270
|
|
|
267
271
|
/**
|
|
268
272
|
* Detects the package manager by checking for lockfiles in the project folder.
|
|
@@ -550,7 +554,21 @@ declare const V4ConfigParser_base: Effect.Service.Class<V4ConfigParser, "V4Confi
|
|
|
550
554
|
* @param config - The raw V4 config object
|
|
551
555
|
* @param projectFolder - Absolute path to the project root
|
|
552
556
|
*/
|
|
553
|
-
parse: (config: ConfigV4, projectFolder: string) => Effect.Effect<
|
|
557
|
+
parse: (config: ConfigV4, projectFolder: string) => Effect.Effect<{
|
|
558
|
+
regions: ("us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "ap-south-1" | "ap-northeast-3" | "ap-northeast-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ca-central-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-north-1" | "sa-east-1")[];
|
|
559
|
+
assets: {
|
|
560
|
+
paths: string[];
|
|
561
|
+
prefixToStrip: string;
|
|
562
|
+
dynamicRoutes: boolean;
|
|
563
|
+
populateCache: boolean;
|
|
564
|
+
};
|
|
565
|
+
environmentVariables: Record<string, string>;
|
|
566
|
+
commands: string[];
|
|
567
|
+
entrypoints: NormalizedConfigEntrypoint[];
|
|
568
|
+
errors: never[];
|
|
569
|
+
warnings: never[];
|
|
570
|
+
routes: NormalizedConfigRoute[];
|
|
571
|
+
}, FunctionConfigError, FileSystem.FileSystem | Path.Path>;
|
|
554
572
|
}, never, never>;
|
|
555
573
|
}>;
|
|
556
574
|
declare class V4ConfigParser extends V4ConfigParser_base {
|
|
@@ -578,7 +596,21 @@ interface Config {
|
|
|
578
596
|
* @param filePath - Absolute path to the config file
|
|
579
597
|
* @param projectFolder - Absolute path to the project root
|
|
580
598
|
*/
|
|
581
|
-
declare const parseConfigRaw: (filePath: string, projectFolder: string) => Effect.Effect<
|
|
599
|
+
declare const parseConfigRaw: (filePath: string, projectFolder: string) => Effect.Effect<{
|
|
600
|
+
regions: ("us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "ap-south-1" | "ap-northeast-3" | "ap-northeast-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ca-central-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "eu-north-1" | "sa-east-1")[];
|
|
601
|
+
assets: {
|
|
602
|
+
paths: string[];
|
|
603
|
+
prefixToStrip: string;
|
|
604
|
+
dynamicRoutes: boolean;
|
|
605
|
+
populateCache: boolean;
|
|
606
|
+
};
|
|
607
|
+
environmentVariables: Record<string, string>;
|
|
608
|
+
commands: string[];
|
|
609
|
+
entrypoints: NormalizedConfigEntrypoint[];
|
|
610
|
+
errors: never[];
|
|
611
|
+
warnings: never[];
|
|
612
|
+
routes: NormalizedConfigRoute[];
|
|
613
|
+
}, ConfigFileNotFoundError | ConfigFileEmptyError | ConfigFileParseError | ConfigVersionError | ConfigSchemaValidationError | FunctionConfigError, _effect_platform_FileSystem.FileSystem | _effect_platform_Path.Path | RawConfigReader | SchemaValidator | V4ConfigParser>;
|
|
582
614
|
/**
|
|
583
615
|
* Parses a config file at the given path, validates it against the appropriate
|
|
584
616
|
* JSON Schema, converts it to a NormalizedConfig, and applies post-processing.
|