@graffiticode/basis 1.5.9 → 1.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/compiler.js +1 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@graffiticode/basis",
3
3
  "type": "module",
4
- "version": "1.5.9",
4
+ "version": "1.5.10",
5
5
  "description": "The basis library for creating Graffiticode languages",
6
6
  "main": "index.js",
7
7
  "scripts": {
package/src/compiler.js CHANGED
@@ -698,7 +698,7 @@ export class Transformer extends Visitor {
698
698
  this.visit(node.elts[0], options, (e0, v0) => {
699
699
  const e0Node = this.node(node.elts[0]);
700
700
  const expr = (
701
- e0Node.tag === 'NUM' ||
701
+ e0Node.tag === 'BOOL' ||
702
702
  e0Node.tag === 'NUM'
703
703
  ) && e0Node || {
704
704
  tag: 'STR', elts: [`${v0}`]