@caweb/webpack 2.0.4 → 2.0.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.
@@ -0,0 +1,33 @@
1
+ export default function isScheme(scheme, options ) {
2
+ let validSchemes = [
3
+ 'delta',
4
+ 'eureka',
5
+ 'mono',
6
+ 'oceanside',
7
+ 'orangecounty',
8
+ 'pasorobles',
9
+ 'sacramento',
10
+ 'santabarbara',
11
+ 'santacruz',
12
+ 'shasta',
13
+ 'sierra',
14
+ 'trinity'
15
+ ];
16
+
17
+ let answer = validSchemes.includes(scheme);
18
+
19
+ // if the function is called as a block helper
20
+ // return the answer if true and the options has a fn
21
+ if( options['fn'] && answer ){
22
+ return options.fn(this);
23
+ // if the function is called as a block helper
24
+ // return the answer if false and the options has an inverse
25
+ }else if( options['inverse'] && !answer ){
26
+ return options.inverse(this);
27
+
28
+ // if the function is called as a subexpression
29
+ // return the answer
30
+ }else{
31
+ return answer;
32
+ }
33
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caweb/webpack",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "CAWebPublishing Webpack Configuration",
5
5
  "main": "webpack.config.js",
6
6
  "files": [