@powerlines/plugin-env 0.16.395 → 0.16.396

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.
@@ -74,9 +74,11 @@ function loadEnvFromContext(context, parsed, workspaceConfig) {
74
74
  "warn",
75
75
  "info",
76
76
  "debug"
77
- ].includes(result.LOG_LEVEL)) if (!result.LOG_LEVEL || String(result.LOG_LEVEL) === "silent") result.LOG_LEVEL = "error";
78
- else if (String(result.LOG_LEVEL) === "trace") result.LOG_LEVEL = "debug";
79
- else result.LOG_LEVEL = context.config.mode === "production" ? "info" : "debug";
77
+ ].includes(result.LOG_LEVEL)) {
78
+ if (!result.LOG_LEVEL || String(result.LOG_LEVEL) === "silent") result.LOG_LEVEL = "error";
79
+ else if (String(result.LOG_LEVEL) === "trace") result.LOG_LEVEL = "debug";
80
+ else result.LOG_LEVEL = context.config.mode === "production" ? "info" : "debug";
81
+ }
80
82
  return result;
81
83
  }
82
84
  async function loadEnv(context, options = context.config.env) {
@@ -23,7 +23,7 @@ declare function loadEnvFromContext(context: EnvPluginContext, parsed: DotenvPar
23
23
  ERROR_URL: string | undefined;
24
24
  ORGANIZATION: string | undefined;
25
25
  PLATFORM: "browser" | "node" | "neutral";
26
- MODE: "development" | "test" | "production";
26
+ MODE: "test" | "development" | "production";
27
27
  TEST: boolean;
28
28
  DEBUG: boolean;
29
29
  STACKTRACE: boolean;
@@ -23,7 +23,7 @@ declare function loadEnvFromContext(context: EnvPluginContext, parsed: DotenvPar
23
23
  ERROR_URL: string | undefined;
24
24
  ORGANIZATION: string | undefined;
25
25
  PLATFORM: "browser" | "node" | "neutral";
26
- MODE: "development" | "test" | "production";
26
+ MODE: "test" | "development" | "production";
27
27
  TEST: boolean;
28
28
  DEBUG: boolean;
29
29
  STACKTRACE: boolean;
@@ -71,9 +71,11 @@ function loadEnvFromContext(context, parsed, workspaceConfig) {
71
71
  "warn",
72
72
  "info",
73
73
  "debug"
74
- ].includes(result.LOG_LEVEL)) if (!result.LOG_LEVEL || String(result.LOG_LEVEL) === "silent") result.LOG_LEVEL = "error";
75
- else if (String(result.LOG_LEVEL) === "trace") result.LOG_LEVEL = "debug";
76
- else result.LOG_LEVEL = context.config.mode === "production" ? "info" : "debug";
74
+ ].includes(result.LOG_LEVEL)) {
75
+ if (!result.LOG_LEVEL || String(result.LOG_LEVEL) === "silent") result.LOG_LEVEL = "error";
76
+ else if (String(result.LOG_LEVEL) === "trace") result.LOG_LEVEL = "debug";
77
+ else result.LOG_LEVEL = context.config.mode === "production" ? "info" : "debug";
78
+ }
77
79
  return result;
78
80
  }
