chemicaljs 1.7.0 → 1.7.1
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 +8 -0
- package/client/chemical.js +1 -1
- package/examples/example/package-lock.json +4 -4
- package/examples/example/package.json +1 -1
- package/examples/example-build/package-lock.json +4 -4
- package/examples/example-build/package.json +1 -1
- package/examples/example-components/package-lock.json +4 -4
- package/examples/example-components/package.json +1 -1
- package/examples/example-styled/package-lock.json +4 -4
- package/examples/example-styled/package.json +1 -1
- package/examples/example-vite/package-lock.json +4 -4
- package/examples/example-vite/package.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -230,6 +230,14 @@ Below is a simple example of a simple input that redirects to the encoded URL wh
|
|
|
230
230
|
</script>
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
+
9. Fetch websites through Wisp using `chemical.fetch`. This works the same as the fetch API.
|
|
234
|
+
|
|
235
|
+
10. Get search suggestions via DuckDuckGo using `chemical.getSuggestions`
|
|
236
|
+
|
|
237
|
+
```js
|
|
238
|
+
await chemical.getSuggestions("google")
|
|
239
|
+
```
|
|
240
|
+
|
|
233
241
|
## Vite Plugin
|
|
234
242
|
|
|
235
243
|
1. Create a new vite app and open `vite.config.js` or `vite.config.ts`
|
package/client/chemical.js
CHANGED
|
@@ -197,7 +197,7 @@ async function encodeService(url, service) {
|
|
|
197
197
|
case "scramjet":
|
|
198
198
|
if (scramjetEnabled) {
|
|
199
199
|
return (
|
|
200
|
-
|
|
200
|
+
window.location.origin +
|
|
201
201
|
window.__scramjet$config.prefix +
|
|
202
202
|
window.__scramjet$config.codec.encode(url)
|
|
203
203
|
);
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"chemicaljs": "^1.
|
|
12
|
+
"chemicaljs": "^1.7.0",
|
|
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.
|
|
1167
|
-
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.
|
|
1168
|
-
"integrity": "sha512-
|
|
1166
|
+
"version": "1.7.0",
|
|
1167
|
+
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.7.0.tgz",
|
|
1168
|
+
"integrity": "sha512-iIbcitiDr9ouLaa6uyM+FnPXMKxmfopXHazIoDE401/b2OJBg3RhFEEMhpUxCdB5zXX9w5snVEeX5nekMlZO+A==",
|
|
1169
1169
|
"dependencies": {
|
|
1170
1170
|
"@mercuryworkshop/bare-mux": "^2.0.4",
|
|
1171
1171
|
"@mercuryworkshop/epoxy-transport": "^2.1.8",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"chemicaljs": "^1.
|
|
12
|
+
"chemicaljs": "^1.7.0",
|
|
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.
|
|
1167
|
-
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.
|
|
1168
|
-
"integrity": "sha512-
|
|
1166
|
+
"version": "1.7.0",
|
|
1167
|
+
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.7.0.tgz",
|
|
1168
|
+
"integrity": "sha512-iIbcitiDr9ouLaa6uyM+FnPXMKxmfopXHazIoDE401/b2OJBg3RhFEEMhpUxCdB5zXX9w5snVEeX5nekMlZO+A==",
|
|
1169
1169
|
"dependencies": {
|
|
1170
1170
|
"@mercuryworkshop/bare-mux": "^2.0.4",
|
|
1171
1171
|
"@mercuryworkshop/epoxy-transport": "^2.1.8",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"chemicaljs": "^1.
|
|
12
|
+
"chemicaljs": "^1.7.0",
|
|
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.
|
|
1167
|
-
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.
|
|
1168
|
-
"integrity": "sha512-
|
|
1166
|
+
"version": "1.7.0",
|
|
1167
|
+
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.7.0.tgz",
|
|
1168
|
+
"integrity": "sha512-iIbcitiDr9ouLaa6uyM+FnPXMKxmfopXHazIoDE401/b2OJBg3RhFEEMhpUxCdB5zXX9w5snVEeX5nekMlZO+A==",
|
|
1169
1169
|
"dependencies": {
|
|
1170
1170
|
"@mercuryworkshop/bare-mux": "^2.0.4",
|
|
1171
1171
|
"@mercuryworkshop/epoxy-transport": "^2.1.8",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"chemicaljs": "^1.
|
|
12
|
+
"chemicaljs": "^1.7.0",
|
|
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.
|
|
1167
|
-
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.
|
|
1168
|
-
"integrity": "sha512-
|
|
1166
|
+
"version": "1.7.0",
|
|
1167
|
+
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.7.0.tgz",
|
|
1168
|
+
"integrity": "sha512-iIbcitiDr9ouLaa6uyM+FnPXMKxmfopXHazIoDE401/b2OJBg3RhFEEMhpUxCdB5zXX9w5snVEeX5nekMlZO+A==",
|
|
1169
1169
|
"dependencies": {
|
|
1170
1170
|
"@mercuryworkshop/bare-mux": "^2.0.4",
|
|
1171
1171
|
"@mercuryworkshop/epoxy-transport": "^2.1.8",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"": {
|
|
7
7
|
"name": "chemical-example-vite",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"chemicaljs": "^1.
|
|
9
|
+
"chemicaljs": "^1.7.0",
|
|
10
10
|
"express": "^4.19.2",
|
|
11
11
|
"preact": "^10.23.2"
|
|
12
12
|
},
|
|
@@ -1726,9 +1726,9 @@
|
|
|
1726
1726
|
}
|
|
1727
1727
|
},
|
|
1728
1728
|
"node_modules/chemicaljs": {
|
|
1729
|
-
"version": "1.
|
|
1730
|
-
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.
|
|
1731
|
-
"integrity": "sha512-
|
|
1729
|
+
"version": "1.7.0",
|
|
1730
|
+
"resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.7.0.tgz",
|
|
1731
|
+
"integrity": "sha512-iIbcitiDr9ouLaa6uyM+FnPXMKxmfopXHazIoDE401/b2OJBg3RhFEEMhpUxCdB5zXX9w5snVEeX5nekMlZO+A==",
|
|
1732
1732
|
"dependencies": {
|
|
1733
1733
|
"@mercuryworkshop/bare-mux": "^2.0.4",
|
|
1734
1734
|
"@mercuryworkshop/epoxy-transport": "^2.1.8",
|