File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 3
3
import Hook from "require-in-the-middle" ;
4
4
import { Headers , ResponseInit } from "node-fetch" ;
5
5
import mixin from "merge-descriptors" ;
6
- import { createExecutionContext , getExecutionContext } from "../../src/context" ;
6
+ import { getExecutionContext } from "../../src/context" ;
7
7
import { Readable } from "stream" ;
8
8
import { ProcessDep , stringToBinary } from "../../src/util" ;
9
9
import { putMocks } from "../../mock/utils" ;
@@ -39,7 +39,7 @@ export function wrappedNodeFetch(fetch: any) {
39
39
options : any
40
40
) {
41
41
if ( process . env . KEPLOY_MODE == MODE_OFF ) {
42
- createExecutionContext ( { mode : MODE_OFF } ) ;
42
+ return fetchFunc . apply ( this , [ url , options ] ) ;
43
43
}
44
44
if (
45
45
getExecutionContext ( ) == undefined ||
@@ -147,8 +147,6 @@ export function wrappedNodeFetch(fetch: any) {
147
147
} ) ;
148
148
resp = new fetch . Response ( Readable . from ( buf ) , rinit ) ;
149
149
break ;
150
- case "off" :
151
- return fetchFunc . apply ( this , [ url , options ] ) ;
152
150
default :
153
151
console . debug (
154
152
"mode is not valid. Please set valid keploy mode using env variables"
You can’t perform that action at this time.
0 commit comments