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 33import Hook from "require-in-the-middle" ;
44import { Headers , ResponseInit } from "node-fetch" ;
55import mixin from "merge-descriptors" ;
6- import { createExecutionContext , getExecutionContext } from "../../src/context" ;
6+ import { getExecutionContext } from "../../src/context" ;
77import { Readable } from "stream" ;
88import { ProcessDep , stringToBinary } from "../../src/util" ;
99import { putMocks } from "../../mock/utils" ;
@@ -39,7 +39,7 @@ export function wrappedNodeFetch(fetch: any) {
3939 options : any
4040 ) {
4141 if ( process . env . KEPLOY_MODE == MODE_OFF ) {
42- createExecutionContext ( { mode : MODE_OFF } ) ;
42+ return fetchFunc . apply ( this , [ url , options ] ) ;
4343 }
4444 if (
4545 getExecutionContext ( ) == undefined ||
@@ -147,8 +147,6 @@ export function wrappedNodeFetch(fetch: any) {
147147 } ) ;
148148 resp = new fetch . Response ( Readable . from ( buf ) , rinit ) ;
149149 break ;
150- case "off" :
151- return fetchFunc . apply ( this , [ url , options ] ) ;
152150 default :
153151 console . debug (
154152 "mode is not valid. Please set valid keploy mode using env variables"
You can’t perform that action at this time.
0 commit comments