chemicaljs 1.6.5 → 1.6.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.
package/README.md CHANGED
@@ -43,7 +43,7 @@ const chemical = new ChemicalServer({
43
43
 
44
44
  `hostname_whitelist` overrides `hostname_blacklist` if you try to set them both.
45
45
 
46
- 3. Use `chemical.app` which is an express app. `chemical.use` is shortand for `chemical.app.use`. You may need to import express for certain APIs.
46
+ 3. Use `chemical.app` which is an express app. `chemical.use` is shortand for `chemical.app.use` (same with `chemical.get`). You may need to import express for certain APIs.
47
47
 
48
48
  ```js
49
49
  chemical.get("/", function(req, res){
@@ -330,4 +330,4 @@ Set the second parameter of `chemicalAction` to the `id` of the iframe.
330
330
  - Proxy switcher/searchengine switcher/cloak switcher
331
331
 
332
332
  ## License
333
- Chemical Uses the MIT license.
333
+ Chemical uses the AGPL 3.0 license.
@@ -9,7 +9,7 @@
9
9
  "version": "1.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "chemicaljs": "^1.6.4",
12
+ "chemicaljs": "^1.6.5",
13
13
  "express": "^4.19.2"
14
14
  }
15
15
  },
@@ -1163,9 +1163,9 @@
1163
1163
  }
1164
1164
  },
1165
1165
  "node_modules/chemicaljs": {
1166
- "version": "1.6.4",
1167
- "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.6.4.tgz",
1168
- "integrity": "sha512-00Zr1+6tPrSFS6GgRHnMRjgeRoJN1a8tM+0nho3r3TEhuamAdKAK5lY2nUUTu6uvaeppzPNPsj42idXvxwRSCg==",
1166
+ "version": "1.6.5",
1167
+ "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.6.5.tgz",
1168
+ "integrity": "sha512-YlVTfkdN1D8PoCI/YTgJpyKIZsaZEI/0dQEWZ3J1fWxdSpWt1M8VomeV56xRgMp6QwJyaK/Nv85XA8+djzl0Cg==",
1169
1169
  "dependencies": {
1170
1170
  "@mercuryworkshop/bare-mux": "^2.0.4",
1171
1171
  "@mercuryworkshop/epoxy-transport": "^2.1.5",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "homepage": "https://github.com/chemicaljs/chemical#readme",
20
20
  "dependencies": {
21
- "chemicaljs": "^1.6.4",
21
+ "chemicaljs": "^1.6.5",
22
22
  "express": "^4.19.2"
23
23
  }
24
24
  }
@@ -9,7 +9,7 @@
9
9
  "version": "1.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "chemicaljs": "^1.6.4",
12
+ "chemicaljs": "^1.6.5",
13
13
  "express": "^4.19.2"
14
14
  }
15
15
  },
@@ -1163,9 +1163,9 @@
1163
1163
  }
1164
1164
  },
1165
1165
  "node_modules/chemicaljs": {
1166
- "version": "1.6.4",
1167
- "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.6.4.tgz",
1168
- "integrity": "sha512-00Zr1+6tPrSFS6GgRHnMRjgeRoJN1a8tM+0nho3r3TEhuamAdKAK5lY2nUUTu6uvaeppzPNPsj42idXvxwRSCg==",
1166
+ "version": "1.6.5",
1167
+ "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.6.5.tgz",
1168
+ "integrity": "sha512-YlVTfkdN1D8PoCI/YTgJpyKIZsaZEI/0dQEWZ3J1fWxdSpWt1M8VomeV56xRgMp6QwJyaK/Nv85XA8+djzl0Cg==",
1169
1169
  "dependencies": {
1170
1170
  "@mercuryworkshop/bare-mux": "^2.0.4",
1171
1171
  "@mercuryworkshop/epoxy-transport": "^2.1.5",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "homepage": "https://github.com/chemicaljs/chemical#readme",
21
21
  "dependencies": {
22
- "chemicaljs": "^1.6.4",
22
+ "chemicaljs": "^1.6.5",
23
23
  "express": "^4.19.2"
24
24
  }
25
25
  }
@@ -9,7 +9,7 @@
9
9
  "version": "1.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "chemicaljs": "^1.6.4",
12
+ "chemicaljs": "^1.6.5",
13
13
  "express": "^4.19.2"
14
14
  }
15
15
  },
@@ -1163,9 +1163,9 @@
1163
1163
  }
1164
1164
  },
1165
1165
  "node_modules/chemicaljs": {
1166
- "version": "1.6.4",
1167
- "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.6.4.tgz",
1168
- "integrity": "sha512-00Zr1+6tPrSFS6GgRHnMRjgeRoJN1a8tM+0nho3r3TEhuamAdKAK5lY2nUUTu6uvaeppzPNPsj42idXvxwRSCg==",
1166
+ "version": "1.6.5",
1167
+ "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.6.5.tgz",
1168
+ "integrity": "sha512-YlVTfkdN1D8PoCI/YTgJpyKIZsaZEI/0dQEWZ3J1fWxdSpWt1M8VomeV56xRgMp6QwJyaK/Nv85XA8+djzl0Cg==",
1169
1169
  "dependencies": {
1170
1170
  "@mercuryworkshop/bare-mux": "^2.0.4",
1171
1171
  "@mercuryworkshop/epoxy-transport": "^2.1.5",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "homepage": "https://github.com/chemicaljs/chemical#readme",
20
20
  "dependencies": {
21
- "chemicaljs": "^1.6.4",
21
+ "chemicaljs": "^1.6.5",
22
22
  "express": "^4.19.2"
23
23
  }
24
24
  }
@@ -9,7 +9,7 @@
9
9
  "version": "1.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "chemicaljs": "^1.6.4",
12
+ "chemicaljs": "^1.6.5",
13
13
  "express": "^4.19.2"
14
14
  }
15
15
  },
@@ -1163,9 +1163,9 @@
1163
1163
  }
1164
1164
  },
1165
1165
  "node_modules/chemicaljs": {
1166
- "version": "1.6.4",
1167
- "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.6.4.tgz",
1168
- "integrity": "sha512-00Zr1+6tPrSFS6GgRHnMRjgeRoJN1a8tM+0nho3r3TEhuamAdKAK5lY2nUUTu6uvaeppzPNPsj42idXvxwRSCg==",
1166
+ "version": "1.6.5",
1167
+ "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.6.5.tgz",
1168
+ "integrity": "sha512-YlVTfkdN1D8PoCI/YTgJpyKIZsaZEI/0dQEWZ3J1fWxdSpWt1M8VomeV56xRgMp6QwJyaK/Nv85XA8+djzl0Cg==",
1169
1169
  "dependencies": {
1170
1170
  "@mercuryworkshop/bare-mux": "^2.0.4",
1171
1171
  "@mercuryworkshop/epoxy-transport": "^2.1.5",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "homepage": "https://github.com/chemicaljs/chemical#readme",
20
20
  "dependencies": {
21
- "chemicaljs": "^1.6.4",
21
+ "chemicaljs": "^1.6.5",
22
22
  "express": "^4.19.2"
23
23
  }
24
24
  }
@@ -6,7 +6,7 @@
6
6
  "": {
7
7
  "name": "chemical-example-vite",
8
8
  "dependencies": {
9
- "chemicaljs": "^1.6.4",
9
+ "chemicaljs": "^1.6.5",
10
10
  "express": "^4.19.2",
11
11
  "preact": "^10.23.1"
12
12
  },
@@ -1726,9 +1726,9 @@
1726
1726
  }
1727
1727
  },
1728
1728
  "node_modules/chemicaljs": {
1729
- "version": "1.6.4",
1730
- "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.6.4.tgz",
1731
- "integrity": "sha512-00Zr1+6tPrSFS6GgRHnMRjgeRoJN1a8tM+0nho3r3TEhuamAdKAK5lY2nUUTu6uvaeppzPNPsj42idXvxwRSCg==",
1729
+ "version": "1.6.5",
1730
+ "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.6.5.tgz",
1731
+ "integrity": "sha512-YlVTfkdN1D8PoCI/YTgJpyKIZsaZEI/0dQEWZ3J1fWxdSpWt1M8VomeV56xRgMp6QwJyaK/Nv85XA8+djzl0Cg==",
1732
1732
  "dependencies": {
1733
1733
  "@mercuryworkshop/bare-mux": "^2.0.4",
1734
1734
  "@mercuryworkshop/epoxy-transport": "^2.1.5",
@@ -8,7 +8,7 @@
8
8
  "build": "vite build"
9
9
  },
10
10
  "dependencies": {
11
- "chemicaljs": "^1.6.4",
11
+ "chemicaljs": "^1.6.5",
12
12
  "express": "^4.19.2",
13
13
  "preact": "^10.23.1"
14
14
  },
package/index.js CHANGED
@@ -42,6 +42,7 @@ class ChemicalServer {
42
42
 
43
43
  this.app = express();
44
44
  this.use = this.app.use.bind(this.app);
45
+ this.get = this.app.get.bind(this.app);
45
46
  this.errorFunctions = [];
46
47
 
47
48
  this.error = (newErrorFunction) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chemicaljs",
3
- "version": "1.6.5",
3
+ "version": "1.6.6",
4
4
  "description": "Easily create your own web proxy with no experience required.",
5
5
  "repository": {
6
6
  "type": "git",