env-runner 0.1.8 → 0.1.9
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/_chunks/runner4.mjs +3 -3
- package/package.json +1 -1
package/dist/_chunks/runner4.mjs
CHANGED
|
@@ -7,13 +7,13 @@ function warnIfVercelOidcTokenInvalid(token) {
|
|
|
7
7
|
if (_warned) return result;
|
|
8
8
|
if (result.status === "missing") {
|
|
9
9
|
_warned = true;
|
|
10
|
-
console.warn(
|
|
10
|
+
console.warn(`\x1B[90m[env-runner]\x1B[39m \x1B[33mVERCEL_OIDC_TOKEN\x1B[39m is not set. Run \x1B[36mvercel env pull\x1B[39m to pull the latest environment variables.`);
|
|
11
11
|
} else if (result.status === "expired") {
|
|
12
12
|
_warned = true;
|
|
13
|
-
console.warn(
|
|
13
|
+
console.warn(`\x1B[90m[env-runner]\x1B[39m \x1B[33mVERCEL_OIDC_TOKEN\x1B[39m expired at ${result.expiresAt.toISOString()}. Run \x1B[36mvercel env pull\x1B[39m to pull a fresh OIDC token.`);
|
|
14
14
|
} else if (result.status === "invalid") {
|
|
15
15
|
_warned = true;
|
|
16
|
-
console.warn(
|
|
16
|
+
console.warn(`\x1B[90m[env-runner]\x1B[39m \x1B[33mVERCEL_OIDC_TOKEN\x1B[39m is malformed (not a valid JWT). Run \x1B[36mvercel env pull\x1B[39m to pull a valid OIDC token.`);
|
|
17
17
|
}
|
|
18
18
|
return result;
|
|
19
19
|
}
|