wikipeg 6.1.3 → 6.1.4

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/HISTORY.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ## 6.1.4 (2026-06-26)
4
+ * Bug fix to boolean reference parameters
5
+ * Dependency updates.
6
+
3
7
  ## 6.1.3 (2026-06-03)
4
8
  * Add array-transformation rules to --common-lang transformation,
5
9
  which allows you to generate PHP and JavaScript parser from the same
@@ -645,12 +645,12 @@ function generateJavascript(ast, options) {
645
645
  }
646
646
  if (info.type === undefined) {
647
647
  throw new Error("Undefined parameter type");
648
+ } else if (info.isref) {
649
+ return language.refParamValue(info.name);
648
650
  } else if (info.type === 'boolean') {
649
651
  return [
650
652
  '/*', info.name, '*/',
651
653
  '(', language.boolParams, ' & 0x', (1 << info.index).toString(16), ') !== 0'].join('');
652
- } else if (info.isref) {
653
- return language.refParamValue(info.name);
654
654
  } else {
655
655
  return language.paramArgName(info.name);
656
656
  }
package/lib/peg.js CHANGED
@@ -4,7 +4,7 @@ var objects = require("./utils/objects");
4
4
 
5
5
  var PEG = {
6
6
  /* WikiPEG version (uses semantic versioning). */
7
- VERSION: "6.1.3",
7
+ VERSION: "6.1.4",
8
8
 
9
9
  GrammarError: require("./grammar-error"),
10
10
  parser: require("./parser"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wikipeg",
3
- "version": "6.1.3",
3
+ "version": "6.1.4",
4
4
  "description": "Parser generator for JavaScript and PHP",
5
5
  "license": "MIT",
6
6
  "homepage": "https://gerrit.wikimedia.org/r/plugins/gitiles/wikipeg/",