Skip to content

Commit 973d67e

Browse files
authored
Merge pull request #33 from tmcw/allow-env-list
feat: Support a list of environment variables to allow
2 parents 4b41574 + 5af2bfb commit 973d67e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DenoWorker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export interface DenoWorkerOptions {
121121
* Whether to allow reading environment variables.
122122
* Defaults to false.
123123
*/
124-
allowEnv?: boolean;
124+
allowEnv?: boolean | string[];
125125

126126
/**
127127
* Whether to allow running Deno plugins.
@@ -133,7 +133,7 @@ export interface DenoWorkerOptions {
133133
* Whether to allow running subprocesses.
134134
* Defaults to false.
135135
*/
136-
allowRun?: boolean;
136+
allowRun?: boolean | string[];
137137

138138
/**
139139
* Whether to allow high resolution time measurement.

0 commit comments

Comments
 (0)