Skip to content

Commit

Permalink
Avoid using HJSON in booting code
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthinking committed Sep 14, 2024
1 parent 60cd19d commit b7ec9ab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/core/src/computers/Signal.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { sleep } from '../utils/sleep';
import { multiline } from '../utils/multiline';
import { hjson, json_, num } from '../Param';
import Hjson from '@data-story/hjson';
import { hjson, num } from '../Param';
import { jsFunctionEvaluation } from '../Param/evaluations/jsFunctionEvaluation';
import { jsExpressionEvaluation } from '../Param/evaluations/jsExpressionEvaluation';
import { jsonEvaluation } from '../Param/evaluations/jsonEvaluation';
Expand Down Expand Up @@ -34,7 +32,7 @@ export const Signal: Computer = {
name: 'expression',
label: 'Template expression',
help: 'Use this field to customize the signal. ${i} is available as a variable.',
value: Hjson.stringify({id: '${i}'}),
value: JSON.stringify({id: '${i}'}),
evaluations: [
{ ...hjsonEvaluation, selected: true },
jsonEvaluation,
Expand Down

0 comments on commit b7ec9ab

Please sign in to comment.