@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 CHANGED
@@ -9,7 +9,7 @@
9
9
  [![CI: Deno](https://img.shields.io/github/actions/workflow/status/idleberg/vite-plugin-devcert/deno.yml?logo=deno&logoColor=white&style=for-the-badge)](https://github.com/idleberg/vite-plugin-devcert/actions/workflows/deno.yml)
10
10
 
11
11
  > [!IMPORTANT]
12
- > This plugin is based on `@expo/devcert`, an actively maintained fork of `devcert`. Read about [how it works](https://github.com/expo/devcert/tree/master?tab=readme-ov-file#how-it-works) and what the [security concerns](https://github.com/expo/devcert/tree/master?tab=readme-ov-file#security-concerns) are.
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 l from'log-symbols';function c(r){return {name:"@idleberg/vite-plugin-devcert",config:async(t,{command:n})=>{if(n!=="serve")return;let{server:e}=t;if(e?.https?.key&&e?.https?.cert)return console.warn(`${l.warning} Skipping devcert, key and cert already provided.`),t;let i=e?.host&&typeof e.host=="string"?e.host:"localhost",{key:o,cert:s}=await certificateFor(i,r);return {...t,server:{...e,https:{...e?.https,key:o??void 0,cert:s??void 0}}}}}}export{c as default};
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};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idleberg/vite-plugin-devcert",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "A Vite plugin to generate trusted SSL/TLS certificates for local development",
5
5
  "license": "MIT",
6
6
  "author": "Jan T. Sott",