Skip to content

Commit 21ec9ec

Browse files
refactor(overmind): point to correct function
1 parent cee530b commit 21ec9ec

File tree

1 file changed

+10
-10
lines changed
  • packages/node_modules/overmind/src

1 file changed

+10
-10
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ import {
4646
getActionPaths,
4747
} from './utils'
4848
import {
49-
startDebugOperator,
50-
stopDebugOperator,
49+
operatorStarted,
50+
operatorStopped,
5151
createContext,
5252
createNextPath,
5353
createMutationOperator,
@@ -1046,7 +1046,7 @@ export function forEach<
10461046
evaluatingCount--
10471047

10481048
if (!evaluatingCount) {
1049-
stopDebugOperator(context, context.value)
1049+
operatorStopped(context, context.value)
10501050
next(
10511051
null,
10521052
createContext(
@@ -1060,7 +1060,7 @@ export function forEach<
10601060
)
10611061
}
10621062
}
1063-
startDebugOperator('forEach', '', context)
1063+
operatorStarted('forEach', '', context)
10641064

10651065
if (array.length) {
10661066
array.forEach((value, index) => {
@@ -1075,7 +1075,7 @@ export function forEach<
10751075
forEachItemOperator(null, lastContext, nextWithPath)
10761076
})
10771077
} else {
1078-
stopDebugOperator(context, context.value)
1078+
operatorStopped(context, context.value)
10791079
next(null, createContext(context, context.value))
10801080
}
10811081
}
@@ -1105,7 +1105,7 @@ export function parallel<Input, ThisConfig extends IConfiguration = Config>(
11051105
evaluatingCount--
11061106

11071107
if (!evaluatingCount) {
1108-
stopDebugOperator(context, context.value)
1108+
operatorStopped(context, context.value)
11091109
next(
11101110
null,
11111111
createContext(
@@ -1119,7 +1119,7 @@ export function parallel<Input, ThisConfig extends IConfiguration = Config>(
11191119
)
11201120
}
11211121
}
1122-
startDebugOperator('parallel', '', context)
1122+
operatorStarted('parallel', '', context)
11231123

11241124
operators.forEach((operator, index) => {
11251125
lastContext = createContext(
@@ -1244,7 +1244,7 @@ export function tryCatch<
12441244
if (err) next(err, context)
12451245
else {
12461246
const evaluateCatch = (err, catchContext) => {
1247-
stopDebugOperator(context, context.value)
1247+
operatorStopped(context, context.value)
12481248
next(err, createContext(catchContext, context.value))
12491249
}
12501250
const evaluateTry = (err, tryContext) => {
@@ -1259,12 +1259,12 @@ export function tryCatch<
12591259
// @ts-ignore
12601260
paths.catch(null, newContext, nextWithPath)
12611261
} else {
1262-
stopDebugOperator(context, context.value)
1262+
operatorStopped(context, context.value)
12631263
next(null, createContext(tryContext, context.value))
12641264
}
12651265
}
12661266

1267-
startDebugOperator('tryCatch', '', context)
1267+
operatorStarted('tryCatch', '', context)
12681268

12691269
const newContext = createContext(
12701270
context,

0 commit comments

Comments
 (0)