Skip to content

Commit 640a0bb

Browse files
committed
evaluateExpression: update to named export
1 parent 482fb18 commit 640a0bb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

client/utils/evaluateExpression.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import evaluateExpression from './evaluateExpression';
1+
import { evaluateExpression } from './evaluateExpression';
22

33
describe('evaluateExpression', () => {
44
it('evaluates simple expressions correctly', () => {

client/utils/evaluateExpression.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function makeEvaluateExpression(evalInClosure: EvalInClosureFn) {
1111
${expr}`);
1212
}
1313

14-
function evaluateExpression(): (expr: string) => EvalResult {
14+
export function evaluateExpressionWrapper(): (expr: string) => EvalResult {
1515
return makeEvaluateExpression(
1616
(expr: string): EvalResult => {
1717
let newExpr = expr;
@@ -41,4 +41,4 @@ function evaluateExpression(): (expr: string) => EvalResult {
4141
);
4242
}
4343

44-
export default evaluateExpression();
44+
export const evaluateExpression = evaluateExpressionWrapper();

client/utils/previewEntry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import loopProtect from 'loop-protect';
22
import { Hook, Decode, Encode } from 'console-feed';
33
import StackTrace from 'stacktrace-js';
4-
import evaluateExpression from './evaluateExpression';
4+
import { evaluateExpression } from './evaluateExpression';
55

66
// should postMessage user the dispatcher? does the parent window need to
77
// be registered as a frame? or a just a listener?

0 commit comments

Comments
 (0)