@idleberg/vite-plugin-devcert 0.4.1 → 0.5.0

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
@@ -50,6 +50,10 @@ If `certutil` is not installed already (for updating NSS databases; e.g. Firefox
50
50
 
51
51
  Do not update your systems host file with the domain name of the certificate. [Read the Expo documentation for more](https://github.com/expo/devcert#skipcertutil).
52
52
 
53
+ #### `options.hideInfoBox`
54
+
55
+ Hide the info box displayed at startup.
56
+
53
57
  ## Related 👫
54
58
 
55
59
  - [vite-plugin-basic-ssl](https://www.npmjs.com/package/@vitejs/plugin-basic-ssl)
package/dist/plugin.d.ts CHANGED
@@ -2,6 +2,7 @@ import { Plugin } from "vite";
2
2
 
3
3
  //#region src/plugin.d.ts
4
4
  type PluginOptions = {
5
+ hideInfoBox?: boolean;
5
6
  skipHostsFile?: boolean;
6
7
  skipCertutil?: boolean;
7
8
  };
package/dist/plugin.js CHANGED
@@ -1 +1 @@
1
- import{env as e}from"node:process";import{certificateFor as t}from"@expo/devcert";import n from"boxen";import{cyan as r,underline as i}from"kleur/colors";import a from"log-symbols";function o(e={}){let n=!1;return{name:`@idleberg/vite-plugin-devcert`,config:async(o,{command:c})=>{if(c!==`serve`)return;let{server:l}=o;if(l?.https?.key&&l?.https?.cert)return console.warn(`${a.warning} Skipping devcert, key and cert already provided.`),o;let u=l?.host&&typeof l.host==`string`?l.host:`localhost`;n||=(console.info(s([`Generating a certificate for "${r(u)}".`,`You may be prompted to enter your password to allow the creation of a root certificate authority.`,`\n\nFor details, please refer to the Expo documentation at ${i(`https://github.com/expo/devcert#how-it-works`)}.`].join(` `))),!0);let{key:d,cert:f}=await t(u,e);return{...o,server:{...l,https:{...l?.https,key:d??void 0,cert:f??void 0}}}}}}function s(t){return n(t.trim(),{borderColor:e.NO_COLOR?void 0:`blue`,margin:{top:1,bottom:1},padding:1,title:`vite-plugin-devcert`})}export{o as default};
1
+ import{env as e}from"node:process";import{certificateFor as t}from"@expo/devcert";import n from"boxen";import{cyan as r,underline as i}from"kleur/colors";import a from"log-symbols";function o(e={}){return{name:`@idleberg/vite-plugin-devcert`,config:async(n,{command:o})=>{if(o!==`serve`)return;let{server:c}=n;if(c?.https?.key&&c?.https?.cert)return console.warn(`${a.warning} Skipping devcert, key and cert already provided.`),n;let l=c?.host&&typeof c.host==`string`?c.host:`localhost`,{hideInfoBox:u,...d}=e;u||console.info(s([`Generating a certificate for "${r(l)}".`,`You may be prompted to enter your password to allow the creation of a root certificate authority.`,`\n\nFor details, please refer to the Expo documentation at ${i(`https://github.com/expo/devcert#how-it-works`)}.`].join(` `)));let{key:f,cert:p}=await t(l,d);return{...n,server:{...c,https:{...c?.https,key:f??void 0,cert:p??void 0}}}}}}function s(t){return n(t.trim(),{borderColor:e.NO_COLOR?void 0:`blue`,margin:{top:1,bottom:1},padding:1,title:`vite-plugin-devcert`})}export{o as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idleberg/vite-plugin-devcert",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
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",
@@ -38,13 +38,13 @@
38
38
  "@commitlint/cli": "^20.1.0",
39
39
  "@commitlint/config-conventional": "^20.0.0",
40
40
  "@idleberg/configs": "^0.3.1",
41
- "@playwright/test": "^1.55.1",
42
- "@types/node": "^24.7.0",
41
+ "@playwright/test": "^1.56.1",
42
+ "@types/node": "^24.9.1",
43
43
  "concurrently": "^9.2.1",
44
44
  "np": "^10.2.0",
45
- "tsdown": "^0.15.6",
45
+ "tsdown": "^0.15.9",
46
46
  "typescript": "^5.9.3",
47
- "vite": "^7.1.9",
47
+ "vite": "^7.1.12",
48
48
  "vitest": "^3.2.4"
49
49
  },
50
50
  "peerDependencies": {