@caweb/html-webpack-plugin 1.5.5 → 1.5.6

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.
@@ -0,0 +1,25 @@
1
+ export default function ifCond(v1, operator, v2, options){
2
+ switch(operator){
3
+ case '&&':
4
+ return ( v1 && v2 ) ? options.fn(this) : options.inverse(this);
5
+ case '||':
6
+ return ( v1 || v2 ) ? options.fn(this) : options.inverse(this);
7
+ case '==':
8
+ return ( v1 == v2 ) ? options.fn(this) : options.inverse(this);
9
+ case '===':
10
+ return ( v1 === v2 ) ? options.fn(this) : options.inverse(this);
11
+ case '!=':
12
+ return ( v1 != v2 ) ? options.fn(this) : options.inverse(this);
13
+ case '!==':
14
+ return ( v1 !== v2 ) ? options.fn(this) : options.inverse(this);
15
+ case '<':
16
+ return ( v1 < v2 ) ? options.fn(this) : options.inverse(this);
17
+ case '<=':
18
+ return ( v1 <= v2 ) ? options.fn(this) : options.inverse(this);
19
+ case '>':
20
+ return ( v1 > v2 ) ? options.fn(this) : options.inverse(this);
21
+ case '>=':
22
+ return ( v1 >= v2 ) ? options.fn(this) : options.inverse(this);
23
+
24
+ }
25
+ }
@@ -1,4 +1,4 @@
1
- export default function replace(value, search, replace){
1
+ export default function replace(value, search, replace, options){
2
2
  let response = '';
3
3
 
4
4
  // if parameter is passed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/html-webpack-plugin",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "description": "CAWebPublishing Sample Page and Configurations",
5
5
  "main": "index.js",
6
6
  "type": "module",