chemicaljs 1.3.1 → 1.3.2

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
@@ -141,14 +141,14 @@ Below is a simple example of a simple input that redirects to the encoded URL wh
141
141
 
142
142
  1. Create a new vite app and open `vite.config.js` or `vite.config.ts`
143
143
 
144
- 2. Import `ChemicalPluginVite` and add it to plugins.
144
+ 2. Import `ChemicalVitePlugin` and add it to plugins.
145
145
 
146
146
  ```js
147
147
  import { defineConfig } from "vite"
148
- import { ChemicalPluginVite } from "chemicaljs"
148
+ import { ChemicalVitePlugin } from "chemicaljs"
149
149
 
150
150
  export default defineConfig({
151
- plugins: [/*Other plugins*/ChemicalPluginVite()],
151
+ plugins: [/*Other plugins*/ChemicalVitePlugin()],
152
152
  })
153
153
  ```
154
154
 
@@ -157,7 +157,7 @@ You can pass options to just like on the main server.
157
157
  ```js
158
158
  export default defineConfig({
159
159
  plugins: [
160
- ChemicalPluginVite({
160
+ ChemicalVitePlugin({
161
161
  default: "rammerhead",
162
162
  uv: true,
163
163
  scramjet: false,
package/example/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { ChemicalServer } from "../index.js";
1
+ import { ChemicalServer } from "chemicaljs";
2
2
  import express from "express";
3
3
 
4
4
  const chemical = new ChemicalServer();
@@ -9,7 +9,7 @@
9
9
  "version": "1.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "chemicaljs": "^1.3.0",
12
+ "chemicaljs": "^1.3.1",
13
13
  "express": "^4.19.2"
14
14
  }
15
15
  },
@@ -425,6 +425,18 @@
425
425
  "rollup-plugin-typescript2": "^0.36.0"
426
426
  }
427
427
  },
428
+ "node_modules/@mercuryworkshop/libcurl-transport": {
429
+ "version": "1.3.6",
430
+ "resolved": "https://registry.npmjs.org/@mercuryworkshop/libcurl-transport/-/libcurl-transport-1.3.6.tgz",
431
+ "integrity": "sha512-K4/TSfHlkjuzY6j0XXFmIbG8m3tpMoTxLga46fhmeuX8k3EJR/FVbW8JTXOD34Iofu0vCZuuY8n/ywNCcB6XjA==",
432
+ "dependencies": {
433
+ "esbuild-plugin-umd-wrapper": "^2.0.0",
434
+ "libcurl.js": "^0.6.10",
435
+ "rollup": "^4.12.0",
436
+ "rollup-plugin-node-resolve": "^5.2.0",
437
+ "rollup-plugin-typescript2": "^0.36.0"
438
+ }
439
+ },
428
440
  "node_modules/@mercuryworkshop/scramjet": {
429
441
  "version": "1.0.2",
430
442
  "resolved": "https://registry.npmjs.org/@mercuryworkshop/scramjet/-/scramjet-1.0.2.tgz",
@@ -692,9 +704,9 @@
692
704
  ]
693
705
  },
694
706
  "node_modules/@titaniumnetwork-dev/ultraviolet": {
695
- "version": "3.2.1",
696
- "resolved": "https://registry.npmjs.org/@titaniumnetwork-dev/ultraviolet/-/ultraviolet-3.2.1.tgz",
697
- "integrity": "sha512-J8WsR0LzZp9jFu9ghEpczRpzK9dzdlB5/DjvsCvcD1zJSP17DC3+pVhQaGvLCBqHw+KS06srhFLJMkZqg8I51A=="
707
+ "version": "3.2.2",
708
+ "resolved": "https://registry.npmjs.org/@titaniumnetwork-dev/ultraviolet/-/ultraviolet-3.2.2.tgz",
709
+ "integrity": "sha512-W5QMiSkG46JudHJRnyMxuXQXyCQHp+K3gsb0ZH+GM1jaufVawkRuh//37M0EYoI8xIiYGYT4rsRX1bKrHR937Q=="
698
710
  },
699
711
  "node_modules/@tootallnate/once": {
700
712
  "version": "1.1.2",
@@ -1146,14 +1158,15 @@
1146
1158
  }
1147
1159
  },
1148
1160
  "node_modules/chemicaljs": {
1149
- "version": "1.3.0",
1150
- "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.3.0.tgz",
1151
- "integrity": "sha512-WJf2OA33QuFxhqRJCECk8lh8VWzURVc2CqIPfkAYBBIY/6XO98xvEbsxjkrQoxGegz7ilC7BqvQkV3h2ASIjQQ==",
1161
+ "version": "1.3.1",
1162
+ "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.3.1.tgz",
1163
+ "integrity": "sha512-F0c930sI2hTzvLrbSxtVGonCFsATFlXEZkFo74y+ZUVFAF3TaYGRIi0d2tPa0ZZGrJeJlbx43JASRIMGLSTH6w==",
1152
1164
  "dependencies": {
1153
1165
  "@mercuryworkshop/bare-mux": "^2.0.1",
1154
1166
  "@mercuryworkshop/epoxy-transport": "^2.1.3",
1167
+ "@mercuryworkshop/libcurl-transport": "^1.3.6",
1155
1168
  "@mercuryworkshop/scramjet": "^1.0.2",
1156
- "@titaniumnetwork-dev/ultraviolet": "^3.2.1",
1169
+ "@titaniumnetwork-dev/ultraviolet": "^3.2.2",
1157
1170
  "express": "^4.19.2",
1158
1171
  "rammerhead": "https://github.com/chemicaljs/chemical/raw/main/rammerhead.tgz",
1159
1172
  "wisp-server-node": "^1.1.0"
@@ -2181,6 +2194,11 @@
2181
2194
  "sqlite3": "^5.0.6"
2182
2195
  }
2183
2196
  },
2197
+ "node_modules/libcurl.js": {
2198
+ "version": "0.6.10",
2199
+ "resolved": "https://registry.npmjs.org/libcurl.js/-/libcurl.js-0.6.10.tgz",
2200
+ "integrity": "sha512-GDyxCRi7+R7XFhcCRFAsNYxg3x91LiwiBISo+pWfUXfgO45J/9ZWcHqjKQg8/FbWHRkV1wwSCyPOZ8pLlbdivg=="
2201
+ },
2184
2202
  "node_modules/locate-path": {
2185
2203
  "version": "5.0.0",
2186
2204
  "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "homepage": "https://github.com/chemicaljs/chemical#readme",
20
20
  "dependencies": {
21
- "chemicaljs": "^1.3.0",
21
+ "chemicaljs": "^1.3.1",
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.3.0",
9
+ "chemicaljs": "^1.3.1",
10
10
  "express": "^4.19.2",
11
11
  "preact": "^10.22.0"
12
12
  },
@@ -812,6 +812,18 @@
812
812
  "rollup-plugin-typescript2": "^0.36.0"
813
813
  }
814
814
  },
815
+ "node_modules/@mercuryworkshop/libcurl-transport": {
816
+ "version": "1.3.6",
817
+ "resolved": "https://registry.npmjs.org/@mercuryworkshop/libcurl-transport/-/libcurl-transport-1.3.6.tgz",
818
+ "integrity": "sha512-K4/TSfHlkjuzY6j0XXFmIbG8m3tpMoTxLga46fhmeuX8k3EJR/FVbW8JTXOD34Iofu0vCZuuY8n/ywNCcB6XjA==",
819
+ "dependencies": {
820
+ "esbuild-plugin-umd-wrapper": "^2.0.0",
821
+ "libcurl.js": "^0.6.10",
822
+ "rollup": "^4.12.0",
823
+ "rollup-plugin-node-resolve": "^5.2.0",
824
+ "rollup-plugin-typescript2": "^0.36.0"
825
+ }
826
+ },
815
827
  "node_modules/@mercuryworkshop/scramjet": {
816
828
  "version": "1.0.2",
817
829
  "resolved": "https://registry.npmjs.org/@mercuryworkshop/scramjet/-/scramjet-1.0.2.tgz",
@@ -1709,14 +1721,15 @@
1709
1721
  }
1710
1722
  },
1711
1723
  "node_modules/chemicaljs": {
1712
- "version": "1.3.0",
1713
- "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.3.0.tgz",
1714
- "integrity": "sha512-WJf2OA33QuFxhqRJCECk8lh8VWzURVc2CqIPfkAYBBIY/6XO98xvEbsxjkrQoxGegz7ilC7BqvQkV3h2ASIjQQ==",
1724
+ "version": "1.3.1",
1725
+ "resolved": "https://registry.npmjs.org/chemicaljs/-/chemicaljs-1.3.1.tgz",
1726
+ "integrity": "sha512-F0c930sI2hTzvLrbSxtVGonCFsATFlXEZkFo74y+ZUVFAF3TaYGRIi0d2tPa0ZZGrJeJlbx43JASRIMGLSTH6w==",
1715
1727
  "dependencies": {
1716
1728
  "@mercuryworkshop/bare-mux": "^2.0.1",
1717
1729
  "@mercuryworkshop/epoxy-transport": "^2.1.3",
1730
+ "@mercuryworkshop/libcurl-transport": "^1.3.6",
1718
1731
  "@mercuryworkshop/scramjet": "^1.0.2",
1719
- "@titaniumnetwork-dev/ultraviolet": "^3.2.1",
1732
+ "@titaniumnetwork-dev/ultraviolet": "^3.2.2",
1720
1733
  "express": "^4.19.2",
1721
1734
  "rammerhead": "https://github.com/chemicaljs/chemical/raw/main/rammerhead.tgz",
1722
1735
  "wisp-server-node": "^1.1.0"
@@ -2878,6 +2891,11 @@
2878
2891
  "integrity": "sha512-Y+60/zizpJ3HRH8DCss+q95yr6145JXZo46OTpFvDZWLfRCE4qChOyk1b26nMaNpfHHgxagk9dXT5OP0Tfe+dQ==",
2879
2892
  "dev": true
2880
2893
  },
2894
+ "node_modules/libcurl.js": {
2895
+ "version": "0.6.10",
2896
+ "resolved": "https://registry.npmjs.org/libcurl.js/-/libcurl.js-0.6.10.tgz",
2897
+ "integrity": "sha512-GDyxCRi7+R7XFhcCRFAsNYxg3x91LiwiBISo+pWfUXfgO45J/9ZWcHqjKQg8/FbWHRkV1wwSCyPOZ8pLlbdivg=="
2898
+ },
2881
2899
  "node_modules/locate-path": {
2882
2900
  "version": "5.0.0",
2883
2901
  "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
@@ -8,7 +8,7 @@
8
8
  "build": "vite build"
9
9
  },
10
10
  "dependencies": {
11
- "chemicaljs": "^1.3.0",
11
+ "chemicaljs": "^1.3.1",
12
12
  "express": "^4.19.2",
13
13
  "preact": "^10.22.0"
14
14
  },
@@ -1,10 +1,10 @@
1
1
  import { defineConfig } from "vite"
2
2
  import preact from "@preact/preset-vite"
3
- import { ChemicalPluginVite } from "chemicaljs"
3
+ import { ChemicalVitePlugin } from "chemicaljs"
4
4
 
5
5
  export default defineConfig({
6
6
  plugins: [
7
7
  preact(),
8
- ChemicalPluginVite()
8
+ ChemicalVitePlugin()
9
9
  ],
10
10
  })
package/index.js CHANGED
@@ -134,8 +134,8 @@ class ChemicalServer {
134
134
  }
135
135
  }
136
136
 
137
- const ChemicalPluginVite = (options) => ({
138
- name: "chemical-plugin-vite",
137
+ const ChemicalVitePlugin = (options) => ({
138
+ name: "chemical-vite-plugin",
139
139
  configureServer(server) {
140
140
  if (options) {
141
141
  if (typeof options !== "object" || Array.isArray(options)) {
@@ -270,4 +270,4 @@ const ChemicalPluginVite = (options) => ({
270
270
  }
271
271
  })
272
272
 
273
- export { ChemicalServer, ChemicalPluginVite };
273
+ export { ChemicalServer, ChemicalVitePlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chemicaljs",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "description": "Easily create your own web proxy with no experience required.",
5
5
  "repository": {
6
6
  "type": "git",