@idleberg/vite-plugin-devcert 0.2.2 → 0.3.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/dist/plugin.js +1 -2
- package/package.json +9 -7
package/dist/plugin.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
Please refer to documentation at https://github.com/expo/devcert#how-it-works for details.`].join(` `));let{key:s,cert:c}=await e(o,n);return{...r,server:{...a,https:{...a?.https,key:s??void 0,cert:c??void 0}}}}}}export{n 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`;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 documentation at ${i(`https://github.com/expo/devcert#how-it-works`)}.`].join(` `)));let{key:u,cert:d}=await t(l,e);return{...n,server:{...c,https:{...c?.https,key:u??void 0,cert:d??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.
|
|
3
|
+
"version": "0.3.1",
|
|
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",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"types": "./dist/plugin.d.ts",
|
|
24
24
|
"engines": {
|
|
25
|
-
"node": "^
|
|
25
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"dist/",
|
|
@@ -30,21 +30,23 @@
|
|
|
30
30
|
"README.md"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
+
"@total-typescript/tsconfig": "^1.0.4",
|
|
34
|
+
"boxen": "^8.0.1",
|
|
35
|
+
"kleur": "^4.1.5",
|
|
33
36
|
"log-symbols": "^7.0.1"
|
|
34
37
|
},
|
|
35
38
|
"devDependencies": {
|
|
36
|
-
"@biomejs/biome": "^2.0.
|
|
39
|
+
"@biomejs/biome": "^2.0.6",
|
|
37
40
|
"@commitlint/cli": "^19.8.1",
|
|
38
41
|
"@commitlint/config-conventional": "^19.8.1",
|
|
39
|
-
"@playwright/test": "^1.53.
|
|
40
|
-
"@total-typescript/tsconfig": "^1.0.4",
|
|
42
|
+
"@playwright/test": "^1.53.2",
|
|
41
43
|
"@types/node": "^22.15.32",
|
|
42
44
|
"concurrently": "^9.2.0",
|
|
43
|
-
"lefthook": "^1.11.
|
|
45
|
+
"lefthook": "^1.11.16",
|
|
44
46
|
"np": "^10.2.0",
|
|
45
47
|
"tsdown": "^0.12.9",
|
|
46
48
|
"typescript": "^5.8.3",
|
|
47
|
-
"vite": "^7.0.
|
|
49
|
+
"vite": "^7.0.2",
|
|
48
50
|
"vitest": "^3.2.4"
|
|
49
51
|
},
|
|
50
52
|
"peerDependencies": {
|