Skip to content

Commit

Permalink
fix: check for process
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Sundberg committed Jun 15, 2019
1 parent 8f88a71 commit 8b9b00c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/process.ts
Expand Up @@ -12,7 +12,8 @@ export interface IProcess {
};
}

export function createProcess(p: IProcess = process): IProcess {
export function createProcess(): IProcess {
let p: IProcess = typeof process !== 'undefined' && process;
if (!p) {
try {
p = require('process');
Expand Down

0 comments on commit 8b9b00c

Please sign in to comment.