liquidsoap-prettier 1.5.6 → 1.5.7

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liquidsoap-prettier",
3
- "version": "1.5.6",
3
+ "version": "1.5.7",
4
4
  "description": "Liquidsoap language prettier CLI and plugin",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
package/src/index.js CHANGED
@@ -325,7 +325,7 @@ const print = (path, options, print) => {
325
325
  case "source":
326
326
  return [node.base, print("value")];
327
327
  default:
328
- throw `Uknown node: ${JSON.stringify(node, null, 2)}`;
328
+ throw `Unknown node: ${JSON.stringify(node, null, 2)}`;
329
329
  }
330
330
  };
331
331
 
@@ -734,8 +734,10 @@ const print = (path, options, print) => {
734
734
  line,
735
735
  "end",
736
736
  ]);
737
+ case "null":
738
+ return "null";
737
739
  default:
738
- throw `Uknown node: ${JSON.stringify(node, null, 2)}`;
740
+ throw `Unknown node: ${JSON.stringify(node, null, 2)}`;
739
741
  }
740
742
  };
741
743