@engine9-io/input-tools 1.6.3 → 1.6.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.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -49,6 +49,8 @@ handlebars.registerHelper('json', (d) => JSON.stringify(d));
49
49
 
50
50
  handlebars.registerHelper('percent', (a, b) => `${((100 * a) / b).toFixed(2)}%`);
51
51
 
52
+ handlebars.registerHelper('or', (a, b, c) => a || b || c);
53
+
52
54
  function isValidDate(d) {
53
55
  // we WANT to use isNaN, not the Number.isNaN -- we're checking the date type
54
56
  // eslint-disable-next-line no-restricted-globals
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@engine9-io/input-tools",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "description": "Tools for dealing with Engine9 inputs",
5
5
  "main": "index.js",
6
6
  "scripts": {