liquidsoap-prettier 1.8.0 → 1.8.2

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,18 +1,12 @@
1
1
  {
2
2
  "name": "liquidsoap-prettier",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
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
- },
16
10
  "prettier": {
17
11
  "plugins": [
18
12
  "./src/index.js"
@@ -34,5 +28,11 @@
34
28
  "tar-fs": "^3.0.6",
35
29
  "webpack": "^5.89.0",
36
30
  "webpack-cli": "^5.1.4"
31
+ },
32
+ "scripts": {
33
+ "build:web": "webpack --config webpack.web.cjs",
34
+ "release": "dune build && npm run build:web && npm publish",
35
+ "dev:prepare": "node ./scripts/download-parser.js",
36
+ "liquidsoap-prettier": "node ./src/cli.js"
37
37
  }
38
- }
38
+ }
File without changes
package/src/index.js CHANGED
@@ -713,6 +713,7 @@ export const printers = {
713
713
  if (["if_def", "if_version", "if_encoder"].includes(node.type))
714
714
  return [node.then_block, ...(node.else_block ? [node.else_block] : [])];
715
715
  if (node.type === "ifdef_block") return node.body;
716
+ if (node.type === "app") return [node.op, ...node.args];
716
717
  return null;
717
718
  },
718
719
  },