chemicaljs
Advanced tools
Comparing version 2.1.1 to 2.2.0
@@ -5,2 +5,3 @@ const currentScript = document.currentScript; | ||
loaded: false, | ||
demoMode, | ||
transport: | ||
@@ -268,2 +269,6 @@ currentScript.dataset.transportStore !== undefined | ||
if (demoMode) { | ||
return "/chemical.demo.html"; | ||
} | ||
if (url.match(/^https?:\/\//)) { | ||
@@ -270,0 +275,0 @@ return await encodeService(url, config.service); |
24
index.js
@@ -58,2 +58,6 @@ import { resolve, dirname } from "node:path"; | ||
if (options.demoMode === undefined) { | ||
options.demoMode = false; | ||
} | ||
this.options = options; | ||
@@ -139,2 +143,7 @@ this.server = createServer(); | ||
chemicalMain; | ||
chemicalMain = | ||
"const demoMode = " + | ||
String(this.options.demoMode) + | ||
";\n" + | ||
chemicalMain; | ||
@@ -254,2 +263,6 @@ chemicalMain = "(async () => {\n" + chemicalMain + "\n})();"; | ||
if (options.demoMode === undefined) { | ||
options.demoMode = false; | ||
} | ||
const rh = createRammerhead(); | ||
@@ -325,2 +338,4 @@ const rammerheadScopes = [ | ||
chemicalMain; | ||
chemicalMain = | ||
"const demoMode = " + String(options.demoMode) + ";\n" + chemicalMain; | ||
@@ -457,2 +472,6 @@ chemicalMain = "(async () => {\n" + chemicalMain + "\n})();"; | ||
if (options.demoMode === undefined) { | ||
options.demoMode = false; | ||
} | ||
this.options = options; | ||
@@ -510,2 +529,7 @@ } | ||
chemicalMain; | ||
chemicalMain = | ||
"const demoMode = " + | ||
String(this.options.demoMode) + | ||
";\n" + | ||
chemicalMain; | ||
@@ -512,0 +536,0 @@ chemicalMain = "(async () => {\n" + chemicalMain + "\n})();"; |
{ | ||
"name": "chemicaljs", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"description": "Easily create your own web proxy with no experience required.", | ||
@@ -17,8 +17,8 @@ "repository": { | ||
"dependencies": { | ||
"@mercuryworkshop/bare-mux": "^2.1.2", | ||
"@mercuryworkshop/epoxy-transport": "^2.1.17", | ||
"@mercuryworkshop/libcurl-transport": "^1.3.10", | ||
"@mercuryworkshop/bare-mux": "^2.1.6", | ||
"@mercuryworkshop/epoxy-transport": "^2.1.25", | ||
"@mercuryworkshop/libcurl-transport": "^1.3.12", | ||
"@mercuryworkshop/scramjet": "^1.0.2", | ||
"@mercuryworkshop/wisp-js": "^0.3.2", | ||
"@titaniumnetwork-dev/ultraviolet": "^3.2.7", | ||
"@titaniumnetwork-dev/ultraviolet": "^3.2.10", | ||
"express": "^4.21.1", | ||
@@ -25,0 +25,0 @@ "meteorproxy": "^1.0.6-patch.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
476548
12
1245