@usejourney/core 0.1.4 → 0.1.5

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.ts CHANGED
@@ -28,6 +28,13 @@ declare const JourneyConfigSchema: z.ZodObject<{
28
28
  baseUrl: z.ZodOptional<z.ZodString>;
29
29
  runHistoryKeepCount: z.ZodDefault<z.ZodNumber>;
30
30
  tlsRejectUnauthorized: z.ZodDefault<z.ZodBoolean>;
31
+ /**
32
+ * Connect-phase budget (ms) covering DNS + TCP + TLS handshake. Distinct
33
+ * from the per-request timeout: that one wraps the whole fetch in an
34
+ * `AbortController`, while this one is an undici `Agent` option. Unset
35
+ * falls back to undici's 10s default; `0` disables the connect timeout.
36
+ */
37
+ connectTimeoutMs: z.ZodOptional<z.ZodNumber>;
31
38
  }, "strict", z.ZodTypeAny, {
32
39
  spec: string;
33
40
  generatedDir: string;
@@ -38,6 +45,7 @@ declare const JourneyConfigSchema: z.ZodObject<{
38
45
  name?: string | undefined;
39
46
  defaultEnvironment?: string | undefined;
40
47
  baseUrl?: string | undefined;
48
+ connectTimeoutMs?: number | undefined;
41
49
  }, {
42
50
  name?: string | undefined;
43
51
  spec?: string | undefined;
@@ -48,6 +56,7 @@ declare const JourneyConfigSchema: z.ZodObject<{
48
56
  baseUrl?: string | undefined;
49
57
  runHistoryKeepCount?: number | undefined;
50
58
  tlsRejectUnauthorized?: boolean | undefined;
59
+ connectTimeoutMs?: number | undefined;
51
60
  }>;
52
61
  type JourneyConfig = z.infer<typeof JourneyConfigSchema>;
53
62
  interface LoadedConfig {
package/dist/index.js CHANGED
@@ -78,7 +78,14 @@ var JourneyConfigSchema = z.object({
78
78
  defaultEnvironment: z.string().min(1).optional(),
79
79
  baseUrl: z.string().url().optional(),
80
80
  runHistoryKeepCount: z.number().int().min(0).default(20),
81
- tlsRejectUnauthorized: z.boolean().default(true)
81
+ tlsRejectUnauthorized: z.boolean().default(true),
82
+ /**
83
+ * Connect-phase budget (ms) covering DNS + TCP + TLS handshake. Distinct
84
+ * from the per-request timeout: that one wraps the whole fetch in an
85
+ * `AbortController`, while this one is an undici `Agent` option. Unset
86
+ * falls back to undici's 10s default; `0` disables the connect timeout.
87
+ */
88
+ connectTimeoutMs: z.number().int().min(0).optional()
82
89
  }).strict();
83
90
  function resolveRelative(projectDir, value) {
84
91
  return isAbsolute(value) ? value : join2(projectDir, value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usejourney/core",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",