From 374c19cfdc051ca81c5a1ce12ca733c2e2a9ec93 Mon Sep 17 00:00:00 2001 From: Eemeli Aro Date: Mon, 30 Dec 2024 16:16:06 +0200 Subject: [PATCH] style: Really use explicit imports for process.env and Buffer --- src/compose/composer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compose/composer.ts b/src/compose/composer.ts index 3fe9248a..3b043ac8 100644 --- a/src/compose/composer.ts +++ b/src/compose/composer.ts @@ -1,3 +1,4 @@ +import { env } from 'node:process' import { Directives } from '../doc/directives.ts' import { Document } from '../doc/Document.ts' import type { ErrorCode } from '../errors.ts' @@ -166,7 +167,7 @@ export class Composer< *next( token: Token ): Generator, void, unknown> { - if (process.env.LOG_STREAM) console.dir(token, { depth: null }) + if (env.LOG_STREAM) console.dir(token, { depth: null }) switch (token.type) { case 'directive': this.directives.add(token.source, (offset, message, warning) => {