silgi 0.37.46 → 0.37.47

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.
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { defineCommand, runMain } from 'citty';
3
3
 
4
- const version = "0.37.46";
4
+ const version = "0.37.47";
5
5
  const packageJson = {
6
6
  version: version};
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { ApifulConfig } from 'apiful/config';
2
- import { C12InputConfig, ResolvedConfig, ConfigWatcher, DotenvOptions as DotenvOptions$1, WatchConfigOptions } from 'c12';
2
+ import { C12InputConfig, ResolvedConfig, ConfigWatcher, WatchConfigOptions } from 'c12';
3
3
  import { ChokidarOptions } from 'chokidar';
4
4
  import { DateString, CompatibilityDateSpec, CompatibilityDates } from 'compatx';
5
5
  import { ConsolaInstance, ConsolaOptions, LogLevel } from 'consola';
@@ -13,7 +13,7 @@ import * as next from 'next';
13
13
  import { NextConfig } from 'next';
14
14
  import { Stats } from 'node:fs';
15
15
  import * as h3 from 'h3';
16
- import { Session, HTTPMethod as HTTPMethod$1 } from 'h3';
16
+ import { Session } from 'h3';
17
17
  import * as nitropack_types from 'nitropack/types';
18
18
  import { ESMImport, ESMCodeGenOptions } from 'knitwork';
19
19
  import { StandardSchemaV1 } from '@standard-schema/spec';
@@ -247,7 +247,7 @@ interface WithPathParams<PathParamsStr extends string> {
247
247
  * // Result doesn't allow pathParams property
248
248
  */
249
249
  type MethodSchemas<PathParamsStr extends string = ''> = {
250
- [K in HTTPMethod$1]?: HasPathParams<PathParamsStr> extends true ? BaseMethodSchema & WithPathParams<PathParamsStr> : BaseMethodSchema & {
250
+ [K in HTTPMethod]?: HasPathParams<PathParamsStr> extends true ? BaseMethodSchema & WithPathParams<PathParamsStr> : BaseMethodSchema & {
251
251
  pathParams?: never;
252
252
  };
253
253
  };
@@ -891,6 +891,33 @@ interface GenerateAppOptions {
891
891
  filter?: (template: ResolvedSilgiTemplate<any>) => boolean;
892
892
  }
893
893
 
894
+ interface DotenvOptions {
895
+ /**
896
+ * The project root directory (either absolute or relative to the current working directory).
897
+ */
898
+ cwd: string;
899
+ /**
900
+ * What file to look in for environment variables (either absolute or relative
901
+ * to the current working directory). For example, `.env`.
902
+ */
903
+ fileName?: string;
904
+ /**
905
+ * Whether to interpolate variables within .env.
906
+ *
907
+ * @example
908
+ * ```env
909
+ * BASE_DIR="/test"
910
+ * # resolves to "/test/further"
911
+ * ANOTHER_DIR="${BASE_DIR}/further"
912
+ * ```
913
+ */
914
+ interpolate?: boolean;
915
+ /**
916
+ * An object describing environment variables (key, value pairs).
917
+ */
918
+ env?: NodeJS.ProcessEnv;
919
+ }
920
+
894
921
  type SilgiPreset = (SilgiCLIConfig & {
895
922
  _meta?: SilgiPresetMeta;
896
923
  }) | (() => SilgiCLIConfig & {
@@ -918,7 +945,7 @@ interface SilgiCLIOptions extends PresetOptions {
918
945
  commandType: CommandType;
919
946
  commands: Commands[];
920
947
  schemaVendor: Schema | Schema[];
921
- environments: DotenvOptions$1[];
948
+ environments: DotenvOptions[];
922
949
  activeEnvironment: 'prod' | 'docker' | 'staging' | 'testing' | '.env' | (string & {});
923
950
  envOptions: EnvOptions;
924
951
  runtimeConfig: SilgiRuntimeConfig;
@@ -1158,33 +1185,6 @@ interface LoadConfigOptions {
1158
1185
  consola?: ConsolaInstance;
1159
1186
  }
1160
1187
 
1161
- interface DotenvOptions {
1162
- /**
1163
- * The project root directory (either absolute or relative to the current working directory).
1164
- */
1165
- cwd: string;
1166
- /**
1167
- * What file to look in for environment variables (either absolute or relative
1168
- * to the current working directory). For example, `.env`.
1169
- */
1170
- fileName?: string;
1171
- /**
1172
- * Whether to interpolate variables within .env.
1173
- *
1174
- * @example
1175
- * ```env
1176
- * BASE_DIR="/test"
1177
- * # resolves to "/test/further"
1178
- * ANOTHER_DIR="${BASE_DIR}/further"
1179
- * ```
1180
- */
1181
- interpolate?: boolean;
1182
- /**
1183
- * An object describing environment variables (key, value pairs).
1184
- */
1185
- env?: NodeJS.ProcessEnv;
1186
- }
1187
-
1188
1188
  interface GraphQLJSON {
1189
1189
  queries: any;
1190
1190
  mutations: any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "silgi",
3
3
  "type": "module",
4
- "version": "0.37.46",
4
+ "version": "0.37.47",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "exports": {