Skip to content

Commit

Permalink
don't use Deno.env directly
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Mar 3, 2024
1 parent ce851bc commit 8623377
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fluentci/codecov",
"version": "0.9.1",
"version": "0.9.2",
"exports": "./mod.ts",
"importMap": "import_map.json",
"tasks": {
Expand Down
5 changes: 3 additions & 2 deletions sdk/builder.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { createGQLClient } from "./client.ts";
import { Context } from "./context.ts";
import { env } from "../deps.ts";

/**
* @hidden
Expand All @@ -10,9 +11,9 @@ export function initDefaultContext(): Context {
let ctx = new Context();

// Prefer DAGGER_SESSION_PORT if set
const daggerSessionPort = Deno.env.get("DAGGER_SESSION_PORT");
const daggerSessionPort = env.get("DAGGER_SESSION_PORT");
if (daggerSessionPort) {
const sessionToken = Deno.env.get("DAGGER_SESSION_TOKEN");
const sessionToken = env.get("DAGGER_SESSION_TOKEN");
if (!sessionToken) {
throw new Error(
"DAGGER_SESSION_TOKEN must be set when using DAGGER_SESSION_PORT"
Expand Down

0 comments on commit 8623377

Please sign in to comment.