@idleberg/vite-plugin-devcert 0.1.1 → 0.1.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 +3 -3
- package/dist/plugin.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
[](https://github.com/idleberg/vite-plugin-devcert/actions/workflows/deno.yml)
|
|
10
10
|
|
|
11
11
|
> [!IMPORTANT]
|
|
12
|
-
> This plugin is based on `@expo/devcert
|
|
12
|
+
> This plugin is based on [`@expo/devcert`](https://www.npmjs.com/package/@expo/devcert), an actively maintained fork of `devcert`. Read about [how it works](https://github.com/expo/devcert/#how-it-works) and adresses [security concerns](https://github.com/expo/devcert/#security-concerns).
|
|
13
13
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
@@ -44,11 +44,11 @@ export default defineConfig({
|
|
|
44
44
|
|
|
45
45
|
#### `options.skipHostsFile`
|
|
46
46
|
|
|
47
|
-
If `certutil` is not installed already (for updating NSS databases; e.g. Firefox), do not attempt to install it. [Read more](https://github.com/expo/devcert#skiphostsfile).
|
|
47
|
+
If `certutil` is not installed already (for updating NSS databases; e.g. Firefox), do not attempt to install it. [Read the documention for more](https://github.com/expo/devcert#skiphostsfile).
|
|
48
48
|
|
|
49
49
|
#### `options.skipCertutil`
|
|
50
50
|
|
|
51
|
-
Do not update your systems host file with the domain name of the certificate. [Read more](https://github.com/expo/devcert#skipcertutil).
|
|
51
|
+
Do not update your systems host file with the domain name of the certificate. [Read the documention for more](https://github.com/expo/devcert#skipcertutil).
|
|
52
52
|
|
|
53
53
|
## Related
|
|
54
54
|
|
package/dist/plugin.js
CHANGED
|
@@ -1 +1,4 @@
|
|
|
1
|
-
import {certificateFor}from'@expo/devcert';import
|
|
1
|
+
import {certificateFor}from'@expo/devcert';import r from'log-symbols';function p(i){return {name:"@idleberg/vite-plugin-devcert",config:async(e,{command:n})=>{if(n!=="serve")return;let{server:t}=e;if(t?.https?.key&&t?.https?.cert)return console.warn(`${r.warning} Skipping devcert, key and cert already provided.`),e;let o=t?.host&&typeof t.host=="string"?t.host:"localhost";console.info([`
|
|
2
|
+
${r.info} Generating certificate for "${o}".`,"You may be prompted to enter your password to allow the creation of root certificate authority.",`
|
|
3
|
+
Please refer to documentation at https://github.com/expo/devcert#how-it-works for details.
|
|
4
|
+
`].join(" "));let{key:s,cert:a}=await certificateFor(o,i);return {...e,server:{...t,https:{...t?.https,key:s??void 0,cert:a??void 0}}}}}}export{p as default};
|