liquidsoap-prettier 1.5.7 → 1.5.9

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,12 +1,18 @@
1
1
  {
2
2
  "name": "liquidsoap-prettier",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "description": "Liquidsoap language prettier CLI and plugin",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
7
7
  "bin": {
8
8
  "liquidsoap-prettier": "src/cli.js"
9
9
  },
10
+ "scripts": {
11
+ "build:web": "webpack --config webpack.web.cjs",
12
+ "release": "dune build && npm run build:web && npm publish",
13
+ "dev:prepare": "node ./scripts/download-parser.js",
14
+ "liquidsoap-prettier": "node ./src/cli.js"
15
+ },
10
16
  "prettier": {
11
17
  "plugins": [
12
18
  "./src/index.js"
@@ -27,11 +33,5 @@
27
33
  "tar-fs": "^3.0.6",
28
34
  "webpack": "^5.89.0",
29
35
  "webpack-cli": "^5.1.4"
30
- },
31
- "scripts": {
32
- "build:web": "webpack --config webpack.web.cjs",
33
- "release": "dune build && npm run build:web && npm publish",
34
- "dev:prepare": "node ./scripts/download-parser.js",
35
- "liquidsoap-prettier": "node ./src/cli.js"
36
36
  }
37
- }
37
+ }
File without changes
package/src/index.js CHANGED
@@ -396,7 +396,7 @@ const print = (path, options, print) => {
396
396
  case "not":
397
397
  return group(["not", " ", print("value")]);
398
398
  case "var":
399
- return node.value;
399
+ return node.value === "_null" ? "null" : node.value;
400
400
  case "string":
401
401
  return printString(node.value);
402
402
  case "ground":
@@ -673,7 +673,7 @@ const print = (path, options, print) => {
673
673
  ...(typeof node.week === "number" ? ["" + node.week, "w"] : []),
674
674
  ...(typeof node.hours === "number" ? ["" + node.hours, "h"] : []),
675
675
  ...(typeof node.minutes === "number" ? ["" + node.minutes, "m"] : []),
676
- ...(typeof node.second === "number" ? ["" + node.seconds, "s"] : []),
676
+ ...(typeof node.seconds === "number" ? ["" + node.seconds, "s"] : []),
677
677
  ];
678
678
  case "encoder":
679
679
  return [