chemicaljs
Advanced tools
Comparing version 1.4.8 to 1.4.9
@@ -218,7 +218,7 @@ window.chemicalLoaded = false; | ||
let wispURL = document.currentScript.getAttribute("wisp"); | ||
let transport = document.currentScript.getAttribute("transport"); | ||
let wispURL = document.currentScript.dataset.wisp; | ||
let transport = document.currentScript.dataset.transport; | ||
async function chemicalTransport(transport, wisp) { | ||
await connection.setTransport(getTransport(transport) || "/libcurl/index.mjs", [{ wisp: wisp || (location.protocol === "https:" ? "wss" : "ws") + "://" + location.host + "/wisp/" }]); | ||
async function chemicalTransport(newTransport = transport, wisp = wispURL) { | ||
await connection.setTransport(getTransport(newTransport) || "/libcurl/index.mjs", [{ wisp: wisp || (location.protocol === "https:" ? "wss" : "ws") + "://" + location.host + "/wisp/" }]); | ||
} | ||
@@ -225,0 +225,0 @@ |
@@ -21,5 +21,5 @@ { | ||
"dependencies": { | ||
"chemicaljs": "^1.4.7", | ||
"chemicaljs": "^1.4.8", | ||
"express": "^4.19.2" | ||
} | ||
} |
@@ -21,5 +21,5 @@ { | ||
"dependencies": { | ||
"chemicaljs": "^1.4.7", | ||
"chemicaljs": "^1.4.8", | ||
"express": "^4.19.2" | ||
} | ||
} |
@@ -11,3 +11,3 @@ { | ||
"dependencies": { | ||
"chemicaljs": "^1.4.7", | ||
"chemicaljs": "^1.4.8", | ||
"express": "^4.19.2", | ||
@@ -14,0 +14,0 @@ "preact": "^10.22.1" |
@@ -21,5 +21,5 @@ { | ||
"dependencies": { | ||
"chemicaljs": "^1.4.7", | ||
"chemicaljs": "^1.4.8", | ||
"express": "^4.19.2" | ||
} | ||
} |
{ | ||
"name": "chemicaljs", | ||
"version": "1.4.8", | ||
"version": "1.4.9", | ||
"description": "Easily create your own web proxy with no experience required.", | ||
@@ -18,3 +18,3 @@ "repository": { | ||
"@mercuryworkshop/scramjet": "^1.0.2", | ||
"@mercuryworkshop/wisp-js": "^0.1.0", | ||
"@mercuryworkshop/wisp-js": "^0.1.1", | ||
"@titaniumnetwork-dev/ultraviolet": "^3.2.4", | ||
@@ -21,0 +21,0 @@ "express": "^4.19.2", |
@@ -12,3 +12,3 @@ # Chemical | ||
A real word styled example can be found in [`/example-styled/`](https://github.com/chemicaljs/chemical/tree/main/examples/example-styled). | ||
A real world styled example can be found in [`/example-styled/`](https://github.com/chemicaljs/chemical/tree/main/examples/example-styled). | ||
@@ -42,2 +42,4 @@ ### Server | ||
`hostname_whitelist` overrides `hostname_blacklist` if you try to set them both. | ||
3. Use `chemical.app` which is an express app. You may need to import express for certain APIs. | ||
@@ -89,3 +91,3 @@ | ||
```html | ||
<script wisp="wss://wisp.mercurywork.shop/" src="/chemical.js"></script> | ||
<script data-wisp="wss://wisp.mercurywork.shop/" src="/chemical.js"></script> | ||
``` | ||
@@ -96,3 +98,3 @@ | ||
```html | ||
<script transport="epoxy" src="/chemical.js"></script> | ||
<script data-transport="epoxy" src="/chemical.js"></script> | ||
``` | ||
@@ -182,4 +184,2 @@ | ||
`hostname_whitelist` overrides `hostname_blacklist` if you try to set them both. | ||
## Components | ||
@@ -186,0 +186,0 @@ Setup a proxy site with easy HTML components. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1093360