chemicaljs 1.2.1 → 1.2.3

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 +5 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -20,15 +20,15 @@ class ChemicalServer {
20
20
  options = {}
21
21
  }
22
22
 
23
- if (!options.uv) {
23
+ if (options.uv == undefined) {
24
24
  options.uv = true;
25
25
  }
26
26
 
27
- if (!options.scramjet) {
27
+ if (options.scramjet == undefined) {
28
28
  options.scramjet = true;
29
29
  }
30
30
 
31
- if (!options.rammerhead) {
31
+ if (options.rammerhead == undefined) {
32
32
  options.rammerhead = true;
33
33
  }
34
34
 
@@ -81,6 +81,8 @@ class ChemicalServer {
81
81
  chemicalMain = `const defaultService = "uv";\n\n` + chemicalMain
82
82
  console.error("Error: Chemical default option invalid.")
83
83
  }
84
+ } else {
85
+ chemicalMain = `const defaultService = "uv";\n\n` + chemicalMain;
84
86
  }
85
87
 
86
88
  chemicalMain = "const uvEnabled = " + String(options.uv) + ";\n" + chemicalMain
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chemicaljs",
3
- "version": "1.2.1",
3
+ "version": "1.2.3",
4
4
  "description": "Easily create your own web proxy with no experience required.",
5
5
  "repository": {
6
6
  "type": "git",