79
81
  async function loadEnv(context, options = context.config.env) {
@@ -36,8 +36,8 @@ declare module "zod" {
36
36
  * Runtime environment the application may execute in.
37
37
  */
38
38
  declare const RuntimeSchema: z.ZodEnum<{
39
- nodejs: "nodejs";
40
39
  deno: "deno";
40
+ nodejs: "nodejs";
41
41
  workerd: "workerd";
42
42
  browser: "browser";
43
43
  }>;
@@ -55,8 +55,8 @@ type Platform = z.infer<typeof PlatformSchema>;
55
55
  * Application run mode.
56
56
  */
57
57
  declare const ModeSchema: z.ZodEnum<{
58
- development: "development";
59
58
  test: "test";
59
+ development: "development";
60
60
  production: "production";
61
61
  }>;
62
62
  type Mode = z.infer<typeof ModeSchema>;
@@ -91,8 +91,8 @@ declare const envSchema: z.ZodObject<{
91
91
  RELEASE_TAG: z.ZodString;
92
92
  ORGANIZATION: z.ZodString;
93
93
  RUNTIME: z.ZodOptional<z.ZodEnum<{
94
- nodejs: "nodejs";
95
94
  deno: "deno";
95
+ nodejs: "nodejs";
96
96
  workerd: "workerd";
97
97
  browser: "browser";
98
98
  }>>;
@@ -102,8 +102,8 @@ declare const envSchema: z.ZodObject<{
102
102
  neutral: "neutral";
103
103
  }>>;
104
104
  MODE: z.ZodDefault<z.ZodEnum<{
105
- development: "development";
106
105
  test: "test";
106
+ development: "development";
107
107
  production: "production";
108
108
  }>>;
109
109
  ENVIRONMENT: z.ZodDefault<z.ZodString>;
@@ -36,8 +36,8 @@ declare module "zod" {
36
36
  * Runtime environment the application may execute in.
37
37
  */
38
38
  declare const RuntimeSchema: z.ZodEnum<{
39
- nodejs: "nodejs";
40
39
  deno: "deno";
40
+ nodejs: "nodejs";
41
41
  workerd: "workerd";
42
42
  browser: "browser";
43
43
  }>;
@@ -55,8 +55,8 @@ type Platform = z.infer<typeof PlatformSchema>;
55
55
  * Application run mode.
56
56
  */
57
57
  declare const ModeSchema: z.ZodEnum<{
58
- development: "development";
59
58
  test: "test";
59
+ development: "development";
60
60
  production: "production";
61
61
  }>;
62
62
  type Mode = z.infer<typeof ModeSchema>;
@@ -91,8 +91,8 @@ declare const envSchema: z.ZodObject<{
91
91
  RELEASE_TAG: z.ZodString;
92
92
  ORGANIZATION: z.ZodString;
93
93
  RUNTIME: z.ZodOptional<z.ZodEnum<{
94
- nodejs: "nodejs";
95
94
  deno: "deno";
95
+ nodejs: "nodejs";
96
96
  workerd: "workerd";
97
97
  browser: "browser";
98
98
  }>>;
@@ -102,8 +102,8 @@ declare const envSchema: z.ZodObject<{
102
102
  neutral: "neutral";
103
103
  }>>;
104
104
  MODE: z.ZodDefault<z.ZodEnum<{
105
- development: "development";
106
105
  test: "test";
106
+ development: "development";
107
107
  production: "production";
108
108
  }>>;
109
109
  ENVIRONMENT: z.ZodDefault<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-env",
3
- "version": "0.16.395",
3
+ "version": "0.16.396",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
6
6
  "keywords": ["dotenv", "powerlines", "storm-software", "powerlines-plugin"],
@@ -264,15 +264,15 @@
264
264
  "@alloy-js/typescript": "^0.24.0",
265
265
  "@babel/core": "^8.0.1",
266
266
  "@babel/types": "^8.0.4",
267
- "@power-plant/alloy-js": "^0.0.72",
268
- "@power-plant/schema": "^0.0.73",
269
- "@powerlines/core": "0.48.109",
270
- "@powerlines/plugin-alloy": "0.26.284",
271
- "@powerlines/plugin-automd": "0.1.649",
272
- "@powerlines/plugin-babel": "0.13.185",
273
- "@powerlines/plugin-plugin": "0.12.600",
274
- "@powerlines/plugin-power-plant": "0.1.44",
275
- "@storm-software/config-tools": "^1.190.113",
267
+ "@power-plant/alloy-js": "^0.0.77",
268
+ "@power-plant/schema": "^0.0.78",
269
+ "@powerlines/core": "^0.48.110",
270
+ "@powerlines/plugin-alloy": "^0.26.285",
271
+ "@powerlines/plugin-automd": "^0.1.650",
272
+ "@powerlines/plugin-babel": "^0.13.186",
273
+ "@powerlines/plugin-plugin": "^0.12.601",
274
+ "@powerlines/plugin-power-plant": "^0.1.45",
275
+ "@storm-software/config-tools": "^1.190.114",
276
276
  "@stryke/capnp": "^0.12.129",
277
277
  "@stryke/convert": "^0.7.33",
278
278
  "@stryke/env": "^0.20.120",
@@ -286,10 +286,10 @@
286
286
  "automd": "^0.4.3",
287
287
  "c12": "^3.3.4",
288
288
  "defu": "^6.1.7",
289
- "powerlines": "0.47.188",
289
+ "powerlines": "^0.47.189",
290
290
  "zod": "^4.4.3"
291
291
  },
292
292
  "devDependencies": { "@types/node": "^25.9.5", "vite": "^8.2.0" },
293
293
  "publishConfig": { "access": "public" },
294
- "gitHead": "c597708da8ff235f14d8fcdda96963bced59abb7"
294
+ "gitHead": "4f019d4d8ba65510735df7f5cc5fab5e50f99860"
295
295
  }