@caweb/webpack 1.3.4 → 1.3.5

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/changelog.txt CHANGED
@@ -1,3 +1,6 @@
1
+ v1.3.5
2
+ - Updated npm packages
3
+
1
4
  v1.3.4
2
5
  - Updated npm packages
3
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/webpack",
3
- "version": "1.3.4",
3
+ "version": "1.3.5",
4
4
  "description": "CAWebPublishing Webpack Configuration",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "@caweb/a11y-webpack-plugin": "^1.0.9",
39
39
  "@caweb/css-audit-webpack-plugin": "^1.0.12",
40
- "@caweb/html-webpack-plugin": "^1.5.5",
40
+ "@caweb/html-webpack-plugin": "^1.5.6",
41
41
  "@caweb/jshint-webpack-plugin": "^1.0.9"
42
42
  }
43
43
  }
@@ -1,3 +1,6 @@
1
+ v1.5.6
2
+ - Added new ifCond handlebar loader helper function
3
+
1
4
  v1.5.5
2
5
  - Refined toLower, toUpper, toTitleCase, replace helper functions
3
6
 
@@ -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
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@caweb/html-webpack-plugin",
3
- "version": "1.5.5",
3
+ "version": "1.5.6",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@caweb/html-webpack-plugin",
9
- "version": "1.5.5",
9
+ "version": "1.5.6",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@caweb/a11y-webpack-plugin": "^1.0.9",
@@ -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",