Skip to content

Commit

Permalink
fix: check for process (#396)
Browse files Browse the repository at this point in the history
fix: check for process
  • Loading branch information
streamich committed Jul 16, 2019
2 parents af3f4e8 + 8b9b00c commit 2314dad
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 2314dad

Please sign in to comment.